Added --with-extra-options=opts to specify additional options to build LLVM and run...
[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/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
445 #include <stdio.h>
446 #if HAVE_SYS_TYPES_H
447 # include <sys/types.h>
448 #endif
449 #if HAVE_SYS_STAT_H
450 # include <sys/stat.h>
451 #endif
452 #if STDC_HEADERS
453 # include <stdlib.h>
454 # include <stddef.h>
455 #else
456 # if HAVE_STDLIB_H
457 #  include <stdlib.h>
458 # endif
459 #endif
460 #if HAVE_STRING_H
461 # if !STDC_HEADERS && HAVE_MEMORY_H
462 #  include <memory.h>
463 # endif
464 # include <string.h>
465 #endif
466 #if HAVE_STRINGS_H
467 # include <strings.h>
468 #endif
469 #if HAVE_INTTYPES_H
470 # include <inttypes.h>
471 #else
472 # if HAVE_STDINT_H
473 #  include <stdint.h>
474 # endif
475 #endif
476 #if HAVE_UNISTD_H
477 # include <unistd.h>
478 #endif"
479
480 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 EXTRA_OPTIONS 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'
481 ac_subst_files=''
482
483 # Initialize some variables set by options.
484 ac_init_help=
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
488 cache_file=/dev/null
489 exec_prefix=NONE
490 no_create=
491 no_recursion=
492 prefix=NONE
493 program_prefix=NONE
494 program_suffix=NONE
495 program_transform_name=s,x,x,
496 silent=
497 site=
498 srcdir=
499 verbose=
500 x_includes=NONE
501 x_libraries=NONE
502
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
520
521 ac_prev=
522 for ac_option
523 do
524   # If the previous option needs an argument, assign it.
525   if test -n "$ac_prev"; then
526     eval "$ac_prev=\$ac_option"
527     ac_prev=
528     continue
529   fi
530
531   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533   # Accept the important Cygnus configure options, so we can diagnose typos.
534
535   case $ac_option in
536
537   -bindir | --bindir | --bindi | --bind | --bin | --bi)
538     ac_prev=bindir ;;
539   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540     bindir=$ac_optarg ;;
541
542   -build | --build | --buil | --bui | --bu)
543     ac_prev=build_alias ;;
544   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545     build_alias=$ac_optarg ;;
546
547   -cache-file | --cache-file | --cache-fil | --cache-fi \
548   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549     ac_prev=cache_file ;;
550   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552     cache_file=$ac_optarg ;;
553
554   --config-cache | -C)
555     cache_file=config.cache ;;
556
557   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558     ac_prev=datadir ;;
559   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560   | --da=*)
561     datadir=$ac_optarg ;;
562
563   -disable-* | --disable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     eval "enable_$ac_feature=no" ;;
571
572   -enable-* | --enable-*)
573     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577    { (exit 1); exit 1; }; }
578     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "enable_$ac_feature='$ac_optarg'" ;;
584
585   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587   | --exec | --exe | --ex)
588     ac_prev=exec_prefix ;;
589   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591   | --exec=* | --exe=* | --ex=*)
592     exec_prefix=$ac_optarg ;;
593
594   -gas | --gas | --ga | --g)
595     # Obsolete; use --with-gas.
596     with_gas=yes ;;
597
598   -help | --help | --hel | --he | -h)
599     ac_init_help=long ;;
600   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601     ac_init_help=recursive ;;
602   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603     ac_init_help=short ;;
604
605   -host | --host | --hos | --ho)
606     ac_prev=host_alias ;;
607   -host=* | --host=* | --hos=* | --ho=*)
608     host_alias=$ac_optarg ;;
609
610   -includedir | --includedir | --includedi | --included | --include \
611   | --includ | --inclu | --incl | --inc)
612     ac_prev=includedir ;;
613   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614   | --includ=* | --inclu=* | --incl=* | --inc=*)
615     includedir=$ac_optarg ;;
616
617   -infodir | --infodir | --infodi | --infod | --info | --inf)
618     ac_prev=infodir ;;
619   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620     infodir=$ac_optarg ;;
621
622   -libdir | --libdir | --libdi | --libd)
623     ac_prev=libdir ;;
624   -libdir=* | --libdir=* | --libdi=* | --libd=*)
625     libdir=$ac_optarg ;;
626
627   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628   | --libexe | --libex | --libe)
629     ac_prev=libexecdir ;;
630   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631   | --libexe=* | --libex=* | --libe=*)
632     libexecdir=$ac_optarg ;;
633
634   -localstatedir | --localstatedir | --localstatedi | --localstated \
635   | --localstate | --localstat | --localsta | --localst \
636   | --locals | --local | --loca | --loc | --lo)
637     ac_prev=localstatedir ;;
638   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641     localstatedir=$ac_optarg ;;
642
643   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644     ac_prev=mandir ;;
645   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646     mandir=$ac_optarg ;;
647
648   -nfp | --nfp | --nf)
649     # Obsolete; use --without-fp.
650     with_fp=no ;;
651
652   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653   | --no-cr | --no-c | -n)
654     no_create=yes ;;
655
656   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658     no_recursion=yes ;;
659
660   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662   | --oldin | --oldi | --old | --ol | --o)
663     ac_prev=oldincludedir ;;
664   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667     oldincludedir=$ac_optarg ;;
668
669   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670     ac_prev=prefix ;;
671   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672     prefix=$ac_optarg ;;
673
674   -program-prefix | --program-prefix | --program-prefi | --program-pref \
675   | --program-pre | --program-pr | --program-p)
676     ac_prev=program_prefix ;;
677   -program-prefix=* | --program-prefix=* | --program-prefi=* \
678   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679     program_prefix=$ac_optarg ;;
680
681   -program-suffix | --program-suffix | --program-suffi | --program-suff \
682   | --program-suf | --program-su | --program-s)
683     ac_prev=program_suffix ;;
684   -program-suffix=* | --program-suffix=* | --program-suffi=* \
685   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686     program_suffix=$ac_optarg ;;
687
688   -program-transform-name | --program-transform-name \
689   | --program-transform-nam | --program-transform-na \
690   | --program-transform-n | --program-transform- \
691   | --program-transform | --program-transfor \
692   | --program-transfo | --program-transf \
693   | --program-trans | --program-tran \
694   | --progr-tra | --program-tr | --program-t)
695     ac_prev=program_transform_name ;;
696   -program-transform-name=* | --program-transform-name=* \
697   | --program-transform-nam=* | --program-transform-na=* \
698   | --program-transform-n=* | --program-transform-=* \
699   | --program-transform=* | --program-transfor=* \
700   | --program-transfo=* | --program-transf=* \
701   | --program-trans=* | --program-tran=* \
702   | --progr-tra=* | --program-tr=* | --program-t=*)
703     program_transform_name=$ac_optarg ;;
704
705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706   | -silent | --silent | --silen | --sile | --sil)
707     silent=yes ;;
708
709   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710     ac_prev=sbindir ;;
711   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712   | --sbi=* | --sb=*)
713     sbindir=$ac_optarg ;;
714
715   -sharedstatedir | --sharedstatedir | --sharedstatedi \
716   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717   | --sharedst | --shareds | --shared | --share | --shar \
718   | --sha | --sh)
719     ac_prev=sharedstatedir ;;
720   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723   | --sha=* | --sh=*)
724     sharedstatedir=$ac_optarg ;;
725
726   -site | --site | --sit)
727     ac_prev=site ;;
728   -site=* | --site=* | --sit=*)
729     site=$ac_optarg ;;
730
731   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732     ac_prev=srcdir ;;
733   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734     srcdir=$ac_optarg ;;
735
736   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737   | --syscon | --sysco | --sysc | --sys | --sy)
738     ac_prev=sysconfdir ;;
739   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741     sysconfdir=$ac_optarg ;;
742
743   -target | --target | --targe | --targ | --tar | --ta | --t)
744     ac_prev=target_alias ;;
745   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746     target_alias=$ac_optarg ;;
747
748   -v | -verbose | --verbose | --verbos | --verbo | --verb)
749     verbose=yes ;;
750
751   -version | --version | --versio | --versi | --vers | -V)
752     ac_init_version=: ;;
753
754   -with-* | --with-*)
755     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package| sed 's/-/_/g'`
761     case $ac_option in
762       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763       *) ac_optarg=yes ;;
764     esac
765     eval "with_$ac_package='$ac_optarg'" ;;
766
767   -without-* | --without-*)
768     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769     # Reject names that are not valid shell variable names.
770     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771       { echo "$as_me: error: invalid package name: $ac_package" >&2
772    { (exit 1); exit 1; }; }
773     ac_package=`echo $ac_package | sed 's/-/_/g'`
774     eval "with_$ac_package=no" ;;
775
776   --x)
777     # Obsolete; use --with-x.
778     with_x=yes ;;
779
780   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781   | --x-incl | --x-inc | --x-in | --x-i)
782     ac_prev=x_includes ;;
783   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785     x_includes=$ac_optarg ;;
786
787   -x-libraries | --x-libraries | --x-librarie | --x-librari \
788   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789     ac_prev=x_libraries ;;
790   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792     x_libraries=$ac_optarg ;;
793
794   -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796    { (exit 1); exit 1; }; }
797     ;;
798
799   *=*)
800     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801     # Reject names that are not valid shell variable names.
802     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804    { (exit 1); exit 1; }; }
805     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806     eval "$ac_envvar='$ac_optarg'"
807     export $ac_envvar ;;
808
809   *)
810     # FIXME: should be removed in autoconf 3.0.
811     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815     ;;
816
817   esac
818 done
819
820 if test -n "$ac_prev"; then
821   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822   { echo "$as_me: error: missing argument to $ac_option" >&2
823    { (exit 1); exit 1; }; }
824 fi
825
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839               localstatedir libdir includedir oldincludedir infodir mandir
840 do
841   eval ac_val=$`echo $ac_var`
842   case $ac_val in
843     [\\/$]* | ?:[\\/]* ) ;;
844     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845    { (exit 1); exit 1; }; };;
846   esac
847 done
848
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
852 build=$build_alias
853 host=$host_alias
854 target=$target_alias
855
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858   if test "x$build_alias" = x; then
859     cross_compiling=maybe
860     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861     If a cross compiler is detected then cross compile mode will be used." >&2
862   elif test "x$build_alias" != "x$host_alias"; then
863     cross_compiling=yes
864   fi
865 fi
866
867 ac_tool_prefix=
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870 test "$silent" = yes && exec 6>/dev/null
871
872
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875   ac_srcdir_defaulted=yes
876   # Try the directory containing this script, then its parent.
877   ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879          X"$0" : 'X\(//\)[^/]' \| \
880          X"$0" : 'X\(//\)$' \| \
881          X"$0" : 'X\(/\)' \| \
882          .     : '\(.\)' 2>/dev/null ||
883 echo X"$0" |
884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886           /^X\(\/\/\)$/{ s//\1/; q; }
887           /^X\(\/\).*/{ s//\1/; q; }
888           s/.*/./; q'`
889   srcdir=$ac_confdir
890   if test ! -r $srcdir/$ac_unique_file; then
891     srcdir=..
892   fi
893 else
894   ac_srcdir_defaulted=no
895 fi
896 if test ! -r $srcdir/$ac_unique_file; then
897   if test "$ac_srcdir_defaulted" = yes; then
898     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899    { (exit 1); exit 1; }; }
900   else
901     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902    { (exit 1); exit 1; }; }
903   fi
904 fi
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907    { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
922 ac_env_CC_value=$CC
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966   # Omit some internal or obsolete options to make the list less imposing.
967   # This message is too long to be a string in the A/UX 3.1 sh.
968   cat <<_ACEOF
969 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979   -h, --help              display this help and exit
980       --help=short        display options specific to this package
981       --help=recursive    display the short help of all the included packages
982   -V, --version           display version information and exit
983   -q, --quiet, --silent   do not print \`checking...' messages
984       --cache-file=FILE   cache test results in FILE [disabled]
985   -C, --config-cache      alias for \`--cache-file=config.cache'
986   -n, --no-create         do not create output files
987       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991   cat <<_ACEOF
992 Installation directories:
993   --prefix=PREFIX         install architecture-independent files in PREFIX
994                           [$ac_default_prefix]
995   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996                           [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006   --bindir=DIR           user executables [EPREFIX/bin]
1007   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008   --libexecdir=DIR       program executables [EPREFIX/libexec]
1009   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013   --libdir=DIR           object code libraries [EPREFIX/lib]
1014   --includedir=DIR       C header files [PREFIX/include]
1015   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016   --infodir=DIR          info documentation [PREFIX/info]
1017   --mandir=DIR           man documentation [PREFIX/man]
1018 _ACEOF
1019
1020   cat <<\_ACEOF
1021
1022 System types:
1023   --build=BUILD     configure for building on BUILD [guessed]
1024   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1025   --target=TARGET   configure for building compilers for TARGET [HOST]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030   case $ac_init_help in
1031      short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1032    esac
1033   cat <<\_ACEOF
1034
1035 Optional Features:
1036   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038   --enable-optimized
1039   --enable-assertions
1040   --enable-debug-runtime
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042   --enable-doxygen        Build doxygen documentation (default is NO)
1043   --enable-threads        Use threads if available (default is YES)
1044   --enable-target         Build specific host targets:
1045                           all,host-only,{target-name} (default=all)
1046   --enable-ltdl-install   install libltdl
1047   --enable-shared[=PKGS]
1048                           build shared libraries [default=yes]
1049   --enable-static[=PKGS]
1050                           build static libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1059                           searches PATH)
1060   --with-extra-options    Specify addtional options to compile LLVM with
1061   --with-tclinclude       directory where tcl headers are
1062   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063   --with-pic              try to use only PIC/non-PIC objects [default=use
1064                           both]
1065   --with-tags[=TAGS]
1066                           include additional configurations [automatic]
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CPP         C preprocessor
1076   CXX         C++ compiler command
1077   CXXFLAGS    C++ compiler flags
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 llvm configure 1.8cvs
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by llvm $as_me 1.8cvs, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1533
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
1542 ac_aux_dir=
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544   if test -f $ac_dir/install-sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install-sh -c"
1547     break
1548   elif test -f $ac_dir/install.sh; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/install.sh -c"
1551     break
1552   elif test -f $ac_dir/shtool; then
1553     ac_aux_dir=$ac_dir
1554     ac_install_sh="$ac_aux_dir/shtool install -c"
1555     break
1556   fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561    { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567
1568 if test ${srcdir} != "." ; then
1569   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572    { (exit 1); exit 1; }; }
1573   fi
1574 fi
1575
1576 for i in `ls ${srcdir}/projects`
1577 do
1578   if test -d ${srcdir}/projects/${i} ; then
1579     case ${i} in
1580       "CVS") ;;
1581       "sample")
1582
1583 subdirs="$subdirs projects/sample"
1584     ;;
1585       "Stacker")
1586
1587 subdirs="$subdirs projects/Stacker"
1588    ;;
1589       "privbracket")
1590
1591 subdirs="$subdirs projects/privbracket"
1592  ;;
1593       "llvm-test")
1594
1595 subdirs="$subdirs projects/llvm-test"
1596  ;;
1597       "llvm-reopt")
1598
1599 subdirs="$subdirs projects/llvm-reopt"
1600 ;;
1601       "llvm-gcc")
1602
1603 subdirs="$subdirs projects/llvm-gcc"
1604   ;;
1605       "llvm-java")
1606
1607 subdirs="$subdirs projects/llvm-java"
1608  ;;
1609       "llvm-tv")
1610
1611 subdirs="$subdirs projects/llvm-tv"
1612    ;;
1613       "llvm-poolalloc")
1614
1615 subdirs="$subdirs projects/llvm-poolalloc"
1616  ;;
1617       "llvm-kernel")
1618
1619 subdirs="$subdirs projects/llvm-kernel"
1620  ;;
1621       *)
1622         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624         ;;
1625     esac
1626   fi
1627 done
1628
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643   ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647    { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669   ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691   ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 fi
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709   test "$program_prefix$program_suffix$program_transform_name" = \
1710     NONENONEs,x,x, &&
1711   program_prefix=${target_alias}-
1712
1713 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1714 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   case $build in
1719   *-*-aix*)
1720     llvm_cv_os_type="AIX"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-cygwin*)
1723     llvm_cv_os_type="Cygwin"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-darwin*)
1726     llvm_cv_os_type="Darwin"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-freebsd*)
1729     llvm_cv_os_type="FreeBSD"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-openbsd*)
1732     llvm_cv_os_type="OpenBSD"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-hpux*)
1735     llvm_cv_os_type="HP-UX"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-interix*)
1738     llvm_cv_os_type="Interix"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-linux*)
1741     llvm_cv_os_type="Linux"
1742     llvm_cv_platform_type="Unix" ;;
1743   *-*-solaris*)
1744     llvm_cv_os_type="SunOS"
1745     llvm_cv_platform_type="Unix" ;;
1746   *-*-win32*)
1747     llvm_cv_os_type="Win32"
1748     llvm_cv_platform_type="Win32" ;;
1749   *-*-mingw*)
1750     llvm_cv_os_type="MingW"
1751     llvm_cv_platform_type="Win32" ;;
1752   *)
1753     llvm_cv_os_type="Unknown"
1754     llvm_cv_platform_type="Unknown" ;;
1755 esac
1756 fi
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1759
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763    { (exit 1); exit 1; }; }
1764 fi
1765
1766 OS=$llvm_cv_os_type
1767
1768
1769 case $llvm_cv_platform_type in
1770   Unix)
1771
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1774 _ACEOF
1775
1776     LLVM_ON_UNIX=1
1777
1778     LLVM_ON_WIN32=0
1779
1780     ;;
1781   Win32)
1782
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1785 _ACEOF
1786
1787     LLVM_ON_UNIX=0
1788
1789     LLVM_ON_WIN32=1
1790
1791     ;;
1792 esac
1793
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   case $target in
1800   i?86-*)                 llvm_cv_target_arch="x86" ;;
1801   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1802   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1803   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1804   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1805   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1806   *)                      llvm_cv_target_arch="Unknown" ;;
1807 esac
1808 fi
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1811
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815 fi
1816
1817 ARCH=$llvm_cv_target_arch
1818
1819
1820 ac_ext=c
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 fi
1862 if test -z "$ac_cv_prog_CC"; then
1863   ac_ct_CC=$CC
1864   # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$ac_ct_CC"; then
1872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_ac_ct_CC="gcc"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899   CC=$ac_ct_CC
1900 else
1901   CC="$ac_cv_prog_CC"
1902 fi
1903
1904 if test -z "$CC"; then
1905   if test -n "$ac_tool_prefix"; then
1906   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_CC="${ac_tool_prefix}cc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934   echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941 fi
1942 if test -z "$ac_cv_prog_CC"; then
1943   ac_ct_CC=$CC
1944   # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$ac_ct_CC"; then
1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_ac_ct_CC="cc"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   CC=$ac_ct_CC
1980 else
1981   CC="$ac_cv_prog_CC"
1982 fi
1983
1984 fi
1985 if test -z "$CC"; then
1986   # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996   ac_prog_rejected=no
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005        ac_prog_rejected=yes
2006        continue
2007      fi
2008     ac_cv_prog_CC="cc"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015 if test $ac_prog_rejected = yes; then
2016   # We found a bogon in the path, so make sure we never use it.
2017   set dummy $ac_cv_prog_CC
2018   shift
2019   if test $# != 0; then
2020     # We chose a different compiler from the bogus one.
2021     # However, it has the same basename, so the bogon will be chosen
2022     # first if we set CC to just the basename; use the full file name.
2023     shift
2024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025   fi
2026 fi
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$CC"; then
2040   if test -n "$ac_tool_prefix"; then
2041   for ac_prog in cl
2042   do
2043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078     test -n "$CC" && break
2079   done
2080 fi
2081 if test -z "$CC"; then
2082   ac_ct_CC=$CC
2083   for ac_prog in cl
2084 do
2085   # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$ac_ct_CC"; then
2093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102     ac_cv_prog_ac_ct_CC="$ac_prog"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2115 else
2116   echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2118 fi
2119
2120   test -n "$ac_ct_CC" && break
2121 done
2122
2123   CC=$ac_ct_CC
2124 fi
2125
2126 fi
2127
2128
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133    { (exit 1); exit 1; }; }
2134
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137      "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140   (eval $ac_compiler --version </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145   (eval $ac_compiler -v </dev/null >&5) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150   (eval $ac_compiler -V </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2174 # of exeext.
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179   (eval $ac_link_default) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   # Find the output, starting from the most likely.  This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185 # resort.
2186
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189 ac_cv_exeext=
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 do
2193   test -f "$ac_file" || continue
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196         ;;
2197     conftest.$ac_ext )
2198         # This is the source file.
2199         ;;
2200     [ab].out )
2201         # We found the default executable, but exeext='' is most
2202         # certainly right.
2203         break;;
2204     *.* )
2205         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206         # FIXME: I believe we export ac_cv_exeext for Libtool,
2207         # but it would be cool to find out if it's true.  Does anybody
2208         # maintain Libtool? --akim.
2209         export ac_cv_exeext
2210         break;;
2211     * )
2212         break;;
2213   esac
2214 done
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223    { (exit 77); exit 77; }; }
2224 fi
2225
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2229
2230 # Check the compiler produces executables we can run.  If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237   if { ac_try='./$ac_file'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243     cross_compiling=no
2244   else
2245     if test "$cross_compiling" = maybe; then
2246         cross_compiling=yes
2247     else
2248         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254    { (exit 1); exit 1; }; }
2255     fi
2256   fi
2257 fi
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2260
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run.  If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2269
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273   (eval $ac_link) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; then
2277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 # `rm'.
2281 for ac_file in conftest.exe conftest conftest.*; do
2282   test -f "$ac_file" || continue
2283   case $ac_file in
2284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286           export ac_cv_exeext
2287           break;;
2288     * ) break;;
2289   esac
2290 done
2291 else
2292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2305 ac_exeext=$EXEEXT
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328   (eval $ac_compile) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336        break;;
2337   esac
2338 done
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2355 ac_objext=$OBJEXT
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371 #ifndef __GNUC__
2372        choke me
2373 #endif
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"
2389                          || test ! -s conftest.err'
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); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   ac_compiler_gnu=yes
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_compiler_gnu=no
2407 fi
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 CFLAGS="-g"
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>conftest.er1
2441   ac_status=$?
2442   grep -v '^ *+' conftest.er1 >conftest.err
2443   rm -f conftest.er1
2444   cat conftest.err >&5
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } &&
2447          { ac_try='test -z "$ac_c_werror_flag"
2448                          || test ! -s conftest.err'
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); }; } &&
2454          { ac_try='test -s conftest.$ac_objext'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   ac_cv_prog_cc_g=yes
2461 else
2462   echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_cv_prog_cc_g=no
2466 fi
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472   CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474   if test "$GCC" = yes; then
2475     CFLAGS="-g -O2"
2476   else
2477     CFLAGS="-g"
2478   fi
2479 else
2480   if test "$GCC" = yes; then
2481     CFLAGS="-O2"
2482   else
2483     CFLAGS=
2484   fi
2485 fi
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   ac_cv_prog_cc_stdc=no
2492 ac_save_CC=$CC
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499 #include <stdarg.h>
2500 #include <stdio.h>
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2507      char **p;
2508      int i;
2509 {
2510   return p[i];
2511 }
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2513 {
2514   char *s;
2515   va_list v;
2516   va_start (v,p);
2517   s = g (p, va_arg (v,int));
2518   va_end (v);
2519   return s;
2520 }
2521
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2523    function prototypes and stuff, but not '\xHH' hex character constants.
2524    These don't provoke an error unfortunately, instead are silently treated
2525    as 'x'.  The following induces an error, until -std1 is added to get
2526    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2527    array size at least.  It's necessary to write '\x00'==0 to get something
2528    that's true only with -std1.  */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 int argc;
2536 char **argv;
2537 int
2538 main ()
2539 {
2540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX                   -qlanglvl=ansi
2548 # Ultrix and OSF/1      -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2551 # SVR4                  -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553 do
2554   CC="$ac_save_CC $ac_arg"
2555   rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"
2565                          || test ! -s conftest.err'
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); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_prog_cc_stdc=$ac_arg
2578 break
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext
2585 done
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2587 CC=$ac_save_CC
2588
2589 fi
2590
2591 case "x$ac_cv_prog_cc_stdc" in
2592   x|xno)
2593     echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2595   *)
2596     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598     CC="$CC $ac_cv_prog_cc_stdc" ;;
2599 esac
2600
2601 # Some people use a C++ compiler to compile C.  Since we use `exit',
2602 # in C++ we need to declare it.  In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #ifndef __cplusplus
2607   choke me
2608 #endif
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
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); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   for ac_declaration in \
2633    '' \
2634    'extern "C" void std::exit (int) throw (); using std::exit;' \
2635    'extern "C" void std::exit (int); using std::exit;' \
2636    'extern "C" void exit (int) throw ();' \
2637    'extern "C" void exit (int);' \
2638    'void exit (int);'
2639 do
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 $ac_declaration
2647 #include <stdlib.h>
2648 int
2649 main ()
2650 {
2651 exit (42);
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_c_werror_flag"
2666                          || test ! -s conftest.err'
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); }; } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   :
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 continue
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 $ac_declaration
2693 int
2694 main ()
2695 {
2696 exit (42);
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"
2711                          || test ! -s conftest.err'
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); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   break
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731 rm -f conftest*
2732 if test -n "$ac_declaration"; then
2733   echo '#ifdef __cplusplus' >>confdefs.h
2734   echo $ac_declaration      >>confdefs.h
2735   echo '#endif'             >>confdefs.h
2736 fi
2737
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2765
2766 int
2767 main ()
2768 {
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770  bogus endian macros
2771 #endif
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
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); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2808
2809 int
2810 main ()
2811 {
2812 #if BYTE_ORDER != BIG_ENDIAN
2813  not big endian
2814 #endif
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822   (eval $ac_compile) 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -z "$ac_c_werror_flag"
2830                          || test ! -s conftest.err'
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); }; } &&
2836          { ac_try='test -s conftest.$ac_objext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   ac_cv_c_bigendian=yes
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 ac_cv_c_bigendian=no
2848 fi
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856   # try to guess the endianness by grepping values into an object file
2857   ac_cv_c_bigendian=unknown
2858   cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870 int
2871 main ()
2872 {
2873  _ascii (); _ebcdic ();
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
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); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901   ac_cv_c_bigendian=yes
2902 fi
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904   if test "$ac_cv_c_bigendian" = unknown; then
2905     ac_cv_c_bigendian=no
2906   else
2907     # finding both strings is unlikely to happen, but who knows?
2908     ac_cv_c_bigendian=unknown
2909   fi
2910 fi
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 int
2925 main ()
2926 {
2927   /* Are we little or big endian?  From Harbison&Steele.  */
2928   union
2929   {
2930     long l;
2931     char c[sizeof (long)];
2932   } u;
2933   u.l = 1;
2934   exit (u.c[sizeof (long) - 1] == 1);
2935 }
2936 _ACEOF
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939   (eval $ac_link) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   ac_cv_c_bigendian=no
2949 else
2950   echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ( exit $ac_status )
2955 ac_cv_c_bigendian=yes
2956 fi
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958 fi
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 fi
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2965   yes)
2966     ENDIAN=big
2967  ;;
2968   no)
2969     ENDIAN=little
2970  ;;
2971   *)
2972     { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976    { (exit 1); exit 1; }; } ;;
2977 esac
2978
2979
2980 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2981   cvsbuild="yes"
2982   optimize="no"
2983   CVSBUILD=CVSBUILD=1
2984
2985 else
2986   cvsbuild="no"
2987   optimize="yes"
2988 fi
2989
2990
2991 # Check whether --enable-optimized or --disable-optimized was given.
2992 if test "${enable_optimized+set}" = set; then
2993   enableval="$enable_optimized"
2994
2995 else
2996   enableval=$optimize
2997 fi;
2998 if test ${enableval} = "no" ; then
2999   ENABLE_OPTIMIZED=
3000
3001 else
3002   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3003
3004 fi
3005
3006 # Check whether --enable-assertions or --disable-assertions was given.
3007 if test "${enable_assertions+set}" = set; then
3008   enableval="$enable_assertions"
3009
3010 else
3011   enableval="yes"
3012 fi;
3013 if test ${enableval} = "yes" ; then
3014   DISABLE_ASSERTIONS=
3015
3016 else
3017   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3018
3019 fi
3020
3021 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3022 if test "${enable_debug_runtime+set}" = set; then
3023   enableval="$enable_debug_runtime"
3024
3025 else
3026   enableval=no
3027 fi;
3028 if test ${enableval} = "no" ; then
3029   DEBUG_RUNTIME=
3030
3031 else
3032   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3033
3034 fi
3035
3036 # Check whether --enable-jit or --disable-jit was given.
3037 if test "${enable_jit+set}" = set; then
3038   enableval="$enable_jit"
3039
3040 else
3041   enableval=default
3042 fi;
3043 if test ${enableval} = "no"
3044 then
3045   JIT=
3046
3047 else
3048   case "$llvm_cv_target_arch" in
3049     x86)     TARGET_HAS_JIT=1
3050  ;;
3051     Sparc)   TARGET_HAS_JIT=1
3052  ;;
3053     PowerPC) TARGET_HAS_JIT=1
3054  ;;
3055     x86_64)  TARGET_HAS_JIT=0
3056  ;;
3057     Alpha)   TARGET_HAS_JIT=1
3058  ;;
3059     IA64)    TARGET_HAS_JIT=0
3060  ;;
3061     *)       TARGET_HAS_JIT=0
3062  ;;
3063   esac
3064 fi
3065
3066 # Check whether --enable-doxygen or --disable-doxygen was given.
3067 if test "${enable_doxygen+set}" = set; then
3068   enableval="$enable_doxygen"
3069
3070 else
3071   enableval=default
3072 fi;
3073 case "$enableval" in
3074   yes) ENABLE_DOXYGEN=1
3075  ;;
3076   no)  ENABLE_DOXYGEN=0
3077  ;;
3078   default) ENABLE_DOXYGEN=0
3079  ;;
3080   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3081 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3082    { (exit 1); exit 1; }; } ;;
3083 esac
3084
3085 # Check whether --enable-threads or --disable-threads was given.
3086 if test "${enable_threads+set}" = set; then
3087   enableval="$enable_threads"
3088
3089 else
3090   enableval=yes
3091 fi;
3092 case "$enableval" in
3093   yes) ENABLE_THREADS=1
3094  ;;
3095   no)  ENABLE_THREADS=0
3096  ;;
3097   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3098 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3099    { (exit 1); exit 1; }; } ;;
3100 esac
3101
3102 cat >>confdefs.h <<_ACEOF
3103 #define ENABLE_THREADS $ENABLE_THREADS
3104 _ACEOF
3105
3106
3107 TARGETS_TO_BUILD=""
3108 # Check whether --enable-targets or --disable-targets was given.
3109 if test "${enable_targets+set}" = set; then
3110   enableval="$enable_targets"
3111
3112 else
3113   enableval=all
3114 fi;
3115 case "$enableval" in
3116   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3117   host-only)
3118     case "$llvm_cv_target_arch" in
3119       x86)     TARGETS_TO_BUILD="X86" ;;
3120       x86_64)  TARGETS_TO_BUILD="X86" ;;
3121       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3122       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3123       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3124       IA64)    TARGETS_TO_BUILD="IA64" ;;
3125       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3126 echo "$as_me: error: Can not set target to build" >&2;}
3127    { (exit 1); exit 1; }; } ;;
3128     esac
3129     ;;
3130   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3131       case "$a_target" in
3132         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3133         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3134         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3135         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3136         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3137         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3138         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3139 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3140    { (exit 1); exit 1; }; } ;;
3141       esac
3142   done
3143   ;;
3144 esac
3145 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3146 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3147
3148
3149
3150 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3151 if test "${with_llvmgccdir+set}" = set; then
3152   withval="$with_llvmgccdir"
3153
3154 else
3155   withval=default
3156 fi;
3157 case "$withval" in
3158   default) WITH_LLVMGCCDIR=default ;;
3159   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3160   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3161 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3162    { (exit 1); exit 1; }; } ;;
3163 esac
3164
3165
3166
3167 # Check whether --with-extra-options or --without-extra-options was given.
3168 if test "${with_extra_options+set}" = set; then
3169   extraopts="$with_extra_options"
3170
3171 else
3172   extraopts=default
3173 fi;
3174 case "$extraopts" in
3175   default) EXTRA_OPTIONS= ;;
3176   *) EXTRA_OPTIONS=$extraopts ;;
3177 esac
3178 EXTRA_OPTIONS=$EXTRA_OPTIONS
3179
3180
3181
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3188 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3189 # On Suns, sometimes $CPP names a directory.
3190 if test -n "$CPP" && test -d "$CPP"; then
3191   CPP=
3192 fi
3193 if test -z "$CPP"; then
3194   if test "${ac_cv_prog_CPP+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197       # Double quotes because CPP needs to be expanded
3198     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3199     do
3200       ac_preproc_ok=false
3201 for ac_c_preproc_warn_flag in '' yes
3202 do
3203   # Use a header file that comes with gcc, so configuring glibc
3204   # with a fresh cross-compiler works.
3205   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3206   # <limits.h> exists even on freestanding compilers.
3207   # On the NeXT, cc -E runs the code through the compiler's parser,
3208   # not just through cpp. "Syntax error" is here to catch this case.
3209   cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215 #ifdef __STDC__
3216 # include <limits.h>
3217 #else
3218 # include <assert.h>
3219 #endif
3220                      Syntax error
3221 _ACEOF
3222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3224   ac_status=$?
3225   grep -v '^ *+' conftest.er1 >conftest.err
3226   rm -f conftest.er1
3227   cat conftest.err >&5
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); } >/dev/null; then
3230   if test -s conftest.err; then
3231     ac_cpp_err=$ac_c_preproc_warn_flag
3232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3233   else
3234     ac_cpp_err=
3235   fi
3236 else
3237   ac_cpp_err=yes
3238 fi
3239 if test -z "$ac_cpp_err"; then
3240   :
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245   # Broken: fails on valid input.
3246 continue
3247 fi
3248 rm -f conftest.err conftest.$ac_ext
3249
3250   # OK, works on sane cases.  Now check whether non-existent headers
3251   # can be detected and how.
3252   cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h.  */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h.  */
3258 #include <ac_nonexistent.h>
3259 _ACEOF
3260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3261   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } >/dev/null; then
3268   if test -s conftest.err; then
3269     ac_cpp_err=$ac_c_preproc_warn_flag
3270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3271   else
3272     ac_cpp_err=
3273   fi
3274 else
3275   ac_cpp_err=yes
3276 fi
3277 if test -z "$ac_cpp_err"; then
3278   # Broken: success on invalid input.
3279 continue
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284   # Passes both tests.
3285 ac_preproc_ok=:
3286 break
3287 fi
3288 rm -f conftest.err conftest.$ac_ext
3289
3290 done
3291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3292 rm -f conftest.err conftest.$ac_ext
3293 if $ac_preproc_ok; then
3294   break
3295 fi
3296
3297     done
3298     ac_cv_prog_CPP=$CPP
3299
3300 fi
3301   CPP=$ac_cv_prog_CPP
3302 else
3303   ac_cv_prog_CPP=$CPP
3304 fi
3305 echo "$as_me:$LINENO: result: $CPP" >&5
3306 echo "${ECHO_T}$CPP" >&6
3307 ac_preproc_ok=false
3308 for ac_c_preproc_warn_flag in '' yes
3309 do
3310   # Use a header file that comes with gcc, so configuring glibc
3311   # with a fresh cross-compiler works.
3312   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313   # <limits.h> exists even on freestanding compilers.
3314   # On the NeXT, cc -E runs the code through the compiler's parser,
3315   # not just through cpp. "Syntax error" is here to catch this case.
3316   cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h.  */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h.  */
3322 #ifdef __STDC__
3323 # include <limits.h>
3324 #else
3325 # include <assert.h>
3326 #endif
3327                      Syntax error
3328 _ACEOF
3329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } >/dev/null; then
3337   if test -s conftest.err; then
3338     ac_cpp_err=$ac_c_preproc_warn_flag
3339     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3340   else
3341     ac_cpp_err=
3342   fi
3343 else
3344   ac_cpp_err=yes
3345 fi
3346 if test -z "$ac_cpp_err"; then
3347   :
3348 else
3349   echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352   # Broken: fails on valid input.
3353 continue
3354 fi
3355 rm -f conftest.err conftest.$ac_ext
3356
3357   # OK, works on sane cases.  Now check whether non-existent headers
3358   # can be detected and how.
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <ac_nonexistent.h>
3366 _ACEOF
3367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } >/dev/null; then
3375   if test -s conftest.err; then
3376     ac_cpp_err=$ac_c_preproc_warn_flag
3377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378   else
3379     ac_cpp_err=
3380   fi
3381 else
3382   ac_cpp_err=yes
3383 fi
3384 if test -z "$ac_cpp_err"; then
3385   # Broken: success on invalid input.
3386 continue
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391   # Passes both tests.
3392 ac_preproc_ok=:
3393 break
3394 fi
3395 rm -f conftest.err conftest.$ac_ext
3396
3397 done
3398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399 rm -f conftest.err conftest.$ac_ext
3400 if $ac_preproc_ok; then
3401   :
3402 else
3403   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3404 See \`config.log' for more details." >&5
3405 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3406 See \`config.log' for more details." >&2;}
3407    { (exit 1); exit 1; }; }
3408 fi
3409
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416 ac_ext=c
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test -n "$ac_tool_prefix"; then
3422   for ac_prog in gcc
3423   do
3424     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_prog_CC+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   if test -n "$CC"; then
3432   ac_cv_prog_CC="$CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437   IFS=$as_save_IFS
3438   test -z "$as_dir" && as_dir=.
3439   for ac_exec_ext in '' $ac_executable_extensions; do
3440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443     break 2
3444   fi
3445 done
3446 done
3447
3448 fi
3449 fi
3450 CC=$ac_cv_prog_CC
3451 if test -n "$CC"; then
3452   echo "$as_me:$LINENO: result: $CC" >&5
3453 echo "${ECHO_T}$CC" >&6
3454 else
3455   echo "$as_me:$LINENO: result: no" >&5
3456 echo "${ECHO_T}no" >&6
3457 fi
3458
3459     test -n "$CC" && break
3460   done
3461 fi
3462 if test -z "$CC"; then
3463   ac_ct_CC=$CC
3464   for ac_prog in gcc
3465 do
3466   # Extract the first word of "$ac_prog", so it can be a program name with args.
3467 set dummy $ac_prog; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   if test -n "$ac_ct_CC"; then
3474   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_prog_ac_ct_CC="$ac_prog"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490 fi
3491 fi
3492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3493 if test -n "$ac_ct_CC"; then
3494   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3495 echo "${ECHO_T}$ac_ct_CC" >&6
3496 else
3497   echo "$as_me:$LINENO: result: no" >&5
3498 echo "${ECHO_T}no" >&6
3499 fi
3500
3501   test -n "$ac_ct_CC" && break
3502 done
3503
3504   CC=$ac_ct_CC
3505 fi
3506
3507
3508 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details." >&2;}
3512    { (exit 1); exit 1; }; }
3513
3514 # Provide some information about the compiler.
3515 echo "$as_me:$LINENO:" \
3516      "checking for C compiler version" >&5
3517 ac_compiler=`set X $ac_compile; echo $2`
3518 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3519   (eval $ac_compiler --version </dev/null >&5) 2>&5
3520   ac_status=$?
3521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }
3523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3524   (eval $ac_compiler -v </dev/null >&5) 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }
3528 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3529   (eval $ac_compiler -V </dev/null >&5) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }
3533
3534 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3535 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3536 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549 #ifndef __GNUC__
3550        choke me
3551 #endif
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559   (eval $ac_compile) 2>conftest.er1
3560   ac_status=$?
3561   grep -v '^ *+' conftest.er1 >conftest.err
3562   rm -f conftest.er1
3563   cat conftest.err >&5
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } &&
3566          { ac_try='test -z "$ac_c_werror_flag"
3567                          || test ! -s conftest.err'
3568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569   (eval $ac_try) 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); }; } &&
3573          { ac_try='test -s conftest.$ac_objext'
3574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575   (eval $ac_try) 2>&5
3576   ac_status=$?
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); }; }; then
3579   ac_compiler_gnu=yes
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584 ac_compiler_gnu=no
3585 fi
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588
3589 fi
3590 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3592 GCC=`test $ac_compiler_gnu = yes && echo yes`
3593 ac_test_CFLAGS=${CFLAGS+set}
3594 ac_save_CFLAGS=$CFLAGS
3595 CFLAGS="-g"
3596 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3598 if test "${ac_cv_prog_cc_g+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   cat >conftest.$ac_ext <<_ACEOF
3602 /* confdefs.h.  */
3603 _ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h.  */
3607
3608 int
3609 main ()
3610 {
3611
3612   ;
3613   return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618   (eval $ac_compile) 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } &&
3625          { ac_try='test -z "$ac_c_werror_flag"
3626                          || test ! -s conftest.err'
3627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3628   (eval $ac_try) 2>&5
3629   ac_status=$?
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); }; } &&
3632          { ac_try='test -s conftest.$ac_objext'
3633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634   (eval $ac_try) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }; }; then
3638   ac_cv_prog_cc_g=yes
3639 else
3640   echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_cv_prog_cc_g=no
3644 fi
3645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3649 if test "$ac_test_CFLAGS" = set; then
3650   CFLAGS=$ac_save_CFLAGS
3651 elif test $ac_cv_prog_cc_g = yes; then
3652   if test "$GCC" = yes; then
3653     CFLAGS="-g -O2"
3654   else
3655     CFLAGS="-g"
3656   fi
3657 else
3658   if test "$GCC" = yes; then
3659     CFLAGS="-O2"
3660   else
3661     CFLAGS=
3662   fi
3663 fi
3664 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3665 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3666 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   ac_cv_prog_cc_stdc=no
3670 ac_save_CC=$CC
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h.  */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h.  */
3677 #include <stdarg.h>
3678 #include <stdio.h>
3679 #include <sys/types.h>
3680 #include <sys/stat.h>
3681 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3682 struct buf { int x; };
3683 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3684 static char *e (p, i)
3685      char **p;
3686      int i;
3687 {
3688   return p[i];
3689 }
3690 static char *f (char * (*g) (char **, int), char **p, ...)
3691 {
3692   char *s;
3693   va_list v;
3694   va_start (v,p);
3695   s = g (p, va_arg (v,int));
3696   va_end (v);
3697   return s;
3698 }
3699
3700 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3701    function prototypes and stuff, but not '\xHH' hex character constants.
3702    These don't provoke an error unfortunately, instead are silently treated
3703    as 'x'.  The following induces an error, until -std1 is added to get
3704    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3705    array size at least.  It's necessary to write '\x00'==0 to get something
3706    that's true only with -std1.  */
3707 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708
3709 int test (int i, double x);
3710 struct s1 {int (*f) (int a);};
3711 struct s2 {int (*f) (double a);};
3712 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3713 int argc;
3714 char **argv;
3715 int
3716 main ()
3717 {
3718 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3719   ;
3720   return 0;
3721 }
3722 _ACEOF
3723 # Don't try gcc -ansi; that turns off useful extensions and
3724 # breaks some systems' header files.
3725 # AIX                   -qlanglvl=ansi
3726 # Ultrix and OSF/1      -std1
3727 # HP-UX 10.20 and later -Ae
3728 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3729 # SVR4                  -Xc -D__EXTENSIONS__
3730 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 do
3732   CC="$ac_save_CC $ac_arg"
3733   rm -f conftest.$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>conftest.er1
3736   ac_status=$?
3737   grep -v '^ *+' conftest.er1 >conftest.err
3738   rm -f conftest.er1
3739   cat conftest.err >&5
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } &&
3742          { ac_try='test -z "$ac_c_werror_flag"
3743                          || test ! -s conftest.err'
3744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745   (eval $ac_try) 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }; } &&
3749          { ac_try='test -s conftest.$ac_objext'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; }; then
3755   ac_cv_prog_cc_stdc=$ac_arg
3756 break
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761 fi
3762 rm -f conftest.err conftest.$ac_objext
3763 done
3764 rm -f conftest.$ac_ext conftest.$ac_objext
3765 CC=$ac_save_CC
3766
3767 fi
3768
3769 case "x$ac_cv_prog_cc_stdc" in
3770   x|xno)
3771     echo "$as_me:$LINENO: result: none needed" >&5
3772 echo "${ECHO_T}none needed" >&6 ;;
3773   *)
3774     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3776     CC="$CC $ac_cv_prog_cc_stdc" ;;
3777 esac
3778
3779 # Some people use a C++ compiler to compile C.  Since we use `exit',
3780 # in C++ we need to declare it.  In case someone uses the same compiler
3781 # for both compiling C and C++ we need to have the C++ compiler decide
3782 # the declaration of exit, since it's the most demanding environment.
3783 cat >conftest.$ac_ext <<_ACEOF
3784 #ifndef __cplusplus
3785   choke me
3786 #endif
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3790   (eval $ac_compile) 2>conftest.er1
3791   ac_status=$?
3792   grep -v '^ *+' conftest.er1 >conftest.err
3793   rm -f conftest.er1
3794   cat conftest.err >&5
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); } &&
3797          { ac_try='test -z "$ac_c_werror_flag"
3798                          || test ! -s conftest.err'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; } &&
3804          { ac_try='test -s conftest.$ac_objext'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; }; then
3810   for ac_declaration in \
3811    '' \
3812    'extern "C" void std::exit (int) throw (); using std::exit;' \
3813    'extern "C" void std::exit (int); using std::exit;' \
3814    'extern "C" void exit (int) throw ();' \
3815    'extern "C" void exit (int);' \
3816    'void exit (int);'
3817 do
3818   cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824 $ac_declaration
3825 #include <stdlib.h>
3826 int
3827 main ()
3828 {
3829 exit (42);
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3836   (eval $ac_compile) 2>conftest.er1
3837   ac_status=$?
3838   grep -v '^ *+' conftest.er1 >conftest.err
3839   rm -f conftest.er1
3840   cat conftest.err >&5
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); } &&
3843          { ac_try='test -z "$ac_c_werror_flag"
3844                          || test ! -s conftest.err'
3845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846   (eval $ac_try) 2>&5
3847   ac_status=$?
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); }; } &&
3850          { ac_try='test -s conftest.$ac_objext'
3851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852   (eval $ac_try) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; }; then
3856   :
3857 else
3858   echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 continue
3862 fi
3863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3864   cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870 $ac_declaration
3871 int
3872 main ()
3873 {
3874 exit (42);
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881   (eval $ac_compile) 2>conftest.er1
3882   ac_status=$?
3883   grep -v '^ *+' conftest.er1 >conftest.err
3884   rm -f conftest.er1
3885   cat conftest.err >&5
3886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887   (exit $ac_status); } &&
3888          { ac_try='test -z "$ac_c_werror_flag"
3889                          || test ! -s conftest.err'
3890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891   (eval $ac_try) 2>&5
3892   ac_status=$?
3893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894   (exit $ac_status); }; } &&
3895          { ac_try='test -s conftest.$ac_objext'
3896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897   (eval $ac_try) 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); }; }; then
3901   break
3902 else
3903   echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 done
3909 rm -f conftest*
3910 if test -n "$ac_declaration"; then
3911   echo '#ifdef __cplusplus' >>confdefs.h
3912   echo $ac_declaration      >>confdefs.h
3913   echo '#endif'             >>confdefs.h
3914 fi
3915
3916 else
3917   echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 fi
3921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928 ac_ext=cc
3929 ac_cpp='$CXXCPP $CPPFLAGS'
3930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3933 if test -n "$ac_tool_prefix"; then
3934   for ac_prog in $CCC g++
3935   do
3936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_prog_CXX+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   if test -n "$CXX"; then
3944   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951   for ac_exec_ext in '' $ac_executable_extensions; do
3952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958 done
3959
3960 fi
3961 fi
3962 CXX=$ac_cv_prog_CXX
3963 if test -n "$CXX"; then
3964   echo "$as_me:$LINENO: result: $CXX" >&5
3965 echo "${ECHO_T}$CXX" >&6
3966 else
3967   echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969 fi
3970
3971     test -n "$CXX" && break
3972   done
3973 fi
3974 if test -z "$CXX"; then
3975   ac_ct_CXX=$CXX
3976   for ac_prog in $CCC g++
3977 do
3978   # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test -n "$ac_ct_CXX"; then
3986   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_prog_ac_ct_CXX="$ac_prog"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002 fi
4003 fi
4004 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4005 if test -n "$ac_ct_CXX"; then
4006   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4007 echo "${ECHO_T}$ac_ct_CXX" >&6
4008 else
4009   echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4011 fi
4012
4013   test -n "$ac_ct_CXX" && break
4014 done
4015 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4016
4017   CXX=$ac_ct_CXX
4018 fi
4019
4020
4021 # Provide some information about the compiler.
4022 echo "$as_me:$LINENO:" \
4023      "checking for C++ compiler version" >&5
4024 ac_compiler=`set X $ac_compile; echo $2`
4025 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4026   (eval $ac_compiler --version </dev/null >&5) 2>&5
4027   ac_status=$?
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); }
4030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4031   (eval $ac_compiler -v </dev/null >&5) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); }
4035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4036   (eval $ac_compiler -V </dev/null >&5) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }
4040
4041 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4042 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4043 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052
4053 int
4054 main ()
4055 {
4056 #ifndef __GNUC__
4057        choke me
4058 #endif
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066   (eval $ac_compile) 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -z "$ac_cxx_werror_flag"
4074                          || test ! -s conftest.err'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; } &&
4080          { ac_try='test -s conftest.$ac_objext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   ac_compiler_gnu=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 ac_compiler_gnu=no
4092 fi
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4095
4096 fi
4097 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4098 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4099 GXX=`test $ac_compiler_gnu = yes && echo yes`
4100 ac_test_CXXFLAGS=${CXXFLAGS+set}
4101 ac_save_CXXFLAGS=$CXXFLAGS
4102 CXXFLAGS="-g"
4103 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4104 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4105 if test "${ac_cv_prog_cxx_g+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114
4115 int
4116 main ()
4117 {
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } &&
4132          { ac_try='test -z "$ac_cxx_werror_flag"
4133                          || test ! -s conftest.err'
4134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135   (eval $ac_try) 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }; } &&
4139          { ac_try='test -s conftest.$ac_objext'
4140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141   (eval $ac_try) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   ac_cv_prog_cxx_g=yes
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150 ac_cv_prog_cxx_g=no
4151 fi
4152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4155 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4156 if test "$ac_test_CXXFLAGS" = set; then
4157   CXXFLAGS=$ac_save_CXXFLAGS
4158 elif test $ac_cv_prog_cxx_g = yes; then
4159   if test "$GXX" = yes; then
4160     CXXFLAGS="-g -O2"
4161   else
4162     CXXFLAGS="-g"
4163   fi
4164 else
4165   if test "$GXX" = yes; then
4166     CXXFLAGS="-O2"
4167   else
4168     CXXFLAGS=
4169   fi
4170 fi
4171 for ac_declaration in \
4172    '' \
4173    'extern "C" void std::exit (int) throw (); using std::exit;' \
4174    'extern "C" void std::exit (int); using std::exit;' \
4175    'extern "C" void exit (int) throw ();' \
4176    'extern "C" void exit (int);' \
4177    'void exit (int);'
4178 do
4179   cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h.  */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h.  */
4185 $ac_declaration
4186 #include <stdlib.h>
4187 int
4188 main ()
4189 {
4190 exit (42);
4191   ;
4192   return 0;
4193 }
4194 _ACEOF
4195 rm -f conftest.$ac_objext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197   (eval $ac_compile) 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } &&
4204          { ac_try='test -z "$ac_cxx_werror_flag"
4205                          || test ! -s conftest.err'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; } &&
4211          { ac_try='test -s conftest.$ac_objext'
4212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213   (eval $ac_try) 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   :
4218 else
4219   echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 continue
4223 fi
4224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 $ac_declaration
4232 int
4233 main ()
4234 {
4235 exit (42);
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242   (eval $ac_compile) 2>conftest.er1
4243   ac_status=$?
4244   grep -v '^ *+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } &&
4249          { ac_try='test -z "$ac_cxx_werror_flag"
4250                          || test ! -s conftest.err'
4251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252   (eval $ac_try) 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); }; } &&
4256          { ac_try='test -s conftest.$ac_objext'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   break
4263 else
4264   echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 fi
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4269 done
4270 rm -f conftest*
4271 if test -n "$ac_declaration"; then
4272   echo '#ifdef __cplusplus' >>confdefs.h
4273   echo $ac_declaration      >>confdefs.h
4274   echo '#endif'             >>confdefs.h
4275 fi
4276
4277 ac_ext=c
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282
4283 echo "$as_me:$LINENO: checking " >&5
4284 echo $ECHO_N "checking ... $ECHO_C" >&6
4285 if test "${ac_cv_has_flex+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   for ac_prog in flex lex
4289 do
4290   # Extract the first word of "$ac_prog", so it can be a program name with args.
4291 set dummy $ac_prog; ac_word=$2
4292 echo "$as_me:$LINENO: checking for $ac_word" >&5
4293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294 if test "${ac_cv_prog_LEX+set}" = set; then
4295   echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297   if test -n "$LEX"; then
4298   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4299 else
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH
4302 do
4303   IFS=$as_save_IFS
4304   test -z "$as_dir" && as_dir=.
4305   for ac_exec_ext in '' $ac_executable_extensions; do
4306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307     ac_cv_prog_LEX="$ac_prog"
4308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309     break 2
4310   fi
4311 done
4312 done
4313
4314 fi
4315 fi
4316 LEX=$ac_cv_prog_LEX
4317 if test -n "$LEX"; then
4318   echo "$as_me:$LINENO: result: $LEX" >&5
4319 echo "${ECHO_T}$LEX" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325   test -n "$LEX" && break
4326 done
4327 test -n "$LEX" || LEX=":"
4328
4329 if test -z "$LEXLIB"
4330 then
4331   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4332 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4333 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4334   echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336   ac_check_lib_save_LIBS=$LIBS
4337 LIBS="-lfl  $LIBS"
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344
4345 /* Override any gcc2 internal prototype to avoid an error.  */
4346 #ifdef __cplusplus
4347 extern "C"
4348 #endif
4349 /* We use char because int might match the return type of a gcc2
4350    builtin and then its argument prototype would still apply.  */
4351 char yywrap ();
4352 int
4353 main ()
4354 {
4355 yywrap ();
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 rm -f conftest.$ac_objext conftest$ac_exeext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4362   (eval $ac_link) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } &&
4369          { ac_try='test -z "$ac_c_werror_flag"
4370                          || test ! -s conftest.err'
4371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372   (eval $ac_try) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; } &&
4376          { ac_try='test -s conftest$ac_exeext'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   ac_cv_lib_fl_yywrap=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_cv_lib_fl_yywrap=no
4388 fi
4389 rm -f conftest.err conftest.$ac_objext \
4390       conftest$ac_exeext conftest.$ac_ext
4391 LIBS=$ac_check_lib_save_LIBS
4392 fi
4393 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4394 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4395 if test $ac_cv_lib_fl_yywrap = yes; then
4396   LEXLIB="-lfl"
4397 else
4398   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4399 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4400 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   ac_check_lib_save_LIBS=$LIBS
4404 LIBS="-ll  $LIBS"
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411
4412 /* Override any gcc2 internal prototype to avoid an error.  */
4413 #ifdef __cplusplus
4414 extern "C"
4415 #endif
4416 /* We use char because int might match the return type of a gcc2
4417    builtin and then its argument prototype would still apply.  */
4418 char yywrap ();
4419 int
4420 main ()
4421 {
4422 yywrap ();
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext conftest$ac_exeext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429   (eval $ac_link) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag"
4437                          || test ! -s conftest.err'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; } &&
4443          { ac_try='test -s conftest$ac_exeext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   ac_cv_lib_l_yywrap=yes
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_cv_lib_l_yywrap=no
4455 fi
4456 rm -f conftest.err conftest.$ac_objext \
4457       conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4459 fi
4460 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4461 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4462 if test $ac_cv_lib_l_yywrap = yes; then
4463   LEXLIB="-ll"
4464 fi
4465
4466 fi
4467
4468 fi
4469
4470 if test "x$LEX" != "x:"; then
4471   echo "$as_me:$LINENO: checking lex output file root" >&5
4472 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4473 if test "${ac_cv_prog_lex_root+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   # The minimal lex program is just a single line: %%.  But some broken lexes
4477 # (Solaris, I think it was) want two %% lines, so accommodate them.
4478 cat >conftest.l <<_ACEOF
4479 %%
4480 %%
4481 _ACEOF
4482 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4483   (eval $LEX conftest.l) 2>&5
4484   ac_status=$?
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); }
4487 if test -f lex.yy.c; then
4488   ac_cv_prog_lex_root=lex.yy
4489 elif test -f lexyy.c; then
4490   ac_cv_prog_lex_root=lexyy
4491 else
4492   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4493 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4494    { (exit 1); exit 1; }; }
4495 fi
4496 fi
4497 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4498 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4499 rm -f conftest.l
4500 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4501
4502 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4503 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4504 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   # POSIX says lex can declare yytext either as a pointer or an array; the
4508 # default is implementation-dependent. Figure out which it is, since
4509 # not all implementations provide the %pointer and %array declarations.
4510 ac_cv_prog_lex_yytext_pointer=no
4511 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4512 ac_save_LIBS=$LIBS
4513 LIBS="$LIBS $LEXLIB"
4514 cat >conftest.$ac_ext <<_ACEOF
4515 `cat $LEX_OUTPUT_ROOT.c`
4516 _ACEOF
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519   (eval $ac_link) 2>conftest.er1
4520   ac_status=$?
4521   grep -v '^ *+' conftest.er1 >conftest.err
4522   rm -f conftest.er1
4523   cat conftest.err >&5
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); } &&
4526          { ac_try='test -z "$ac_c_werror_flag"
4527                          || test ! -s conftest.err'
4528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529   (eval $ac_try) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; } &&
4533          { ac_try='test -s conftest$ac_exeext'
4534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535   (eval $ac_try) 2>&5
4536   ac_status=$?
4537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); }; }; then
4539   ac_cv_prog_lex_yytext_pointer=yes
4540 else
4541   echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 fi
4545 rm -f conftest.err conftest.$ac_objext \
4546       conftest$ac_exeext conftest.$ac_ext
4547 LIBS=$ac_save_LIBS
4548 rm -f "${LEX_OUTPUT_ROOT}.c"
4549
4550 fi
4551 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4552 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4553 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4554
4555 cat >>confdefs.h <<\_ACEOF
4556 #define YYTEXT_POINTER 1
4557 _ACEOF
4558
4559 fi
4560
4561 fi
4562
4563 fi
4564 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4565 echo "${ECHO_T}$ac_cv_has_flex" >&6
4566 if test "$LEX" != "flex"; then
4567   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4568 echo "$as_me: error: flex not found but required" >&2;}
4569    { (exit 1); exit 1; }; }
4570 else
4571   FLEX=flex
4572
4573 fi
4574
4575 echo "$as_me:$LINENO: checking " >&5
4576 echo $ECHO_N "checking ... $ECHO_C" >&6
4577 if test "${llvm_cv_has_bison+set}" = set; then
4578   echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580   for ac_prog in 'bison -y' byacc
4581 do
4582   # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586 if test "${ac_cv_prog_YACC+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   if test -n "$YACC"; then
4590   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597   for ac_exec_ext in '' $ac_executable_extensions; do
4598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599     ac_cv_prog_YACC="$ac_prog"
4600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604 done
4605
4606 fi
4607 fi
4608 YACC=$ac_cv_prog_YACC
4609 if test -n "$YACC"; then
4610   echo "$as_me:$LINENO: result: $YACC" >&5
4611 echo "${ECHO_T}$YACC" >&6
4612 else
4613   echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4615 fi
4616
4617   test -n "$YACC" && break
4618 done
4619 test -n "$YACC" || YACC="yacc"
4620
4621 fi
4622 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4623 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4624 if test "$YACC" != "bison -y"; then
4625   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4626 echo "$as_me: error: bison not found but required" >&2;}
4627    { (exit 1); exit 1; }; }
4628 else
4629   BISON=bison
4630
4631 fi
4632
4633 echo "$as_me:$LINENO: checking for GNU make" >&5
4634 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4635 if test "${llvm_cv_gnu_make_command+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   llvm_cv_gnu_make_command=''
4639  for a in "$MAKE" make gmake gnumake ; do
4640   if test -z "$a" ; then continue ; fi ;
4641   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4642   then
4643    llvm_cv_gnu_make_command=$a ;
4644    break;
4645   fi
4646  done
4647 fi
4648 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4649 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4650  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4651    ifGNUmake='' ;
4652  else
4653    ifGNUmake='#' ;
4654    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4655 echo "${ECHO_T}\"Not found\"" >&6;
4656  fi
4657
4658
4659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4661 LN_S=$as_ln_s
4662 if test "$LN_S" = "ln -s"; then
4663   echo "$as_me:$LINENO: result: yes" >&5
4664 echo "${ECHO_T}yes" >&6
4665 else
4666   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4667 echo "${ECHO_T}no, using $LN_S" >&6
4668 fi
4669
4670 # Extract the first word of "cmp", so it can be a program name with args.
4671 set dummy cmp; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_path_CMP+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   case $CMP in
4678   [\\/]* | ?:[\\/]*)
4679   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4680   ;;
4681   *)
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695
4696   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4697   ;;
4698 esac
4699 fi
4700 CMP=$ac_cv_path_CMP
4701
4702 if test -n "$CMP"; then
4703   echo "$as_me:$LINENO: result: $CMP" >&5
4704 echo "${ECHO_T}$CMP" >&6
4705 else
4706   echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708 fi
4709
4710 # Extract the first word of "cp", so it can be a program name with args.
4711 set dummy cp; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_CP+set}" = set; then
4715   echo $ECHO_N "(cached) $ECHO_C" >&6
4716 else
4717   case $CP in
4718   [\\/]* | ?:[\\/]*)
4719   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4720   ;;
4721   *)
4722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725   IFS=$as_save_IFS
4726   test -z "$as_dir" && as_dir=.
4727   for ac_exec_ext in '' $ac_executable_extensions; do
4728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731     break 2
4732   fi
4733 done
4734 done
4735
4736   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4737   ;;
4738 esac
4739 fi
4740 CP=$ac_cv_path_CP
4741
4742 if test -n "$CP"; then
4743   echo "$as_me:$LINENO: result: $CP" >&5
4744 echo "${ECHO_T}$CP" >&6
4745 else
4746   echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6
4748 fi
4749
4750 # Extract the first word of "date", so it can be a program name with args.
4751 set dummy date; ac_word=$2
4752 echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754 if test "${ac_cv_path_DATE+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   case $DATE in
4758   [\\/]* | ?:[\\/]*)
4759   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4760   ;;
4761   *)
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   for ac_exec_ext in '' $ac_executable_extensions; do
4768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774 done
4775
4776   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4777   ;;
4778 esac
4779 fi
4780 DATE=$ac_cv_path_DATE
4781
4782 if test -n "$DATE"; then
4783   echo "$as_me:$LINENO: result: $DATE" >&5
4784 echo "${ECHO_T}$DATE" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790 # Extract the first word of "find", so it can be a program name with args.
4791 set dummy find; ac_word=$2
4792 echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_FIND+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   case $FIND in
4798   [\\/]* | ?:[\\/]*)
4799   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4800   ;;
4801   *)
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807   for ac_exec_ext in '' $ac_executable_extensions; do
4808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811     break 2
4812   fi
4813 done
4814 done
4815
4816   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4817   ;;
4818 esac
4819 fi
4820 FIND=$ac_cv_path_FIND
4821
4822 if test -n "$FIND"; then
4823   echo "$as_me:$LINENO: result: $FIND" >&5
4824 echo "${ECHO_T}$FIND" >&6
4825 else
4826   echo "$as_me:$LINENO: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4828 fi
4829
4830 # Extract the first word of "grep", so it can be a program name with args.
4831 set dummy grep; ac_word=$2
4832 echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_GREP+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   case $GREP in
4838   [\\/]* | ?:[\\/]*)
4839   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4840   ;;
4841   *)
4842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847   for ac_exec_ext in '' $ac_executable_extensions; do
4848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851     break 2
4852   fi
4853 done
4854 done
4855
4856   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4857   ;;
4858 esac
4859 fi
4860 GREP=$ac_cv_path_GREP
4861
4862 if test -n "$GREP"; then
4863   echo "$as_me:$LINENO: result: $GREP" >&5
4864 echo "${ECHO_T}$GREP" >&6
4865 else
4866   echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6
4868 fi
4869
4870 # Extract the first word of "mkdir", so it can be a program name with args.
4871 set dummy mkdir; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_path_MKDIR+set}" = set; then
4875   echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877   case $MKDIR in
4878   [\\/]* | ?:[\\/]*)
4879   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4880   ;;
4881   *)
4882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887   for ac_exec_ext in '' $ac_executable_extensions; do
4888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891     break 2
4892   fi
4893 done
4894 done
4895
4896   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4897   ;;
4898 esac
4899 fi
4900 MKDIR=$ac_cv_path_MKDIR
4901
4902 if test -n "$MKDIR"; then
4903   echo "$as_me:$LINENO: result: $MKDIR" >&5
4904 echo "${ECHO_T}$MKDIR" >&6
4905 else
4906   echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4908 fi
4909
4910 # Extract the first word of "mv", so it can be a program name with args.
4911 set dummy mv; ac_word=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_path_MV+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   case $MV in
4918   [\\/]* | ?:[\\/]*)
4919   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4920   ;;
4921   *)
4922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935
4936   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4937   ;;
4938 esac
4939 fi
4940 MV=$ac_cv_path_MV
4941
4942 if test -n "$MV"; then
4943   echo "$as_me:$LINENO: result: $MV" >&5
4944 echo "${ECHO_T}$MV" >&6
4945 else
4946   echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6
4948 fi
4949
4950 if test -n "$ac_tool_prefix"; then
4951   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_RANLIB+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   if test -n "$RANLIB"; then
4959   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966   for ac_exec_ext in '' $ac_executable_extensions; do
4967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973 done
4974
4975 fi
4976 fi
4977 RANLIB=$ac_cv_prog_RANLIB
4978 if test -n "$RANLIB"; then
4979   echo "$as_me:$LINENO: result: $RANLIB" >&5
4980 echo "${ECHO_T}$RANLIB" >&6
4981 else
4982   echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986 fi
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988   ac_ct_RANLIB=$RANLIB
4989   # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib; ac_word=$2
4991 echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4994   echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996   if test -n "$ac_ct_RANLIB"; then
4997   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4998 else
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004   for ac_exec_ext in '' $ac_executable_extensions; do
5005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006     ac_cv_prog_ac_ct_RANLIB="ranlib"
5007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011 done
5012
5013   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5014 fi
5015 fi
5016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5017 if test -n "$ac_ct_RANLIB"; then
5018   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5019 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5020 else
5021   echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5023 fi
5024
5025   RANLIB=$ac_ct_RANLIB
5026 else
5027   RANLIB="$ac_cv_prog_RANLIB"
5028 fi
5029
5030 # Extract the first word of "rm", so it can be a program name with args.
5031 set dummy rm; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_RM+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   case $RM in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055
5056   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5057   ;;
5058 esac
5059 fi
5060 RM=$ac_cv_path_RM
5061
5062 if test -n "$RM"; then
5063   echo "$as_me:$LINENO: result: $RM" >&5
5064 echo "${ECHO_T}$RM" >&6
5065 else
5066   echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5068 fi
5069
5070 # Extract the first word of "sed", so it can be a program name with args.
5071 set dummy sed; ac_word=$2
5072 echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074 if test "${ac_cv_path_SED+set}" = set; then
5075   echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077   case $SED in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087   for ac_exec_ext in '' $ac_executable_extensions; do
5088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094 done
5095
5096   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5097   ;;
5098 esac
5099 fi
5100 SED=$ac_cv_path_SED
5101
5102 if test -n "$SED"; then
5103   echo "$as_me:$LINENO: result: $SED" >&5
5104 echo "${ECHO_T}$SED" >&6
5105 else
5106   echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6
5108 fi
5109
5110 # Extract the first word of "tar", so it can be a program name with args.
5111 set dummy tar; ac_word=$2
5112 echo "$as_me:$LINENO: checking for $ac_word" >&5
5113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5114 if test "${ac_cv_path_TAR+set}" = set; then
5115   echo $ECHO_N "(cached) $ECHO_C" >&6
5116 else
5117   case $TAR in
5118   [\\/]* | ?:[\\/]*)
5119   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5120   ;;
5121   *)
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for ac_exec_ext in '' $ac_executable_extensions; do
5128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134 done
5135
5136   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5137   ;;
5138 esac
5139 fi
5140 TAR=$ac_cv_path_TAR
5141
5142 if test -n "$TAR"; then
5143   echo "$as_me:$LINENO: result: $TAR" >&5
5144 echo "${ECHO_T}$TAR" >&6
5145 else
5146   echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 # Extract the first word of "Graphviz", so it can be a program name with args.
5152 set dummy Graphviz; ac_word=$2
5153 echo "$as_me:$LINENO: checking for $ac_word" >&5
5154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158   case $GRAPHVIZ in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168   for ac_exec_ext in '' $ac_executable_extensions; do
5169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175 done
5176
5177   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5178   ;;
5179 esac
5180 fi
5181 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5182
5183 if test -n "$GRAPHVIZ"; then
5184   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5185 echo "${ECHO_T}$GRAPHVIZ" >&6
5186 else
5187   echo "$as_me:$LINENO: result: no" >&5
5188 echo "${ECHO_T}no" >&6
5189 fi
5190
5191 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5192
5193 cat >>confdefs.h <<\_ACEOF
5194 #define HAVE_GRAPHVIZ 1
5195 _ACEOF
5196
5197     if test "$llvm_cv_os_type" == "MingW" ; then
5198     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5199   fi
5200
5201 cat >>confdefs.h <<_ACEOF
5202 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5203 _ACEOF
5204
5205 fi
5206 # Extract the first word of "dot", so it can be a program name with args.
5207 set dummy dot; ac_word=$2
5208 echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210 if test "${ac_cv_path_DOT+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   case $DOT in
5214   [\\/]* | ?:[\\/]*)
5215   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5216   ;;
5217   *)
5218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for ac_exec_ext in '' $ac_executable_extensions; do
5224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230 done
5231
5232   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5233   ;;
5234 esac
5235 fi
5236 DOT=$ac_cv_path_DOT
5237
5238 if test -n "$DOT"; then
5239   echo "$as_me:$LINENO: result: $DOT" >&5
5240 echo "${ECHO_T}$DOT" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246 if test "$DOT" != "echo dot" ; then
5247
5248 cat >>confdefs.h <<\_ACEOF
5249 #define HAVE_DOT 1
5250 _ACEOF
5251
5252     if test "$llvm_cv_os_type" == "MingW" ; then
5253     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5254   fi
5255
5256 cat >>confdefs.h <<_ACEOF
5257 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5258 _ACEOF
5259
5260 fi
5261 for ac_prog in gv gsview32
5262 do
5263   # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_path_GV+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   case $GV in
5271   [\\/]* | ?:[\\/]*)
5272   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5273   ;;
5274   *)
5275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278   IFS=$as_save_IFS
5279   test -z "$as_dir" && as_dir=.
5280   for ac_exec_ext in '' $ac_executable_extensions; do
5281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284     break 2
5285   fi
5286 done
5287 done
5288
5289   ;;
5290 esac
5291 fi
5292 GV=$ac_cv_path_GV
5293
5294 if test -n "$GV"; then
5295   echo "$as_me:$LINENO: result: $GV" >&5
5296 echo "${ECHO_T}$GV" >&6
5297 else
5298   echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5300 fi
5301
5302   test -n "$GV" && break
5303 done
5304 test -n "$GV" || GV="echo gv"
5305
5306 if test "$GV" != "echo gv" ; then
5307
5308 cat >>confdefs.h <<\_ACEOF
5309 #define HAVE_GV 1
5310 _ACEOF
5311
5312     if test "$llvm_cv_os_type" == "MingW" ; then
5313     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5314   fi
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define LLVM_PATH_GV "$GV${EXEEXT}"
5318 _ACEOF
5319
5320 fi
5321 # Extract the first word of "dotty", so it can be a program name with args.
5322 set dummy dotty; ac_word=$2
5323 echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325 if test "${ac_cv_path_DOTTY+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   case $DOTTY in
5329   [\\/]* | ?:[\\/]*)
5330   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5331   ;;
5332   *)
5333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5335 do
5336   IFS=$as_save_IFS
5337   test -z "$as_dir" && as_dir=.
5338   for ac_exec_ext in '' $ac_executable_extensions; do
5339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342     break 2
5343   fi
5344 done
5345 done
5346
5347   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5348   ;;
5349 esac
5350 fi
5351 DOTTY=$ac_cv_path_DOTTY
5352
5353 if test -n "$DOTTY"; then
5354   echo "$as_me:$LINENO: result: $DOTTY" >&5
5355 echo "${ECHO_T}$DOTTY" >&6
5356 else
5357   echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5359 fi
5360
5361 if test "$DOTTY" != "echo dotty" ; then
5362
5363 cat >>confdefs.h <<\_ACEOF
5364 #define HAVE_DOTTY 1
5365 _ACEOF
5366
5367     if test "$llvm_cv_os_type" == "MingW" ; then
5368     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5369   fi
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5373 _ACEOF
5374
5375 fi
5376
5377
5378 # Extract the first word of "perl", so it can be a program name with args.
5379 set dummy perl; ac_word=$2
5380 echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382 if test "${ac_cv_path_PERL+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   case $PERL in
5386   [\\/]* | ?:[\\/]*)
5387   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5388   ;;
5389   *)
5390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393   IFS=$as_save_IFS
5394   test -z "$as_dir" && as_dir=.
5395   for ac_exec_ext in '' $ac_executable_extensions; do
5396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399     break 2
5400   fi
5401 done
5402 done
5403
5404   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5405   ;;
5406 esac
5407 fi
5408 PERL=$ac_cv_path_PERL
5409
5410 if test -n "$PERL"; then
5411   echo "$as_me:$LINENO: result: $PERL" >&5
5412 echo "${ECHO_T}$PERL" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no" >&5
5415 echo "${ECHO_T}no" >&6
5416 fi
5417
5418 if test "$PERL" != "none"; then
5419   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5420 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5421   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5422     echo "$as_me:$LINENO: result: yes" >&5
5423 echo "${ECHO_T}yes" >&6
5424   else
5425     PERL=none
5426     echo "$as_me:$LINENO: result: not found" >&5
5427 echo "${ECHO_T}not found" >&6
5428   fi
5429 fi
5430
5431
5432 if test x"$PERL" = xnone; then
5433    HAVE_PERL=0
5434
5435 else
5436    HAVE_PERL=1
5437
5438 fi
5439
5440 # Find a good install program.  We prefer a C program (faster),
5441 # so one script is as good as another.  But avoid the broken or
5442 # incompatible versions:
5443 # SysV /etc/install, /usr/sbin/install
5444 # SunOS /usr/etc/install
5445 # IRIX /sbin/install
5446 # AIX /bin/install
5447 # AmigaOS /C/install, which installs bootblocks on floppy discs
5448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5451 # OS/2's system install, which has a completely different semantic
5452 # ./install, which can be erroneously created by make from ./install.sh.
5453 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5454 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5455 if test -z "$INSTALL"; then
5456 if test "${ac_cv_path_install+set}" = set; then
5457   echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462   IFS=$as_save_IFS
5463   test -z "$as_dir" && as_dir=.
5464   # Account for people who put trailing slashes in PATH elements.
5465 case $as_dir/ in
5466   ./ | .// | /cC/* | \
5467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5468   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5469   /usr/ucb/* ) ;;
5470   *)
5471     # OSF1 and SCO ODT 3.0 have their own names for install.
5472     # Don't use installbsd from OSF since it installs stuff as root
5473     # by default.
5474     for ac_prog in ginstall scoinst install; do
5475       for ac_exec_ext in '' $ac_executable_extensions; do
5476         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5477           if test $ac_prog = install &&
5478             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5479             # AIX install.  It has an incompatible calling convention.
5480             :
5481           elif test $ac_prog = install &&
5482             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5483             # program-specific install script used by HP pwplus--don't use.
5484             :
5485           else
5486             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5487             break 3
5488           fi
5489         fi
5490       done
5491     done
5492     ;;
5493 esac
5494 done
5495
5496
5497 fi
5498   if test "${ac_cv_path_install+set}" = set; then
5499     INSTALL=$ac_cv_path_install
5500   else
5501     # As a last resort, use the slow shell script.  We don't cache a
5502     # path for INSTALL within a source directory, because that will
5503     # break other packages using the cache if that directory is
5504     # removed, or if the path is relative.
5505     INSTALL=$ac_install_sh
5506   fi
5507 fi
5508 echo "$as_me:$LINENO: result: $INSTALL" >&5
5509 echo "${ECHO_T}$INSTALL" >&6
5510
5511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5512 # It thinks the first close brace ends the variable substitution.
5513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5514
5515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5516
5517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5518
5519
5520 # Extract the first word of "bzip2", so it can be a program name with args.
5521 set dummy bzip2; ac_word=$2
5522 echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524 if test "${ac_cv_path_BZIP2+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   case $BZIP2 in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537   for ac_exec_ext in '' $ac_executable_extensions; do
5538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544 done
5545
5546   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5547   ;;
5548 esac
5549 fi
5550 BZIP2=$ac_cv_path_BZIP2
5551
5552 if test -n "$BZIP2"; then
5553   echo "$as_me:$LINENO: result: $BZIP2" >&5
5554 echo "${ECHO_T}$BZIP2" >&6
5555 else
5556   echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5558 fi
5559
5560 # Extract the first word of "doxygen", so it can be a program name with args.
5561 set dummy doxygen; ac_word=$2
5562 echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567   case $DOXYGEN in
5568   [\\/]* | ?:[\\/]*)
5569   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5570   ;;
5571   *)
5572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577   for ac_exec_ext in '' $ac_executable_extensions; do
5578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584 done
5585
5586   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5587   ;;
5588 esac
5589 fi
5590 DOXYGEN=$ac_cv_path_DOXYGEN
5591
5592 if test -n "$DOXYGEN"; then
5593   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5594 echo "${ECHO_T}$DOXYGEN" >&6
5595 else
5596   echo "$as_me:$LINENO: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5598 fi
5599
5600 # Extract the first word of "etags", so it can be a program name with args.
5601 set dummy etags; ac_word=$2
5602 echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 if test "${ac_cv_path_ETAGS+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   case $ETAGS in
5608   [\\/]* | ?:[\\/]*)
5609   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5610   ;;
5611   *)
5612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625
5626   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5627   ;;
5628 esac
5629 fi
5630 ETAGS=$ac_cv_path_ETAGS
5631
5632 if test -n "$ETAGS"; then
5633   echo "$as_me:$LINENO: result: $ETAGS" >&5
5634 echo "${ECHO_T}$ETAGS" >&6
5635 else
5636   echo "$as_me:$LINENO: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5638 fi
5639
5640 # Extract the first word of "groff", so it can be a program name with args.
5641 set dummy groff; ac_word=$2
5642 echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644 if test "${ac_cv_path_GROFF+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   case $GROFF in
5648   [\\/]* | ?:[\\/]*)
5649   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5650   ;;
5651   *)
5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657   for ac_exec_ext in '' $ac_executable_extensions; do
5658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664 done
5665
5666   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5667   ;;
5668 esac
5669 fi
5670 GROFF=$ac_cv_path_GROFF
5671
5672 if test -n "$GROFF"; then
5673   echo "$as_me:$LINENO: result: $GROFF" >&5
5674 echo "${ECHO_T}$GROFF" >&6
5675 else
5676   echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5678 fi
5679
5680 # Extract the first word of "gzip", so it can be a program name with args.
5681 set dummy gzip; ac_word=$2
5682 echo "$as_me:$LINENO: checking for $ac_word" >&5
5683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5684 if test "${ac_cv_path_GZIP+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   case $GZIP in
5688   [\\/]* | ?:[\\/]*)
5689   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5690   ;;
5691   *)
5692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697   for ac_exec_ext in '' $ac_executable_extensions; do
5698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704 done
5705
5706   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5707   ;;
5708 esac
5709 fi
5710 GZIP=$ac_cv_path_GZIP
5711
5712 if test -n "$GZIP"; then
5713   echo "$as_me:$LINENO: result: $GZIP" >&5
5714 echo "${ECHO_T}$GZIP" >&6
5715 else
5716   echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5718 fi
5719
5720 # Extract the first word of "pod2html", so it can be a program name with args.
5721 set dummy pod2html; ac_word=$2
5722 echo "$as_me:$LINENO: checking for $ac_word" >&5
5723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724 if test "${ac_cv_path_POD2HTML+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   case $POD2HTML in
5728   [\\/]* | ?:[\\/]*)
5729   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5730   ;;
5731   *)
5732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735   IFS=$as_save_IFS
5736   test -z "$as_dir" && as_dir=.
5737   for ac_exec_ext in '' $ac_executable_extensions; do
5738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741     break 2
5742   fi
5743 done
5744 done
5745
5746   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5747   ;;
5748 esac
5749 fi
5750 POD2HTML=$ac_cv_path_POD2HTML
5751
5752 if test -n "$POD2HTML"; then
5753   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5754 echo "${ECHO_T}$POD2HTML" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760 # Extract the first word of "pod2man", so it can be a program name with args.
5761 set dummy pod2man; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_path_POD2MAN+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   case $POD2MAN in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785
5786   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5787   ;;
5788 esac
5789 fi
5790 POD2MAN=$ac_cv_path_POD2MAN
5791
5792 if test -n "$POD2MAN"; then
5793   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5794 echo "${ECHO_T}$POD2MAN" >&6
5795 else
5796   echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5798 fi
5799
5800 # Extract the first word of "runtest", so it can be a program name with args.
5801 set dummy runtest; ac_word=$2
5802 echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804 if test "${ac_cv_path_RUNTEST+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   case $RUNTEST in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825
5826   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5827   ;;
5828 esac
5829 fi
5830 RUNTEST=$ac_cv_path_RUNTEST
5831
5832 if test -n "$RUNTEST"; then
5833   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5834 echo "${ECHO_T}$RUNTEST" >&6
5835 else
5836   echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838 fi
5839
5840
5841 no_itcl=true
5842 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5843 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5844
5845 # Check whether --with-tclinclude or --without-tclinclude was given.
5846 if test "${with_tclinclude+set}" = set; then
5847   withval="$with_tclinclude"
5848   with_tclinclude=${withval}
5849 else
5850   with_tclinclude=''
5851 fi;
5852 if test "${ac_cv_path_tclsh+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855
5856 if test x"${with_tclinclude}" != x ; then
5857   if test -f ${with_tclinclude}/tclsh ; then
5858     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5859   elif test -f ${with_tclinclude}/src/tclsh ; then
5860     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5861   else
5862     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5863 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5864    { (exit 1); exit 1; }; }
5865   fi
5866 fi
5867
5868 if test x"${ac_cv_path_tclsh}" = x ; then
5869   echo "$as_me:$LINENO: result: none" >&5
5870 echo "${ECHO_T}none" >&6
5871   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
5872 do
5873   # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_path_TCLSH+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   case $TCLSH in
5881   [\\/]* | ?:[\\/]*)
5882   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5883   ;;
5884   *)
5885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898
5899   ;;
5900 esac
5901 fi
5902 TCLSH=$ac_cv_path_TCLSH
5903
5904 if test -n "$TCLSH"; then
5905   echo "$as_me:$LINENO: result: $TCLSH" >&5
5906 echo "${ECHO_T}$TCLSH" >&6
5907 else
5908   echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910 fi
5911
5912   test -n "$TCLSH" && break
5913 done
5914
5915   if test x"${TCLSH}" = x ; then
5916     ac_cv_path_tclsh='';
5917   else
5918     ac_cv_path_tclsh="${TCLSH}";
5919   fi
5920 else
5921   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5922 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5923   TCLSH="${ac_cv_path_tclsh}"
5924
5925 fi
5926
5927 fi
5928
5929 # Extract the first word of "zip", so it can be a program name with args.
5930 set dummy zip; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_path_ZIP+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   case $ZIP in
5937   [\\/]* | ?:[\\/]*)
5938   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5939   ;;
5940   *)
5941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 for as_dir in $PATH
5943 do
5944   IFS=$as_save_IFS
5945   test -z "$as_dir" && as_dir=.
5946   for ac_exec_ext in '' $ac_executable_extensions; do
5947   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950     break 2
5951   fi
5952 done
5953 done
5954
5955   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5956   ;;
5957 esac
5958 fi
5959 ZIP=$ac_cv_path_ZIP
5960
5961 if test -n "$ZIP"; then
5962   echo "$as_me:$LINENO: result: $ZIP" >&5
5963 echo "${ECHO_T}$ZIP" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969
5970 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5971 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5972 if test "${llvm_cv_link_use_r+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975    ac_ext=c
5976 ac_cpp='$CPP $CPPFLAGS'
5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981   oldcflags="$CFLAGS"
5982   CFLAGS="$CFLAGS -Wl,-R."
5983   cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989
5990 int
5991 main ()
5992 {
5993 int main() { return 0; }
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000   (eval $ac_link) 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } &&
6007          { ac_try='test -z "$ac_c_werror_flag"
6008                          || test ! -s conftest.err'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; } &&
6014          { ac_try='test -s conftest$ac_exeext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020   llvm_cv_link_use_r=yes
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 llvm_cv_link_use_r=no
6026 fi
6027 rm -f conftest.err conftest.$ac_objext \
6028       conftest$ac_exeext conftest.$ac_ext
6029   CFLAGS="$oldcflags"
6030   ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036
6037 fi
6038 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6039 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6040 if test "$llvm_cv_link_use_r" = yes ; then
6041
6042 cat >>confdefs.h <<\_ACEOF
6043 #define HAVE_LINK_R 1
6044 _ACEOF
6045
6046   fi
6047
6048
6049
6050
6051 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6053 if test "${ac_cv_c_const+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062
6063 int
6064 main ()
6065 {
6066 /* FIXME: Include the comments suggested by Paul. */
6067 #ifndef __cplusplus
6068   /* Ultrix mips cc rejects this.  */
6069   typedef int charset[2];
6070   const charset x;
6071   /* SunOS 4.1.1 cc rejects this.  */
6072   char const *const *ccp;
6073   char **p;
6074   /* NEC SVR4.0.2 mips cc rejects this.  */
6075   struct point {int x, y;};
6076   static struct point const zero = {0,0};
6077   /* AIX XL C 1.02.0.0 rejects this.
6078      It does not let you subtract one const X* pointer from another in
6079      an arm of an if-expression whose if-part is not a constant
6080      expression */
6081   const char *g = "string";
6082   ccp = &g + (g ? g-g : 0);
6083   /* HPUX 7.0 cc rejects these. */
6084   ++ccp;
6085   p = (char**) ccp;
6086   ccp = (char const *const *) p;
6087   { /* SCO 3.2v4 cc rejects this.  */
6088     char *t;
6089     char const *s = 0 ? (char *) 0 : (char const *) 0;
6090
6091     *t++ = 0;
6092   }
6093   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6094     int x[] = {25, 17};
6095     const int *foo = &x[0];
6096     ++foo;
6097   }
6098   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6099     typedef const int *iptr;
6100     iptr p = 0;
6101     ++p;
6102   }
6103   { /* AIX XL C 1.02.0.0 rejects this saying
6104        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6105     struct s { int j; const int *ap[3]; };
6106     struct s *b; b->j = 5;
6107   }
6108   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6109     const int foo = 10;
6110   }
6111 #endif
6112
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119   (eval $ac_compile) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -z "$ac_c_werror_flag"
6127                          || test ! -s conftest.err'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_c_const=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_c_const=no
6145 fi
6146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6147 fi
6148 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6149 echo "${ECHO_T}$ac_cv_c_const" >&6
6150 if test $ac_cv_c_const = no; then
6151
6152 cat >>confdefs.h <<\_ACEOF
6153 #define const
6154 _ACEOF
6155
6156 fi
6157
6158
6159 echo "$as_me:$LINENO: checking for egrep" >&5
6160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6161 if test "${ac_cv_prog_egrep+set}" = set; then
6162   echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6165     then ac_cv_prog_egrep='grep -E'
6166     else ac_cv_prog_egrep='egrep'
6167     fi
6168 fi
6169 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6171  EGREP=$ac_cv_prog_egrep
6172
6173
6174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6176 if test "${ac_cv_header_stdc+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 #include <stdlib.h>
6186 #include <stdarg.h>
6187 #include <string.h>
6188 #include <float.h>
6189
6190 int
6191 main ()
6192 {
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200   (eval $ac_compile) 2>conftest.er1
6201   ac_status=$?
6202   grep -v '^ *+' conftest.er1 >conftest.err
6203   rm -f conftest.er1
6204   cat conftest.err >&5
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); } &&
6207          { ac_try='test -z "$ac_c_werror_flag"
6208                          || test ! -s conftest.err'
6209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210   (eval $ac_try) 2>&5
6211   ac_status=$?
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); }; } &&
6214          { ac_try='test -s conftest.$ac_objext'
6215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216   (eval $ac_try) 2>&5
6217   ac_status=$?
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); }; }; then
6220   ac_cv_header_stdc=yes
6221 else
6222   echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_header_stdc=no
6226 fi
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228
6229 if test $ac_cv_header_stdc = yes; then
6230   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6238
6239 _ACEOF
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6252   cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h.  */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h.  */
6258 #include <stdlib.h>
6259
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262   $EGREP "free" >/dev/null 2>&1; then
6263   :
6264 else
6265   ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6268
6269 fi
6270
6271 if test $ac_cv_header_stdc = yes; then
6272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6273   if test "$cross_compiling" = yes; then
6274   :
6275 else
6276   cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 #include <ctype.h>
6283 #if ((' ' & 0x0FF) == 0x020)
6284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6286 #else
6287 # define ISLOWER(c) \
6288                    (('a' <= (c) && (c) <= 'i') \
6289                      || ('j' <= (c) && (c) <= 'r') \
6290                      || ('s' <= (c) && (c) <= 'z'))
6291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6292 #endif
6293
6294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6295 int
6296 main ()
6297 {
6298   int i;
6299   for (i = 0; i < 256; i++)
6300     if (XOR (islower (i), ISLOWER (i))
6301         || toupper (i) != TOUPPER (i))
6302       exit(2);
6303   exit (0);
6304 }
6305 _ACEOF
6306 rm -f conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308   (eval $ac_link) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317   :
6318 else
6319   echo "$as_me: program exited with status $ac_status" >&5
6320 echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ( exit $ac_status )
6324 ac_cv_header_stdc=no
6325 fi
6326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6327 fi
6328 fi
6329 fi
6330 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6331 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6332 if test $ac_cv_header_stdc = yes; then
6333
6334 cat >>confdefs.h <<\_ACEOF
6335 #define STDC_HEADERS 1
6336 _ACEOF
6337
6338 fi
6339
6340
6341
6342
6343
6344
6345 ac_header_dirent=no
6346 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6347   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6348 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6349 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359 #include <sys/types.h>
6360 #include <$ac_hdr>
6361
6362 int
6363 main ()
6364 {
6365 if ((DIR *) 0)
6366 return 0;
6367   ;
6368   return 0;
6369 }
6370 _ACEOF
6371 rm -f conftest.$ac_objext
6372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373   (eval $ac_compile) 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } &&
6380          { ac_try='test -z "$ac_c_werror_flag"
6381                          || test ! -s conftest.err'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; } &&
6387          { ac_try='test -s conftest.$ac_objext'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; }; then
6393   eval "$as_ac_Header=yes"
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 eval "$as_ac_Header=no"
6399 fi
6400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401 fi
6402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6405   cat >>confdefs.h <<_ACEOF
6406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6407 _ACEOF
6408
6409 ac_header_dirent=$ac_hdr; break
6410 fi
6411
6412 done
6413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6414 if test $ac_header_dirent = dirent.h; then
6415   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6417 if test "${ac_cv_search_opendir+set}" = set; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   ac_func_search_save_LIBS=$LIBS
6421 ac_cv_search_opendir=no
6422 cat >conftest.$ac_ext <<_ACEOF
6423 /* confdefs.h.  */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h.  */
6428
6429 /* Override any gcc2 internal prototype to avoid an error.  */
6430 #ifdef __cplusplus
6431 extern "C"
6432 #endif
6433 /* We use char because int might match the return type of a gcc2
6434    builtin and then its argument prototype would still apply.  */
6435 char opendir ();
6436 int
6437 main ()
6438 {
6439 opendir ();
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446   (eval $ac_link) 2>conftest.er1
6447   ac_status=$?
6448   grep -v '^ *+' conftest.er1 >conftest.err
6449   rm -f conftest.er1
6450   cat conftest.err >&5
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); } &&
6453          { ac_try='test -z "$ac_c_werror_flag"
6454                          || test ! -s conftest.err'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; } &&
6460          { ac_try='test -s conftest$ac_exeext'
6461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462   (eval $ac_try) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; }; then
6466   ac_cv_search_opendir="none required"
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 fi
6472 rm -f conftest.err conftest.$ac_objext \
6473       conftest$ac_exeext conftest.$ac_ext
6474 if test "$ac_cv_search_opendir" = no; then
6475   for ac_lib in dir; do
6476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6477     cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483
6484 /* Override any gcc2 internal prototype to avoid an error.  */
6485 #ifdef __cplusplus
6486 extern "C"
6487 #endif
6488 /* We use char because int might match the return type of a gcc2
6489    builtin and then its argument prototype would still apply.  */
6490 char opendir ();
6491 int
6492 main ()
6493 {
6494 opendir ();
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6501   (eval $ac_link) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -z "$ac_c_werror_flag"
6509                          || test ! -s conftest.err'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; } &&
6515          { ac_try='test -s conftest$ac_exeext'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; }; then
6521   ac_cv_search_opendir="-l$ac_lib"
6522 break
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 fi
6528 rm -f conftest.err conftest.$ac_objext \
6529       conftest$ac_exeext conftest.$ac_ext
6530   done
6531 fi
6532 LIBS=$ac_func_search_save_LIBS
6533 fi
6534 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6535 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6536 if test "$ac_cv_search_opendir" != no; then
6537   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6538
6539 fi
6540
6541 else
6542   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6543 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6544 if test "${ac_cv_search_opendir+set}" = set; then
6545   echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547   ac_func_search_save_LIBS=$LIBS
6548 ac_cv_search_opendir=no
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 #endif
6560 /* We use char because int might match the return type of a gcc2
6561    builtin and then its argument prototype would still apply.  */
6562 char opendir ();
6563 int
6564 main ()
6565 {
6566 opendir ();
6567   ;
6568   return 0;
6569 }
6570 _ACEOF
6571 rm -f conftest.$ac_objext conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573   (eval $ac_link) 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -z "$ac_c_werror_flag"
6581                          || test ! -s conftest.err'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; } &&
6587          { ac_try='test -s conftest$ac_exeext'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; }; then
6593   ac_cv_search_opendir="none required"
6594 else
6595   echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 fi
6599 rm -f conftest.err conftest.$ac_objext \
6600       conftest$ac_exeext conftest.$ac_ext
6601 if test "$ac_cv_search_opendir" = no; then
6602   for ac_lib in x; do
6603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6604     cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 /* We use char because int might match the return type of a gcc2
6616    builtin and then its argument prototype would still apply.  */
6617 char opendir ();
6618 int
6619 main ()
6620 {
6621 opendir ();
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628   (eval $ac_link) 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } &&
6635          { ac_try='test -z "$ac_c_werror_flag"
6636                          || test ! -s conftest.err'
6637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }; } &&
6642          { ac_try='test -s conftest$ac_exeext'
6643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644   (eval $ac_try) 2>&5
6645   ac_status=$?
6646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647   (exit $ac_status); }; }; then
6648   ac_cv_search_opendir="-l$ac_lib"
6649 break
6650 else
6651   echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 fi
6655 rm -f conftest.err conftest.$ac_objext \
6656       conftest$ac_exeext conftest.$ac_ext
6657   done
6658 fi
6659 LIBS=$ac_func_search_save_LIBS
6660 fi
6661 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6662 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6663 if test "$ac_cv_search_opendir" != no; then
6664   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6665
6666 fi
6667
6668 fi
6669
6670 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6681                   inttypes.h stdint.h unistd.h
6682 do
6683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 $ac_includes_default
6696
6697 #include <$ac_header>
6698 _ACEOF
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701   (eval $ac_compile) 2>conftest.er1
6702   ac_status=$?
6703   grep -v '^ *+' conftest.er1 >conftest.err
6704   rm -f conftest.er1
6705   cat conftest.err >&5
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); } &&
6708          { ac_try='test -z "$ac_c_werror_flag"
6709                          || test ! -s conftest.err'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; } &&
6715          { ac_try='test -s conftest.$ac_objext'
6716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717   (eval $ac_try) 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; }; then
6721   eval "$as_ac_Header=yes"
6722 else
6723   echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726 eval "$as_ac_Header=no"
6727 fi
6728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6729 fi
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733   cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 _ACEOF
6736
6737 fi
6738
6739 done
6740
6741
6742
6743 for ac_header in dlfcn.h
6744 do
6745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6747   echo "$as_me:$LINENO: checking for $ac_header" >&5
6748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 fi
6752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6754 else
6755   # Is the header compilable?
6756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6758 cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h.  */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h.  */
6764 $ac_includes_default
6765 #include <$ac_header>
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769   (eval $ac_compile) 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } &&
6776          { ac_try='test -z "$ac_c_werror_flag"
6777                          || test ! -s conftest.err'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; } &&
6783          { ac_try='test -s conftest.$ac_objext'
6784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785   (eval $ac_try) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); }; }; then
6789   ac_header_compiler=yes
6790 else
6791   echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_header_compiler=no
6795 fi
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6797 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6798 echo "${ECHO_T}$ac_header_compiler" >&6
6799
6800 # Is the header present?
6801 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h.  */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h.  */
6809 #include <$ac_header>
6810 _ACEOF
6811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } >/dev/null; then
6819   if test -s conftest.err; then
6820     ac_cpp_err=$ac_c_preproc_warn_flag
6821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6822   else
6823     ac_cpp_err=
6824   fi
6825 else
6826   ac_cpp_err=yes
6827 fi
6828 if test -z "$ac_cpp_err"; then
6829   ac_header_preproc=yes
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834   ac_header_preproc=no
6835 fi
6836 rm -f conftest.err conftest.$ac_ext
6837 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6838 echo "${ECHO_T}$ac_header_preproc" >&6
6839
6840 # So?  What about this header?
6841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6842   yes:no: )
6843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6847     ac_header_preproc=yes
6848     ;;
6849   no:yes:* )
6850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6862     (
6863       cat <<\_ASBOX
6864 ## ----------------------------------- ##
6865 ## Report this to llvmbugs@cs.uiuc.edu ##
6866 ## ----------------------------------- ##
6867 _ASBOX
6868     ) |
6869       sed "s/^/$as_me: WARNING:     /" >&2
6870     ;;
6871 esac
6872 echo "$as_me:$LINENO: checking for $ac_header" >&5
6873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   eval "$as_ac_Header=\$ac_header_preproc"
6878 fi
6879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6881
6882 fi
6883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6884   cat >>confdefs.h <<_ACEOF
6885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886 _ACEOF
6887
6888 fi
6889
6890 done
6891
6892 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6893 if test "${enable_ltdl_install+set}" = set; then
6894   enableval="$enable_ltdl_install"
6895
6896 fi;
6897
6898
6899
6900 if test x"${enable_ltdl_install-no}" != xno; then
6901   INSTALL_LTDL_TRUE=
6902   INSTALL_LTDL_FALSE='#'
6903 else
6904   INSTALL_LTDL_TRUE='#'
6905   INSTALL_LTDL_FALSE=
6906 fi
6907
6908
6909
6910 if test x"${enable_ltdl_convenience-no}" != xno; then
6911   CONVENIENCE_LTDL_TRUE=
6912   CONVENIENCE_LTDL_FALSE='#'
6913 else
6914   CONVENIENCE_LTDL_TRUE='#'
6915   CONVENIENCE_LTDL_FALSE=
6916 fi
6917
6918
6919 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6921 library_names_spec=
6922 libname_spec='lib$name'
6923 soname_spec=
6924 shrext_cmds=".so"
6925 postinstall_cmds=
6926 postuninstall_cmds=
6927 finish_cmds=
6928 finish_eval=
6929 shlibpath_var=
6930 shlibpath_overrides_runpath=unknown
6931 version_type=none
6932 dynamic_linker="$host_os ld.so"
6933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6934 if test "$GCC" = yes; then
6935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6937     # if the path contains ";" then we assume it to be the separator
6938     # otherwise default to the standard path separator (i.e. ":") - it is
6939     # assumed that no part of a normal pathname contains ";" but that should
6940     # okay in the real world where ";" in dirpaths is itself problematic.
6941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6942   else
6943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6944   fi
6945 else
6946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6947 fi
6948 need_lib_prefix=unknown
6949 hardcode_into_libs=no
6950
6951 # when you set need_version to no, make sure it does not cause -set_version
6952 # flags to be left without arguments
6953 need_version=unknown
6954
6955 case $host_os in
6956 aix3*)
6957   version_type=linux
6958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6959   shlibpath_var=LIBPATH
6960
6961   # AIX 3 has no versioning support, so we append a major version to the name.
6962   soname_spec='${libname}${release}${shared_ext}$major'
6963   ;;
6964
6965 aix4* | aix5*)
6966   version_type=linux
6967   need_lib_prefix=no
6968   need_version=no
6969   hardcode_into_libs=yes
6970   if test "$host_cpu" = ia64; then
6971     # AIX 5 supports IA64
6972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6973     shlibpath_var=LD_LIBRARY_PATH
6974   else
6975     # With GCC up to 2.95.x, collect2 would create an import file
6976     # for dependence libraries.  The import file would start with
6977     # the line `#! .'.  This would cause the generated library to
6978     # depend on `.', always an invalid library.  This was fixed in
6979     # development snapshots of GCC prior to 3.0.
6980     case $host_os in
6981       aix4 | aix4.[01] | aix4.[01].*)
6982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6983            echo ' yes '
6984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6985         :
6986       else
6987         can_build_shared=no
6988       fi
6989       ;;
6990     esac
6991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6992     # soname into executable. Probably we can add versioning support to
6993     # collect2, so additional links can be useful in future.
6994     if test "$aix_use_runtimelinking" = yes; then
6995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6996       # instead of lib<name>.a to let people know that these are not
6997       # typical AIX shared libraries.
6998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6999     else
7000       # We preserve .a as extension for shared libraries through AIX4.2
7001       # and later when we are not doing run time linking.
7002       library_names_spec='${libname}${release}.a $libname.a'
7003       soname_spec='${libname}${release}${shared_ext}$major'
7004     fi
7005     shlibpath_var=LIBPATH
7006   fi
7007   ;;
7008
7009 amigaos*)
7010   library_names_spec='$libname.ixlibrary $libname.a'
7011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7012   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'
7013   ;;
7014
7015 beos*)
7016   library_names_spec='${libname}${shared_ext}'
7017   dynamic_linker="$host_os ld.so"
7018   shlibpath_var=LIBRARY_PATH
7019   ;;
7020
7021 bsdi[45]*)
7022   version_type=linux
7023   need_version=no
7024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7025   soname_spec='${libname}${release}${shared_ext}$major'
7026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7027   shlibpath_var=LD_LIBRARY_PATH
7028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7030   # the default ld.so.conf also contains /usr/contrib/lib and
7031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7032   # libtool to hard-code these into programs
7033   ;;
7034
7035 cygwin* | mingw* | pw32*)
7036   version_type=windows
7037   shrext_cmds=".dll"
7038   need_version=no
7039   need_lib_prefix=no
7040
7041   case $GCC,$host_os in
7042   yes,cygwin* | yes,mingw* | yes,pw32*)
7043     library_names_spec='$libname.dll.a'
7044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7045     postinstall_cmds='base_file=`basename \${file}`~
7046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7047       dldir=$destdir/`dirname \$dlpath`~
7048       test -d \$dldir || mkdir -p \$dldir~
7049       $install_prog $dir/$dlname \$dldir/$dlname'
7050     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7051       dlpath=$dir/\$dldll~
7052        $rm \$dlpath'
7053     shlibpath_overrides_runpath=yes
7054
7055     case $host_os in
7056     cygwin*)
7057       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7058       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7059       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7060       ;;
7061     mingw*)
7062       # MinGW DLLs use traditional 'lib' prefix
7063       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7064       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7065       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7066         # It is most probably a Windows format PATH printed by
7067         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7068         # path with ; separators, and with drive letters. We can handle the
7069         # drive letters (cygwin fileutils understands them), so leave them,
7070         # especially as we might pass files found there to a mingw objdump,
7071         # which wouldn't understand a cygwinified path. Ahh.
7072         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7073       else
7074         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7075       fi
7076       ;;
7077     pw32*)
7078       # pw32 DLLs use 'pw' prefix rather than 'lib'
7079       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7080       ;;
7081     esac
7082     ;;
7083
7084   *)
7085     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7086     ;;
7087   esac
7088   dynamic_linker='Win32 ld.exe'
7089   # FIXME: first we should search . and the directory the executable is in
7090   shlibpath_var=PATH
7091   ;;
7092
7093 darwin* | rhapsody*)
7094   dynamic_linker="$host_os dyld"
7095   version_type=darwin
7096   need_lib_prefix=no
7097   need_version=no
7098   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7099   soname_spec='${libname}${release}${major}$shared_ext'
7100   shlibpath_overrides_runpath=yes
7101   shlibpath_var=DYLD_LIBRARY_PATH
7102   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7103   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7104   if test "$GCC" = yes; then
7105     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"`
7106   else
7107     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7108   fi
7109   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7110   ;;
7111
7112 dgux*)
7113   version_type=linux
7114   need_lib_prefix=no
7115   need_version=no
7116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7117   soname_spec='${libname}${release}${shared_ext}$major'
7118   shlibpath_var=LD_LIBRARY_PATH
7119   ;;
7120
7121 freebsd1*)
7122   dynamic_linker=no
7123   ;;
7124
7125 kfreebsd*-gnu)
7126   version_type=linux
7127   need_lib_prefix=no
7128   need_version=no
7129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7130   soname_spec='${libname}${release}${shared_ext}$major'
7131   shlibpath_var=LD_LIBRARY_PATH
7132   shlibpath_overrides_runpath=no
7133   hardcode_into_libs=yes
7134   dynamic_linker='GNU ld.so'
7135   ;;
7136
7137 freebsd*)
7138   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7139   version_type=freebsd-$objformat
7140   case $version_type in
7141     freebsd-elf*)
7142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7143       need_version=no
7144       need_lib_prefix=no
7145       ;;
7146     freebsd-*)
7147       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7148       need_version=yes
7149       ;;
7150   esac
7151   shlibpath_var=LD_LIBRARY_PATH
7152   case $host_os in
7153   freebsd2*)
7154     shlibpath_overrides_runpath=yes
7155     ;;
7156   freebsd3.01* | freebsdelf3.01*)
7157     shlibpath_overrides_runpath=yes
7158     hardcode_into_libs=yes
7159     ;;
7160   *) # from 3.2 on
7161     shlibpath_overrides_runpath=no
7162     hardcode_into_libs=yes
7163     ;;
7164   esac
7165   ;;
7166
7167 gnu*)
7168   version_type=linux
7169   need_lib_prefix=no
7170   need_version=no
7171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7172   soname_spec='${libname}${release}${shared_ext}$major'
7173   shlibpath_var=LD_LIBRARY_PATH
7174   hardcode_into_libs=yes
7175   ;;
7176
7177 hpux9* | hpux10* | hpux11*)
7178   # Give a soname corresponding to the major version so that dld.sl refuses to
7179   # link against other versions.
7180   version_type=sunos
7181   need_lib_prefix=no
7182   need_version=no
7183   case "$host_cpu" in
7184   ia64*)
7185     shrext_cmds='.so'
7186     hardcode_into_libs=yes
7187     dynamic_linker="$host_os dld.so"
7188     shlibpath_var=LD_LIBRARY_PATH
7189     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7190     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7191     soname_spec='${libname}${release}${shared_ext}$major'
7192     if test "X$HPUX_IA64_MODE" = X32; then
7193       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7194     else
7195       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7196     fi
7197     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7198     ;;
7199    hppa*64*)
7200      shrext_cmds='.sl'
7201      hardcode_into_libs=yes
7202      dynamic_linker="$host_os dld.sl"
7203      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7204      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7205      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7206      soname_spec='${libname}${release}${shared_ext}$major'
7207      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7208      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7209      ;;
7210    *)
7211     shrext_cmds='.sl'
7212     dynamic_linker="$host_os dld.sl"
7213     shlibpath_var=SHLIB_PATH
7214     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7216     soname_spec='${libname}${release}${shared_ext}$major'
7217     ;;
7218   esac
7219   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7220   postinstall_cmds='chmod 555 $lib'
7221   ;;
7222
7223 irix5* | irix6* | nonstopux*)
7224   case $host_os in
7225     nonstopux*) version_type=nonstopux ;;
7226     *)
7227         if test "$lt_cv_prog_gnu_ld" = yes; then
7228                 version_type=linux
7229         else
7230                 version_type=irix
7231         fi ;;
7232   esac
7233   need_lib_prefix=no
7234   need_version=no
7235   soname_spec='${libname}${release}${shared_ext}$major'
7236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7237   case $host_os in
7238   irix5* | nonstopux*)
7239     libsuff= shlibsuff=
7240     ;;
7241   *)
7242     case $LD in # libtool.m4 will add one of these switches to LD
7243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7244       libsuff= shlibsuff= libmagic=32-bit;;
7245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7246       libsuff=32 shlibsuff=N32 libmagic=N32;;
7247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7249     *) libsuff= shlibsuff= libmagic=never-match;;
7250     esac
7251     ;;
7252   esac
7253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7254   shlibpath_overrides_runpath=no
7255   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7256   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7257   hardcode_into_libs=yes
7258   ;;
7259
7260 # No shared lib support for Linux oldld, aout, or coff.
7261 linux*oldld* | linux*aout* | linux*coff*)
7262   dynamic_linker=no
7263   ;;
7264
7265 # This must be Linux ELF.
7266 linux*)
7267   version_type=linux
7268   need_lib_prefix=no
7269   need_version=no
7270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7271   soname_spec='${libname}${release}${shared_ext}$major'
7272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7273   shlibpath_var=LD_LIBRARY_PATH
7274   shlibpath_overrides_runpath=no
7275   # This implies no fast_install, which is unacceptable.
7276   # Some rework will be needed to allow for fast_install
7277   # before this can be enabled.
7278   hardcode_into_libs=yes
7279
7280   # Append ld.so.conf contents to the search path
7281   if test -f /etc/ld.so.conf; then
7282     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7283     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7284   fi
7285
7286   # We used to test for /lib/ld.so.1 and disable shared libraries on
7287   # powerpc, because MkLinux only supported shared libraries with the
7288   # GNU dynamic linker.  Since this was broken with cross compilers,
7289   # most powerpc-linux boxes support dynamic linking these days and
7290   # people can always --disable-shared, the test was removed, and we
7291   # assume the GNU/Linux dynamic linker is in use.
7292   dynamic_linker='GNU/Linux ld.so'
7293   ;;
7294
7295 knetbsd*-gnu)
7296   version_type=linux
7297   need_lib_prefix=no
7298   need_version=no
7299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7300   soname_spec='${libname}${release}${shared_ext}$major'
7301   shlibpath_var=LD_LIBRARY_PATH
7302   shlibpath_overrides_runpath=no
7303   hardcode_into_libs=yes
7304   dynamic_linker='GNU ld.so'
7305   ;;
7306
7307 netbsd*)
7308   version_type=sunos
7309   need_lib_prefix=no
7310   need_version=no
7311   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7313     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7314     dynamic_linker='NetBSD (a.out) ld.so'
7315   else
7316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7317     soname_spec='${libname}${release}${shared_ext}$major'
7318     dynamic_linker='NetBSD ld.elf_so'
7319   fi
7320   shlibpath_var=LD_LIBRARY_PATH
7321   shlibpath_overrides_runpath=yes
7322   hardcode_into_libs=yes
7323   ;;
7324
7325 newsos6)
7326   version_type=linux
7327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7328   shlibpath_var=LD_LIBRARY_PATH
7329   shlibpath_overrides_runpath=yes
7330   ;;
7331
7332 nto-qnx*)
7333   version_type=linux
7334   need_lib_prefix=no
7335   need_version=no
7336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337   soname_spec='${libname}${release}${shared_ext}$major'
7338   shlibpath_var=LD_LIBRARY_PATH
7339   shlibpath_overrides_runpath=yes
7340   ;;
7341
7342 openbsd*)
7343   version_type=sunos
7344   need_lib_prefix=no
7345   need_version=no
7346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7348   shlibpath_var=LD_LIBRARY_PATH
7349   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7350     case $host_os in
7351       openbsd2.[89] | openbsd2.[89].*)
7352         shlibpath_overrides_runpath=no
7353         ;;
7354       *)
7355         shlibpath_overrides_runpath=yes
7356         ;;
7357       esac
7358   else
7359     shlibpath_overrides_runpath=yes
7360   fi
7361   ;;
7362
7363 os2*)
7364   libname_spec='$name'
7365   shrext_cmds=".dll"
7366   need_lib_prefix=no
7367   library_names_spec='$libname${shared_ext} $libname.a'
7368   dynamic_linker='OS/2 ld.exe'
7369   shlibpath_var=LIBPATH
7370   ;;
7371
7372 osf3* | osf4* | osf5*)
7373   version_type=osf
7374   need_lib_prefix=no
7375   need_version=no
7376   soname_spec='${libname}${release}${shared_ext}$major'
7377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7378   shlibpath_var=LD_LIBRARY_PATH
7379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7381   ;;
7382
7383 sco3.2v5*)
7384   version_type=osf
7385   soname_spec='${libname}${release}${shared_ext}$major'
7386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7387   shlibpath_var=LD_LIBRARY_PATH
7388   ;;
7389
7390 solaris*)
7391   version_type=linux
7392   need_lib_prefix=no
7393   need_version=no
7394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7395   soname_spec='${libname}${release}${shared_ext}$major'
7396   shlibpath_var=LD_LIBRARY_PATH
7397   shlibpath_overrides_runpath=yes
7398   hardcode_into_libs=yes
7399   # ldd complains unless libraries are executable
7400   postinstall_cmds='chmod +x $lib'
7401   ;;
7402
7403 sunos4*)
7404   version_type=sunos
7405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7407   shlibpath_var=LD_LIBRARY_PATH
7408   shlibpath_overrides_runpath=yes
7409   if test "$with_gnu_ld" = yes; then
7410     need_lib_prefix=no
7411   fi
7412   need_version=yes
7413   ;;
7414
7415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7416   version_type=linux
7417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7418   soname_spec='${libname}${release}${shared_ext}$major'
7419   shlibpath_var=LD_LIBRARY_PATH
7420   case $host_vendor in
7421     sni)
7422       shlibpath_overrides_runpath=no
7423       need_lib_prefix=no
7424       export_dynamic_flag_spec='${wl}-Blargedynsym'
7425       runpath_var=LD_RUN_PATH
7426       ;;
7427     siemens)
7428       need_lib_prefix=no
7429       ;;
7430     motorola)
7431       need_lib_prefix=no
7432       need_version=no
7433       shlibpath_overrides_runpath=no
7434       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7435       ;;
7436   esac
7437   ;;
7438
7439 sysv4*MP*)
7440   if test -d /usr/nec ;then
7441     version_type=linux
7442     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7443     soname_spec='$libname${shared_ext}.$major'
7444     shlibpath_var=LD_LIBRARY_PATH
7445   fi
7446   ;;
7447
7448 uts4*)
7449   version_type=linux
7450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451   soname_spec='${libname}${release}${shared_ext}$major'
7452   shlibpath_var=LD_LIBRARY_PATH
7453   ;;
7454
7455 *)
7456   dynamic_linker=no
7457   ;;
7458 esac
7459 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7460 echo "${ECHO_T}$dynamic_linker" >&6
7461 test "$dynamic_linker" = no && can_build_shared=no
7462
7463
7464 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7465 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7466 if test "${libltdl_cv_shlibext+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469
7470 module=yes
7471 eval libltdl_cv_shlibext=$shrext_cmds
7472
7473 fi
7474 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7475 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7476 if test -n "$libltdl_cv_shlibext"; then
7477
7478 cat >>confdefs.h <<_ACEOF
7479 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7480 _ACEOF
7481
7482 fi
7483
7484
7485 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7486 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7487 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   libltdl_cv_shlibpath_var="$shlibpath_var"
7491 fi
7492 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7493 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7494 if test -n "$libltdl_cv_shlibpath_var"; then
7495
7496 cat >>confdefs.h <<_ACEOF
7497 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7498 _ACEOF
7499
7500 fi
7501
7502
7503 echo "$as_me:$LINENO: checking for the default library search path" >&5
7504 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7505 if test "${libltdl_cv_sys_search_path+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7509 fi
7510 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7511 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7512 if test -n "$libltdl_cv_sys_search_path"; then
7513   sys_search_path=
7514   for dir in $libltdl_cv_sys_search_path; do
7515     if test -z "$sys_search_path"; then
7516       sys_search_path="$dir"
7517     else
7518       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7519     fi
7520   done
7521
7522 cat >>confdefs.h <<_ACEOF
7523 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7524 _ACEOF
7525
7526 fi
7527
7528 echo "$as_me:$LINENO: checking for objdir" >&5
7529 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7530 if test "${libltdl_cv_objdir+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   libltdl_cv_objdir="$objdir"
7534   if test -n "$objdir"; then
7535     :
7536   else
7537     rm -f .libs 2>/dev/null
7538     mkdir .libs 2>/dev/null
7539     if test -d .libs; then
7540       libltdl_cv_objdir=.libs
7541     else
7542       # MS-DOS does not allow filenames that begin with a dot.
7543       libltdl_cv_objdir=_libs
7544     fi
7545   rmdir .libs 2>/dev/null
7546   fi
7547
7548 fi
7549 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7550 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7551
7552 cat >>confdefs.h <<_ACEOF
7553 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7554 _ACEOF
7555
7556
7557 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7558 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7559 if test "${lt_cv_path_NM+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   if test -n "$NM"; then
7563   # Let the user override the test.
7564   lt_cv_path_NM="$NM"
7565 else
7566   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7567   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7568     IFS="$lt_save_ifs"
7569     test -z "$ac_dir" && ac_dir=.
7570     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7571     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7572       # Check to see if the nm accepts a BSD-compat flag.
7573       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7574       #   nm: unknown option "B" ignored
7575       # Tru64's nm complains that /dev/null is an invalid object file
7576       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7577       */dev/null* | *'Invalid file or object type'*)
7578         lt_cv_path_NM="$tmp_nm -B"
7579         break
7580         ;;
7581       *)
7582         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7583         */dev/null*)
7584           lt_cv_path_NM="$tmp_nm -p"
7585           break
7586           ;;
7587         *)
7588           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7589           continue # so that we can try to find one that supports BSD flags
7590           ;;
7591         esac
7592       esac
7593     fi
7594   done
7595   IFS="$lt_save_ifs"
7596   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7597 fi
7598 fi
7599 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7600 echo "${ECHO_T}$lt_cv_path_NM" >&6
7601 NM="$lt_cv_path_NM"
7602
7603
7604
7605
7606
7607 # Check for command to grab the raw symbol name followed by C symbol from nm.
7608 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7609 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7610 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7611   echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613
7614 # These are sane defaults that work on at least a few old systems.
7615 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7616
7617 # Character class describing NM global symbol codes.
7618 symcode='[BCDEGRST]'
7619
7620 # Regexp to match symbols that can be accessed directly from C.
7621 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7622
7623 # Transform the above into a raw symbol and a C symbol.
7624 symxfrm='\1 \2\3 \3'
7625
7626 # Transform an extracted symbol line into a proper C declaration
7627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7628
7629 # Transform an extracted symbol line into symbol name and symbol address
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
7632 # Define system-specific variables.
7633 case $host_os in
7634 aix*)
7635   symcode='[BCDT]'
7636   ;;
7637 cygwin* | mingw* | pw32*)
7638   symcode='[ABCDGISTW]'
7639   ;;
7640 hpux*) # Its linker distinguishes data from code symbols
7641   if test "$host_cpu" = ia64; then
7642     symcode='[ABCDEGRST]'
7643   fi
7644   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7645   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'"
7646   ;;
7647 linux*)
7648   if test "$host_cpu" = ia64; then
7649     symcode='[ABCDGIRSTW]'
7650     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7651     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'"
7652   fi
7653   ;;
7654 irix* | nonstopux*)
7655   symcode='[BCDEGRST]'
7656   ;;
7657 osf*)
7658   symcode='[BCDEGQRST]'
7659   ;;
7660 solaris* | sysv5*)
7661   symcode='[BDRT]'
7662   ;;
7663 sysv4)
7664   symcode='[DFNSTU]'
7665   ;;
7666 esac
7667
7668 # Handle CRLF in mingw tool chain
7669 opt_cr=
7670 case $build_os in
7671 mingw*)
7672   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7673   ;;
7674 esac
7675
7676 # If we're using GNU nm, then use its standard symbol codes.
7677 case `$NM -V 2>&1` in
7678 *GNU* | *'with BFD'*)
7679   symcode='[ABCDGIRSTW]' ;;
7680 esac
7681
7682 # Try without a prefix undercore, then with it.
7683 for ac_symprfx in "" "_"; do
7684
7685   # Write the raw and C identifiers.
7686   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7687
7688   # Check to see that the pipe works correctly.
7689   pipe_works=no
7690
7691   rm -f conftest*
7692   cat > conftest.$ac_ext <<EOF
7693 #ifdef __cplusplus
7694 extern "C" {
7695 #endif
7696 char nm_test_var;
7697 void nm_test_func(){}
7698 #ifdef __cplusplus
7699 }
7700 #endif
7701 int main(){nm_test_var='a';nm_test_func();return(0);}
7702 EOF
7703
7704   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705   (eval $ac_compile) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; then
7709     # Now try to grab the symbols.
7710     nlist=conftest.nm
7711     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7712   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7713   ac_status=$?
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } && test -s "$nlist"; then
7716       # Try sorting and uniquifying the output.
7717       if sort "$nlist" | uniq > "$nlist"T; then
7718         mv -f "$nlist"T "$nlist"
7719       else
7720         rm -f "$nlist"T
7721       fi
7722
7723       # Make sure that we snagged all the symbols we need.
7724       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7725         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7726           cat <<EOF > conftest.$ac_ext
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730
7731 EOF
7732           # Now generate the symbol file.
7733           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7734
7735           cat <<EOF >> conftest.$ac_ext
7736 #if defined (__STDC__) && __STDC__
7737 # define lt_ptr_t void *
7738 #else
7739 # define lt_ptr_t char *
7740 # define const
7741 #endif
7742
7743 /* The mapping between symbol names and symbols. */
7744 const struct {
7745   const char *name;
7746   lt_ptr_t address;
7747 }
7748 lt_preloaded_symbols[] =
7749 {
7750 EOF
7751           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7752           cat <<\EOF >> conftest.$ac_ext
7753   {0, (lt_ptr_t) 0}
7754 };
7755
7756 #ifdef __cplusplus
7757 }
7758 #endif
7759 EOF
7760           # Now try linking the two files.
7761           mv conftest.$ac_objext conftstm.$ac_objext
7762           lt_save_LIBS="$LIBS"
7763           lt_save_CFLAGS="$CFLAGS"
7764           LIBS="conftstm.$ac_objext"
7765           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7766           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767   (eval $ac_link) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7771             pipe_works=yes
7772           fi
7773           LIBS="$lt_save_LIBS"
7774           CFLAGS="$lt_save_CFLAGS"
7775         else
7776           echo "cannot find nm_test_func in $nlist" >&5
7777         fi
7778       else
7779         echo "cannot find nm_test_var in $nlist" >&5
7780       fi
7781     else
7782       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7783     fi
7784   else
7785     echo "$progname: failed program was:" >&5
7786     cat conftest.$ac_ext >&5
7787   fi
7788   rm -f conftest* conftst*
7789
7790   # Do not use the global_symbol_pipe unless it works.
7791   if test "$pipe_works" = yes; then
7792     break
7793   else
7794     lt_cv_sys_global_symbol_pipe=
7795   fi
7796 done
7797
7798 fi
7799
7800 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7801   lt_cv_sys_global_symbol_to_cdecl=
7802 fi
7803 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7804   echo "$as_me:$LINENO: result: failed" >&5
7805 echo "${ECHO_T}failed" >&6
7806 else
7807   echo "$as_me:$LINENO: result: ok" >&5
7808 echo "${ECHO_T}ok" >&6
7809 fi
7810
7811
7812 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7813 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7814 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7818     libltdl_cv_preloaded_symbols=yes
7819   else
7820     libltdl_cv_preloaded_symbols=no
7821   fi
7822
7823 fi
7824 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7825 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7826 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7827
7828 cat >>confdefs.h <<\_ACEOF
7829 #define HAVE_PRELOADED_SYMBOLS 1
7830 _ACEOF
7831
7832 fi
7833
7834 LIBADD_DL=
7835
7836 ac_ext=c
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7841
7842
7843 echo "$as_me:$LINENO: checking for shl_load" >&5
7844 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7845 if test "${ac_cv_func_shl_load+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h.  */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h.  */
7854 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7856 #define shl_load innocuous_shl_load
7857
7858 /* System header to define __stub macros and hopefully few prototypes,
7859     which can conflict with char shl_load (); below.
7860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861     <limits.h> exists even on freestanding compilers.  */
7862
7863 #ifdef __STDC__
7864 # include <limits.h>
7865 #else
7866 # include <assert.h>
7867 #endif
7868
7869 #undef shl_load
7870
7871 /* Override any gcc2 internal prototype to avoid an error.  */
7872 #ifdef __cplusplus
7873 extern "C"
7874 {
7875 #endif
7876 /* We use char because int might match the return type of a gcc2
7877    builtin and then its argument prototype would still apply.  */
7878 char shl_load ();
7879 /* The GNU C library defines this for functions which it implements
7880     to always fail with ENOSYS.  Some functions are actually named
7881     something starting with __ and the normal name is an alias.  */
7882 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7883 choke me
7884 #else
7885 char (*f) () = shl_load;
7886 #endif
7887 #ifdef __cplusplus
7888 }
7889 #endif
7890
7891 int
7892 main ()
7893 {
7894 return f != shl_load;
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901   (eval $ac_link) 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -z "$ac_c_werror_flag"
7909                          || test ! -s conftest.err'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   ac_cv_func_shl_load=yes
7922 else
7923   echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 ac_cv_func_shl_load=no
7927 fi
7928 rm -f conftest.err conftest.$ac_objext \
7929       conftest$ac_exeext conftest.$ac_ext
7930 fi
7931 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7933 if test $ac_cv_func_shl_load = yes; then
7934
7935 cat >>confdefs.h <<\_ACEOF
7936 #define HAVE_SHL_LOAD 1
7937 _ACEOF
7938
7939 else
7940   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7941 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   ac_check_lib_save_LIBS=$LIBS
7946 LIBS="-ldld  $LIBS"
7947 cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953
7954 /* Override any gcc2 internal prototype to avoid an error.  */
7955 #ifdef __cplusplus
7956 extern "C"
7957 #endif
7958 /* We use char because int might match the return type of a gcc2
7959    builtin and then its argument prototype would still apply.  */
7960 char shl_load ();
7961 int
7962 main ()
7963 {
7964 shl_load ();
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971   (eval $ac_link) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   ac_cv_lib_dld_shl_load=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 ac_cv_lib_dld_shl_load=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext \
7999       conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8001 fi
8002 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8003 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8004 if test $ac_cv_lib_dld_shl_load = yes; then
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_SHL_LOAD 1
8008 _ACEOF
8009
8010         LIBADD_DL="$LIBADD_DL -ldld"
8011 else
8012   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8013 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8014 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   ac_check_lib_save_LIBS=$LIBS
8018 LIBS="-ldl  $LIBS"
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025
8026 /* Override any gcc2 internal prototype to avoid an error.  */
8027 #ifdef __cplusplus
8028 extern "C"
8029 #endif
8030 /* We use char because int might match the return type of a gcc2
8031    builtin and then its argument prototype would still apply.  */
8032 char dlopen ();
8033 int
8034 main ()
8035 {
8036 dlopen ();
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043   (eval $ac_link) 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } &&
8050          { ac_try='test -z "$ac_c_werror_flag"
8051                          || test ! -s conftest.err'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; } &&
8057          { ac_try='test -s conftest$ac_exeext'
8058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059   (eval $ac_try) 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   ac_cv_lib_dl_dlopen=yes
8064 else
8065   echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ac_cv_lib_dl_dlopen=no
8069 fi
8070 rm -f conftest.err conftest.$ac_objext \
8071       conftest$ac_exeext conftest.$ac_ext
8072 LIBS=$ac_check_lib_save_LIBS
8073 fi
8074 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8075 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8076 if test $ac_cv_lib_dl_dlopen = yes; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_LIBDL 1
8080 _ACEOF
8081
8082                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8083 else
8084   cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 #if HAVE_DLFCN_H
8091 #  include <dlfcn.h>
8092 #endif
8093
8094 int
8095 main ()
8096 {
8097 dlopen(0, 0);
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_LIBDL 1
8127 _ACEOF
8128  libltdl_cv_func_dlopen="yes"
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-lsvld  $LIBS"
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h.  */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h.  */
8146
8147 /* Override any gcc2 internal prototype to avoid an error.  */
8148 #ifdef __cplusplus
8149 extern "C"
8150 #endif
8151 /* We use char because int might match the return type of a gcc2
8152    builtin and then its argument prototype would still apply.  */
8153 char dlopen ();
8154 int
8155 main ()
8156 {
8157 dlopen ();
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag"
8172                          || test ! -s conftest.err'
8173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174   (eval $ac_try) 2>&5
8175   ac_status=$?
8176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177   (exit $ac_status); }; } &&
8178          { ac_try='test -s conftest$ac_exeext'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   ac_cv_lib_svld_dlopen=yes
8185 else
8186   echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_cv_lib_svld_dlopen=no
8190 fi
8191 rm -f conftest.err conftest.$ac_objext \
8192       conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8194 fi
8195 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8196 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8197 if test $ac_cv_lib_svld_dlopen = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define HAVE_LIBDL 1
8201 _ACEOF
8202
8203                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8204 else
8205   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8206 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8207 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   ac_check_lib_save_LIBS=$LIBS
8211 LIBS="-ldld  $LIBS"
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 /* Override any gcc2 internal prototype to avoid an error.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 /* We use char because int might match the return type of a gcc2
8224    builtin and then its argument prototype would still apply.  */
8225 char dld_link ();
8226 int
8227 main ()
8228 {
8229 dld_link ();
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext conftest$ac_exeext
8235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8236   (eval $ac_link) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } &&
8243          { ac_try='test -z "$ac_c_werror_flag"
8244                          || test ! -s conftest.err'
8245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246   (eval $ac_try) 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; } &&
8250          { ac_try='test -s conftest$ac_exeext'
8251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252   (eval $ac_try) 2>&5
8253   ac_status=$?
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); }; }; then
8256   ac_cv_lib_dld_dld_link=yes
8257 else
8258   echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_lib_dld_dld_link=no
8262 fi
8263 rm -f conftest.err conftest.$ac_objext \
8264       conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8268 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8269 if test $ac_cv_lib_dld_dld_link = yes; then
8270
8271 cat >>confdefs.h <<\_ACEOF
8272 #define HAVE_DLD 1
8273 _ACEOF
8274
8275                 LIBADD_DL="$LIBADD_DL -ldld"
8276 else
8277   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8278 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8279 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8280   echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282   cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h.  */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h.  */
8288 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8290 #define _dyld_func_lookup innocuous__dyld_func_lookup
8291
8292 /* System header to define __stub macros and hopefully few prototypes,
8293     which can conflict with char _dyld_func_lookup (); below.
8294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8295     <limits.h> exists even on freestanding compilers.  */
8296
8297 #ifdef __STDC__
8298 # include <limits.h>
8299 #else
8300 # include <assert.h>
8301 #endif
8302
8303 #undef _dyld_func_lookup
8304
8305 /* Override any gcc2 internal prototype to avoid an error.  */
8306 #ifdef __cplusplus
8307 extern "C"
8308 {
8309 #endif
8310 /* We use char because int might match the return type of a gcc2
8311    builtin and then its argument prototype would still apply.  */
8312 char _dyld_func_lookup ();
8313 /* The GNU C library defines this for functions which it implements
8314     to always fail with ENOSYS.  Some functions are actually named
8315     something starting with __ and the normal name is an alias.  */
8316 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8317 choke me
8318 #else
8319 char (*f) () = _dyld_func_lookup;
8320 #endif
8321 #ifdef __cplusplus
8322 }
8323 #endif
8324
8325 int
8326 main ()
8327 {
8328 return f != _dyld_func_lookup;
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8335   (eval $ac_link) 2>conftest.er1
8336   ac_status=$?
8337   grep -v '^ *+' conftest.er1 >conftest.err
8338   rm -f conftest.er1
8339   cat conftest.err >&5
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } &&
8342          { ac_try='test -z "$ac_c_werror_flag"
8343                          || test ! -s conftest.err'
8344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345   (eval $ac_try) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; } &&
8349          { ac_try='test -s conftest$ac_exeext'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; }; then
8355   ac_cv_func__dyld_func_lookup=yes
8356 else
8357   echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8359
8360 ac_cv_func__dyld_func_lookup=no
8361 fi
8362 rm -f conftest.err conftest.$ac_objext \
8363       conftest$ac_exeext conftest.$ac_ext
8364 fi
8365 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8366 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8367 if test $ac_cv_func__dyld_func_lookup = yes; then
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_DYLD 1
8371 _ACEOF
8372
8373 fi
8374
8375
8376 fi
8377
8378
8379 fi
8380
8381
8382 fi
8383 rm -f conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext conftest.$ac_ext
8385
8386 fi
8387
8388
8389 fi
8390
8391
8392 fi
8393
8394
8395 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8396 then
8397   lt_save_LIBS="$LIBS"
8398   LIBS="$LIBS $LIBADD_DL"
8399
8400 for ac_func in dlerror
8401 do
8402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8403 echo "$as_me:$LINENO: checking for $ac_func" >&5
8404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8405 if eval "test \"\${$as_ac_var+set}\" = set"; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   cat >conftest.$ac_ext <<_ACEOF
8409 /* confdefs.h.  */
8410 _ACEOF
8411 cat confdefs.h >>conftest.$ac_ext
8412 cat >>conftest.$ac_ext <<_ACEOF
8413 /* end confdefs.h.  */
8414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8416 #define $ac_func innocuous_$ac_func
8417
8418 /* System header to define __stub macros and hopefully few prototypes,
8419     which can conflict with char $ac_func (); below.
8420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8421     <limits.h> exists even on freestanding compilers.  */
8422
8423 #ifdef __STDC__
8424 # include <limits.h>
8425 #else
8426 # include <assert.h>
8427 #endif
8428
8429 #undef $ac_func
8430
8431 /* Override any gcc2 internal prototype to avoid an error.  */
8432 #ifdef __cplusplus
8433 extern "C"
8434 {
8435 #endif
8436 /* We use char because int might match the return type of a gcc2
8437    builtin and then its argument prototype would still apply.  */
8438 char $ac_func ();
8439 /* The GNU C library defines this for functions which it implements
8440     to always fail with ENOSYS.  Some functions are actually named
8441     something starting with __ and the normal name is an alias.  */
8442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8443 choke me
8444 #else
8445 char (*f) () = $ac_func;
8446 #endif
8447 #ifdef __cplusplus
8448 }
8449 #endif
8450
8451 int
8452 main ()
8453 {
8454 return f != $ac_func;
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag"
8469                          || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest$ac_exeext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   eval "$as_ac_var=yes"
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 eval "$as_ac_var=no"
8487 fi
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 fi
8491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8493 if test `eval echo '${'$as_ac_var'}'` = yes; then
8494   cat >>confdefs.h <<_ACEOF
8495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8496 _ACEOF
8497
8498 fi
8499 done
8500
8501   LIBS="$lt_save_LIBS"
8502 fi
8503 ac_ext=c
8504 ac_cpp='$CPP $CPPFLAGS'
8505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8508
8509
8510
8511 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8512 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8513 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   ac_cv_sys_symbol_underscore=no
8517   cat > conftest.$ac_ext <<EOF
8518 void nm_test_func(){}
8519 int main(){nm_test_func;return 0;}
8520 EOF
8521   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8522   (eval $ac_compile) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; then
8526     # Now try to grab the symbols.
8527     ac_nlist=conftest.nm
8528     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8529   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } && test -s "$ac_nlist"; then
8533       # See whether the symbols have a leading underscore.
8534       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8535         ac_cv_sys_symbol_underscore=yes
8536       else
8537         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8538           :
8539         else
8540           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8541         fi
8542       fi
8543     else
8544       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8545     fi
8546   else
8547     echo "configure: failed program was:" >&5
8548     cat conftest.c >&5
8549   fi
8550   rm -rf conftest*
8551
8552 fi
8553 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8554 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8555
8556
8557 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8558   if test x"$libltdl_cv_func_dlopen" = xyes ||
8559      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8560         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8561 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8562 if test "${libltdl_cv_need_uscore+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   libltdl_cv_need_uscore=unknown
8566           save_LIBS="$LIBS"
8567           LIBS="$LIBS $LIBADD_DL"
8568           if test "$cross_compiling" = yes; then :
8569   libltdl_cv_need_uscore=cross
8570 else
8571   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8572   lt_status=$lt_dlunknown
8573   cat > conftest.$ac_ext <<EOF
8574 #line 8558 "configure"
8575 #include "confdefs.h"
8576
8577 #if HAVE_DLFCN_H
8578 #include <dlfcn.h>
8579 #endif
8580
8581 #include <stdio.h>
8582
8583 #ifdef RTLD_GLOBAL
8584 #  define LT_DLGLOBAL           RTLD_GLOBAL
8585 #else
8586 #  ifdef DL_GLOBAL
8587 #    define LT_DLGLOBAL         DL_GLOBAL
8588 #  else
8589 #    define LT_DLGLOBAL         0
8590 #  endif
8591 #endif
8592
8593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8594    find out it does not work in some platform. */
8595 #ifndef LT_DLLAZY_OR_NOW
8596 #  ifdef RTLD_LAZY
8597 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8598 #  else
8599 #    ifdef DL_LAZY
8600 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8601 #    else
8602 #      ifdef RTLD_NOW
8603 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8604 #      else
8605 #        ifdef DL_NOW
8606 #          define LT_DLLAZY_OR_NOW      DL_NOW
8607 #        else
8608 #          define LT_DLLAZY_OR_NOW      0
8609 #        endif
8610 #      endif
8611 #    endif
8612 #  endif
8613 #endif
8614
8615 #ifdef __cplusplus
8616 extern "C" void exit (int);
8617 #endif
8618
8619 void fnord() { int i=42;}
8620 int main ()
8621 {
8622   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8623   int status = $lt_dlunknown;
8624
8625   if (self)
8626     {
8627       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8628       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8629       /* dlclose (self); */
8630     }
8631
8632     exit (status);
8633 }
8634 EOF
8635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8640     (./conftest; exit; ) 2>/dev/null
8641     lt_status=$?
8642     case x$lt_status in
8643       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8644       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8645       x$lt_unknown|x*)  ;;
8646     esac
8647   else :
8648     # compilation failed
8649
8650   fi
8651 fi
8652 rm -fr conftest*
8653
8654           LIBS="$save_LIBS"
8655
8656 fi
8657 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8658 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8659   fi
8660 fi
8661
8662 if test x"$libltdl_cv_need_uscore" = xyes; then
8663
8664 cat >>confdefs.h <<\_ACEOF
8665 #define NEED_USCORE 1
8666 _ACEOF
8667
8668 fi
8669
8670
8671 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8672 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8673 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   # PORTME does your system automatically load deplibs for dlopen?
8677   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8678   # For now, we just catch OSes we know something about -- in the
8679   # future, we'll try test this programmatically.
8680   libltdl_cv_sys_dlopen_deplibs=unknown
8681   case "$host_os" in
8682   aix3*|aix4.1.*|aix4.2.*)
8683     # Unknown whether this is true for these versions of AIX, but
8684     # we want this `case' here to explicitly catch those versions.
8685     libltdl_cv_sys_dlopen_deplibs=unknown
8686     ;;
8687   aix[45]*)
8688     libltdl_cv_sys_dlopen_deplibs=yes
8689     ;;
8690   darwin*)
8691     # Assuming the user has installed a libdl from somewhere, this is true
8692     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8693     libltdl_cv_sys_dlopen_deplibs=yes
8694     ;;
8695   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8696     # GNU and its variants, using gnu ld.so (Glibc)
8697     libltdl_cv_sys_dlopen_deplibs=yes
8698     ;;
8699   hpux10*|hpux11*)
8700     libltdl_cv_sys_dlopen_deplibs=yes
8701     ;;
8702   irix[12345]*|irix6.[01]*)
8703     # Catch all versions of IRIX before 6.2, and indicate that we don't
8704     # know how it worked for any of those versions.
8705     libltdl_cv_sys_dlopen_deplibs=unknown
8706     ;;
8707   irix*)
8708     # The case above catches anything before 6.2, and it's known that
8709     # at 6.2 and later dlopen does load deplibs.
8710     libltdl_cv_sys_dlopen_deplibs=yes
8711     ;;
8712   netbsd*)
8713     libltdl_cv_sys_dlopen_deplibs=yes
8714     ;;
8715   openbsd*)
8716     libltdl_cv_sys_dlopen_deplibs=yes
8717     ;;
8718   osf[1234]*)
8719     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8720     # it did *not* use an RPATH in a shared library to find objects the
8721     # library depends on, so we explictly say `no'.
8722     libltdl_cv_sys_dlopen_deplibs=no
8723     ;;
8724   osf5.0|osf5.0a|osf5.1)
8725     # dlopen *does* load deplibs and with the right loader patch applied
8726     # it even uses RPATH in a shared library to search for shared objects
8727     # that the library depends on, but there's no easy way to know if that
8728     # patch is installed.  Since this is the case, all we can really
8729     # say is unknown -- it depends on the patch being installed.  If
8730     # it is, this changes to `yes'.  Without it, it would be `no'.
8731     libltdl_cv_sys_dlopen_deplibs=unknown
8732     ;;
8733   osf*)
8734     # the two cases above should catch all versions of osf <= 5.1.  Read
8735     # the comments above for what we know about them.
8736     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8737     # is used to find them so we can finally say `yes'.
8738     libltdl_cv_sys_dlopen_deplibs=yes
8739     ;;
8740   solaris*)
8741     libltdl_cv_sys_dlopen_deplibs=yes
8742     ;;
8743   esac
8744
8745 fi
8746 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8747 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8748 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8749
8750 cat >>confdefs.h <<\_ACEOF
8751 #define LTDL_DLOPEN_DEPLIBS 1
8752 _ACEOF
8753
8754 fi
8755
8756
8757 for ac_header in argz.h
8758 do
8759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8761   echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764   echo $ECHO_N "(cached) $ECHO_C" >&6
8765 fi
8766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8768 else
8769   # Is the header compilable?
8770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778 $ac_includes_default
8779 #include <$ac_header>
8780 _ACEOF
8781 rm -f conftest.$ac_objext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783   (eval $ac_compile) 2>conftest.er1
8784   ac_status=$?
8785   grep -v '^ *+' conftest.er1 >conftest.err
8786   rm -f conftest.er1
8787   cat conftest.err >&5
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); } &&
8790          { ac_try='test -z "$ac_c_werror_flag"
8791                          || test ! -s conftest.err'
8792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793   (eval $ac_try) 2>&5
8794   ac_status=$?
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); }; } &&
8797          { ac_try='test -s conftest.$ac_objext'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; }; then
8803   ac_header_compiler=yes
8804 else
8805   echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8807
8808 ac_header_compiler=no
8809 fi
8810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812 echo "${ECHO_T}$ac_header_compiler" >&6
8813
8814 # Is the header present?
8815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8817 cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823 #include <$ac_header>
8824 _ACEOF
8825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } >/dev/null; then
8833   if test -s conftest.err; then
8834     ac_cpp_err=$ac_c_preproc_warn_flag
8835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8836   else
8837     ac_cpp_err=
8838   fi
8839 else
8840   ac_cpp_err=yes
8841 fi
8842 if test -z "$ac_cpp_err"; then
8843   ac_header_preproc=yes
8844 else
8845   echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848   ac_header_preproc=no
8849 fi
8850 rm -f conftest.err conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852 echo "${ECHO_T}$ac_header_preproc" >&6
8853
8854 # So?  What about this header?
8855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8856   yes:no: )
8857     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8861     ac_header_preproc=yes
8862     ;;
8863   no:yes:* )
8864     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8866     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8867 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8871 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8876     (
8877       cat <<\_ASBOX
8878 ## ----------------------------------- ##
8879 ## Report this to llvmbugs@cs.uiuc.edu ##
8880 ## ----------------------------------- ##
8881 _ASBOX
8882     ) |
8883       sed "s/^/$as_me: WARNING:     /" >&2
8884     ;;
8885 esac
8886 echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891   eval "$as_ac_Header=\$ac_header_preproc"
8892 fi
8893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895
8896 fi
8897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898   cat >>confdefs.h <<_ACEOF
8899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900 _ACEOF
8901
8902 fi
8903
8904 done
8905
8906
8907 echo "$as_me:$LINENO: checking for error_t" >&5
8908 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8909 if test "${ac_cv_type_error_t+set}" = set; then
8910   echo $ECHO_N "(cached) $ECHO_C" >&6
8911 else
8912   cat >conftest.$ac_ext <<_ACEOF
8913 /* confdefs.h.  */
8914 _ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h.  */
8918 #if HAVE_ARGZ_H
8919 #  include <argz.h>
8920 #endif
8921
8922 int
8923 main ()
8924 {
8925 if ((error_t *) 0)
8926   return 0;
8927 if (sizeof (error_t))
8928   return 0;
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935   (eval $ac_compile) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag"
8943                          || test ! -s conftest.err'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; } &&
8949          { ac_try='test -s conftest.$ac_objext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   ac_cv_type_error_t=yes
8956 else
8957   echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 ac_cv_type_error_t=no
8961 fi
8962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8965 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8966 if test $ac_cv_type_error_t = yes; then
8967
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_ERROR_T 1
8970 _ACEOF
8971
8972
8973 else
8974
8975 cat >>confdefs.h <<\_ACEOF
8976 #define error_t int
8977 _ACEOF
8978
8979 fi
8980
8981
8982
8983
8984
8985
8986
8987 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8988 do
8989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990 echo "$as_me:$LINENO: checking for $ac_func" >&5
8991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8992 if eval "test \"\${$as_ac_var+set}\" = set"; then
8993   echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995   cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9003 #define $ac_func innocuous_$ac_func
9004
9005 /* System header to define __stub macros and hopefully few prototypes,
9006     which can conflict with char $ac_func (); below.
9007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9008     <limits.h> exists even on freestanding compilers.  */
9009
9010 #ifdef __STDC__
9011 # include <limits.h>
9012 #else
9013 # include <assert.h>
9014 #endif
9015
9016 #undef $ac_func
9017
9018 /* Override any gcc2 internal prototype to avoid an error.  */
9019 #ifdef __cplusplus
9020 extern "C"
9021 {
9022 #endif
9023 /* We use char because int might match the return type of a gcc2
9024    builtin and then its argument prototype would still apply.  */
9025 char $ac_func ();
9026 /* The GNU C library defines this for functions which it implements
9027     to always fail with ENOSYS.  Some functions are actually named
9028     something starting with __ and the normal name is an alias.  */
9029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9030 choke me
9031 #else
9032 char (*f) () = $ac_func;
9033 #endif
9034 #ifdef __cplusplus
9035 }
9036 #endif
9037
9038 int
9039 main ()
9040 {
9041 return f != $ac_func;
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048   (eval $ac_link) 2>conftest.er1
9049   ac_status=$?
9050   grep -v '^ *+' conftest.er1 >conftest.err
9051   rm -f conftest.er1
9052   cat conftest.err >&5
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } &&
9055          { ac_try='test -z "$ac_c_werror_flag"
9056                          || test ! -s conftest.err'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; } &&
9062          { ac_try='test -s conftest$ac_exeext'
9063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064   (eval $ac_try) 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; }; then
9068   eval "$as_ac_var=yes"
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 eval "$as_ac_var=no"
9074 fi
9075 rm -f conftest.err conftest.$ac_objext \
9076       conftest$ac_exeext conftest.$ac_ext
9077 fi
9078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9080 if test `eval echo '${'$as_ac_var'}'` = yes; then
9081   cat >>confdefs.h <<_ACEOF
9082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9083 _ACEOF
9084
9085 fi
9086 done
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9116                   stdio.h unistd.h
9117 do
9118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9120   echo "$as_me:$LINENO: checking for $ac_header" >&5
9121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9123   echo $ECHO_N "(cached) $ECHO_C" >&6
9124 fi
9125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9127 else
9128   # Is the header compilable?
9129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 $ac_includes_default
9138 #include <$ac_header>
9139 _ACEOF
9140 rm -f conftest.$ac_objext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9142   (eval $ac_compile) 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } &&
9149          { ac_try='test -z "$ac_c_werror_flag"
9150                          || test ! -s conftest.err'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest.$ac_objext'
9157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158   (eval $ac_try) 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_header_compiler=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 ac_header_compiler=no
9168 fi
9169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6
9172
9173 # Is the header present?
9174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h.  */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h.  */
9182 #include <$ac_header>
9183 _ACEOF
9184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9186   ac_status=$?
9187   grep -v '^ *+' conftest.er1 >conftest.err
9188   rm -f conftest.er1
9189   cat conftest.err >&5
9190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191   (exit $ac_status); } >/dev/null; then
9192   if test -s conftest.err; then
9193     ac_cpp_err=$ac_c_preproc_warn_flag
9194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9195   else
9196     ac_cpp_err=
9197   fi
9198 else
9199   ac_cpp_err=yes
9200 fi
9201 if test -z "$ac_cpp_err"; then
9202   ac_header_preproc=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207   ac_header_preproc=no
9208 fi
9209 rm -f conftest.err conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9211 echo "${ECHO_T}$ac_header_preproc" >&6
9212
9213 # So?  What about this header?
9214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9215   yes:no: )
9216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9220     ac_header_preproc=yes
9221     ;;
9222   no:yes:* )
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9235     (
9236       cat <<\_ASBOX
9237 ## ----------------------------------- ##
9238 ## Report this to llvmbugs@cs.uiuc.edu ##
9239 ## ----------------------------------- ##
9240 _ASBOX
9241     ) |
9242       sed "s/^/$as_me: WARNING:     /" >&2
9243     ;;
9244 esac
9245 echo "$as_me:$LINENO: checking for $ac_header" >&5
9246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   eval "$as_ac_Header=\$ac_header_preproc"
9251 fi
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9254
9255 fi
9256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9257   cat >>confdefs.h <<_ACEOF
9258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9259 _ACEOF
9260
9261 fi
9262
9263 done
9264
9265
9266
9267
9268
9269 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9270 do
9271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9273   echo "$as_me:$LINENO: checking for $ac_header" >&5
9274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 fi
9278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9280 else
9281   # Is the header compilable?
9282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290 $ac_includes_default
9291 #include <$ac_header>
9292 _ACEOF
9293 rm -f conftest.$ac_objext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9295   (eval $ac_compile) 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } &&
9302          { ac_try='test -z "$ac_c_werror_flag"
9303                          || test ! -s conftest.err'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; } &&
9309          { ac_try='test -s conftest.$ac_objext'
9310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311   (eval $ac_try) 2>&5
9312   ac_status=$?
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   (exit $ac_status); }; }; then
9315   ac_header_compiler=yes
9316 else
9317   echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9319
9320 ac_header_compiler=no
9321 fi
9322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9324 echo "${ECHO_T}$ac_header_compiler" >&6
9325
9326 # Is the header present?
9327 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 #include <$ac_header>
9336 _ACEOF
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9339   ac_status=$?
9340   grep -v '^ *+' conftest.er1 >conftest.err
9341   rm -f conftest.er1
9342   cat conftest.err >&5
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); } >/dev/null; then
9345   if test -s conftest.err; then
9346     ac_cpp_err=$ac_c_preproc_warn_flag
9347     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9348   else
9349     ac_cpp_err=
9350   fi
9351 else
9352   ac_cpp_err=yes
9353 fi
9354 if test -z "$ac_cpp_err"; then
9355   ac_header_preproc=yes
9356 else
9357   echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9359
9360   ac_header_preproc=no
9361 fi
9362 rm -f conftest.err conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9364 echo "${ECHO_T}$ac_header_preproc" >&6
9365
9366 # So?  What about this header?
9367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9368   yes:no: )
9369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9373     ac_header_preproc=yes
9374     ;;
9375   no:yes:* )
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9388     (
9389       cat <<\_ASBOX
9390 ## ----------------------------------- ##
9391 ## Report this to llvmbugs@cs.uiuc.edu ##
9392 ## ----------------------------------- ##
9393 _ASBOX
9394     ) |
9395       sed "s/^/$as_me: WARNING:     /" >&2
9396     ;;
9397 esac
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   eval "$as_ac_Header=\$ac_header_preproc"
9404 fi
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9407
9408 fi
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410   cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412 _ACEOF
9413
9414 fi
9415
9416 done
9417
9418
9419
9420 for ac_header in string.h strings.h
9421 do
9422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424   echo "$as_me:$LINENO: checking for $ac_header" >&5
9425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 fi
9429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9431 else
9432   # Is the header compilable?
9433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9435 cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441 $ac_includes_default
9442 #include <$ac_header>
9443 _ACEOF
9444 rm -f conftest.$ac_objext
9445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9446   (eval $ac_compile) 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag"
9454                          || test ! -s conftest.err'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; } &&
9460          { ac_try='test -s conftest.$ac_objext'
9461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462   (eval $ac_try) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; }; then
9466   ac_header_compiler=yes
9467 else
9468   echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9470
9471 ac_header_compiler=no
9472 fi
9473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9475 echo "${ECHO_T}$ac_header_compiler" >&6
9476
9477 # Is the header present?
9478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h.  */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h.  */
9486 #include <$ac_header>
9487 _ACEOF
9488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9490   ac_status=$?
9491   grep -v '^ *+' conftest.er1 >conftest.err
9492   rm -f conftest.er1
9493   cat conftest.err >&5
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } >/dev/null; then
9496   if test -s conftest.err; then
9497     ac_cpp_err=$ac_c_preproc_warn_flag
9498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9499   else
9500     ac_cpp_err=
9501   fi
9502 else
9503   ac_cpp_err=yes
9504 fi
9505 if test -z "$ac_cpp_err"; then
9506   ac_header_preproc=yes
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9510
9511   ac_header_preproc=no
9512 fi
9513 rm -f conftest.err conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9515 echo "${ECHO_T}$ac_header_preproc" >&6
9516
9517 # So?  What about this header?
9518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9519   yes:no: )
9520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9524     ac_header_preproc=yes
9525     ;;
9526   no:yes:* )
9527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9539     (
9540       cat <<\_ASBOX
9541 ## ----------------------------------- ##
9542 ## Report this to llvmbugs@cs.uiuc.edu ##
9543 ## ----------------------------------- ##
9544 _ASBOX
9545     ) |
9546       sed "s/^/$as_me: WARNING:     /" >&2
9547     ;;
9548 esac
9549 echo "$as_me:$LINENO: checking for $ac_header" >&5
9550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   eval "$as_ac_Header=\$ac_header_preproc"
9555 fi
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9558
9559 fi
9560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9561   cat >>confdefs.h <<_ACEOF
9562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9563 _ACEOF
9564  break
9565 fi
9566
9567 done
9568
9569
9570
9571
9572 for ac_func in strchr index
9573 do
9574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9575 echo "$as_me:$LINENO: checking for $ac_func" >&5
9576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9577 if eval "test \"\${$as_ac_var+set}\" = set"; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9588 #define $ac_func innocuous_$ac_func
9589
9590 /* System header to define __stub macros and hopefully few prototypes,
9591     which can conflict with char $ac_func (); below.
9592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9593     <limits.h> exists even on freestanding compilers.  */
9594
9595 #ifdef __STDC__
9596 # include <limits.h>
9597 #else
9598 # include <assert.h>
9599 #endif
9600
9601 #undef $ac_func
9602
9603 /* Override any gcc2 internal prototype to avoid an error.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 {
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char $ac_func ();
9611 /* The GNU C library defines this for functions which it implements
9612     to always fail with ENOSYS.  Some functions are actually named
9613     something starting with __ and the normal name is an alias.  */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9615 choke me
9616 #else
9617 char (*f) () = $ac_func;
9618 #endif
9619 #ifdef __cplusplus
9620 }
9621 #endif
9622
9623 int
9624 main ()
9625 {
9626 return f != $ac_func;
9627   ;
9628   return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633   (eval $ac_link) 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } &&
9640          { ac_try='test -z "$ac_c_werror_flag"
9641                          || test ! -s conftest.err'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; } &&
9647          { ac_try='test -s conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   eval "$as_ac_var=yes"
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 eval "$as_ac_var=no"
9659 fi
9660 rm -f conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 fi
9663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9665 if test `eval echo '${'$as_ac_var'}'` = yes; then
9666   cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9668 _ACEOF
9669  break
9670 fi
9671 done
9672
9673
9674
9675 for ac_func in strrchr rindex
9676 do
9677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_func" >&5
9679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_var+set}\" = set"; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h.  */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h.  */
9689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9691 #define $ac_func innocuous_$ac_func
9692
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char $ac_func (); below.
9695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696     <limits.h> exists even on freestanding compilers.  */
9697
9698 #ifdef __STDC__
9699 # include <limits.h>
9700 #else
9701 # include <assert.h>
9702 #endif
9703
9704 #undef $ac_func
9705
9706 /* Override any gcc2 internal prototype to avoid an error.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 {
9710 #endif
9711 /* We use char because int might match the return type of a gcc2
9712    builtin and then its argument prototype would still apply.  */
9713 char $ac_func ();
9714 /* The GNU C library defines this for functions which it implements
9715     to always fail with ENOSYS.  Some functions are actually named
9716     something starting with __ and the normal name is an alias.  */
9717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9718 choke me
9719 #else
9720 char (*f) () = $ac_func;
9721 #endif
9722 #ifdef __cplusplus
9723 }
9724 #endif
9725
9726 int
9727 main ()
9728 {
9729 return f != $ac_func;
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736   (eval $ac_link) 2>conftest.er1
9737   ac_status=$?
9738   grep -v '^ *+' conftest.er1 >conftest.err
9739   rm -f conftest.er1
9740   cat conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   (exit $ac_status); } &&
9743          { ac_try='test -z "$ac_c_werror_flag"
9744                          || test ! -s conftest.err'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; } &&
9750          { ac_try='test -s conftest$ac_exeext'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; }; then
9756   eval "$as_ac_var=yes"
9757 else
9758   echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 eval "$as_ac_var=no"
9762 fi
9763 rm -f conftest.err conftest.$ac_objext \
9764       conftest$ac_exeext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9768 if test `eval echo '${'$as_ac_var'}'` = yes; then
9769   cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9771 _ACEOF
9772  break
9773 fi
9774 done
9775
9776
9777
9778 for ac_func in memcpy bcopy
9779 do
9780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781 echo "$as_me:$LINENO: checking for $ac_func" >&5
9782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_var+set}\" = set"; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define $ac_func innocuous_$ac_func
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char $ac_func (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef $ac_func
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char $ac_func ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821 choke me
9822 #else
9823 char (*f) () = $ac_func;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != $ac_func;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   eval "$as_ac_var=yes"
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 eval "$as_ac_var=no"
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871 if test `eval echo '${'$as_ac_var'}'` = yes; then
9872   cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874 _ACEOF
9875  break
9876 fi
9877 done
9878
9879
9880
9881 for ac_func in memmove strcmp
9882 do
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_var+set}\" = set"; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9897 #define $ac_func innocuous_$ac_func
9898
9899 /* System header to define __stub macros and hopefully few prototypes,
9900     which can conflict with char $ac_func (); below.
9901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902     <limits.h> exists even on freestanding compilers.  */
9903
9904 #ifdef __STDC__
9905 # include <limits.h>
9906 #else
9907 # include <assert.h>
9908 #endif
9909
9910 #undef $ac_func
9911
9912 /* Override any gcc2 internal prototype to avoid an error.  */
9913 #ifdef __cplusplus
9914 extern "C"
9915 {
9916 #endif
9917 /* We use char because int might match the return type of a gcc2
9918    builtin and then its argument prototype would still apply.  */
9919 char $ac_func ();
9920 /* The GNU C library defines this for functions which it implements
9921     to always fail with ENOSYS.  Some functions are actually named
9922     something starting with __ and the normal name is an alias.  */
9923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9924 choke me
9925 #else
9926 char (*f) () = $ac_func;
9927 #endif
9928 #ifdef __cplusplus
9929 }
9930 #endif
9931
9932 int
9933 main ()
9934 {
9935 return f != $ac_func;
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942   (eval $ac_link) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag"
9950                          || test ! -s conftest.err'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962   eval "$as_ac_var=yes"
9963 else
9964   echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9966
9967 eval "$as_ac_var=no"
9968 fi
9969 rm -f conftest.err conftest.$ac_objext \
9970       conftest$ac_exeext conftest.$ac_ext
9971 fi
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9974 if test `eval echo '${'$as_ac_var'}'` = yes; then
9975   cat >>confdefs.h <<_ACEOF
9976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9977 _ACEOF
9978
9979 fi
9980 done
9981
9982
9983
9984
9985 for ac_func in closedir opendir readdir
9986 do
9987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988 echo "$as_me:$LINENO: checking for $ac_func" >&5
9989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9990 if eval "test \"\${$as_ac_var+set}\" = set"; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10001 #define $ac_func innocuous_$ac_func
10002
10003 /* System header to define __stub macros and hopefully few prototypes,
10004     which can conflict with char $ac_func (); below.
10005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006     <limits.h> exists even on freestanding compilers.  */
10007
10008 #ifdef __STDC__
10009 # include <limits.h>
10010 #else
10011 # include <assert.h>
10012 #endif
10013
10014 #undef $ac_func
10015
10016 /* Override any gcc2 internal prototype to avoid an error.  */
10017 #ifdef __cplusplus
10018 extern "C"
10019 {
10020 #endif
10021 /* We use char because int might match the return type of a gcc2
10022    builtin and then its argument prototype would still apply.  */
10023 char $ac_func ();
10024 /* The GNU C library defines this for functions which it implements
10025     to always fail with ENOSYS.  Some functions are actually named
10026     something starting with __ and the normal name is an alias.  */
10027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10028 choke me
10029 #else
10030 char (*f) () = $ac_func;
10031 #endif
10032 #ifdef __cplusplus
10033 }
10034 #endif
10035
10036 int
10037 main ()
10038 {
10039 return f != $ac_func;
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext conftest$ac_exeext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10046   (eval $ac_link) 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_c_werror_flag"
10054                          || test ! -s conftest.err'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest$ac_exeext'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; }; then
10066   eval "$as_ac_var=yes"
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071 eval "$as_ac_var=no"
10072 fi
10073 rm -f conftest.err conftest.$ac_objext \
10074       conftest$ac_exeext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10078 if test `eval echo '${'$as_ac_var'}'` = yes; then
10079   cat >>confdefs.h <<_ACEOF
10080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10081 _ACEOF
10082
10083 fi
10084 done
10085
10086
10087 # Check whether --enable-shared or --disable-shared was given.
10088 if test "${enable_shared+set}" = set; then
10089   enableval="$enable_shared"
10090   p=${PACKAGE-default}
10091     case $enableval in
10092     yes) enable_shared=yes ;;
10093     no) enable_shared=no ;;
10094     *)
10095       enable_shared=no
10096       # Look at the argument we got.  We use all the common list separators.
10097       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10098       for pkg in $enableval; do
10099         IFS="$lt_save_ifs"
10100         if test "X$pkg" = "X$p"; then
10101           enable_shared=yes
10102         fi
10103       done
10104       IFS="$lt_save_ifs"
10105       ;;
10106     esac
10107 else
10108   enable_shared=yes
10109 fi;
10110
10111 # Check whether --enable-static or --disable-static was given.
10112 if test "${enable_static+set}" = set; then
10113   enableval="$enable_static"
10114   p=${PACKAGE-default}
10115     case $enableval in
10116     yes) enable_static=yes ;;
10117     no) enable_static=no ;;
10118     *)
10119      enable_static=no
10120       # Look at the argument we got.  We use all the common list separators.
10121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122       for pkg in $enableval; do
10123         IFS="$lt_save_ifs"
10124         if test "X$pkg" = "X$p"; then
10125           enable_static=yes
10126         fi
10127       done
10128       IFS="$lt_save_ifs"
10129       ;;
10130     esac
10131 else
10132   enable_static=yes
10133 fi;
10134
10135 # Check whether --enable-fast-install or --disable-fast-install was given.
10136 if test "${enable_fast_install+set}" = set; then
10137   enableval="$enable_fast_install"
10138   p=${PACKAGE-default}
10139     case $enableval in
10140     yes) enable_fast_install=yes ;;
10141     no) enable_fast_install=no ;;
10142     *)
10143       enable_fast_install=no
10144       # Look at the argument we got.  We use all the common list separators.
10145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10146       for pkg in $enableval; do
10147         IFS="$lt_save_ifs"
10148         if test "X$pkg" = "X$p"; then
10149           enable_fast_install=yes
10150         fi
10151       done
10152       IFS="$lt_save_ifs"
10153       ;;
10154     esac
10155 else
10156   enable_fast_install=yes
10157 fi;
10158
10159 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10160 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10161 if test "${lt_cv_path_SED+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   # Loop through the user's path and test for sed and gsed.
10165 # Then use that list of sed's as ones to test for truncation.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171   for lt_ac_prog in sed gsed; do
10172     for ac_exec_ext in '' $ac_executable_extensions; do
10173       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10174         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10175       fi
10176     done
10177   done
10178 done
10179 lt_ac_max=0
10180 lt_ac_count=0
10181 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10182 # along with /bin/sed that truncates output.
10183 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10184   test ! -f $lt_ac_sed && break
10185   cat /dev/null > conftest.in
10186   lt_ac_count=0
10187   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10188   # Check for GNU sed and select it if it is found.
10189   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10190     lt_cv_path_SED=$lt_ac_sed
10191     break
10192   fi
10193   while true; do
10194     cat conftest.in conftest.in >conftest.tmp
10195     mv conftest.tmp conftest.in
10196     cp conftest.in conftest.nl
10197     echo >>conftest.nl
10198     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10199     cmp -s conftest.out conftest.nl || break
10200     # 10000 chars as input seems more than enough
10201     test $lt_ac_count -gt 10 && break
10202     lt_ac_count=`expr $lt_ac_count + 1`
10203     if test $lt_ac_count -gt $lt_ac_max; then
10204       lt_ac_max=$lt_ac_count
10205       lt_cv_path_SED=$lt_ac_sed
10206     fi
10207   done
10208 done
10209
10210 fi
10211
10212 SED=$lt_cv_path_SED
10213 echo "$as_me:$LINENO: result: $SED" >&5
10214 echo "${ECHO_T}$SED" >&6
10215
10216
10217 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10218 if test "${with_gnu_ld+set}" = set; then
10219   withval="$with_gnu_ld"
10220   test "$withval" = no || with_gnu_ld=yes
10221 else
10222   with_gnu_ld=no
10223 fi;
10224 ac_prog=ld
10225 if test "$GCC" = yes; then
10226   # Check if gcc -print-prog-name=ld gives a path.
10227   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10228 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10229   case $host in
10230   *-*-mingw*)
10231     # gcc leaves a trailing carriage return which upsets mingw
10232     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10233   *)
10234     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10235   esac
10236   case $ac_prog in
10237     # Accept absolute paths.
10238     [\\/]* | ?:[\\/]*)
10239       re_direlt='/[^/][^/]*/\.\./'
10240       # Canonicalize the pathname of ld
10241       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10242       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10243         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10244       done
10245       test -z "$LD" && LD="$ac_prog"
10246       ;;
10247   "")
10248     # If it fails, then pretend we aren't using GCC.
10249     ac_prog=ld
10250     ;;
10251   *)
10252     # If it is relative, then search for the first ld in PATH.
10253     with_gnu_ld=unknown
10254     ;;
10255   esac
10256 elif test "$with_gnu_ld" = yes; then
10257   echo "$as_me:$LINENO: checking for GNU ld" >&5
10258 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10259 else
10260   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10261 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10262 fi
10263 if test "${lt_cv_path_LD+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   if test -z "$LD"; then
10267   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10268   for ac_dir in $PATH; do
10269     IFS="$lt_save_ifs"
10270     test -z "$ac_dir" && ac_dir=.
10271     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10272       lt_cv_path_LD="$ac_dir/$ac_prog"
10273       # Check to see if the program is GNU ld.  I'd rather use --version,
10274       # but apparently some GNU ld's only accept -v.
10275       # Break only if it was the GNU/non-GNU ld that we prefer.
10276       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10277       *GNU* | *'with BFD'*)
10278         test "$with_gnu_ld" != no && break
10279         ;;
10280       *)
10281         test "$with_gnu_ld" != yes && break
10282         ;;
10283       esac
10284     fi
10285   done
10286   IFS="$lt_save_ifs"
10287 else
10288   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10289 fi
10290 fi
10291
10292 LD="$lt_cv_path_LD"
10293 if test -n "$LD"; then
10294   echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10296 else
10297   echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10299 fi
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302    { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10309 case `$LD -v 2>&1 </dev/null` in
10310 *GNU* | *'with BFD'*)
10311   lt_cv_prog_gnu_ld=yes
10312   ;;
10313 *)
10314   lt_cv_prog_gnu_ld=no
10315   ;;
10316 esac
10317 fi
10318 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10319 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10320 with_gnu_ld=$lt_cv_prog_gnu_ld
10321
10322
10323 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10324 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10325 if test "${lt_cv_ld_reload_flag+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   lt_cv_ld_reload_flag='-r'
10329 fi
10330 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10331 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10332 reload_flag=$lt_cv_ld_reload_flag
10333 case $reload_flag in
10334 "" | " "*) ;;
10335 *) reload_flag=" $reload_flag" ;;
10336 esac
10337 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10338 case $host_os in
10339   darwin*)
10340     if test "$GCC" = yes; then
10341       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10342     else
10343       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10344     fi
10345     ;;
10346 esac
10347
10348 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10349 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10350 if test "${lt_cv_deplibs_check_method+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353   lt_cv_file_magic_cmd='$MAGIC_CMD'
10354 lt_cv_file_magic_test_file=
10355 lt_cv_deplibs_check_method='unknown'
10356 # Need to set the preceding variable on all platforms that support
10357 # interlibrary dependencies.
10358 # 'none' -- dependencies not supported.
10359 # `unknown' -- same as none, but documents that we really don't know.
10360 # 'pass_all' -- all dependencies passed with no checks.
10361 # 'test_compile' -- check by making test program.
10362 # 'file_magic [[regex]]' -- check by looking for files in library path
10363 # which responds to the $file_magic_cmd with a given extended regex.
10364 # If you have `file' or equivalent on your system and you're not sure
10365 # whether `pass_all' will *always* work, you probably want this one.
10366
10367 case $host_os in
10368 aix4* | aix5*)
10369   lt_cv_deplibs_check_method=pass_all
10370   ;;
10371
10372 beos*)
10373   lt_cv_deplibs_check_method=pass_all
10374   ;;
10375
10376 bsdi[45]*)
10377   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10378   lt_cv_file_magic_cmd='/usr/bin/file -L'
10379   lt_cv_file_magic_test_file=/shlib/libc.so
10380   ;;
10381
10382 cygwin*)
10383   # func_win32_libid is a shell function defined in ltmain.sh
10384   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10385   lt_cv_file_magic_cmd='func_win32_libid'
10386   ;;
10387
10388 mingw* | pw32*)
10389   # Base MSYS/MinGW do not provide the 'file' command needed by
10390   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10391   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10392   lt_cv_file_magic_cmd='$OBJDUMP -f'
10393   ;;
10394
10395 darwin* | rhapsody*)
10396   lt_cv_deplibs_check_method=pass_all
10397   ;;
10398
10399 freebsd* | kfreebsd*-gnu)
10400   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10401     case $host_cpu in
10402     i*86 )
10403       # Not sure whether the presence of OpenBSD here was a mistake.
10404       # Let's accept both of them until this is cleared up.
10405       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10406       lt_cv_file_magic_cmd=/usr/bin/file
10407       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10408       ;;
10409     esac
10410   else
10411     lt_cv_deplibs_check_method=pass_all
10412   fi
10413   ;;
10414
10415 gnu*)
10416   lt_cv_deplibs_check_method=pass_all
10417   ;;
10418
10419 hpux10.20* | hpux11*)
10420   lt_cv_file_magic_cmd=/usr/bin/file
10421   case "$host_cpu" in
10422   ia64*)
10423     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10424     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10425     ;;
10426   hppa*64*)
10427     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]'
10428     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10429     ;;
10430   *)
10431     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10432     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10433     ;;
10434   esac
10435   ;;
10436
10437 irix5* | irix6* | nonstopux*)
10438   case $LD in
10439   *-32|*"-32 ") libmagic=32-bit;;
10440   *-n32|*"-n32 ") libmagic=N32;;
10441   *-64|*"-64 ") libmagic=64-bit;;
10442   *) libmagic=never-match;;
10443   esac
10444   lt_cv_deplibs_check_method=pass_all
10445   ;;
10446
10447 # This must be Linux ELF.
10448 linux*)
10449   lt_cv_deplibs_check_method=pass_all
10450   ;;
10451
10452 netbsd*)
10453   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10455   else
10456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10457   fi
10458   ;;
10459
10460 newos6*)
10461   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10462   lt_cv_file_magic_cmd=/usr/bin/file
10463   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10464   ;;
10465
10466 nto-qnx*)
10467   lt_cv_deplibs_check_method=unknown
10468   ;;
10469
10470 openbsd*)
10471   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10472     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10473   else
10474     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10475   fi
10476   ;;
10477
10478 osf3* | osf4* | osf5*)
10479   lt_cv_deplibs_check_method=pass_all
10480   ;;
10481
10482 sco3.2v5*)
10483   lt_cv_deplibs_check_method=pass_all
10484   ;;
10485
10486 solaris*)
10487   lt_cv_deplibs_check_method=pass_all
10488   ;;
10489
10490 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10491   case $host_vendor in
10492   motorola)
10493     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]'
10494     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10495     ;;
10496   ncr)
10497     lt_cv_deplibs_check_method=pass_all
10498     ;;
10499   sequent)
10500     lt_cv_file_magic_cmd='/bin/file'
10501     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10502     ;;
10503   sni)
10504     lt_cv_file_magic_cmd='/bin/file'
10505     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10506     lt_cv_file_magic_test_file=/lib/libc.so
10507     ;;
10508   siemens)
10509     lt_cv_deplibs_check_method=pass_all
10510     ;;
10511   esac
10512   ;;
10513
10514 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10515   lt_cv_deplibs_check_method=pass_all
10516   ;;
10517 esac
10518
10519 fi
10520 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10521 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10522 file_magic_cmd=$lt_cv_file_magic_cmd
10523 deplibs_check_method=$lt_cv_deplibs_check_method
10524 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10525
10526
10527
10528 # If no C compiler was specified, use CC.
10529 LTCC=${LTCC-"$CC"}
10530
10531 # Allow CC to be a program name with arguments.
10532 compiler=$CC
10533
10534 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10535 if test "${enable_libtool_lock+set}" = set; then
10536   enableval="$enable_libtool_lock"
10537
10538 fi;
10539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10540
10541 # Some flags need to be propagated to the compiler or linker for good
10542 # libtool support.
10543 case $host in
10544 ia64-*-hpux*)
10545   # Find out which ABI we are using.
10546   echo 'int i;' > conftest.$ac_ext
10547   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; then
10552     case `/usr/bin/file conftest.$ac_objext` in
10553     *ELF-32*)
10554       HPUX_IA64_MODE="32"
10555       ;;
10556     *ELF-64*)
10557       HPUX_IA64_MODE="64"
10558       ;;
10559     esac
10560   fi
10561   rm -rf conftest*
10562   ;;
10563 *-*-irix6*)
10564   # Find out which ABI we are using.
10565   echo '#line 10549 "configure"' > conftest.$ac_ext
10566   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); }; then
10571    if test "$lt_cv_prog_gnu_ld" = yes; then
10572     case `/usr/bin/file conftest.$ac_objext` in
10573     *32-bit*)
10574       LD="${LD-ld} -melf32bsmip"
10575       ;;
10576     *N32*)
10577       LD="${LD-ld} -melf32bmipn32"
10578       ;;
10579     *64-bit*)
10580       LD="${LD-ld} -melf64bmip"
10581       ;;
10582     esac
10583    else
10584     case `/usr/bin/file conftest.$ac_objext` in
10585     *32-bit*)
10586       LD="${LD-ld} -32"
10587       ;;
10588     *N32*)
10589       LD="${LD-ld} -n32"
10590       ;;
10591     *64-bit*)
10592       LD="${LD-ld} -64"
10593       ;;
10594     esac
10595    fi
10596   fi
10597   rm -rf conftest*
10598   ;;
10599
10600 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10601   # Find out which ABI we are using.
10602   echo 'int i;' > conftest.$ac_ext
10603   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604   (eval $ac_compile) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; then
10608     case "`/usr/bin/file conftest.o`" in
10609     *32-bit*)
10610       case $host in
10611         x86_64-*linux*)
10612           LD="${LD-ld} -m elf_i386"
10613           ;;
10614         ppc64-*linux*|powerpc64-*linux*)
10615           LD="${LD-ld} -m elf32ppclinux"
10616           ;;
10617         s390x-*linux*)
10618           LD="${LD-ld} -m elf_s390"
10619           ;;
10620         sparc64-*linux*)
10621           LD="${LD-ld} -m elf32_sparc"
10622           ;;
10623       esac
10624       ;;
10625     *64-bit*)
10626       case $host in
10627         x86_64-*linux*)
10628           LD="${LD-ld} -m elf_x86_64"
10629           ;;
10630         ppc*-*linux*|powerpc*-*linux*)
10631           LD="${LD-ld} -m elf64ppc"
10632           ;;
10633         s390*-*linux*)
10634           LD="${LD-ld} -m elf64_s390"
10635           ;;
10636         sparc*-*linux*)
10637           LD="${LD-ld} -m elf64_sparc"
10638           ;;
10639       esac
10640       ;;
10641     esac
10642   fi
10643   rm -rf conftest*
10644   ;;
10645
10646 *-*-sco3.2v5*)
10647   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10648   SAVE_CFLAGS="$CFLAGS"
10649   CFLAGS="$CFLAGS -belf"
10650   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10651 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10652 if test "${lt_cv_cc_needs_belf+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_ext=c
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661      cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671   (eval $ac_link) 2>conftest.er1
10672   ac_status=$?
10673   grep -v '^ *+' conftest.er1 >conftest.err
10674   rm -f conftest.er1
10675   cat conftest.err >&5
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } &&
10678          { ac_try='test -z "$ac_c_werror_flag"
10679                          || test ! -s conftest.err'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; } &&
10685          { ac_try='test -s conftest$ac_exeext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   lt_cv_cc_needs_belf=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 lt_cv_cc_needs_belf=no
10697 fi
10698 rm -f conftest.err conftest.$ac_objext \
10699       conftest$ac_exeext conftest.$ac_ext
10700      ac_ext=c
10701 ac_cpp='$CPP $CPPFLAGS'
10702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705
10706 fi
10707 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10708 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10709   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10710     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10711     CFLAGS="$SAVE_CFLAGS"
10712   fi
10713   ;;
10714
10715 esac
10716
10717 need_locks="$enable_libtool_lock"
10718
10719
10720
10721
10722 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10723     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10724     (test "X$CXX" != "Xg++"))) ; then
10725   ac_ext=cc
10726 ac_cpp='$CXXCPP $CPPFLAGS'
10727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10730 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10731 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10732 if test -z "$CXXCPP"; then
10733   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736       # Double quotes because CXXCPP needs to be expanded
10737     for CXXCPP in "$CXX -E" "/lib/cpp"
10738     do
10739       ac_preproc_ok=false
10740 for ac_cxx_preproc_warn_flag in '' yes
10741 do
10742   # Use a header file that comes with gcc, so configuring glibc
10743   # with a fresh cross-compiler works.
10744   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745   # <limits.h> exists even on freestanding compilers.
10746   # On the NeXT, cc -E runs the code through the compiler's parser,
10747   # not just through cpp. "Syntax error" is here to catch this case.
10748   cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754 #ifdef __STDC__
10755 # include <limits.h>
10756 #else
10757 # include <assert.h>
10758 #endif
10759                      Syntax error
10760 _ACEOF
10761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10762   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10763   ac_status=$?
10764   grep -v '^ *+' conftest.er1 >conftest.err
10765   rm -f conftest.er1
10766   cat conftest.err >&5
10767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768   (exit $ac_status); } >/dev/null; then
10769   if test -s conftest.err; then
10770     ac_cpp_err=$ac_cxx_preproc_warn_flag
10771     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10772   else
10773     ac_cpp_err=
10774   fi
10775 else
10776   ac_cpp_err=yes
10777 fi
10778 if test -z "$ac_cpp_err"; then
10779   :
10780 else
10781   echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784   # Broken: fails on valid input.
10785 continue
10786 fi
10787 rm -f conftest.err conftest.$ac_ext
10788
10789   # OK, works on sane cases.  Now check whether non-existent headers
10790   # can be detected and how.
10791   cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h.  */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h.  */
10797 #include <ac_nonexistent.h>
10798 _ACEOF
10799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10801   ac_status=$?
10802   grep -v '^ *+' conftest.er1 >conftest.err
10803   rm -f conftest.er1
10804   cat conftest.err >&5
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); } >/dev/null; then
10807   if test -s conftest.err; then
10808     ac_cpp_err=$ac_cxx_preproc_warn_flag
10809     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10810   else
10811     ac_cpp_err=
10812   fi
10813 else
10814   ac_cpp_err=yes
10815 fi
10816 if test -z "$ac_cpp_err"; then
10817   # Broken: success on invalid input.
10818 continue
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823   # Passes both tests.
10824 ac_preproc_ok=:
10825 break
10826 fi
10827 rm -f conftest.err conftest.$ac_ext
10828
10829 done
10830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10831 rm -f conftest.err conftest.$ac_ext
10832 if $ac_preproc_ok; then
10833   break
10834 fi
10835
10836     done
10837     ac_cv_prog_CXXCPP=$CXXCPP
10838
10839 fi
10840   CXXCPP=$ac_cv_prog_CXXCPP
10841 else
10842   ac_cv_prog_CXXCPP=$CXXCPP
10843 fi
10844 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10845 echo "${ECHO_T}$CXXCPP" >&6
10846 ac_preproc_ok=false
10847 for ac_cxx_preproc_warn_flag in '' yes
10848 do
10849   # Use a header file that comes with gcc, so configuring glibc
10850   # with a fresh cross-compiler works.
10851   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10852   # <limits.h> exists even on freestanding compilers.
10853   # On the NeXT, cc -E runs the code through the compiler's parser,
10854   # not just through cpp. "Syntax error" is here to catch this case.
10855   cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h.  */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h.  */
10861 #ifdef __STDC__
10862 # include <limits.h>
10863 #else
10864 # include <assert.h>
10865 #endif
10866                      Syntax error
10867 _ACEOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } >/dev/null; then
10876   if test -s conftest.err; then
10877     ac_cpp_err=$ac_cxx_preproc_warn_flag
10878     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10879   else
10880     ac_cpp_err=
10881   fi
10882 else
10883   ac_cpp_err=yes
10884 fi
10885 if test -z "$ac_cpp_err"; then
10886   :
10887 else
10888   echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891   # Broken: fails on valid input.
10892 continue
10893 fi
10894 rm -f conftest.err conftest.$ac_ext
10895
10896   # OK, works on sane cases.  Now check whether non-existent headers
10897   # can be detected and how.
10898   cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 #include <ac_nonexistent.h>
10905 _ACEOF
10906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10908   ac_status=$?
10909   grep -v '^ *+' conftest.er1 >conftest.err
10910   rm -f conftest.er1
10911   cat conftest.err >&5
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); } >/dev/null; then
10914   if test -s conftest.err; then
10915     ac_cpp_err=$ac_cxx_preproc_warn_flag
10916     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10917   else
10918     ac_cpp_err=
10919   fi
10920 else
10921   ac_cpp_err=yes
10922 fi
10923 if test -z "$ac_cpp_err"; then
10924   # Broken: success on invalid input.
10925 continue
10926 else
10927   echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930   # Passes both tests.
10931 ac_preproc_ok=:
10932 break
10933 fi
10934 rm -f conftest.err conftest.$ac_ext
10935
10936 done
10937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10938 rm -f conftest.err conftest.$ac_ext
10939 if $ac_preproc_ok; then
10940   :
10941 else
10942   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10943 See \`config.log' for more details." >&5
10944 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10945 See \`config.log' for more details." >&2;}
10946    { (exit 1); exit 1; }; }
10947 fi
10948
10949 ac_ext=cc
10950 ac_cpp='$CXXCPP $CPPFLAGS'
10951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10954
10955 fi
10956
10957
10958 ac_ext=f
10959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10962 if test -n "$ac_tool_prefix"; then
10963   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10964   do
10965     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10967 echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969 if test "${ac_cv_prog_F77+set}" = set; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972   if test -n "$F77"; then
10973   ac_cv_prog_F77="$F77" # Let the user override the test.
10974 else
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10977 do
10978   IFS=$as_save_IFS
10979   test -z "$as_dir" && as_dir=.
10980   for ac_exec_ext in '' $ac_executable_extensions; do
10981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984     break 2
10985   fi
10986 done
10987 done
10988
10989 fi
10990 fi
10991 F77=$ac_cv_prog_F77
10992 if test -n "$F77"; then
10993   echo "$as_me:$LINENO: result: $F77" >&5
10994 echo "${ECHO_T}$F77" >&6
10995 else
10996   echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6
10998 fi
10999
11000     test -n "$F77" && break
11001   done
11002 fi
11003 if test -z "$F77"; then
11004   ac_ct_F77=$F77
11005   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11006 do
11007   # Extract the first word of "$ac_prog", so it can be a program name with args.
11008 set dummy $ac_prog; ac_word=$2
11009 echo "$as_me:$LINENO: checking for $ac_word" >&5
11010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11011 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11012   echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014   if test -n "$ac_ct_F77"; then
11015   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11016 else
11017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018 for as_dir in $PATH
11019 do
11020   IFS=$as_save_IFS
11021   test -z "$as_dir" && as_dir=.
11022   for ac_exec_ext in '' $ac_executable_extensions; do
11023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11024     ac_cv_prog_ac_ct_F77="$ac_prog"
11025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11026     break 2
11027   fi
11028 done
11029 done
11030
11031 fi
11032 fi
11033 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11034 if test -n "$ac_ct_F77"; then
11035   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11036 echo "${ECHO_T}$ac_ct_F77" >&6
11037 else
11038   echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11040 fi
11041
11042   test -n "$ac_ct_F77" && break
11043 done
11044
11045   F77=$ac_ct_F77
11046 fi
11047
11048
11049 # Provide some information about the compiler.
11050 echo "$as_me:11034:" \
11051      "checking for Fortran 77 compiler version" >&5
11052 ac_compiler=`set X $ac_compile; echo $2`
11053 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11054   (eval $ac_compiler --version </dev/null >&5) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }
11058 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11059   (eval $ac_compiler -v </dev/null >&5) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }
11063 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11064   (eval $ac_compiler -V </dev/null >&5) 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }
11068 rm -f a.out
11069
11070 # If we don't use `.F' as extension, the preprocessor is not run on the
11071 # input file.  (Note that this only needs to work for GNU compilers.)
11072 ac_save_ext=$ac_ext
11073 ac_ext=F
11074 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11075 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11076 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079   cat >conftest.$ac_ext <<_ACEOF
11080       program main
11081 #ifndef __GNUC__
11082        choke me
11083 #endif
11084
11085       end
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089   (eval $ac_compile) 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_f77_werror_flag"
11097                          || test ! -s conftest.err'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest.$ac_objext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   ac_compiler_gnu=yes
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114 ac_compiler_gnu=no
11115 fi
11116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11117 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11118
11119 fi
11120 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11121 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11122 ac_ext=$ac_save_ext
11123 ac_test_FFLAGS=${FFLAGS+set}
11124 ac_save_FFLAGS=$FFLAGS
11125 FFLAGS=
11126 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11127 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11128 if test "${ac_cv_prog_f77_g+set}" = set; then
11129   echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131   FFLAGS=-g
11132 cat >conftest.$ac_ext <<_ACEOF
11133       program main
11134
11135       end
11136 _ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139   (eval $ac_compile) 2>conftest.er1
11140   ac_status=$?
11141   grep -v '^ *+' conftest.er1 >conftest.err
11142   rm -f conftest.er1
11143   cat conftest.err >&5
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } &&
11146          { ac_try='test -z "$ac_f77_werror_flag"
11147                          || test ! -s conftest.err'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; } &&
11153          { ac_try='test -s conftest.$ac_objext'
11154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155   (eval $ac_try) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; }; then
11159   ac_cv_prog_f77_g=yes
11160 else
11161   echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11163
11164 ac_cv_prog_f77_g=no
11165 fi
11166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11167
11168 fi
11169 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11170 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11171 if test "$ac_test_FFLAGS" = set; then
11172   FFLAGS=$ac_save_FFLAGS
11173 elif test $ac_cv_prog_f77_g = yes; then
11174   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11175     FFLAGS="-g -O2"
11176   else
11177     FFLAGS="-g"
11178   fi
11179 else
11180   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11181     FFLAGS="-O2"
11182   else
11183     FFLAGS=
11184   fi
11185 fi
11186
11187 G77=`test $ac_compiler_gnu = yes && echo yes`
11188 ac_ext=c
11189 ac_cpp='$CPP $CPPFLAGS'
11190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193
11194
11195
11196 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11197
11198 # find the maximum length of command line arguments
11199 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11200 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11201 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204     i=0
11205   teststring="ABCD"
11206
11207   case $build_os in
11208   msdosdjgpp*)
11209     # On DJGPP, this test can blow up pretty badly due to problems in libc
11210     # (any single argument exceeding 2000 bytes causes a buffer overrun
11211     # during glob expansion).  Even if it were fixed, the result of this
11212     # check would be larger than it should be.
11213     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11214     ;;
11215
11216   gnu*)
11217     # Under GNU Hurd, this test is not required because there is
11218     # no limit to the length of command line arguments.
11219     # Libtool will interpret -1 as no limit whatsoever
11220     lt_cv_sys_max_cmd_len=-1;
11221     ;;
11222
11223   cygwin* | mingw*)
11224     # On Win9x/ME, this test blows up -- it succeeds, but takes
11225     # about 5 minutes as the teststring grows exponentially.
11226     # Worse, since 9x/ME are not pre-emptively multitasking,
11227     # you end up with a "frozen" computer, even though with patience
11228     # the test eventually succeeds (with a max line length of 256k).
11229     # Instead, let's just punt: use the minimum linelength reported by
11230     # all of the supported platforms: 8192 (on NT/2K/XP).
11231     lt_cv_sys_max_cmd_len=8192;
11232     ;;
11233
11234   amigaos*)
11235     # On AmigaOS with pdksh, this test takes hours, literally.
11236     # So we just punt and use a minimum line length of 8192.
11237     lt_cv_sys_max_cmd_len=8192;
11238     ;;
11239
11240   netbsd* | freebsd* | openbsd* | darwin* )
11241     # This has been around since 386BSD, at least.  Likely further.
11242     if test -x /sbin/sysctl; then
11243       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11244     elif test -x /usr/sbin/sysctl; then
11245       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11246     else
11247       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11248     fi
11249     # And add a safety zone
11250     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11251     ;;
11252
11253  *)
11254     # If test is not a shell built-in, we'll probably end up computing a
11255     # maximum length that is only half of the actual maximum length, but
11256     # we can't tell.
11257     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11258     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11259                = "XX$teststring") >/dev/null 2>&1 &&
11260             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11261             lt_cv_sys_max_cmd_len=$new_result &&
11262             test $i != 17 # 1/2 MB should be enough
11263     do
11264       i=`expr $i + 1`
11265       teststring=$teststring$teststring
11266     done
11267     teststring=
11268     # Add a significant safety factor because C++ compilers can tack on massive
11269     # amounts of additional arguments before passing them to the linker.
11270     # It appears as though 1/2 is a usable value.
11271     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11272     ;;
11273   esac
11274
11275 fi
11276
11277 if test -n $lt_cv_sys_max_cmd_len ; then
11278   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11279 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11280 else
11281   echo "$as_me:$LINENO: result: none" >&5
11282 echo "${ECHO_T}none" >&6
11283 fi
11284
11285
11286
11287
11288 # Check for command to grab the raw symbol name followed by C symbol from nm.
11289 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11290 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11291 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294
11295 # These are sane defaults that work on at least a few old systems.
11296 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11297
11298 # Character class describing NM global symbol codes.
11299 symcode='[BCDEGRST]'
11300
11301 # Regexp to match symbols that can be accessed directly from C.
11302 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11303
11304 # Transform the above into a raw symbol and a C symbol.
11305 symxfrm='\1 \2\3 \3'
11306
11307 # Transform an extracted symbol line into a proper C declaration
11308 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11309
11310 # Transform an extracted symbol line into symbol name and symbol address
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
11313 # Define system-specific variables.
11314 case $host_os in
11315 aix*)
11316   symcode='[BCDT]'
11317   ;;
11318 cygwin* | mingw* | pw32*)
11319   symcode='[ABCDGISTW]'
11320   ;;
11321 hpux*) # Its linker distinguishes data from code symbols
11322   if test "$host_cpu" = ia64; then
11323     symcode='[ABCDEGRST]'
11324   fi
11325   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11326   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'"
11327   ;;
11328 linux*)
11329   if test "$host_cpu" = ia64; then
11330     symcode='[ABCDGIRSTW]'
11331     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11332     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'"
11333   fi
11334   ;;
11335 irix* | nonstopux*)
11336   symcode='[BCDEGRST]'
11337   ;;
11338 osf*)
11339   symcode='[BCDEGQRST]'
11340   ;;
11341 solaris* | sysv5*)
11342   symcode='[BDRT]'
11343   ;;
11344 sysv4)
11345   symcode='[DFNSTU]'
11346   ;;
11347 esac
11348
11349 # Handle CRLF in mingw tool chain
11350 opt_cr=
11351 case $build_os in
11352 mingw*)
11353   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11354   ;;
11355 esac
11356
11357 # If we're using GNU nm, then use its standard symbol codes.
11358 case `$NM -V 2>&1` in
11359 *GNU* | *'with BFD'*)
11360   symcode='[ABCDGIRSTW]' ;;
11361 esac
11362
11363 # Try without a prefix undercore, then with it.
11364 for ac_symprfx in "" "_"; do
11365
11366   # Write the raw and C identifiers.
11367   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11368
11369   # Check to see that the pipe works correctly.
11370   pipe_works=no
11371
11372   rm -f conftest*
11373   cat > conftest.$ac_ext <<EOF
11374 #ifdef __cplusplus
11375 extern "C" {
11376 #endif
11377 char nm_test_var;
11378 void nm_test_func(){}
11379 #ifdef __cplusplus
11380 }
11381 #endif
11382 int main(){nm_test_var='a';nm_test_func();return(0);}
11383 EOF
11384
11385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386   (eval $ac_compile) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); }; then
11390     # Now try to grab the symbols.
11391     nlist=conftest.nm
11392     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11393   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } && test -s "$nlist"; then
11397       # Try sorting and uniquifying the output.
11398       if sort "$nlist" | uniq > "$nlist"T; then
11399         mv -f "$nlist"T "$nlist"
11400       else
11401         rm -f "$nlist"T
11402       fi
11403
11404       # Make sure that we snagged all the symbols we need.
11405       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11406         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11407           cat <<EOF > conftest.$ac_ext
11408 #ifdef __cplusplus
11409 extern "C" {
11410 #endif
11411
11412 EOF
11413           # Now generate the symbol file.
11414           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11415
11416           cat <<EOF >> conftest.$ac_ext
11417 #if defined (__STDC__) && __STDC__
11418 # define lt_ptr_t void *
11419 #else
11420 # define lt_ptr_t char *
11421 # define const
11422 #endif
11423
11424 /* The mapping between symbol names and symbols. */
11425 const struct {
11426   const char *name;
11427   lt_ptr_t address;
11428 }
11429 lt_preloaded_symbols[] =
11430 {
11431 EOF
11432           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11433           cat <<\EOF >> conftest.$ac_ext
11434   {0, (lt_ptr_t) 0}
11435 };
11436
11437 #ifdef __cplusplus
11438 }
11439 #endif
11440 EOF
11441           # Now try linking the two files.
11442           mv conftest.$ac_objext conftstm.$ac_objext
11443           lt_save_LIBS="$LIBS"
11444           lt_save_CFLAGS="$CFLAGS"
11445           LIBS="conftstm.$ac_objext"
11446           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11447           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448   (eval $ac_link) 2>&5
11449   ac_status=$?
11450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11452             pipe_works=yes
11453           fi
11454           LIBS="$lt_save_LIBS"
11455           CFLAGS="$lt_save_CFLAGS"
11456         else
11457           echo "cannot find nm_test_func in $nlist" >&5
11458         fi
11459       else
11460         echo "cannot find nm_test_var in $nlist" >&5
11461       fi
11462     else
11463       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11464     fi
11465   else
11466     echo "$progname: failed program was:" >&5
11467     cat conftest.$ac_ext >&5
11468   fi
11469   rm -f conftest* conftst*
11470
11471   # Do not use the global_symbol_pipe unless it works.
11472   if test "$pipe_works" = yes; then
11473     break
11474   else
11475     lt_cv_sys_global_symbol_pipe=
11476   fi
11477 done
11478
11479 fi
11480
11481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11482   lt_cv_sys_global_symbol_to_cdecl=
11483 fi
11484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11485   echo "$as_me:$LINENO: result: failed" >&5
11486 echo "${ECHO_T}failed" >&6
11487 else
11488   echo "$as_me:$LINENO: result: ok" >&5
11489 echo "${ECHO_T}ok" >&6
11490 fi
11491
11492 echo "$as_me:$LINENO: checking for objdir" >&5
11493 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11494 if test "${lt_cv_objdir+set}" = set; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   rm -f .libs 2>/dev/null
11498 mkdir .libs 2>/dev/null
11499 if test -d .libs; then
11500   lt_cv_objdir=.libs
11501 else
11502   # MS-DOS does not allow filenames that begin with a dot.
11503   lt_cv_objdir=_libs
11504 fi
11505 rmdir .libs 2>/dev/null
11506 fi
11507 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11508 echo "${ECHO_T}$lt_cv_objdir" >&6
11509 objdir=$lt_cv_objdir
11510
11511
11512
11513
11514
11515 case $host_os in
11516 aix3*)
11517   # AIX sometimes has problems with the GCC collect2 program.  For some
11518   # reason, if we set the COLLECT_NAMES environment variable, the problems
11519   # vanish in a puff of smoke.
11520   if test "X${COLLECT_NAMES+set}" != Xset; then
11521     COLLECT_NAMES=
11522     export COLLECT_NAMES
11523   fi
11524   ;;
11525 esac
11526
11527 # Sed substitution that helps us do robust quoting.  It backslashifies
11528 # metacharacters that are still active within double-quoted strings.
11529 Xsed='sed -e s/^X//'
11530 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11531
11532 # Same as above, but do not quote variable references.
11533 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11534
11535 # Sed substitution to delay expansion of an escaped shell variable in a
11536 # double_quote_subst'ed string.
11537 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11538
11539 # Sed substitution to avoid accidental globbing in evaled expressions
11540 no_glob_subst='s/\*/\\\*/g'
11541
11542 # Constants:
11543 rm="rm -f"
11544
11545 # Global variables:
11546 default_ofile=mklib
11547 can_build_shared=yes
11548
11549 # All known linkers require a `.a' archive for static linking (except M$VC,
11550 # which needs '.lib').
11551 libext=a
11552 ltmain="$ac_aux_dir/ltmain.sh"
11553 ofile="$default_ofile"
11554 with_gnu_ld="$lt_cv_prog_gnu_ld"
11555
11556 if test -n "$ac_tool_prefix"; then
11557   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11558 set dummy ${ac_tool_prefix}ar; ac_word=$2
11559 echo "$as_me:$LINENO: checking for $ac_word" >&5
11560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11561 if test "${ac_cv_prog_AR+set}" = set; then
11562   echo $ECHO_N "(cached) $ECHO_C" >&6
11563 else
11564   if test -n "$AR"; then
11565   ac_cv_prog_AR="$AR" # Let the user override the test.
11566 else
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570   IFS=$as_save_IFS
11571   test -z "$as_dir" && as_dir=.
11572   for ac_exec_ext in '' $ac_executable_extensions; do
11573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574     ac_cv_prog_AR="${ac_tool_prefix}ar"
11575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11576     break 2
11577   fi
11578 done
11579 done
11580
11581 fi
11582 fi
11583 AR=$ac_cv_prog_AR
11584 if test -n "$AR"; then
11585   echo "$as_me:$LINENO: result: $AR" >&5
11586 echo "${ECHO_T}$AR" >&6
11587 else
11588   echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6
11590 fi
11591
11592 fi
11593 if test -z "$ac_cv_prog_AR"; then
11594   ac_ct_AR=$AR
11595   # Extract the first word of "ar", so it can be a program name with args.
11596 set dummy ar; ac_word=$2
11597 echo "$as_me:$LINENO: checking for $ac_word" >&5
11598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   if test -n "$ac_ct_AR"; then
11603   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11604 else
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11607 do
11608   IFS=$as_save_IFS
11609   test -z "$as_dir" && as_dir=.
11610   for ac_exec_ext in '' $ac_executable_extensions; do
11611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612     ac_cv_prog_ac_ct_AR="ar"
11613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614     break 2
11615   fi
11616 done
11617 done
11618
11619   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11620 fi
11621 fi
11622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11623 if test -n "$ac_ct_AR"; then
11624   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11625 echo "${ECHO_T}$ac_ct_AR" >&6
11626 else
11627   echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11629 fi
11630
11631   AR=$ac_ct_AR
11632 else
11633   AR="$ac_cv_prog_AR"
11634 fi
11635
11636 if test -n "$ac_tool_prefix"; then
11637   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11638 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11639 echo "$as_me:$LINENO: checking for $ac_word" >&5
11640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11641 if test "${ac_cv_prog_RANLIB+set}" = set; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   if test -n "$RANLIB"; then
11645   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650   IFS=$as_save_IFS
11651   test -z "$as_dir" && as_dir=.
11652   for ac_exec_ext in '' $ac_executable_extensions; do
11653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656     break 2
11657   fi
11658 done
11659 done
11660
11661 fi
11662 fi
11663 RANLIB=$ac_cv_prog_RANLIB
11664 if test -n "$RANLIB"; then
11665   echo "$as_me:$LINENO: result: $RANLIB" >&5
11666 echo "${ECHO_T}$RANLIB" >&6
11667 else
11668   echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6
11670 fi
11671
11672 fi
11673 if test -z "$ac_cv_prog_RANLIB"; then
11674   ac_ct_RANLIB=$RANLIB
11675   # Extract the first word of "ranlib", so it can be a program name with args.
11676 set dummy ranlib; ac_word=$2
11677 echo "$as_me:$LINENO: checking for $ac_word" >&5
11678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11679 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682   if test -n "$ac_ct_RANLIB"; then
11683   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11684 else
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690   for ac_exec_ext in '' $ac_executable_extensions; do
11691   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_prog_ac_ct_RANLIB="ranlib"
11693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697 done
11698
11699   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11700 fi
11701 fi
11702 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11703 if test -n "$ac_ct_RANLIB"; then
11704   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11705 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11706 else
11707   echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11709 fi
11710
11711   RANLIB=$ac_ct_RANLIB
11712 else
11713   RANLIB="$ac_cv_prog_RANLIB"
11714 fi
11715
11716 if test -n "$ac_tool_prefix"; then
11717   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11718 set dummy ${ac_tool_prefix}strip; ac_word=$2
11719 echo "$as_me:$LINENO: checking for $ac_word" >&5
11720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11721 if test "${ac_cv_prog_STRIP+set}" = set; then
11722   echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724   if test -n "$STRIP"; then
11725   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11726 else
11727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11728 for as_dir in $PATH
11729 do
11730   IFS=$as_save_IFS
11731   test -z "$as_dir" && as_dir=.
11732   for ac_exec_ext in '' $ac_executable_extensions; do
11733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11734     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736     break 2
11737   fi
11738 done
11739 done
11740
11741 fi
11742 fi
11743 STRIP=$ac_cv_prog_STRIP
11744 if test -n "$STRIP"; then
11745   echo "$as_me:$LINENO: result: $STRIP" >&5
11746 echo "${ECHO_T}$STRIP" >&6
11747 else
11748   echo "$as_me:$LINENO: result: no" >&5
11749 echo "${ECHO_T}no" >&6
11750 fi
11751
11752 fi
11753 if test -z "$ac_cv_prog_STRIP"; then
11754   ac_ct_STRIP=$STRIP
11755   # Extract the first word of "strip", so it can be a program name with args.
11756 set dummy strip; ac_word=$2
11757 echo "$as_me:$LINENO: checking for $ac_word" >&5
11758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11759 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   if test -n "$ac_ct_STRIP"; then
11763   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11767 do
11768   IFS=$as_save_IFS
11769   test -z "$as_dir" && as_dir=.
11770   for ac_exec_ext in '' $ac_executable_extensions; do
11771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772     ac_cv_prog_ac_ct_STRIP="strip"
11773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774     break 2
11775   fi
11776 done
11777 done
11778
11779   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11780 fi
11781 fi
11782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11783 if test -n "$ac_ct_STRIP"; then
11784   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11785 echo "${ECHO_T}$ac_ct_STRIP" >&6
11786 else
11787   echo "$as_me:$LINENO: result: no" >&5
11788 echo "${ECHO_T}no" >&6
11789 fi
11790
11791   STRIP=$ac_ct_STRIP
11792 else
11793   STRIP="$ac_cv_prog_STRIP"
11794 fi
11795
11796
11797 old_CC="$CC"
11798 old_CFLAGS="$CFLAGS"
11799
11800 # Set sane defaults for various variables
11801 test -z "$AR" && AR=ar
11802 test -z "$AR_FLAGS" && AR_FLAGS=cru
11803 test -z "$AS" && AS=as
11804 test -z "$CC" && CC=cc
11805 test -z "$LTCC" && LTCC=$CC
11806 test -z "$DLLTOOL" && DLLTOOL=dlltool
11807 test -z "$LD" && LD=ld
11808 test -z "$LN_S" && LN_S="ln -s"
11809 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11810 test -z "$NM" && NM=nm
11811 test -z "$SED" && SED=sed
11812 test -z "$OBJDUMP" && OBJDUMP=objdump
11813 test -z "$RANLIB" && RANLIB=:
11814 test -z "$STRIP" && STRIP=:
11815 test -z "$ac_objext" && ac_objext=o
11816
11817 # Determine commands to create old-style static archives.
11818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11819 old_postinstall_cmds='chmod 644 $oldlib'
11820 old_postuninstall_cmds=
11821
11822 if test -n "$RANLIB"; then
11823   case $host_os in
11824   openbsd*)
11825     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11826     ;;
11827   *)
11828     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11829     ;;
11830   esac
11831   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11832 fi
11833
11834 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11835
11836 # Only perform the check for file, if the check method requires it
11837 case $deplibs_check_method in
11838 file_magic*)
11839   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11840     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11841 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11842 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11843   echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845   case $MAGIC_CMD in
11846 [\\/*] |  ?:[\\/]*)
11847   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11848   ;;
11849 *)
11850   lt_save_MAGIC_CMD="$MAGIC_CMD"
11851   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11852   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11853   for ac_dir in $ac_dummy; do
11854     IFS="$lt_save_ifs"
11855     test -z "$ac_dir" && ac_dir=.
11856     if test -f $ac_dir/${ac_tool_prefix}file; then
11857       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11858       if test -n "$file_magic_test_file"; then
11859         case $deplibs_check_method in
11860         "file_magic "*)
11861           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11862           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11863           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11864             $EGREP "$file_magic_regex" > /dev/null; then
11865             :
11866           else
11867             cat <<EOF 1>&2
11868
11869 *** Warning: the command libtool uses to detect shared libraries,
11870 *** $file_magic_cmd, produces output that libtool cannot recognize.
11871 *** The result is that libtool may fail to recognize shared libraries
11872 *** as such.  This will affect the creation of libtool libraries that
11873 *** depend on shared libraries, but programs linked with such libtool
11874 *** libraries will work regardless of this problem.  Nevertheless, you
11875 *** may want to report the problem to your system manager and/or to
11876 *** bug-libtool@gnu.org
11877
11878 EOF
11879           fi ;;
11880         esac
11881       fi
11882       break
11883     fi
11884   done
11885   IFS="$lt_save_ifs"
11886   MAGIC_CMD="$lt_save_MAGIC_CMD"
11887   ;;
11888 esac
11889 fi
11890
11891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11892 if test -n "$MAGIC_CMD"; then
11893   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11894 echo "${ECHO_T}$MAGIC_CMD" >&6
11895 else
11896   echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11898 fi
11899
11900 if test -z "$lt_cv_path_MAGIC_CMD"; then
11901   if test -n "$ac_tool_prefix"; then
11902     echo "$as_me:$LINENO: checking for file" >&5
11903 echo $ECHO_N "checking for file... $ECHO_C" >&6
11904 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 else
11907   case $MAGIC_CMD in
11908 [\\/*] |  ?:[\\/]*)
11909   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11910   ;;
11911 *)
11912   lt_save_MAGIC_CMD="$MAGIC_CMD"
11913   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11914   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11915   for ac_dir in $ac_dummy; do
11916     IFS="$lt_save_ifs"
11917     test -z "$ac_dir" && ac_dir=.
11918     if test -f $ac_dir/file; then
11919       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11920       if test -n "$file_magic_test_file"; then
11921         case $deplibs_check_method in
11922         "file_magic "*)
11923           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11924           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11925           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11926             $EGREP "$file_magic_regex" > /dev/null; then
11927             :
11928           else
11929             cat <<EOF 1>&2
11930
11931 *** Warning: the command libtool uses to detect shared libraries,
11932 *** $file_magic_cmd, produces output that libtool cannot recognize.
11933 *** The result is that libtool may fail to recognize shared libraries
11934 *** as such.  This will affect the creation of libtool libraries that
11935 *** depend on shared libraries, but programs linked with such libtool
11936 *** libraries will work regardless of this problem.  Nevertheless, you
11937 *** may want to report the problem to your system manager and/or to
11938 *** bug-libtool@gnu.org
11939
11940 EOF
11941           fi ;;
11942         esac
11943       fi
11944       break
11945     fi
11946   done
11947   IFS="$lt_save_ifs"
11948   MAGIC_CMD="$lt_save_MAGIC_CMD"
11949   ;;
11950 esac
11951 fi
11952
11953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11954 if test -n "$MAGIC_CMD"; then
11955   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11956 echo "${ECHO_T}$MAGIC_CMD" >&6
11957 else
11958   echo "$as_me:$LINENO: result: no" >&5
11959 echo "${ECHO_T}no" >&6
11960 fi
11961
11962   else
11963     MAGIC_CMD=:
11964   fi
11965 fi
11966
11967   fi
11968   ;;
11969 esac
11970
11971 enable_dlopen=yes
11972 enable_win32_dll=no
11973
11974 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11975 if test "${enable_libtool_lock+set}" = set; then
11976   enableval="$enable_libtool_lock"
11977
11978 fi;
11979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11980
11981
11982 # Check whether --with-pic or --without-pic was given.
11983 if test "${with_pic+set}" = set; then
11984   withval="$with_pic"
11985   pic_mode="$withval"
11986 else
11987   pic_mode=default
11988 fi;
11989 test -z "$pic_mode" && pic_mode=default
11990
11991 # Use C for the default configuration in the libtool script
11992 tagname=
11993 lt_save_CC="$CC"
11994 ac_ext=c
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11999
12000
12001 # Source file extension for C test sources.
12002 ac_ext=c
12003
12004 # Object file extension for compiled C test sources.
12005 objext=o
12006 objext=$objext
12007
12008 # Code to be used in simple compile tests
12009 lt_simple_compile_test_code="int some_variable = 0;\n"
12010
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code='int main(){return(0);}\n'
12013
12014
12015 # If no C compiler was specified, use CC.
12016 LTCC=${LTCC-"$CC"}
12017
12018 # Allow CC to be a program name with arguments.
12019 compiler=$CC
12020
12021
12022 #
12023 # Check for any special shared library compilation flags.
12024 #
12025 lt_prog_cc_shlib=
12026 if test "$GCC" = no; then
12027   case $host_os in
12028   sco3.2v5*)
12029     lt_prog_cc_shlib='-belf'
12030     ;;
12031   esac
12032 fi
12033 if test -n "$lt_prog_cc_shlib"; then
12034   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12035 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12036   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12037   else
12038     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12039 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12040     lt_cv_prog_cc_can_build_shared=no
12041   fi
12042 fi
12043
12044
12045 #
12046 # Check to make sure the static flag actually works.
12047 #
12048 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12049 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12050 if test "${lt_prog_compiler_static_works+set}" = set; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053   lt_prog_compiler_static_works=no
12054    save_LDFLAGS="$LDFLAGS"
12055    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12056    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12057    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12058      # The compiler can only warn and ignore the option if not recognized
12059      # So say no if there are warnings
12060      if test -s conftest.err; then
12061        # Append any errors to the config.log.
12062        cat conftest.err 1>&5
12063      else
12064        lt_prog_compiler_static_works=yes
12065      fi
12066    fi
12067    $rm conftest*
12068    LDFLAGS="$save_LDFLAGS"
12069
12070 fi
12071 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12072 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12073
12074 if test x"$lt_prog_compiler_static_works" = xyes; then
12075     :
12076 else
12077     lt_prog_compiler_static=
12078 fi
12079
12080
12081
12082
12083 lt_prog_compiler_no_builtin_flag=
12084
12085 if test "$GCC" = yes; then
12086   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12087
12088
12089 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12090 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   lt_cv_prog_compiler_rtti_exceptions=no
12095   ac_outfile=conftest.$ac_objext
12096    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12097    lt_compiler_flag="-fno-rtti -fno-exceptions"
12098    # Insert the option either (1) after the last *FLAGS variable, or
12099    # (2) before a word containing "conftest.", or (3) at the end.
12100    # Note that $ac_compile itself does not contain backslashes and begins
12101    # with a dollar sign (not a hyphen), so the echo should work correctly.
12102    # The option is referenced via a variable to avoid confusing sed.
12103    lt_compile=`echo "$ac_compile" | $SED \
12104    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106    -e 's:$: $lt_compiler_flag:'`
12107    (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
12108    (eval "$lt_compile" 2>conftest.err)
12109    ac_status=$?
12110    cat conftest.err >&5
12111    echo "$as_me:12095: \$? = $ac_status" >&5
12112    if (exit $ac_status) && test -s "$ac_outfile"; then
12113      # The compiler can only warn and ignore the option if not recognized
12114      # So say no if there are warnings
12115      if test ! -s conftest.err; then
12116        lt_cv_prog_compiler_rtti_exceptions=yes
12117      fi
12118    fi
12119    $rm conftest*
12120
12121 fi
12122 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12123 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12124
12125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12126     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12127 else
12128     :
12129 fi
12130
12131 fi
12132
12133 lt_prog_compiler_wl=
12134 lt_prog_compiler_pic=
12135 lt_prog_compiler_static=
12136
12137 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12139
12140   if test "$GCC" = yes; then
12141     lt_prog_compiler_wl='-Wl,'
12142     lt_prog_compiler_static='-static'
12143
12144     case $host_os in
12145       aix*)
12146       # All AIX code is PIC.
12147       if test "$host_cpu" = ia64; then
12148         # AIX 5 now supports IA64 processor
12149         lt_prog_compiler_static='-Bstatic'
12150       fi
12151       ;;
12152
12153     amigaos*)
12154       # FIXME: we need at least 68020 code to build shared libraries, but
12155       # adding the `-m68020' flag to GCC prevents building anything better,
12156       # like `-m68040'.
12157       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12158       ;;
12159
12160     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12161       # PIC is the default for these OSes.
12162       ;;
12163
12164     mingw* | pw32* | os2*)
12165       # This hack is so that the source file can tell whether it is being
12166       # built for inclusion in a dll (and should export symbols for example).
12167       lt_prog_compiler_pic='-DDLL_EXPORT'
12168       ;;
12169
12170     darwin* | rhapsody*)
12171       # PIC is the default on this platform
12172       # Common symbols not allowed in MH_DYLIB files
12173       lt_prog_compiler_pic='-fno-common'
12174       ;;
12175
12176     msdosdjgpp*)
12177       # Just because we use GCC doesn't mean we suddenly get shared libraries
12178       # on systems that don't support them.
12179       lt_prog_compiler_can_build_shared=no
12180       enable_shared=no
12181       ;;
12182
12183     sysv4*MP*)
12184       if test -d /usr/nec; then
12185         lt_prog_compiler_pic=-Kconform_pic
12186       fi
12187       ;;
12188
12189     hpux*)
12190       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12191       # not for PA HP-UX.
12192       case "$host_cpu" in
12193       hppa*64*|ia64*)
12194         # +Z the default
12195         ;;
12196       *)
12197         lt_prog_compiler_pic='-fPIC'
12198         ;;
12199       esac
12200       ;;
12201
12202     *)
12203       lt_prog_compiler_pic='-fPIC'
12204       ;;
12205     esac
12206   else
12207     # PORTME Check for flag to pass linker flags through the system compiler.
12208     case $host_os in
12209     aix*)
12210       lt_prog_compiler_wl='-Wl,'
12211       if test "$host_cpu" = ia64; then
12212         # AIX 5 now supports IA64 processor
12213         lt_prog_compiler_static='-Bstatic'
12214       else
12215         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12216       fi
12217       ;;
12218       darwin*)
12219         # PIC is the default on this platform
12220         # Common symbols not allowed in MH_DYLIB files
12221        case "$cc_basename" in
12222          xlc*)
12223          lt_prog_compiler_pic='-qnocommon'
12224          lt_prog_compiler_wl='-Wl,'
12225          ;;
12226        esac
12227        ;;
12228
12229     mingw* | pw32* | os2*)
12230       # This hack is so that the source file can tell whether it is being
12231       # built for inclusion in a dll (and should export symbols for example).
12232       lt_prog_compiler_pic='-DDLL_EXPORT'
12233       ;;
12234
12235     hpux9* | hpux10* | hpux11*)
12236       lt_prog_compiler_wl='-Wl,'
12237       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12238       # not for PA HP-UX.
12239       case "$host_cpu" in
12240       hppa*64*|ia64*)
12241         # +Z the default
12242         ;;
12243       *)
12244         lt_prog_compiler_pic='+Z'
12245         ;;
12246       esac
12247       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12248       lt_prog_compiler_static='${wl}-a ${wl}archive'
12249       ;;
12250
12251     irix5* | irix6* | nonstopux*)
12252       lt_prog_compiler_wl='-Wl,'
12253       # PIC (with -KPIC) is the default.
12254       lt_prog_compiler_static='-non_shared'
12255       ;;
12256
12257     newsos6)
12258       lt_prog_compiler_pic='-KPIC'
12259       lt_prog_compiler_static='-Bstatic'
12260       ;;
12261
12262     linux*)
12263       case $CC in
12264       icc* | ecc*)
12265         lt_prog_compiler_wl='-Wl,'
12266         lt_prog_compiler_pic='-KPIC'
12267         lt_prog_compiler_static='-static'
12268         ;;
12269       ccc*)
12270         lt_prog_compiler_wl='-Wl,'
12271         # All Alpha code is PIC.
12272         lt_prog_compiler_static='-non_shared'
12273         ;;
12274       esac
12275       ;;
12276
12277     osf3* | osf4* | osf5*)
12278       lt_prog_compiler_wl='-Wl,'
12279       # All OSF/1 code is PIC.
12280       lt_prog_compiler_static='-non_shared'
12281       ;;
12282
12283     sco3.2v5*)
12284       lt_prog_compiler_pic='-Kpic'
12285       lt_prog_compiler_static='-dn'
12286       ;;
12287
12288     solaris*)
12289       lt_prog_compiler_wl='-Wl,'
12290       lt_prog_compiler_pic='-KPIC'
12291       lt_prog_compiler_static='-Bstatic'
12292       ;;
12293
12294     sunos4*)
12295       lt_prog_compiler_wl='-Qoption ld '
12296       lt_prog_compiler_pic='-PIC'
12297       lt_prog_compiler_static='-Bstatic'
12298       ;;
12299
12300     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12301       lt_prog_compiler_wl='-Wl,'
12302       lt_prog_compiler_pic='-KPIC'
12303       lt_prog_compiler_static='-Bstatic'
12304       ;;
12305
12306     sysv4*MP*)
12307       if test -d /usr/nec ;then
12308         lt_prog_compiler_pic='-Kconform_pic'
12309         lt_prog_compiler_static='-Bstatic'
12310       fi
12311       ;;
12312
12313     uts4*)
12314       lt_prog_compiler_pic='-pic'
12315       lt_prog_compiler_static='-Bstatic'
12316       ;;
12317
12318     *)
12319       lt_prog_compiler_can_build_shared=no
12320       ;;
12321     esac
12322   fi
12323
12324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12325 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12326
12327 #
12328 # Check to make sure the PIC flag actually works.
12329 #
12330 if test -n "$lt_prog_compiler_pic"; then
12331
12332 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12333 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12334 if test "${lt_prog_compiler_pic_works+set}" = set; then
12335   echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337   lt_prog_compiler_pic_works=no
12338   ac_outfile=conftest.$ac_objext
12339    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12340    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12341    # Insert the option either (1) after the last *FLAGS variable, or
12342    # (2) before a word containing "conftest.", or (3) at the end.
12343    # Note that $ac_compile itself does not contain backslashes and begins
12344    # with a dollar sign (not a hyphen), so the echo should work correctly.
12345    # The option is referenced via a variable to avoid confusing sed.
12346    lt_compile=`echo "$ac_compile" | $SED \
12347    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12349    -e 's:$: $lt_compiler_flag:'`
12350    (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12351    (eval "$lt_compile" 2>conftest.err)
12352    ac_status=$?
12353    cat conftest.err >&5
12354    echo "$as_me:12338: \$? = $ac_status" >&5
12355    if (exit $ac_status) && test -s "$ac_outfile"; then
12356      # The compiler can only warn and ignore the option if not recognized
12357      # So say no if there are warnings
12358      if test ! -s conftest.err; then
12359        lt_prog_compiler_pic_works=yes
12360      fi
12361    fi
12362    $rm conftest*
12363
12364 fi
12365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12366 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12367
12368 if test x"$lt_prog_compiler_pic_works" = xyes; then
12369     case $lt_prog_compiler_pic in
12370      "" | " "*) ;;
12371      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12372      esac
12373 else
12374     lt_prog_compiler_pic=
12375      lt_prog_compiler_can_build_shared=no
12376 fi
12377
12378 fi
12379 case "$host_os" in
12380   # For platforms which do not support PIC, -DPIC is meaningless:
12381   *djgpp*)
12382     lt_prog_compiler_pic=
12383     ;;
12384   *)
12385     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12386     ;;
12387 esac
12388
12389 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12390 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12391 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12392   echo $ECHO_N "(cached) $ECHO_C" >&6
12393 else
12394   lt_cv_prog_compiler_c_o=no
12395    $rm -r conftest 2>/dev/null
12396    mkdir conftest
12397    cd conftest
12398    mkdir out
12399    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12400
12401    lt_compiler_flag="-o out/conftest2.$ac_objext"
12402    # Insert the option either (1) after the last *FLAGS variable, or
12403    # (2) before a word containing "conftest.", or (3) at the end.
12404    # Note that $ac_compile itself does not contain backslashes and begins
12405    # with a dollar sign (not a hyphen), so the echo should work correctly.
12406    lt_compile=`echo "$ac_compile" | $SED \
12407    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12408    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12409    -e 's:$: $lt_compiler_flag:'`
12410    (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12411    (eval "$lt_compile" 2>out/conftest.err)
12412    ac_status=$?
12413    cat out/conftest.err >&5
12414    echo "$as_me:12398: \$? = $ac_status" >&5
12415    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12416    then
12417      # The compiler can only warn and ignore the option if not recognized
12418      # So say no if there are warnings
12419      if test ! -s out/conftest.err; then
12420        lt_cv_prog_compiler_c_o=yes
12421      fi
12422    fi
12423    chmod u+w .
12424    $rm conftest*
12425    # SGI C++ compiler will create directory out/ii_files/ for
12426    # template instantiation
12427    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12428    $rm out/* && rmdir out
12429    cd ..
12430    rmdir conftest
12431    $rm conftest*
12432
12433 fi
12434 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12435 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12436
12437
12438 hard_links="nottested"
12439 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12440   # do not overwrite the value of need_locks provided by the user
12441   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12442 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12443   hard_links=yes
12444   $rm conftest*
12445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446   touch conftest.a
12447   ln conftest.a conftest.b 2>&5 || hard_links=no
12448   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12449   echo "$as_me:$LINENO: result: $hard_links" >&5
12450 echo "${ECHO_T}$hard_links" >&6
12451   if test "$hard_links" = no; then
12452     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12453 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12454     need_locks=warn
12455   fi
12456 else
12457   need_locks=no
12458 fi
12459
12460 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12461 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12462
12463   runpath_var=
12464   allow_undefined_flag=
12465   enable_shared_with_static_runtimes=no
12466   archive_cmds=
12467   archive_expsym_cmds=
12468   old_archive_From_new_cmds=
12469   old_archive_from_expsyms_cmds=
12470   export_dynamic_flag_spec=
12471   whole_archive_flag_spec=
12472   thread_safe_flag_spec=
12473   hardcode_libdir_flag_spec=
12474   hardcode_libdir_flag_spec_ld=
12475   hardcode_libdir_separator=
12476   hardcode_direct=no
12477   hardcode_minus_L=no
12478   hardcode_shlibpath_var=unsupported
12479   link_all_deplibs=unknown
12480   hardcode_automatic=no
12481   module_cmds=
12482   module_expsym_cmds=
12483   always_export_symbols=no
12484   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12485   # include_expsyms should be a list of space-separated symbols to be *always*
12486   # included in the symbol list
12487   include_expsyms=
12488   # exclude_expsyms can be an extended regexp of symbols to exclude
12489   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12490   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12491   # as well as any symbol that contains `d'.
12492   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12493   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12494   # platforms (ab)use it in PIC code, but their linkers get confused if
12495   # the symbol is explicitly referenced.  Since portable code cannot
12496   # rely on this symbol name, it's probably fine to never include it in
12497   # preloaded symbol tables.
12498   extract_expsyms_cmds=
12499
12500   case $host_os in
12501   cygwin* | mingw* | pw32*)
12502     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12503     # When not using gcc, we currently assume that we are using
12504     # Microsoft Visual C++.
12505     if test "$GCC" != yes; then
12506       with_gnu_ld=no
12507     fi
12508     ;;
12509   openbsd*)
12510     with_gnu_ld=no
12511     ;;
12512   esac
12513
12514   ld_shlibs=yes
12515   if test "$with_gnu_ld" = yes; then
12516     # If archive_cmds runs LD, not CC, wlarc should be empty
12517     wlarc='${wl}'
12518
12519     # See if GNU ld supports shared libraries.
12520     case $host_os in
12521     aix3* | aix4* | aix5*)
12522       # On AIX/PPC, the GNU linker is very broken
12523       if test "$host_cpu" != ia64; then
12524         ld_shlibs=no
12525         cat <<EOF 1>&2
12526
12527 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12528 *** to be unable to reliably create shared libraries on AIX.
12529 *** Therefore, libtool is disabling shared libraries support.  If you
12530 *** really care for shared libraries, you may want to modify your PATH
12531 *** so that a non-GNU linker is found, and then restart.
12532
12533 EOF
12534       fi
12535       ;;
12536
12537     amigaos*)
12538       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)'
12539       hardcode_libdir_flag_spec='-L$libdir'
12540       hardcode_minus_L=yes
12541
12542       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12543       # that the semantics of dynamic libraries on AmigaOS, at least up
12544       # to version 4, is to share data among multiple programs linked
12545       # with the same dynamic library.  Since this doesn't match the
12546       # behavior of shared libraries on other platforms, we can't use
12547       # them.
12548       ld_shlibs=no
12549       ;;
12550
12551     beos*)
12552       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12553         allow_undefined_flag=unsupported
12554         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12555         # support --undefined.  This deserves some investigation.  FIXME
12556         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557       else
12558         ld_shlibs=no
12559       fi
12560       ;;
12561
12562     cygwin* | mingw* | pw32*)
12563       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12564       # as there is no search path for DLLs.
12565       hardcode_libdir_flag_spec='-L$libdir'
12566       allow_undefined_flag=unsupported
12567       always_export_symbols=no
12568       enable_shared_with_static_runtimes=yes
12569       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12570
12571       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12572         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12573         # If the export-symbols file already is a .def file (1st line
12574         # is EXPORTS), use it as is; otherwise, prepend...
12575         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12576           cp $export_symbols $output_objdir/$soname.def;
12577         else
12578           echo EXPORTS > $output_objdir/$soname.def;
12579           cat $export_symbols >> $output_objdir/$soname.def;
12580         fi~
12581         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12582       else
12583         ld_shlibs=no
12584       fi
12585       ;;
12586
12587     netbsd*)
12588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12589         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12590         wlarc=
12591       else
12592         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12593         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12594       fi
12595       ;;
12596
12597     solaris* | sysv5*)
12598       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12599         ld_shlibs=no
12600         cat <<EOF 1>&2
12601
12602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12603 *** create shared libraries on Solaris systems.  Therefore, libtool
12604 *** is disabling shared libraries support.  We urge you to upgrade GNU
12605 *** binutils to release 2.9.1 or newer.  Another option is to modify
12606 *** your PATH or compiler configuration so that the native linker is
12607 *** used, and then restart.
12608
12609 EOF
12610       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12613       else
12614         ld_shlibs=no
12615       fi
12616       ;;
12617
12618     sunos4*)
12619       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12620       wlarc=
12621       hardcode_direct=yes
12622       hardcode_shlibpath_var=no
12623       ;;
12624
12625   linux*)
12626     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12627         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12628         archive_cmds="$tmp_archive_cmds"
12629       supports_anon_versioning=no
12630       case `$LD -v 2>/dev/null` in
12631         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12632         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12633         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12634         *\ 2.11.*) ;; # other 2.11 versions
12635         *) supports_anon_versioning=yes ;;
12636       esac
12637       if test $supports_anon_versioning = yes; then
12638         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12640 $echo "local: *; };" >> $output_objdir/$libname.ver~
12641         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12642       else
12643         archive_expsym_cmds="$tmp_archive_cmds"
12644       fi
12645     else
12646       ld_shlibs=no
12647     fi
12648     ;;
12649
12650     *)
12651       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12652         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12654       else
12655         ld_shlibs=no
12656       fi
12657       ;;
12658     esac
12659
12660     if test "$ld_shlibs" = yes; then
12661       runpath_var=LD_RUN_PATH
12662       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12663       export_dynamic_flag_spec='${wl}--export-dynamic'
12664       # ancient GNU ld didn't support --whole-archive et. al.
12665       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12666         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12667       else
12668         whole_archive_flag_spec=
12669       fi
12670     fi
12671   else
12672     # PORTME fill in a description of your system's linker (not GNU ld)
12673     case $host_os in
12674     aix3*)
12675       allow_undefined_flag=unsupported
12676       always_export_symbols=yes
12677       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'
12678       # Note: this linker hardcodes the directories in LIBPATH if there
12679       # are no directories specified by -L.
12680       hardcode_minus_L=yes
12681       if test "$GCC" = yes && test -z "$link_static_flag"; then
12682         # Neither direct hardcoding nor static linking is supported with a
12683         # broken collect2.
12684         hardcode_direct=unsupported
12685       fi
12686       ;;
12687
12688     aix4* | aix5*)
12689       if test "$host_cpu" = ia64; then
12690         # On IA64, the linker does run time linking by default, so we don't
12691         # have to do anything special.
12692         aix_use_runtimelinking=no
12693         exp_sym_flag='-Bexport'
12694         no_entry_flag=""
12695       else
12696         # If we're using GNU nm, then we don't want the "-C" option.
12697         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12698         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12699           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'
12700         else
12701           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'
12702         fi
12703         aix_use_runtimelinking=no
12704
12705         # Test if we are trying to use run time linking or normal
12706         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12707         # need to do runtime linking.
12708         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12709           for ld_flag in $LDFLAGS; do
12710           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12711             aix_use_runtimelinking=yes
12712             break
12713           fi
12714           done
12715         esac
12716
12717         exp_sym_flag='-bexport'
12718         no_entry_flag='-bnoentry'
12719       fi
12720
12721       # When large executables or shared objects are built, AIX ld can
12722       # have problems creating the table of contents.  If linking a library
12723       # or program results in "error TOC overflow" add -mminimal-toc to
12724       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12725       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12726
12727       archive_cmds=''
12728       hardcode_direct=yes
12729       hardcode_libdir_separator=':'
12730       link_all_deplibs=yes
12731
12732       if test "$GCC" = yes; then
12733         case $host_os in aix4.012|aix4.012.*)
12734         # We only want to do this on AIX 4.2 and lower, the check
12735         # below for broken collect2 doesn't work under 4.3+
12736           collect2name=`${CC} -print-prog-name=collect2`
12737           if test -f "$collect2name" && \
12738            strings "$collect2name" | grep resolve_lib_name >/dev/null
12739           then
12740           # We have reworked collect2
12741           hardcode_direct=yes
12742           else
12743           # We have old collect2
12744           hardcode_direct=unsupported
12745           # It fails to find uninstalled libraries when the uninstalled
12746           # path is not listed in the libpath.  Setting hardcode_minus_L
12747           # to unsupported forces relinking
12748           hardcode_minus_L=yes
12749           hardcode_libdir_flag_spec='-L$libdir'
12750           hardcode_libdir_separator=
12751           fi
12752         esac
12753         shared_flag='-shared'
12754       else
12755         # not using gcc
12756         if test "$host_cpu" = ia64; then
12757         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12758         # chokes on -Wl,-G. The following line is correct:
12759           shared_flag='-G'
12760         else
12761         if test "$aix_use_runtimelinking" = yes; then
12762             shared_flag='${wl}-G'
12763           else
12764             shared_flag='${wl}-bM:SRE'
12765         fi
12766         fi
12767       fi
12768
12769       # It seems that -bexpall does not export symbols beginning with
12770       # underscore (_), so it is better to generate a list of symbols to export.
12771       always_export_symbols=yes
12772       if test "$aix_use_runtimelinking" = yes; then
12773         # Warning - without using the other runtime loading flags (-brtl),
12774         # -berok will link without error, but may produce a broken library.
12775         allow_undefined_flag='-berok'
12776        # Determine the default libpath from the value encoded in an empty executable.
12777        cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783
12784 int
12785 main ()
12786 {
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794   (eval $ac_link) 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } &&
12801          { ac_try='test -z "$ac_c_werror_flag"
12802                          || test ! -s conftest.err'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; } &&
12808          { ac_try='test -s conftest$ac_exeext'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814
12815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12816 }'`
12817 # Check for a 64-bit object if we didn't find anything.
12818 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; }
12819 }'`; fi
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 fi
12825 rm -f conftest.err conftest.$ac_objext \
12826       conftest$ac_exeext conftest.$ac_ext
12827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12828
12829        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12830         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"
12831        else
12832         if test "$host_cpu" = ia64; then
12833           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12834           allow_undefined_flag="-z nodefs"
12835           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"
12836         else
12837          # Determine the default libpath from the value encoded in an empty executable.
12838          cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 int
12846 main ()
12847 {
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12855   (eval $ac_link) 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } &&
12862          { ac_try='test -z "$ac_c_werror_flag"
12863                          || test ! -s conftest.err'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; } &&
12869          { ac_try='test -s conftest$ac_exeext'
12870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871   (eval $ac_try) 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; }; then
12875
12876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12877 }'`
12878 # Check for a 64-bit object if we didn't find anything.
12879 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; }
12880 }'`; fi
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885 fi
12886 rm -f conftest.err conftest.$ac_objext \
12887       conftest$ac_exeext conftest.$ac_ext
12888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12889
12890          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12891           # Warning - without using the other run time loading flags,
12892           # -berok will link without error, but may produce a broken library.
12893           no_undefined_flag=' ${wl}-bernotok'
12894           allow_undefined_flag=' ${wl}-berok'
12895           # -bexpall does not export symbols beginning with underscore (_)
12896           always_export_symbols=yes
12897           # Exported symbols can be pulled into shared objects from archives
12898           whole_archive_flag_spec=' '
12899           archive_cmds_need_lc=yes
12900           # This is similar to how AIX traditionally builds it's shared libraries.
12901           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'
12902         fi
12903       fi
12904       ;;
12905
12906     amigaos*)
12907       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)'
12908       hardcode_libdir_flag_spec='-L$libdir'
12909       hardcode_minus_L=yes
12910       # see comment about different semantics on the GNU ld section
12911       ld_shlibs=no
12912       ;;
12913
12914     bsdi[45]*)
12915       export_dynamic_flag_spec=-rdynamic
12916       ;;
12917
12918     cygwin* | mingw* | pw32*)
12919       # When not using gcc, we currently assume that we are using
12920       # Microsoft Visual C++.
12921       # hardcode_libdir_flag_spec is actually meaningless, as there is
12922       # no search path for DLLs.
12923       hardcode_libdir_flag_spec=' '
12924       allow_undefined_flag=unsupported
12925       # Tell ltmain to make .lib files, not .a files.
12926       libext=lib
12927       # Tell ltmain to make .dll files, not .so files.
12928       shrext_cmds=".dll"
12929       # FIXME: Setting linknames here is a bad hack.
12930       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12931       # The linker will automatically build a .lib file if we build a DLL.
12932       old_archive_From_new_cmds='true'
12933       # FIXME: Should let the user specify the lib program.
12934       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12935       fix_srcfile_path='`cygpath -w "$srcfile"`'
12936       enable_shared_with_static_runtimes=yes
12937       ;;
12938
12939     darwin* | rhapsody*)
12940       case "$host_os" in
12941         rhapsody* | darwin1.[012])
12942          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12943          ;;
12944        *) # Darwin 1.3 on
12945          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12946            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12947          else
12948            case ${MACOSX_DEPLOYMENT_TARGET} in
12949              10.[012])
12950                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12951                ;;
12952              10.*)
12953                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12954                ;;
12955            esac
12956          fi
12957          ;;
12958       esac
12959       archive_cmds_need_lc=no
12960       hardcode_direct=no
12961       hardcode_automatic=yes
12962       hardcode_shlibpath_var=unsupported
12963       whole_archive_flag_spec=''
12964       link_all_deplibs=yes
12965     if test "$GCC" = yes ; then
12966         output_verbose_link_cmd='echo'
12967         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12968       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12969       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12970       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}'
12971       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}'
12972     else
12973       case "$cc_basename" in
12974         xlc*)
12975          output_verbose_link_cmd='echo'
12976          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12977          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12978           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12979          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}'
12980           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}'
12981           ;;
12982        *)
12983          ld_shlibs=no
12984           ;;
12985       esac
12986     fi
12987       ;;
12988
12989     dgux*)
12990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991       hardcode_libdir_flag_spec='-L$libdir'
12992       hardcode_shlibpath_var=no
12993       ;;
12994
12995     freebsd1*)
12996       ld_shlibs=no
12997       ;;
12998
12999     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13000     # support.  Future versions do this automatically, but an explicit c++rt0.o
13001     # does not break anything, and helps significantly (at the cost of a little
13002     # extra space).
13003     freebsd2.2*)
13004       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13005       hardcode_libdir_flag_spec='-R$libdir'
13006       hardcode_direct=yes
13007       hardcode_shlibpath_var=no
13008       ;;
13009
13010     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13011     freebsd2*)
13012       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13013       hardcode_direct=yes
13014       hardcode_minus_L=yes
13015       hardcode_shlibpath_var=no
13016       ;;
13017
13018     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13019     freebsd* | kfreebsd*-gnu)
13020       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13021       hardcode_libdir_flag_spec='-R$libdir'
13022       hardcode_direct=yes
13023       hardcode_shlibpath_var=no
13024       ;;
13025
13026     hpux9*)
13027       if test "$GCC" = yes; then
13028         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'
13029       else
13030         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'
13031       fi
13032       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13033       hardcode_libdir_separator=:
13034       hardcode_direct=yes
13035
13036       # hardcode_minus_L: Not really in the search PATH,
13037       # but as the default location of the library.
13038       hardcode_minus_L=yes
13039       export_dynamic_flag_spec='${wl}-E'
13040       ;;
13041
13042     hpux10* | hpux11*)
13043       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13044         case "$host_cpu" in
13045         hppa*64*|ia64*)
13046           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13047           ;;
13048         *)
13049           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13050           ;;
13051         esac
13052       else
13053         case "$host_cpu" in
13054         hppa*64*|ia64*)
13055           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13056           ;;
13057         *)
13058           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13059           ;;
13060         esac
13061       fi
13062       if test "$with_gnu_ld" = no; then
13063         case "$host_cpu" in
13064         hppa*64*)
13065           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066           hardcode_libdir_flag_spec_ld='+b $libdir'
13067           hardcode_libdir_separator=:
13068           hardcode_direct=no
13069           hardcode_shlibpath_var=no
13070           ;;
13071         ia64*)
13072           hardcode_libdir_flag_spec='-L$libdir'
13073           hardcode_direct=no
13074           hardcode_shlibpath_var=no
13075
13076           # hardcode_minus_L: Not really in the search PATH,
13077           # but as the default location of the library.
13078           hardcode_minus_L=yes
13079           ;;
13080         *)
13081           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13082           hardcode_libdir_separator=:
13083           hardcode_direct=yes
13084           export_dynamic_flag_spec='${wl}-E'
13085
13086           # hardcode_minus_L: Not really in the search PATH,
13087           # but as the default location of the library.
13088           hardcode_minus_L=yes
13089           ;;
13090         esac
13091       fi
13092       ;;
13093
13094     irix5* | irix6* | nonstopux*)
13095       if test "$GCC" = yes; then
13096         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'
13097       else
13098         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'
13099         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13100       fi
13101       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13102       hardcode_libdir_separator=:
13103       link_all_deplibs=yes
13104       ;;
13105
13106     netbsd*)
13107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13108         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13109       else
13110         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13111       fi
13112       hardcode_libdir_flag_spec='-R$libdir'
13113       hardcode_direct=yes
13114       hardcode_shlibpath_var=no
13115       ;;
13116
13117     newsos6)
13118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119       hardcode_direct=yes
13120       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13121       hardcode_libdir_separator=:
13122       hardcode_shlibpath_var=no
13123       ;;
13124
13125     openbsd*)
13126       hardcode_direct=yes
13127       hardcode_shlibpath_var=no
13128       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13130         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13131         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13132         export_dynamic_flag_spec='${wl}-E'
13133       else
13134        case $host_os in
13135          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13136            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13137            hardcode_libdir_flag_spec='-R$libdir'
13138            ;;
13139          *)
13140            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13141            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13142            ;;
13143        esac
13144       fi
13145       ;;
13146
13147     os2*)
13148       hardcode_libdir_flag_spec='-L$libdir'
13149       hardcode_minus_L=yes
13150       allow_undefined_flag=unsupported
13151       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'
13152       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13153       ;;
13154
13155     osf3*)
13156       if test "$GCC" = yes; then
13157         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13158         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'
13159       else
13160         allow_undefined_flag=' -expect_unresolved \*'
13161         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'
13162       fi
13163       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13164       hardcode_libdir_separator=:
13165       ;;
13166
13167     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13168       if test "$GCC" = yes; then
13169         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13170         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'
13171         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13172       else
13173         allow_undefined_flag=' -expect_unresolved \*'
13174         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'
13175         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13176         $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'
13177
13178         # Both c and cxx compiler support -rpath directly
13179         hardcode_libdir_flag_spec='-rpath $libdir'
13180       fi
13181       hardcode_libdir_separator=:
13182       ;;
13183
13184     sco3.2v5*)
13185       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186       hardcode_shlibpath_var=no
13187       export_dynamic_flag_spec='${wl}-Bexport'
13188       runpath_var=LD_RUN_PATH
13189       hardcode_runpath_var=yes
13190       ;;
13191
13192     solaris*)
13193       no_undefined_flag=' -z text'
13194       if test "$GCC" = yes; then
13195         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13196         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13197           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13198       else
13199         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13200         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13201         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13202       fi
13203       hardcode_libdir_flag_spec='-R$libdir'
13204       hardcode_shlibpath_var=no
13205       case $host_os in
13206       solaris2.[0-5] | solaris2.[0-5].*) ;;
13207       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13208         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13209       esac
13210       link_all_deplibs=yes
13211       ;;
13212
13213     sunos4*)
13214       if test "x$host_vendor" = xsequent; then
13215         # Use $CC to link under sequent, because it throws in some extra .o
13216         # files that make .init and .fini sections work.
13217         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13218       else
13219         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13220       fi
13221       hardcode_libdir_flag_spec='-L$libdir'
13222       hardcode_direct=yes
13223       hardcode_minus_L=yes
13224       hardcode_shlibpath_var=no
13225       ;;
13226
13227     sysv4)
13228       case $host_vendor in
13229         sni)
13230           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13231           hardcode_direct=yes # is this really true???
13232         ;;
13233         siemens)
13234           ## LD is ld it makes a PLAMLIB
13235           ## CC just makes a GrossModule.
13236           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13237           reload_cmds='$CC -r -o $output$reload_objs'
13238           hardcode_direct=no
13239         ;;
13240         motorola)
13241           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13243         ;;
13244       esac
13245       runpath_var='LD_RUN_PATH'
13246       hardcode_shlibpath_var=no
13247       ;;
13248
13249     sysv4.3*)
13250       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13251       hardcode_shlibpath_var=no
13252       export_dynamic_flag_spec='-Bexport'
13253       ;;
13254
13255     sysv4*MP*)
13256       if test -d /usr/nec; then
13257         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13258         hardcode_shlibpath_var=no
13259         runpath_var=LD_RUN_PATH
13260         hardcode_runpath_var=yes
13261         ld_shlibs=yes
13262       fi
13263       ;;
13264
13265     sysv4.2uw2*)
13266       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13267       hardcode_direct=yes
13268       hardcode_minus_L=no
13269       hardcode_shlibpath_var=no
13270       hardcode_runpath_var=yes
13271       runpath_var=LD_RUN_PATH
13272       ;;
13273
13274    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13275       no_undefined_flag='${wl}-z ${wl}text'
13276       if test "$GCC" = yes; then
13277         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13278       else
13279         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13280       fi
13281       runpath_var='LD_RUN_PATH'
13282       hardcode_shlibpath_var=no
13283       ;;
13284
13285     sysv5*)
13286       no_undefined_flag=' -z text'
13287       # $CC -shared without GNU ld will not create a library from C++
13288       # object files and a static libstdc++, better avoid it by now
13289       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13290       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13291                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13292       hardcode_libdir_flag_spec=
13293       hardcode_shlibpath_var=no
13294       runpath_var='LD_RUN_PATH'
13295       ;;
13296
13297     uts4*)
13298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299       hardcode_libdir_flag_spec='-L$libdir'
13300       hardcode_shlibpath_var=no
13301       ;;
13302
13303     *)
13304       ld_shlibs=no
13305       ;;
13306     esac
13307   fi
13308
13309 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13310 echo "${ECHO_T}$ld_shlibs" >&6
13311 test "$ld_shlibs" = no && can_build_shared=no
13312
13313 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13314 if test "$GCC" = yes; then
13315   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13316 fi
13317
13318 #
13319 # Do we need to explicitly link libc?
13320 #
13321 case "x$archive_cmds_need_lc" in
13322 x|xyes)
13323   # Assume -lc should be added
13324   archive_cmds_need_lc=yes
13325
13326   if test "$enable_shared" = yes && test "$GCC" = yes; then
13327     case $archive_cmds in
13328     *'~'*)
13329       # FIXME: we may have to deal with multi-command sequences.
13330       ;;
13331     '$CC '*)
13332       # Test whether the compiler implicitly links with -lc since on some
13333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13334       # to ld, don't add -lc before -lgcc.
13335       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13336 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13337       $rm conftest*
13338       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13339
13340       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341   (eval $ac_compile) 2>&5
13342   ac_status=$?
13343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344   (exit $ac_status); } 2>conftest.err; then
13345         soname=conftest
13346         lib=conftest
13347         libobjs=conftest.$ac_objext
13348         deplibs=
13349         wl=$lt_prog_compiler_wl
13350         compiler_flags=-v
13351         linker_flags=-v
13352         verstring=
13353         output_objdir=.
13354         libname=conftest
13355         lt_save_allow_undefined_flag=$allow_undefined_flag
13356         allow_undefined_flag=
13357         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13358   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }
13362         then
13363           archive_cmds_need_lc=no
13364         else
13365           archive_cmds_need_lc=yes
13366         fi
13367         allow_undefined_flag=$lt_save_allow_undefined_flag
13368       else
13369         cat conftest.err 1>&5
13370       fi
13371       $rm conftest*
13372       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13373 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13374       ;;
13375     esac
13376   fi
13377   ;;
13378 esac
13379
13380 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13381 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13382 library_names_spec=
13383 libname_spec='lib$name'
13384 soname_spec=
13385 shrext_cmds=".so"
13386 postinstall_cmds=
13387 postuninstall_cmds=
13388 finish_cmds=
13389 finish_eval=
13390 shlibpath_var=
13391 shlibpath_overrides_runpath=unknown
13392 version_type=none
13393 dynamic_linker="$host_os ld.so"
13394 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13395 if test "$GCC" = yes; then
13396   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13397   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13398     # if the path contains ";" then we assume it to be the separator
13399     # otherwise default to the standard path separator (i.e. ":") - it is
13400     # assumed that no part of a normal pathname contains ";" but that should
13401     # okay in the real world where ";" in dirpaths is itself problematic.
13402     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13403   else
13404     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13405   fi
13406 else
13407   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13408 fi
13409 need_lib_prefix=unknown
13410 hardcode_into_libs=no
13411
13412 # when you set need_version to no, make sure it does not cause -set_version
13413 # flags to be left without arguments
13414 need_version=unknown
13415
13416 case $host_os in
13417 aix3*)
13418   version_type=linux
13419   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13420   shlibpath_var=LIBPATH
13421
13422   # AIX 3 has no versioning support, so we append a major version to the name.
13423   soname_spec='${libname}${release}${shared_ext}$major'
13424   ;;
13425
13426 aix4* | aix5*)
13427   version_type=linux
13428   need_lib_prefix=no
13429   need_version=no
13430   hardcode_into_libs=yes
13431   if test "$host_cpu" = ia64; then
13432     # AIX 5 supports IA64
13433     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13434     shlibpath_var=LD_LIBRARY_PATH
13435   else
13436     # With GCC up to 2.95.x, collect2 would create an import file
13437     # for dependence libraries.  The import file would start with
13438     # the line `#! .'.  This would cause the generated library to
13439     # depend on `.', always an invalid library.  This was fixed in
13440     # development snapshots of GCC prior to 3.0.
13441     case $host_os in
13442       aix4 | aix4.[01] | aix4.[01].*)
13443       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13444            echo ' yes '
13445            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13446         :
13447       else
13448         can_build_shared=no
13449       fi
13450       ;;
13451     esac
13452     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13453     # soname into executable. Probably we can add versioning support to
13454     # collect2, so additional links can be useful in future.
13455     if test "$aix_use_runtimelinking" = yes; then
13456       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13457       # instead of lib<name>.a to let people know that these are not
13458       # typical AIX shared libraries.
13459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460     else
13461       # We preserve .a as extension for shared libraries through AIX4.2
13462       # and later when we are not doing run time linking.
13463       library_names_spec='${libname}${release}.a $libname.a'
13464       soname_spec='${libname}${release}${shared_ext}$major'
13465     fi
13466     shlibpath_var=LIBPATH
13467   fi
13468   ;;
13469
13470 amigaos*)
13471   library_names_spec='$libname.ixlibrary $libname.a'
13472   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13473   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'
13474   ;;
13475
13476 beos*)
13477   library_names_spec='${libname}${shared_ext}'
13478   dynamic_linker="$host_os ld.so"
13479   shlibpath_var=LIBRARY_PATH
13480   ;;
13481
13482 bsdi[45]*)
13483   version_type=linux
13484   need_version=no
13485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486   soname_spec='${libname}${release}${shared_ext}$major'
13487   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13490   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13491   # the default ld.so.conf also contains /usr/contrib/lib and
13492   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13493   # libtool to hard-code these into programs
13494   ;;
13495
13496 cygwin* | mingw* | pw32*)
13497   version_type=windows
13498   shrext_cmds=".dll"
13499   need_version=no
13500   need_lib_prefix=no
13501
13502   case $GCC,$host_os in
13503   yes,cygwin* | yes,mingw* | yes,pw32*)
13504     library_names_spec='$libname.dll.a'
13505     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13506     postinstall_cmds='base_file=`basename \${file}`~
13507       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13508       dldir=$destdir/`dirname \$dlpath`~
13509       test -d \$dldir || mkdir -p \$dldir~
13510       $install_prog $dir/$dlname \$dldir/$dlname'
13511     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13512       dlpath=$dir/\$dldll~
13513        $rm \$dlpath'
13514     shlibpath_overrides_runpath=yes
13515
13516     case $host_os in
13517     cygwin*)
13518       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13519       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13520       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13521       ;;
13522     mingw*)
13523       # MinGW DLLs use traditional 'lib' prefix
13524       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13525       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13526       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13527         # It is most probably a Windows format PATH printed by
13528         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13529         # path with ; separators, and with drive letters. We can handle the
13530         # drive letters (cygwin fileutils understands them), so leave them,
13531         # especially as we might pass files found there to a mingw objdump,
13532         # which wouldn't understand a cygwinified path. Ahh.
13533         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13534       else
13535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13536       fi
13537       ;;
13538     pw32*)
13539       # pw32 DLLs use 'pw' prefix rather than 'lib'
13540       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13541       ;;
13542     esac
13543     ;;
13544
13545   *)
13546     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13547     ;;
13548   esac
13549   dynamic_linker='Win32 ld.exe'
13550   # FIXME: first we should search . and the directory the executable is in
13551   shlibpath_var=PATH
13552   ;;
13553
13554 darwin* | rhapsody*)
13555   dynamic_linker="$host_os dyld"
13556   version_type=darwin
13557   need_lib_prefix=no
13558   need_version=no
13559   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13560   soname_spec='${libname}${release}${major}$shared_ext'
13561   shlibpath_overrides_runpath=yes
13562   shlibpath_var=DYLD_LIBRARY_PATH
13563   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13564   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13565   if test "$GCC" = yes; then
13566     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"`
13567   else
13568     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13569   fi
13570   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13571   ;;
13572
13573 dgux*)
13574   version_type=linux
13575   need_lib_prefix=no
13576   need_version=no
13577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13578   soname_spec='${libname}${release}${shared_ext}$major'
13579   shlibpath_var=LD_LIBRARY_PATH
13580   ;;
13581
13582 freebsd1*)
13583   dynamic_linker=no
13584   ;;
13585
13586 kfreebsd*-gnu)
13587   version_type=linux
13588   need_lib_prefix=no
13589   need_version=no
13590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13591   soname_spec='${libname}${release}${shared_ext}$major'
13592   shlibpath_var=LD_LIBRARY_PATH
13593   shlibpath_overrides_runpath=no
13594   hardcode_into_libs=yes
13595   dynamic_linker='GNU ld.so'
13596   ;;
13597
13598 freebsd*)
13599   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13600   version_type=freebsd-$objformat
13601   case $version_type in
13602     freebsd-elf*)
13603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13604       need_version=no
13605       need_lib_prefix=no
13606       ;;
13607     freebsd-*)
13608       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13609       need_version=yes
13610       ;;
13611   esac
13612   shlibpath_var=LD_LIBRARY_PATH
13613   case $host_os in
13614   freebsd2*)
13615     shlibpath_overrides_runpath=yes
13616     ;;
13617   freebsd3.01* | freebsdelf3.01*)
13618     shlibpath_overrides_runpath=yes
13619     hardcode_into_libs=yes
13620     ;;
13621   *) # from 3.2 on
13622     shlibpath_overrides_runpath=no
13623     hardcode_into_libs=yes
13624     ;;
13625   esac
13626   ;;
13627
13628 gnu*)
13629   version_type=linux
13630   need_lib_prefix=no
13631   need_version=no
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13633   soname_spec='${libname}${release}${shared_ext}$major'
13634   shlibpath_var=LD_LIBRARY_PATH
13635   hardcode_into_libs=yes
13636   ;;
13637
13638 hpux9* | hpux10* | hpux11*)
13639   # Give a soname corresponding to the major version so that dld.sl refuses to
13640   # link against other versions.
13641   version_type=sunos
13642   need_lib_prefix=no
13643   need_version=no
13644   case "$host_cpu" in
13645   ia64*)
13646     shrext_cmds='.so'
13647     hardcode_into_libs=yes
13648     dynamic_linker="$host_os dld.so"
13649     shlibpath_var=LD_LIBRARY_PATH
13650     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652     soname_spec='${libname}${release}${shared_ext}$major'
13653     if test "X$HPUX_IA64_MODE" = X32; then
13654       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13655     else
13656       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13657     fi
13658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13659     ;;
13660    hppa*64*)
13661      shrext_cmds='.sl'
13662      hardcode_into_libs=yes
13663      dynamic_linker="$host_os dld.sl"
13664      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13665      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13666      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667      soname_spec='${libname}${release}${shared_ext}$major'
13668      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13669      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13670      ;;
13671    *)
13672     shrext_cmds='.sl'
13673     dynamic_linker="$host_os dld.sl"
13674     shlibpath_var=SHLIB_PATH
13675     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677     soname_spec='${libname}${release}${shared_ext}$major'
13678     ;;
13679   esac
13680   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13681   postinstall_cmds='chmod 555 $lib'
13682   ;;
13683
13684 irix5* | irix6* | nonstopux*)
13685   case $host_os in
13686     nonstopux*) version_type=nonstopux ;;
13687     *)
13688         if test "$lt_cv_prog_gnu_ld" = yes; then
13689                 version_type=linux
13690         else
13691                 version_type=irix
13692         fi ;;
13693   esac
13694   need_lib_prefix=no
13695   need_version=no
13696   soname_spec='${libname}${release}${shared_ext}$major'
13697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13698   case $host_os in
13699   irix5* | nonstopux*)
13700     libsuff= shlibsuff=
13701     ;;
13702   *)
13703     case $LD in # libtool.m4 will add one of these switches to LD
13704     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13705       libsuff= shlibsuff= libmagic=32-bit;;
13706     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13707       libsuff=32 shlibsuff=N32 libmagic=N32;;
13708     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13709       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13710     *) libsuff= shlibsuff= libmagic=never-match;;
13711     esac
13712     ;;
13713   esac
13714   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13715   shlibpath_overrides_runpath=no
13716   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13717   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13718   hardcode_into_libs=yes
13719   ;;
13720
13721 # No shared lib support for Linux oldld, aout, or coff.
13722 linux*oldld* | linux*aout* | linux*coff*)
13723   dynamic_linker=no
13724   ;;
13725
13726 # This must be Linux ELF.
13727 linux*)
13728   version_type=linux
13729   need_lib_prefix=no
13730   need_version=no
13731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732   soname_spec='${libname}${release}${shared_ext}$major'
13733   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13734   shlibpath_var=LD_LIBRARY_PATH
13735   shlibpath_overrides_runpath=no
13736   # This implies no fast_install, which is unacceptable.
13737   # Some rework will be needed to allow for fast_install
13738   # before this can be enabled.
13739   hardcode_into_libs=yes
13740
13741   # Append ld.so.conf contents to the search path
13742   if test -f /etc/ld.so.conf; then
13743     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13744     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13745   fi
13746
13747   # We used to test for /lib/ld.so.1 and disable shared libraries on
13748   # powerpc, because MkLinux only supported shared libraries with the
13749   # GNU dynamic linker.  Since this was broken with cross compilers,
13750   # most powerpc-linux boxes support dynamic linking these days and
13751   # people can always --disable-shared, the test was removed, and we
13752   # assume the GNU/Linux dynamic linker is in use.
13753   dynamic_linker='GNU/Linux ld.so'
13754   ;;
13755
13756 knetbsd*-gnu)
13757   version_type=linux
13758   need_lib_prefix=no
13759   need_version=no
13760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13761   soname_spec='${libname}${release}${shared_ext}$major'
13762   shlibpath_var=LD_LIBRARY_PATH
13763   shlibpath_overrides_runpath=no
13764   hardcode_into_libs=yes
13765   dynamic_linker='GNU ld.so'
13766   ;;
13767
13768 netbsd*)
13769   version_type=sunos
13770   need_lib_prefix=no
13771   need_version=no
13772   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13774     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775     dynamic_linker='NetBSD (a.out) ld.so'
13776   else
13777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13778     soname_spec='${libname}${release}${shared_ext}$major'
13779     dynamic_linker='NetBSD ld.elf_so'
13780   fi
13781   shlibpath_var=LD_LIBRARY_PATH
13782   shlibpath_overrides_runpath=yes
13783   hardcode_into_libs=yes
13784   ;;
13785
13786 newsos6)
13787   version_type=linux
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789   shlibpath_var=LD_LIBRARY_PATH
13790   shlibpath_overrides_runpath=yes
13791   ;;
13792
13793 nto-qnx*)
13794   version_type=linux
13795   need_lib_prefix=no
13796   need_version=no
13797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13798   soname_spec='${libname}${release}${shared_ext}$major'
13799   shlibpath_var=LD_LIBRARY_PATH
13800   shlibpath_overrides_runpath=yes
13801   ;;
13802
13803 openbsd*)
13804   version_type=sunos
13805   need_lib_prefix=no
13806   need_version=no
13807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13808   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13809   shlibpath_var=LD_LIBRARY_PATH
13810   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13811     case $host_os in
13812       openbsd2.[89] | openbsd2.[89].*)
13813         shlibpath_overrides_runpath=no
13814         ;;
13815       *)
13816         shlibpath_overrides_runpath=yes
13817         ;;
13818       esac
13819   else
13820     shlibpath_overrides_runpath=yes
13821   fi
13822   ;;
13823
13824 os2*)
13825   libname_spec='$name'
13826   shrext_cmds=".dll"
13827   need_lib_prefix=no
13828   library_names_spec='$libname${shared_ext} $libname.a'
13829   dynamic_linker='OS/2 ld.exe'
13830   shlibpath_var=LIBPATH
13831   ;;
13832
13833 osf3* | osf4* | osf5*)
13834   version_type=osf
13835   need_lib_prefix=no
13836   need_version=no
13837   soname_spec='${libname}${release}${shared_ext}$major'
13838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13839   shlibpath_var=LD_LIBRARY_PATH
13840   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13841   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13842   ;;
13843
13844 sco3.2v5*)
13845   version_type=osf
13846   soname_spec='${libname}${release}${shared_ext}$major'
13847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13848   shlibpath_var=LD_LIBRARY_PATH
13849   ;;
13850
13851 solaris*)
13852   version_type=linux
13853   need_lib_prefix=no
13854   need_version=no
13855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13856   soname_spec='${libname}${release}${shared_ext}$major'
13857   shlibpath_var=LD_LIBRARY_PATH
13858   shlibpath_overrides_runpath=yes
13859   hardcode_into_libs=yes
13860   # ldd complains unless libraries are executable
13861   postinstall_cmds='chmod +x $lib'
13862   ;;
13863
13864 sunos4*)
13865   version_type=sunos
13866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13867   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13868   shlibpath_var=LD_LIBRARY_PATH
13869   shlibpath_overrides_runpath=yes
13870   if test "$with_gnu_ld" = yes; then
13871     need_lib_prefix=no
13872   fi
13873   need_version=yes
13874   ;;
13875
13876 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13877   version_type=linux
13878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879   soname_spec='${libname}${release}${shared_ext}$major'
13880   shlibpath_var=LD_LIBRARY_PATH
13881   case $host_vendor in
13882     sni)
13883       shlibpath_overrides_runpath=no
13884       need_lib_prefix=no
13885       export_dynamic_flag_spec='${wl}-Blargedynsym'
13886       runpath_var=LD_RUN_PATH
13887       ;;
13888     siemens)
13889       need_lib_prefix=no
13890       ;;
13891     motorola)
13892       need_lib_prefix=no
13893       need_version=no
13894       shlibpath_overrides_runpath=no
13895       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13896       ;;
13897   esac
13898   ;;
13899
13900 sysv4*MP*)
13901   if test -d /usr/nec ;then
13902     version_type=linux
13903     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13904     soname_spec='$libname${shared_ext}.$major'
13905     shlibpath_var=LD_LIBRARY_PATH
13906   fi
13907   ;;
13908
13909 uts4*)
13910   version_type=linux
13911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   shlibpath_var=LD_LIBRARY_PATH
13914   ;;
13915
13916 *)
13917   dynamic_linker=no
13918   ;;
13919 esac
13920 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13921 echo "${ECHO_T}$dynamic_linker" >&6
13922 test "$dynamic_linker" = no && can_build_shared=no
13923
13924 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13925 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13926 hardcode_action=
13927 if test -n "$hardcode_libdir_flag_spec" || \
13928    test -n "$runpath_var" || \
13929    test "X$hardcode_automatic" = "Xyes" ; then
13930
13931   # We can hardcode non-existant directories.
13932   if test "$hardcode_direct" != no &&
13933      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13934      # have to relink, otherwise we might link with an installed library
13935      # when we should be linking with a yet-to-be-installed one
13936      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13937      test "$hardcode_minus_L" != no; then
13938     # Linking always hardcodes the temporary library directory.
13939     hardcode_action=relink
13940   else
13941     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13942     hardcode_action=immediate
13943   fi
13944 else
13945   # We cannot hardcode anything, or else we can only hardcode existing
13946   # directories.
13947   hardcode_action=unsupported
13948 fi
13949 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13950 echo "${ECHO_T}$hardcode_action" >&6
13951
13952 if test "$hardcode_action" = relink; then
13953   # Fast installation is not supported
13954   enable_fast_install=no
13955 elif test "$shlibpath_overrides_runpath" = yes ||
13956      test "$enable_shared" = no; then
13957   # Fast installation is not necessary
13958   enable_fast_install=needless
13959 fi
13960
13961 striplib=
13962 old_striplib=
13963 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13964 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13965 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13966   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13967   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13968   echo "$as_me:$LINENO: result: yes" >&5
13969 echo "${ECHO_T}yes" >&6
13970 else
13971 # FIXME - insert some real tests, host_os isn't really good enough
13972   case $host_os in
13973    darwin*)
13974        if test -n "$STRIP" ; then
13975          striplib="$STRIP -x"
13976          echo "$as_me:$LINENO: result: yes" >&5
13977 echo "${ECHO_T}yes" >&6
13978        else
13979   echo "$as_me:$LINENO: result: no" >&5
13980 echo "${ECHO_T}no" >&6
13981 fi
13982        ;;
13983    *)
13984   echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6
13986     ;;
13987   esac
13988 fi
13989
13990 if test "x$enable_dlopen" != xyes; then
13991   enable_dlopen=unknown
13992   enable_dlopen_self=unknown
13993   enable_dlopen_self_static=unknown
13994 else
13995   lt_cv_dlopen=no
13996   lt_cv_dlopen_libs=
13997
13998   case $host_os in
13999   beos*)
14000     lt_cv_dlopen="load_add_on"
14001     lt_cv_dlopen_libs=
14002     lt_cv_dlopen_self=yes
14003     ;;
14004
14005   mingw* | pw32*)
14006     lt_cv_dlopen="LoadLibrary"
14007     lt_cv_dlopen_libs=
14008    ;;
14009
14010   cygwin*)
14011     lt_cv_dlopen="dlopen"
14012     lt_cv_dlopen_libs=
14013    ;;
14014
14015   darwin*)
14016   # if libdl is installed we need to link against it
14017     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   ac_check_lib_save_LIBS=$LIBS
14023 LIBS="-ldl  $LIBS"
14024 cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030
14031 /* Override any gcc2 internal prototype to avoid an error.  */
14032 #ifdef __cplusplus
14033 extern "C"
14034 #endif
14035 /* We use char because int might match the return type of a gcc2
14036    builtin and then its argument prototype would still apply.  */
14037 char dlopen ();
14038 int
14039 main ()
14040 {
14041 dlopen ();
14042   ;
14043   return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048   (eval $ac_link) 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } &&
14055          { ac_try='test -z "$ac_c_werror_flag"
14056                          || test ! -s conftest.err'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; } &&
14062          { ac_try='test -s conftest$ac_exeext'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068   ac_cv_lib_dl_dlopen=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_cv_lib_dl_dlopen=no
14074 fi
14075 rm -f conftest.err conftest.$ac_objext \
14076       conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14080 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14081 if test $ac_cv_lib_dl_dlopen = yes; then
14082   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14083 else
14084
14085     lt_cv_dlopen="dyld"
14086     lt_cv_dlopen_libs=
14087     lt_cv_dlopen_self=yes
14088
14089 fi
14090
14091    ;;
14092
14093   *)
14094     echo "$as_me:$LINENO: checking for shl_load" >&5
14095 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14096 if test "${ac_cv_func_shl_load+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14107 #define shl_load innocuous_shl_load
14108
14109 /* System header to define __stub macros and hopefully few prototypes,
14110     which can conflict with char shl_load (); below.
14111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14112     <limits.h> exists even on freestanding compilers.  */
14113
14114 #ifdef __STDC__
14115 # include <limits.h>
14116 #else
14117 # include <assert.h>
14118 #endif
14119
14120 #undef shl_load
14121
14122 /* Override any gcc2 internal prototype to avoid an error.  */
14123 #ifdef __cplusplus
14124 extern "C"
14125 {
14126 #endif
14127 /* We use char because int might match the return type of a gcc2
14128    builtin and then its argument prototype would still apply.  */
14129 char shl_load ();
14130 /* The GNU C library defines this for functions which it implements
14131     to always fail with ENOSYS.  Some functions are actually named
14132     something starting with __ and the normal name is an alias.  */
14133 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14134 choke me
14135 #else
14136 char (*f) () = shl_load;
14137 #endif
14138 #ifdef __cplusplus
14139 }
14140 #endif
14141
14142 int
14143 main ()
14144 {
14145 return f != shl_load;
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest.$ac_objext conftest$ac_exeext
14151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152   (eval $ac_link) 2>conftest.er1
14153   ac_status=$?
14154   grep -v '^ *+' conftest.er1 >conftest.err
14155   rm -f conftest.er1
14156   cat conftest.err >&5
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } &&
14159          { ac_try='test -z "$ac_c_werror_flag"
14160                          || test ! -s conftest.err'
14161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162   (eval $ac_try) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); }; } &&
14166          { ac_try='test -s conftest$ac_exeext'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_cv_func_shl_load=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_cv_func_shl_load=no
14178 fi
14179 rm -f conftest.err conftest.$ac_objext \
14180       conftest$ac_exeext conftest.$ac_ext
14181 fi
14182 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14183 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14184 if test $ac_cv_func_shl_load = yes; then
14185   lt_cv_dlopen="shl_load"
14186 else
14187   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14188 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14189 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   ac_check_lib_save_LIBS=$LIBS
14193 LIBS="-ldld  $LIBS"
14194 cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200
14201 /* Override any gcc2 internal prototype to avoid an error.  */
14202 #ifdef __cplusplus
14203 extern "C"
14204 #endif
14205 /* We use char because int might match the return type of a gcc2
14206    builtin and then its argument prototype would still apply.  */
14207 char shl_load ();
14208 int
14209 main ()
14210 {
14211 shl_load ();
14212   ;
14213   return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218   (eval $ac_link) 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_c_werror_flag"
14226                          || test ! -s conftest.err'
14227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228   (eval $ac_try) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); }; } &&
14232          { ac_try='test -s conftest$ac_exeext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_lib_dld_shl_load=yes
14239 else
14240   echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 ac_cv_lib_dld_shl_load=no
14244 fi
14245 rm -f conftest.err conftest.$ac_objext \
14246       conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS
14248 fi
14249 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14250 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14251 if test $ac_cv_lib_dld_shl_load = yes; then
14252   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14253 else
14254   echo "$as_me:$LINENO: checking for dlopen" >&5
14255 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14256 if test "${ac_cv_func_dlopen+set}" = set; then
14257   echo $ECHO_N "(cached) $ECHO_C" >&6
14258 else
14259   cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h.  */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h.  */
14265 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14267 #define dlopen innocuous_dlopen
14268
14269 /* System header to define __stub macros and hopefully few prototypes,
14270     which can conflict with char dlopen (); below.
14271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272     <limits.h> exists even on freestanding compilers.  */
14273
14274 #ifdef __STDC__
14275 # include <limits.h>
14276 #else
14277 # include <assert.h>
14278 #endif
14279
14280 #undef dlopen
14281
14282 /* Override any gcc2 internal prototype to avoid an error.  */
14283 #ifdef __cplusplus
14284 extern "C"
14285 {
14286 #endif
14287 /* We use char because int might match the return type of a gcc2
14288    builtin and then its argument prototype would still apply.  */
14289 char dlopen ();
14290 /* The GNU C library defines this for functions which it implements
14291     to always fail with ENOSYS.  Some functions are actually named
14292     something starting with __ and the normal name is an alias.  */
14293 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14294 choke me
14295 #else
14296 char (*f) () = dlopen;
14297 #endif
14298 #ifdef __cplusplus
14299 }
14300 #endif
14301
14302 int
14303 main ()
14304 {
14305 return f != dlopen;
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312   (eval $ac_link) 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag"
14320                          || test ! -s conftest.err'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; } &&
14326          { ac_try='test -s conftest$ac_exeext'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   ac_cv_func_dlopen=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_cv_func_dlopen=no
14338 fi
14339 rm -f conftest.err conftest.$ac_objext \
14340       conftest$ac_exeext conftest.$ac_ext
14341 fi
14342 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14343 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14344 if test $ac_cv_func_dlopen = yes; then
14345   lt_cv_dlopen="dlopen"
14346 else
14347   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14348 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14349 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-ldl  $LIBS"
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360
14361 /* Override any gcc2 internal prototype to avoid an error.  */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 /* We use char because int might match the return type of a gcc2
14366    builtin and then its argument prototype would still apply.  */
14367 char dlopen ();
14368 int
14369 main ()
14370 {
14371 dlopen ();
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378   (eval $ac_link) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag"
14386                          || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest$ac_exeext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_lib_dl_dlopen=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_lib_dl_dlopen=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext \
14406       conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14411 if test $ac_cv_lib_dl_dlopen = yes; then
14412   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14413 else
14414   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14415 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   ac_check_lib_save_LIBS=$LIBS
14420 LIBS="-lsvld  $LIBS"
14421 cat >conftest.$ac_ext <<_ACEOF
14422 /* confdefs.h.  */
14423 _ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h.  */
14427
14428 /* Override any gcc2 internal prototype to avoid an error.  */
14429 #ifdef __cplusplus
14430 extern "C"
14431 #endif
14432 /* We use char because int might match the return type of a gcc2
14433    builtin and then its argument prototype would still apply.  */
14434 char dlopen ();
14435 int
14436 main ()
14437 {
14438 dlopen ();
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445   (eval $ac_link) 2>conftest.er1
14446   ac_status=$?
14447   grep -v '^ *+' conftest.er1 >conftest.err
14448   rm -f conftest.er1
14449   cat conftest.err >&5
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); } &&
14452          { ac_try='test -z "$ac_c_werror_flag"
14453                          || test ! -s conftest.err'
14454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455   (eval $ac_try) 2>&5
14456   ac_status=$?
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); }; } &&
14459          { ac_try='test -s conftest$ac_exeext'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; }; then
14465   ac_cv_lib_svld_dlopen=yes
14466 else
14467   echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 ac_cv_lib_svld_dlopen=no
14471 fi
14472 rm -f conftest.err conftest.$ac_objext \
14473       conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS
14475 fi
14476 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14477 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14478 if test $ac_cv_lib_svld_dlopen = yes; then
14479   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14480 else
14481   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14482 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14483 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14484   echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486   ac_check_lib_save_LIBS=$LIBS
14487 LIBS="-ldld  $LIBS"
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494
14495 /* Override any gcc2 internal prototype to avoid an error.  */
14496 #ifdef __cplusplus
14497 extern "C"
14498 #endif
14499 /* We use char because int might match the return type of a gcc2
14500    builtin and then its argument prototype would still apply.  */
14501 char dld_link ();
14502 int
14503 main ()
14504 {
14505 dld_link ();
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14512   (eval $ac_link) 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -z "$ac_c_werror_flag"
14520                          || test ! -s conftest.err'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; } &&
14526          { ac_try='test -s conftest$ac_exeext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_cv_lib_dld_dld_link=yes
14533 else
14534   echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537 ac_cv_lib_dld_dld_link=no
14538 fi
14539 rm -f conftest.err conftest.$ac_objext \
14540       conftest$ac_exeext conftest.$ac_ext
14541 LIBS=$ac_check_lib_save_LIBS
14542 fi
14543 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14544 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14545 if test $ac_cv_lib_dld_dld_link = yes; then
14546   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14547 fi
14548
14549
14550 fi
14551
14552
14553 fi
14554
14555
14556 fi
14557
14558
14559 fi
14560
14561
14562 fi
14563
14564     ;;
14565   esac
14566
14567   if test "x$lt_cv_dlopen" != xno; then
14568     enable_dlopen=yes
14569   else
14570     enable_dlopen=no
14571   fi
14572
14573   case $lt_cv_dlopen in
14574   dlopen)
14575     save_CPPFLAGS="$CPPFLAGS"
14576     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14577
14578     save_LDFLAGS="$LDFLAGS"
14579     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14580
14581     save_LIBS="$LIBS"
14582     LIBS="$lt_cv_dlopen_libs $LIBS"
14583
14584     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14585 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14586 if test "${lt_cv_dlopen_self+set}" = set; then
14587   echo $ECHO_N "(cached) $ECHO_C" >&6
14588 else
14589           if test "$cross_compiling" = yes; then :
14590   lt_cv_dlopen_self=cross
14591 else
14592   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14593   lt_status=$lt_dlunknown
14594   cat > conftest.$ac_ext <<EOF
14595 #line 14579 "configure"
14596 #include "confdefs.h"
14597
14598 #if HAVE_DLFCN_H
14599 #include <dlfcn.h>
14600 #endif
14601
14602 #include <stdio.h>
14603
14604 #ifdef RTLD_GLOBAL
14605 #  define LT_DLGLOBAL           RTLD_GLOBAL
14606 #else
14607 #  ifdef DL_GLOBAL
14608 #    define LT_DLGLOBAL         DL_GLOBAL
14609 #  else
14610 #    define LT_DLGLOBAL         0
14611 #  endif
14612 #endif
14613
14614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14615    find out it does not work in some platform. */
14616 #ifndef LT_DLLAZY_OR_NOW
14617 #  ifdef RTLD_LAZY
14618 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14619 #  else
14620 #    ifdef DL_LAZY
14621 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14622 #    else
14623 #      ifdef RTLD_NOW
14624 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14625 #      else
14626 #        ifdef DL_NOW
14627 #          define LT_DLLAZY_OR_NOW      DL_NOW
14628 #        else
14629 #          define LT_DLLAZY_OR_NOW      0
14630 #        endif
14631 #      endif
14632 #    endif
14633 #  endif
14634 #endif
14635
14636 #ifdef __cplusplus
14637 extern "C" void exit (int);
14638 #endif
14639
14640 void fnord() { int i=42;}
14641 int main ()
14642 {
14643   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14644   int status = $lt_dlunknown;
14645
14646   if (self)
14647     {
14648       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14649       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14650       /* dlclose (self); */
14651     }
14652
14653     exit (status);
14654 }
14655 EOF
14656   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14657   (eval $ac_link) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14661     (./conftest; exit; ) 2>/dev/null
14662     lt_status=$?
14663     case x$lt_status in
14664       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14665       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14666       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14667     esac
14668   else :
14669     # compilation failed
14670     lt_cv_dlopen_self=no
14671   fi
14672 fi
14673 rm -fr conftest*
14674
14675
14676 fi
14677 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14678 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14679
14680     if test "x$lt_cv_dlopen_self" = xyes; then
14681       LDFLAGS="$LDFLAGS $link_static_flag"
14682       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14683 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14684 if test "${lt_cv_dlopen_self_static+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687           if test "$cross_compiling" = yes; then :
14688   lt_cv_dlopen_self_static=cross
14689 else
14690   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14691   lt_status=$lt_dlunknown
14692   cat > conftest.$ac_ext <<EOF
14693 #line 14677 "configure"
14694 #include "confdefs.h"
14695
14696 #if HAVE_DLFCN_H
14697 #include <dlfcn.h>
14698 #endif
14699
14700 #include <stdio.h>
14701
14702 #ifdef RTLD_GLOBAL
14703 #  define LT_DLGLOBAL           RTLD_GLOBAL
14704 #else
14705 #  ifdef DL_GLOBAL
14706 #    define LT_DLGLOBAL         DL_GLOBAL
14707 #  else
14708 #    define LT_DLGLOBAL         0
14709 #  endif
14710 #endif
14711
14712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14713    find out it does not work in some platform. */
14714 #ifndef LT_DLLAZY_OR_NOW
14715 #  ifdef RTLD_LAZY
14716 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14717 #  else
14718 #    ifdef DL_LAZY
14719 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14720 #    else
14721 #      ifdef RTLD_NOW
14722 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14723 #      else
14724 #        ifdef DL_NOW
14725 #          define LT_DLLAZY_OR_NOW      DL_NOW
14726 #        else
14727 #          define LT_DLLAZY_OR_NOW      0
14728 #        endif
14729 #      endif
14730 #    endif
14731 #  endif
14732 #endif
14733
14734 #ifdef __cplusplus
14735 extern "C" void exit (int);
14736 #endif
14737
14738 void fnord() { int i=42;}
14739 int main ()
14740 {
14741   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14742   int status = $lt_dlunknown;
14743
14744   if (self)
14745     {
14746       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14747       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14748       /* dlclose (self); */
14749     }
14750
14751     exit (status);
14752 }
14753 EOF
14754   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14755   (eval $ac_link) 2>&5
14756   ac_status=$?
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14759     (./conftest; exit; ) 2>/dev/null
14760     lt_status=$?
14761     case x$lt_status in
14762       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14763       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14764       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14765     esac
14766   else :
14767     # compilation failed
14768     lt_cv_dlopen_self_static=no
14769   fi
14770 fi
14771 rm -fr conftest*
14772
14773
14774 fi
14775 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14776 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14777     fi
14778
14779     CPPFLAGS="$save_CPPFLAGS"
14780     LDFLAGS="$save_LDFLAGS"
14781     LIBS="$save_LIBS"
14782     ;;
14783   esac
14784
14785   case $lt_cv_dlopen_self in
14786   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14787   *) enable_dlopen_self=unknown ;;
14788   esac
14789
14790   case $lt_cv_dlopen_self_static in
14791   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14792   *) enable_dlopen_self_static=unknown ;;
14793   esac
14794 fi
14795
14796
14797 # Report which librarie types wil actually be built
14798 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14799 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14800 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14801 echo "${ECHO_T}$can_build_shared" >&6
14802
14803 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14804 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14805 test "$can_build_shared" = "no" && enable_shared=no
14806
14807 # On AIX, shared libraries and static libraries use the same namespace, and
14808 # are all built from PIC.
14809 case "$host_os" in
14810 aix3*)
14811   test "$enable_shared" = yes && enable_static=no
14812   if test -n "$RANLIB"; then
14813     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14814     postinstall_cmds='$RANLIB $lib'
14815   fi
14816   ;;
14817
14818 aix4* | aix5*)
14819   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14820     test "$enable_shared" = yes && enable_static=no
14821   fi
14822     ;;
14823 esac
14824 echo "$as_me:$LINENO: result: $enable_shared" >&5
14825 echo "${ECHO_T}$enable_shared" >&6
14826
14827 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14828 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14829 # Make sure either enable_shared or enable_static is yes.
14830 test "$enable_shared" = yes || enable_static=yes
14831 echo "$as_me:$LINENO: result: $enable_static" >&5
14832 echo "${ECHO_T}$enable_static" >&6
14833
14834 # The else clause should only fire when bootstrapping the
14835 # libtool distribution, otherwise you forgot to ship ltmain.sh
14836 # with your package, and you will get complaints that there are
14837 # no rules to generate ltmain.sh.
14838 if test -f "$ltmain"; then
14839   # See if we are running on zsh, and set the options which allow our commands through
14840   # without removal of \ escapes.
14841   if test -n "${ZSH_VERSION+set}" ; then
14842     setopt NO_GLOB_SUBST
14843   fi
14844   # Now quote all the things that may contain metacharacters while being
14845   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14846   # variables and quote the copies for generation of the libtool script.
14847   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14848     SED SHELL STRIP \
14849     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14850     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14851     deplibs_check_method reload_flag reload_cmds need_locks \
14852     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14853     lt_cv_sys_global_symbol_to_c_name_address \
14854     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14855     old_postinstall_cmds old_postuninstall_cmds \
14856     compiler \
14857     CC \
14858     LD \
14859     lt_prog_compiler_wl \
14860     lt_prog_compiler_pic \
14861     lt_prog_compiler_static \
14862     lt_prog_compiler_no_builtin_flag \
14863     export_dynamic_flag_spec \
14864     thread_safe_flag_spec \
14865     whole_archive_flag_spec \
14866     enable_shared_with_static_runtimes \
14867     old_archive_cmds \
14868     old_archive_from_new_cmds \
14869     predep_objects \
14870     postdep_objects \
14871     predeps \
14872     postdeps \
14873     compiler_lib_search_path \
14874     archive_cmds \
14875     archive_expsym_cmds \
14876     postinstall_cmds \
14877     postuninstall_cmds \
14878     old_archive_from_expsyms_cmds \
14879     allow_undefined_flag \
14880     no_undefined_flag \
14881     export_symbols_cmds \
14882     hardcode_libdir_flag_spec \
14883     hardcode_libdir_flag_spec_ld \
14884     hardcode_libdir_separator \
14885     hardcode_automatic \
14886     module_cmds \
14887     module_expsym_cmds \
14888     lt_cv_prog_compiler_c_o \
14889     exclude_expsyms \
14890     include_expsyms; do
14891
14892     case $var in
14893     old_archive_cmds | \
14894     old_archive_from_new_cmds | \
14895     archive_cmds | \
14896     archive_expsym_cmds | \
14897     module_cmds | \
14898     module_expsym_cmds | \
14899     old_archive_from_expsyms_cmds | \
14900     export_symbols_cmds | \
14901     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14902     postinstall_cmds | postuninstall_cmds | \
14903     old_postinstall_cmds | old_postuninstall_cmds | \
14904     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14905       # Double-quote double-evaled strings.
14906       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14907       ;;
14908     *)
14909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14910       ;;
14911     esac
14912   done
14913
14914   case $lt_echo in
14915   *'\$0 --fallback-echo"')
14916     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14917     ;;
14918   esac
14919
14920 cfgfile="${ofile}T"
14921   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14922   $rm -f "$cfgfile"
14923   { echo "$as_me:$LINENO: creating $ofile" >&5
14924 echo "$as_me: creating $ofile" >&6;}
14925
14926   cat <<__EOF__ >> "$cfgfile"
14927 #! $SHELL
14928
14929 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14930 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14932 #
14933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14934 # Free Software Foundation, Inc.
14935 #
14936 # This file is part of GNU Libtool:
14937 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14938 #
14939 # This program is free software; you can redistribute it and/or modify
14940 # it under the terms of the GNU General Public License as published by
14941 # the Free Software Foundation; either version 2 of the License, or
14942 # (at your option) any later version.
14943 #
14944 # This program is distributed in the hope that it will be useful, but
14945 # WITHOUT ANY WARRANTY; without even the implied warranty of
14946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14947 # General Public License for more details.
14948 #
14949 # You should have received a copy of the GNU General Public License
14950 # along with this program; if not, write to the Free Software
14951 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14952 #
14953 # As a special exception to the GNU General Public License, if you
14954 # distribute this file as part of a program that contains a
14955 # configuration script generated by Autoconf, you may include it under
14956 # the same distribution terms that you use for the rest of that program.
14957
14958 # A sed program that does not truncate output.
14959 SED=$lt_SED
14960
14961 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14962 Xsed="$SED -e s/^X//"
14963
14964 # The HP-UX ksh and POSIX shell print the target directory to stdout
14965 # if CDPATH is set.
14966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14967
14968 # The names of the tagged configurations supported by this script.
14969 available_tags=
14970
14971 # ### BEGIN LIBTOOL CONFIG
14972
14973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14974
14975 # Shell to use when invoking shell scripts.
14976 SHELL=$lt_SHELL
14977
14978 # Whether or not to build shared libraries.
14979 build_libtool_libs=$enable_shared
14980
14981 # Whether or not to build static libraries.
14982 build_old_libs=$enable_static
14983
14984 # Whether or not to add -lc for building shared libraries.
14985 build_libtool_need_lc=$archive_cmds_need_lc
14986
14987 # Whether or not to disallow shared libs when runtime libs are static
14988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14989
14990 # Whether or not to optimize for fast installation.
14991 fast_install=$enable_fast_install
14992
14993 # The host system.
14994 host_alias=$host_alias
14995 host=$host
14996
14997 # An echo program that does not interpret backslashes.
14998 echo=$lt_echo
14999
15000 # The archiver.
15001 AR=$lt_AR
15002 AR_FLAGS=$lt_AR_FLAGS
15003
15004 # A C compiler.
15005 LTCC=$lt_LTCC
15006
15007 # A language-specific compiler.
15008 CC=$lt_compiler
15009
15010 # Is the compiler the GNU C compiler?
15011 with_gcc=$GCC
15012
15013 # An ERE matcher.
15014 EGREP=$lt_EGREP
15015
15016 # The linker used to build libraries.
15017 LD=$lt_LD
15018
15019 # Whether we need hard or soft links.
15020 LN_S=$lt_LN_S
15021
15022 # A BSD-compatible nm program.
15023 NM=$lt_NM
15024
15025 # A symbol stripping program
15026 STRIP=$lt_STRIP
15027
15028 # Used to examine libraries when file_magic_cmd begins "file"
15029 MAGIC_CMD=$MAGIC_CMD
15030
15031 # Used on cygwin: DLL creation program.
15032 DLLTOOL="$DLLTOOL"
15033
15034 # Used on cygwin: object dumper.
15035 OBJDUMP="$OBJDUMP"
15036
15037 # Used on cygwin: assembler.
15038 AS="$AS"
15039
15040 # The name of the directory that contains temporary libtool files.
15041 objdir=$objdir
15042
15043 # How to create reloadable object files.
15044 reload_flag=$lt_reload_flag
15045 reload_cmds=$lt_reload_cmds
15046
15047 # How to pass a linker flag through the compiler.
15048 wl=$lt_lt_prog_compiler_wl
15049
15050 # Object file suffix (normally "o").
15051 objext="$ac_objext"
15052
15053 # Old archive suffix (normally "a").
15054 libext="$libext"
15055
15056 # Shared library suffix (normally ".so").
15057 shrext_cmds='$shrext_cmds'
15058
15059 # Executable file suffix (normally "").
15060 exeext="$exeext"
15061
15062 # Additional compiler flags for building library objects.
15063 pic_flag=$lt_lt_prog_compiler_pic
15064 pic_mode=$pic_mode
15065
15066 # What is the maximum length of a command?
15067 max_cmd_len=$lt_cv_sys_max_cmd_len
15068
15069 # Does compiler simultaneously support -c and -o options?
15070 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15071
15072 # Must we lock files when doing compilation ?
15073 need_locks=$lt_need_locks
15074
15075 # Do we need the lib prefix for modules?
15076 need_lib_prefix=$need_lib_prefix
15077
15078 # Do we need a version for libraries?
15079 need_version=$need_version
15080
15081 # Whether dlopen is supported.
15082 dlopen_support=$enable_dlopen
15083
15084 # Whether dlopen of programs is supported.
15085 dlopen_self=$enable_dlopen_self
15086
15087 # Whether dlopen of statically linked programs is supported.
15088 dlopen_self_static=$enable_dlopen_self_static
15089
15090 # Compiler flag to prevent dynamic linking.
15091 link_static_flag=$lt_lt_prog_compiler_static
15092
15093 # Compiler flag to turn off builtin functions.
15094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15095
15096 # Compiler flag to allow reflexive dlopens.
15097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15098
15099 # Compiler flag to generate shared objects directly from archives.
15100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15101
15102 # Compiler flag to generate thread-safe objects.
15103 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15104
15105 # Library versioning type.
15106 version_type=$version_type
15107
15108 # Format of library name prefix.
15109 libname_spec=$lt_libname_spec
15110
15111 # List of archive names.  First name is the real one, the rest are links.
15112 # The last name is the one that the linker finds with -lNAME.
15113 library_names_spec=$lt_library_names_spec
15114
15115 # The coded name of the library, if different from the real name.
15116 soname_spec=$lt_soname_spec
15117
15118 # Commands used to build and install an old-style archive.
15119 RANLIB=$lt_RANLIB
15120 old_archive_cmds=$lt_old_archive_cmds
15121 old_postinstall_cmds=$lt_old_postinstall_cmds
15122 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15123
15124 # Create an old-style archive from a shared archive.
15125 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15126
15127 # Create a temporary old-style archive to link instead of a shared archive.
15128 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15129
15130 # Commands used to build and install a shared archive.
15131 archive_cmds=$lt_archive_cmds
15132 archive_expsym_cmds=$lt_archive_expsym_cmds
15133 postinstall_cmds=$lt_postinstall_cmds
15134 postuninstall_cmds=$lt_postuninstall_cmds
15135
15136 # Commands used to build a loadable module (assumed same as above if empty)
15137 module_cmds=$lt_module_cmds
15138 module_expsym_cmds=$lt_module_expsym_cmds
15139
15140 # Commands to strip libraries.
15141 old_striplib=$lt_old_striplib
15142 striplib=$lt_striplib
15143
15144 # Dependencies to place before the objects being linked to create a
15145 # shared library.
15146 predep_objects=$lt_predep_objects
15147
15148 # Dependencies to place after the objects being linked to create a
15149 # shared library.
15150 postdep_objects=$lt_postdep_objects
15151
15152 # Dependencies to place before the objects being linked to create a
15153 # shared library.
15154 predeps=$lt_predeps
15155
15156 # Dependencies to place after the objects being linked to create a
15157 # shared library.
15158 postdeps=$lt_postdeps
15159
15160 # The library search path used internally by the compiler when linking
15161 # a shared library.
15162 compiler_lib_search_path=$lt_compiler_lib_search_path
15163
15164 # Method to check whether dependent libraries are shared objects.
15165 deplibs_check_method=$lt_deplibs_check_method
15166
15167 # Command to use when deplibs_check_method == file_magic.
15168 file_magic_cmd=$lt_file_magic_cmd
15169
15170 # Flag that allows shared libraries with undefined symbols to be built.
15171 allow_undefined_flag=$lt_allow_undefined_flag
15172
15173 # Flag that forces no undefined symbols.
15174 no_undefined_flag=$lt_no_undefined_flag
15175
15176 # Commands used to finish a libtool library installation in a directory.
15177 finish_cmds=$lt_finish_cmds
15178
15179 # Same as above, but a single script fragment to be evaled but not shown.
15180 finish_eval=$lt_finish_eval
15181
15182 # Take the output of nm and produce a listing of raw symbols and C names.
15183 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15184
15185 # Transform the output of nm in a proper C declaration
15186 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15187
15188 # Transform the output of nm in a C name address pair
15189 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15190
15191 # This is the shared library runtime path variable.
15192 runpath_var=$runpath_var
15193
15194 # This is the shared library path variable.
15195 shlibpath_var=$shlibpath_var
15196
15197 # Is shlibpath searched before the hard-coded library search path?
15198 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15199
15200 # How to hardcode a shared library path into an executable.
15201 hardcode_action=$hardcode_action
15202
15203 # Whether we should hardcode library paths into libraries.
15204 hardcode_into_libs=$hardcode_into_libs
15205
15206 # Flag to hardcode \$libdir into a binary during linking.
15207 # This must work even if \$libdir does not exist.
15208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15209
15210 # If ld is used when linking, flag to hardcode \$libdir into
15211 # a binary during linking. This must work even if \$libdir does
15212 # not exist.
15213 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15214
15215 # Whether we need a single -rpath flag with a separated argument.
15216 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15217
15218 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15219 # resulting binary.
15220 hardcode_direct=$hardcode_direct
15221
15222 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15223 # resulting binary.
15224 hardcode_minus_L=$hardcode_minus_L
15225
15226 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15227 # the resulting binary.
15228 hardcode_shlibpath_var=$hardcode_shlibpath_var
15229
15230 # Set to yes if building a shared library automatically hardcodes DIR into the library
15231 # and all subsequent libraries and executables linked against it.
15232 hardcode_automatic=$hardcode_automatic
15233
15234 # Variables whose values should be saved in libtool wrapper scripts and
15235 # restored at relink time.
15236 variables_saved_for_relink="$variables_saved_for_relink"
15237
15238 # Whether libtool must link a program against all its dependency libraries.
15239 link_all_deplibs=$link_all_deplibs
15240
15241 # Compile-time system search path for libraries
15242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15243
15244 # Run-time system search path for libraries
15245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15246
15247 # Fix the shell variable \$srcfile for the compiler.
15248 fix_srcfile_path="$fix_srcfile_path"
15249
15250 # Set to yes if exported symbols are required.
15251 always_export_symbols=$always_export_symbols
15252
15253 # The commands to list exported symbols.
15254 export_symbols_cmds=$lt_export_symbols_cmds
15255
15256 # The commands to extract the exported symbol list from a shared archive.
15257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15258
15259 # Symbols that should not be listed in the preloaded symbols.
15260 exclude_expsyms=$lt_exclude_expsyms
15261
15262 # Symbols that must always be exported.
15263 include_expsyms=$lt_include_expsyms
15264
15265 # ### END LIBTOOL CONFIG
15266
15267 __EOF__
15268
15269
15270   case $host_os in
15271   aix3*)
15272     cat <<\EOF >> "$cfgfile"
15273
15274 # AIX sometimes has problems with the GCC collect2 program.  For some
15275 # reason, if we set the COLLECT_NAMES environment variable, the problems
15276 # vanish in a puff of smoke.
15277 if test "X${COLLECT_NAMES+set}" != Xset; then
15278   COLLECT_NAMES=
15279   export COLLECT_NAMES
15280 fi
15281 EOF
15282     ;;
15283   esac
15284
15285   # We use sed instead of cat because bash on DJGPP gets confused if
15286   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15287   # text mode, it properly converts lines to CR/LF.  This bash problem
15288   # is reportedly fixed, but why not run on old versions too?
15289   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15290
15291   mv -f "$cfgfile" "$ofile" || \
15292     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15293   chmod +x "$ofile"
15294
15295 else
15296   # If there is no Makefile yet, we rely on a make rule to execute
15297   # `config.status --recheck' to rerun these tests and create the
15298   # libtool script then.
15299   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15300   if test -f "$ltmain_in"; then
15301     test -f Makefile && make "$ltmain"
15302   fi
15303 fi
15304
15305
15306 ac_ext=c
15307 ac_cpp='$CPP $CPPFLAGS'
15308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15311
15312 CC="$lt_save_CC"
15313
15314
15315 # Check whether --with-tags or --without-tags was given.
15316 if test "${with_tags+set}" = set; then
15317   withval="$with_tags"
15318   tagnames="$withval"
15319 fi;
15320
15321 if test -f "$ltmain" && test -n "$tagnames"; then
15322   if test ! -f "${ofile}"; then
15323     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15324 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15325   fi
15326
15327   if test -z "$LTCC"; then
15328     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15329     if test -z "$LTCC"; then
15330       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15331 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15332     else
15333       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15334 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15335     fi
15336   fi
15337
15338   # Extract list of available tagged configurations in $ofile.
15339   # Note that this assumes the entire list is on one line.
15340   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15341
15342   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15343   for tagname in $tagnames; do
15344     IFS="$lt_save_ifs"
15345     # Check whether tagname contains only valid characters
15346     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15347     "") ;;
15348     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15349 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15350    { (exit 1); exit 1; }; }
15351         ;;
15352     esac
15353
15354     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15355     then
15356       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15357 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15358    { (exit 1); exit 1; }; }
15359     fi
15360
15361     # Update the list of available tags.
15362     if test -n "$tagname"; then
15363       echo appending configuration tag "$tagname" to $ofile
15364
15365       case $tagname in
15366       CXX)
15367         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15368             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15369             (test "X$CXX" != "Xg++"))) ; then
15370           ac_ext=cc
15371 ac_cpp='$CXXCPP $CPPFLAGS'
15372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15375
15376
15377
15378
15379 archive_cmds_need_lc_CXX=no
15380 allow_undefined_flag_CXX=
15381 always_export_symbols_CXX=no
15382 archive_expsym_cmds_CXX=
15383 export_dynamic_flag_spec_CXX=
15384 hardcode_direct_CXX=no
15385 hardcode_libdir_flag_spec_CXX=
15386 hardcode_libdir_flag_spec_ld_CXX=
15387 hardcode_libdir_separator_CXX=
15388 hardcode_minus_L_CXX=no
15389 hardcode_automatic_CXX=no
15390 module_cmds_CXX=
15391 module_expsym_cmds_CXX=
15392 link_all_deplibs_CXX=unknown
15393 old_archive_cmds_CXX=$old_archive_cmds
15394 no_undefined_flag_CXX=
15395 whole_archive_flag_spec_CXX=
15396 enable_shared_with_static_runtimes_CXX=no
15397
15398 # Dependencies to place before and after the object being linked:
15399 predep_objects_CXX=
15400 postdep_objects_CXX=
15401 predeps_CXX=
15402 postdeps_CXX=
15403 compiler_lib_search_path_CXX=
15404
15405 # Source file extension for C++ test sources.
15406 ac_ext=cc
15407
15408 # Object file extension for compiled C++ test sources.
15409 objext=o
15410 objext_CXX=$objext
15411
15412 # Code to be used in simple compile tests
15413 lt_simple_compile_test_code="int some_variable = 0;\n"
15414
15415 # Code to be used in simple link tests
15416 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15417
15418 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15419
15420 # If no C compiler was specified, use CC.
15421 LTCC=${LTCC-"$CC"}
15422
15423 # Allow CC to be a program name with arguments.
15424 compiler=$CC
15425
15426
15427 # Allow CC to be a program name with arguments.
15428 lt_save_CC=$CC
15429 lt_save_LD=$LD
15430 lt_save_GCC=$GCC
15431 GCC=$GXX
15432 lt_save_with_gnu_ld=$with_gnu_ld
15433 lt_save_path_LD=$lt_cv_path_LD
15434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15435   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15436 else
15437   unset lt_cv_prog_gnu_ld
15438 fi
15439 if test -n "${lt_cv_path_LDCXX+set}"; then
15440   lt_cv_path_LD=$lt_cv_path_LDCXX
15441 else
15442   unset lt_cv_path_LD
15443 fi
15444 test -z "${LDCXX+set}" || LD=$LDCXX
15445 CC=${CXX-"c++"}
15446 compiler=$CC
15447 compiler_CXX=$CC
15448 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15449
15450 # We don't want -fno-exception wen compiling C++ code, so set the
15451 # no_builtin_flag separately
15452 if test "$GXX" = yes; then
15453   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15454 else
15455   lt_prog_compiler_no_builtin_flag_CXX=
15456 fi
15457
15458 if test "$GXX" = yes; then
15459   # Set up default GNU C++ configuration
15460
15461
15462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15463 if test "${with_gnu_ld+set}" = set; then
15464   withval="$with_gnu_ld"
15465   test "$withval" = no || with_gnu_ld=yes
15466 else
15467   with_gnu_ld=no
15468 fi;
15469 ac_prog=ld
15470 if test "$GCC" = yes; then
15471   # Check if gcc -print-prog-name=ld gives a path.
15472   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15473 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15474   case $host in
15475   *-*-mingw*)
15476     # gcc leaves a trailing carriage return which upsets mingw
15477     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15478   *)
15479     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15480   esac
15481   case $ac_prog in
15482     # Accept absolute paths.
15483     [\\/]* | ?:[\\/]*)
15484       re_direlt='/[^/][^/]*/\.\./'
15485       # Canonicalize the pathname of ld
15486       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15487       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15488         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15489       done
15490       test -z "$LD" && LD="$ac_prog"
15491       ;;
15492   "")
15493     # If it fails, then pretend we aren't using GCC.
15494     ac_prog=ld
15495     ;;
15496   *)
15497     # If it is relative, then search for the first ld in PATH.
15498     with_gnu_ld=unknown
15499     ;;
15500   esac
15501 elif test "$with_gnu_ld" = yes; then
15502   echo "$as_me:$LINENO: checking for GNU ld" >&5
15503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15504 else
15505   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15507 fi
15508 if test "${lt_cv_path_LD+set}" = set; then
15509   echo $ECHO_N "(cached) $ECHO_C" >&6
15510 else
15511   if test -z "$LD"; then
15512   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15513   for ac_dir in $PATH; do
15514     IFS="$lt_save_ifs"
15515     test -z "$ac_dir" && ac_dir=.
15516     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15517       lt_cv_path_LD="$ac_dir/$ac_prog"
15518       # Check to see if the program is GNU ld.  I'd rather use --version,
15519       # but apparently some GNU ld's only accept -v.
15520       # Break only if it was the GNU/non-GNU ld that we prefer.
15521       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15522       *GNU* | *'with BFD'*)
15523         test "$with_gnu_ld" != no && break
15524         ;;
15525       *)
15526         test "$with_gnu_ld" != yes && break
15527         ;;
15528       esac
15529     fi
15530   done
15531   IFS="$lt_save_ifs"
15532 else
15533   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15534 fi
15535 fi
15536
15537 LD="$lt_cv_path_LD"
15538 if test -n "$LD"; then
15539   echo "$as_me:$LINENO: result: $LD" >&5
15540 echo "${ECHO_T}$LD" >&6
15541 else
15542   echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6
15544 fi
15545 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15546 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15547    { (exit 1); exit 1; }; }
15548 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15549 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15550 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15551   echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15554 case `$LD -v 2>&1 </dev/null` in
15555 *GNU* | *'with BFD'*)
15556   lt_cv_prog_gnu_ld=yes
15557   ;;
15558 *)
15559   lt_cv_prog_gnu_ld=no
15560   ;;
15561 esac
15562 fi
15563 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15564 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15565 with_gnu_ld=$lt_cv_prog_gnu_ld
15566
15567
15568
15569   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15570   # archiving commands below assume that GNU ld is being used.
15571   if test "$with_gnu_ld" = yes; then
15572     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15573     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'
15574
15575     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15576     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15577
15578     # If archive_cmds runs LD, not CC, wlarc should be empty
15579     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15580     #     investigate it a little bit more. (MM)
15581     wlarc='${wl}'
15582
15583     # ancient GNU ld didn't support --whole-archive et. al.
15584     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15585         grep 'no-whole-archive' > /dev/null; then
15586       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15587     else
15588       whole_archive_flag_spec_CXX=
15589     fi
15590   else
15591     with_gnu_ld=no
15592     wlarc=
15593
15594     # A generic and very simple default shared library creation
15595     # command for GNU C++ for the case where it uses the native
15596     # linker, instead of GNU ld.  If possible, this setting should
15597     # overridden to take advantage of the native linker features on
15598     # the platform it is being used on.
15599     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15600   fi
15601
15602   # Commands to make compiler produce verbose output that lists
15603   # what "hidden" libraries, object files and flags are used when
15604   # linking a shared library.
15605   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15606
15607 else
15608   GXX=no
15609   with_gnu_ld=no
15610   wlarc=
15611 fi
15612
15613 # PORTME: fill in a description of your system's C++ link characteristics
15614 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15616 ld_shlibs_CXX=yes
15617 case $host_os in
15618   aix3*)
15619     # FIXME: insert proper C++ library support
15620     ld_shlibs_CXX=no
15621     ;;
15622   aix4* | aix5*)
15623     if test "$host_cpu" = ia64; then
15624       # On IA64, the linker does run time linking by default, so we don't
15625       # have to do anything special.
15626       aix_use_runtimelinking=no
15627       exp_sym_flag='-Bexport'
15628       no_entry_flag=""
15629     else
15630       aix_use_runtimelinking=no
15631
15632       # Test if we are trying to use run time linking or normal
15633       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15634       # need to do runtime linking.
15635       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15636         for ld_flag in $LDFLAGS; do
15637           case $ld_flag in
15638           *-brtl*)
15639             aix_use_runtimelinking=yes
15640             break
15641             ;;
15642           esac
15643         done
15644       esac
15645
15646       exp_sym_flag='-bexport'
15647       no_entry_flag='-bnoentry'
15648     fi
15649
15650     # When large executables or shared objects are built, AIX ld can
15651     # have problems creating the table of contents.  If linking a library
15652     # or program results in "error TOC overflow" add -mminimal-toc to
15653     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15654     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15655
15656     archive_cmds_CXX=''
15657     hardcode_direct_CXX=yes
15658     hardcode_libdir_separator_CXX=':'
15659     link_all_deplibs_CXX=yes
15660
15661     if test "$GXX" = yes; then
15662       case $host_os in aix4.012|aix4.012.*)
15663       # We only want to do this on AIX 4.2 and lower, the check
15664       # below for broken collect2 doesn't work under 4.3+
15665         collect2name=`${CC} -print-prog-name=collect2`
15666         if test -f "$collect2name" && \
15667            strings "$collect2name" | grep resolve_lib_name >/dev/null
15668         then
15669           # We have reworked collect2
15670           hardcode_direct_CXX=yes
15671         else
15672           # We have old collect2
15673           hardcode_direct_CXX=unsupported
15674           # It fails to find uninstalled libraries when the uninstalled
15675           # path is not listed in the libpath.  Setting hardcode_minus_L
15676           # to unsupported forces relinking
15677           hardcode_minus_L_CXX=yes
15678           hardcode_libdir_flag_spec_CXX='-L$libdir'
15679           hardcode_libdir_separator_CXX=
15680         fi
15681       esac
15682       shared_flag='-shared'
15683     else
15684       # not using gcc
15685       if test "$host_cpu" = ia64; then
15686         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15687         # chokes on -Wl,-G. The following line is correct:
15688         shared_flag='-G'
15689       else
15690         if test "$aix_use_runtimelinking" = yes; then
15691           shared_flag='${wl}-G'
15692         else
15693           shared_flag='${wl}-bM:SRE'
15694         fi
15695       fi
15696     fi
15697
15698     # It seems that -bexpall does not export symbols beginning with
15699     # underscore (_), so it is better to generate a list of symbols to export.
15700     always_export_symbols_CXX=yes
15701     if test "$aix_use_runtimelinking" = yes; then
15702       # Warning - without using the other runtime loading flags (-brtl),
15703       # -berok will link without error, but may produce a broken library.
15704       allow_undefined_flag_CXX='-berok'
15705       # Determine the default libpath from the value encoded in an empty executable.
15706       cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h.  */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h.  */
15712
15713 int
15714 main ()
15715 {
15716
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723   (eval $ac_link) 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -z "$ac_cxx_werror_flag"
15731                          || test ! -s conftest.err'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; } &&
15737          { ac_try='test -s conftest$ac_exeext'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743
15744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15745 }'`
15746 # Check for a 64-bit object if we didn't find anything.
15747 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; }
15748 }'`; fi
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 fi
15754 rm -f conftest.err conftest.$ac_objext \
15755       conftest$ac_exeext conftest.$ac_ext
15756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15757
15758       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15759
15760       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"
15761      else
15762       if test "$host_cpu" = ia64; then
15763         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15764         allow_undefined_flag_CXX="-z nodefs"
15765         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"
15766       else
15767         # Determine the default libpath from the value encoded in an empty executable.
15768         cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774
15775 int
15776 main ()
15777 {
15778
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785   (eval $ac_link) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -z "$ac_cxx_werror_flag"
15793                          || test ! -s conftest.err'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest$ac_exeext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805
15806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15807 }'`
15808 # Check for a 64-bit object if we didn't find anything.
15809 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; }
15810 }'`; fi
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 fi
15816 rm -f conftest.err conftest.$ac_objext \
15817       conftest$ac_exeext conftest.$ac_ext
15818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15819
15820         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15821         # Warning - without using the other run time loading flags,
15822         # -berok will link without error, but may produce a broken library.
15823         no_undefined_flag_CXX=' ${wl}-bernotok'
15824         allow_undefined_flag_CXX=' ${wl}-berok'
15825         # -bexpall does not export symbols beginning with underscore (_)
15826         always_export_symbols_CXX=yes
15827         # Exported symbols can be pulled into shared objects from archives
15828         whole_archive_flag_spec_CXX=' '
15829         archive_cmds_need_lc_CXX=yes
15830         # This is similar to how AIX traditionally builds it's shared libraries.
15831         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'
15832       fi
15833     fi
15834     ;;
15835   chorus*)
15836     case $cc_basename in
15837       *)
15838         # FIXME: insert proper C++ library support
15839         ld_shlibs_CXX=no
15840         ;;
15841     esac
15842     ;;
15843
15844
15845   cygwin* | mingw* | pw32*)
15846     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15847     # as there is no search path for DLLs.
15848     hardcode_libdir_flag_spec_CXX='-L$libdir'
15849     allow_undefined_flag_CXX=unsupported
15850     always_export_symbols_CXX=no
15851     enable_shared_with_static_runtimes_CXX=yes
15852
15853     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15854       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'
15855       # If the export-symbols file already is a .def file (1st line
15856       # is EXPORTS), use it as is; otherwise, prepend...
15857       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15858         cp $export_symbols $output_objdir/$soname.def;
15859       else
15860         echo EXPORTS > $output_objdir/$soname.def;
15861         cat $export_symbols >> $output_objdir/$soname.def;
15862       fi~
15863       $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'
15864     else
15865       ld_shlibs_CXX=no
15866     fi
15867   ;;
15868       darwin* | rhapsody*)
15869         case "$host_os" in
15870         rhapsody* | darwin1.[012])
15871          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15872          ;;
15873        *) # Darwin 1.3 on
15874          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15875            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15876          else
15877            case ${MACOSX_DEPLOYMENT_TARGET} in
15878              10.[012])
15879                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15880                ;;
15881              10.*)
15882                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15883                ;;
15884            esac
15885          fi
15886          ;;
15887         esac
15888       archive_cmds_need_lc_CXX=no
15889       hardcode_direct_CXX=no
15890       hardcode_automatic_CXX=yes
15891       hardcode_shlibpath_var_CXX=unsupported
15892       whole_archive_flag_spec_CXX=''
15893       link_all_deplibs_CXX=yes
15894
15895     if test "$GXX" = yes ; then
15896       lt_int_apple_cc_single_mod=no
15897       output_verbose_link_cmd='echo'
15898       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15899        lt_int_apple_cc_single_mod=yes
15900       fi
15901       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15902        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15903       else
15904           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'
15905         fi
15906         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15907         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15908           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15909             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}'
15910           else
15911             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}'
15912           fi
15913             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}'
15914       else
15915       case "$cc_basename" in
15916         xlc*)
15917          output_verbose_link_cmd='echo'
15918           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'
15919           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15920           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15921           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}'
15922           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}'
15923           ;;
15924        *)
15925          ld_shlibs_CXX=no
15926           ;;
15927       esac
15928       fi
15929         ;;
15930
15931   dgux*)
15932     case $cc_basename in
15933       ec++)
15934         # FIXME: insert proper C++ library support
15935         ld_shlibs_CXX=no
15936         ;;
15937       ghcx)
15938         # Green Hills C++ Compiler
15939         # FIXME: insert proper C++ library support
15940         ld_shlibs_CXX=no
15941         ;;
15942       *)
15943         # FIXME: insert proper C++ library support
15944         ld_shlibs_CXX=no
15945         ;;
15946     esac
15947     ;;
15948   freebsd12*)
15949     # C++ shared libraries reported to be fairly broken before switch to ELF
15950     ld_shlibs_CXX=no
15951     ;;
15952   freebsd-elf*)
15953     archive_cmds_need_lc_CXX=no
15954     ;;
15955   freebsd* | kfreebsd*-gnu)
15956     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15957     # conventions
15958     ld_shlibs_CXX=yes
15959     ;;
15960   gnu*)
15961     ;;
15962   hpux9*)
15963     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15964     hardcode_libdir_separator_CXX=:
15965     export_dynamic_flag_spec_CXX='${wl}-E'
15966     hardcode_direct_CXX=yes
15967     hardcode_minus_L_CXX=yes # Not in the search PATH,
15968                                 # but as the default
15969                                 # location of the library.
15970
15971     case $cc_basename in
15972     CC)
15973       # FIXME: insert proper C++ library support
15974       ld_shlibs_CXX=no
15975       ;;
15976     aCC)
15977       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'
15978       # Commands to make compiler produce verbose output that lists
15979       # what "hidden" libraries, object files and flags are used when
15980       # linking a shared library.
15981       #
15982       # There doesn't appear to be a way to prevent this compiler from
15983       # explicitly linking system object files so we need to strip them
15984       # from the output so that they don't get included in the library
15985       # dependencies.
15986       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'
15987       ;;
15988     *)
15989       if test "$GXX" = yes; then
15990         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'
15991       else
15992         # FIXME: insert proper C++ library support
15993         ld_shlibs_CXX=no
15994       fi
15995       ;;
15996     esac
15997     ;;
15998   hpux10*|hpux11*)
15999     if test $with_gnu_ld = no; then
16000       case "$host_cpu" in
16001       hppa*64*)
16002         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16003         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16004         hardcode_libdir_separator_CXX=:
16005         ;;
16006       ia64*)
16007         hardcode_libdir_flag_spec_CXX='-L$libdir'
16008         ;;
16009       *)
16010         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16011         hardcode_libdir_separator_CXX=:
16012         export_dynamic_flag_spec_CXX='${wl}-E'
16013         ;;
16014       esac
16015     fi
16016     case "$host_cpu" in
16017     hppa*64*)
16018       hardcode_direct_CXX=no
16019       hardcode_shlibpath_var_CXX=no
16020       ;;
16021     ia64*)
16022       hardcode_direct_CXX=no
16023       hardcode_shlibpath_var_CXX=no
16024       hardcode_minus_L_CXX=yes # Not in the search PATH,
16025                                               # but as the default
16026                                               # location of the library.
16027       ;;
16028     *)
16029       hardcode_direct_CXX=yes
16030       hardcode_minus_L_CXX=yes # Not in the search PATH,
16031                                               # but as the default
16032                                               # location of the library.
16033       ;;
16034     esac
16035
16036     case $cc_basename in
16037       CC)
16038         # FIXME: insert proper C++ library support
16039         ld_shlibs_CXX=no
16040         ;;
16041       aCC)
16042         case "$host_cpu" in
16043         hppa*64*|ia64*)
16044           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16045           ;;
16046         *)
16047           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16048           ;;
16049         esac
16050         # Commands to make compiler produce verbose output that lists
16051         # what "hidden" libraries, object files and flags are used when
16052         # linking a shared library.
16053         #
16054         # There doesn't appear to be a way to prevent this compiler from
16055         # explicitly linking system object files so we need to strip them
16056         # from the output so that they don't get included in the library
16057         # dependencies.
16058         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'
16059         ;;
16060       *)
16061         if test "$GXX" = yes; then
16062           if test $with_gnu_ld = no; then
16063             case "$host_cpu" in
16064             ia64*|hppa*64*)
16065               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16066               ;;
16067             *)
16068               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'
16069               ;;
16070             esac
16071           fi
16072         else
16073           # FIXME: insert proper C++ library support
16074           ld_shlibs_CXX=no
16075         fi
16076         ;;
16077     esac
16078     ;;
16079   irix5* | irix6*)
16080     case $cc_basename in
16081       CC)
16082         # SGI C++
16083         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'
16084
16085         # Archives containing C++ object files must be created using
16086         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16087         # necessary to make sure instantiated templates are included
16088         # in the archive.
16089         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16090         ;;
16091       *)
16092         if test "$GXX" = yes; then
16093           if test "$with_gnu_ld" = no; then
16094             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'
16095           else
16096             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'
16097           fi
16098         fi
16099         link_all_deplibs_CXX=yes
16100         ;;
16101     esac
16102     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16103     hardcode_libdir_separator_CXX=:
16104     ;;
16105   linux*)
16106     case $cc_basename in
16107       KCC)
16108         # Kuck and Associates, Inc. (KAI) C++ Compiler
16109
16110         # KCC will only create a shared library if the output file
16111         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16112         # to its proper name (with version) after linking.
16113         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'
16114         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'
16115         # Commands to make compiler produce verbose output that lists
16116         # what "hidden" libraries, object files and flags are used when
16117         # linking a shared library.
16118         #
16119         # There doesn't appear to be a way to prevent this compiler from
16120         # explicitly linking system object files so we need to strip them
16121         # from the output so that they don't get included in the library
16122         # dependencies.
16123         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'
16124
16125         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16126         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16127
16128         # Archives containing C++ object files must be created using
16129         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16131         ;;
16132       icpc)
16133         # Intel C++
16134         with_gnu_ld=yes
16135         # version 8.0 and above of icpc choke on multiply defined symbols
16136         # if we add $predep_objects and $postdep_objects, however 7.1 and
16137         # earlier do not add the objects themselves.
16138         case `$CC -V 2>&1` in
16139         *"Version 7."*)
16140           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141           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'
16142           ;;
16143         *)  # Version 8.0 or newer
16144           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16145         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16146           ;;
16147         esac
16148         archive_cmds_need_lc_CXX=no
16149         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16150         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16151         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16152         ;;
16153       cxx)
16154         # Compaq C++
16155         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156         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'
16157
16158         runpath_var=LD_RUN_PATH
16159         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16160         hardcode_libdir_separator_CXX=:
16161
16162         # Commands to make compiler produce verbose output that lists
16163         # what "hidden" libraries, object files and flags are used when
16164         # linking a shared library.
16165         #
16166         # There doesn't appear to be a way to prevent this compiler from
16167         # explicitly linking system object files so we need to strip them
16168         # from the output so that they don't get included in the library
16169         # dependencies.
16170         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'
16171         ;;
16172     esac
16173     ;;
16174   lynxos*)
16175     # FIXME: insert proper C++ library support
16176     ld_shlibs_CXX=no
16177     ;;
16178   m88k*)
16179     # FIXME: insert proper C++ library support
16180     ld_shlibs_CXX=no
16181     ;;
16182   mvs*)
16183     case $cc_basename in
16184       cxx)
16185         # FIXME: insert proper C++ library support
16186         ld_shlibs_CXX=no
16187         ;;
16188       *)
16189         # FIXME: insert proper C++ library support
16190         ld_shlibs_CXX=no
16191         ;;
16192     esac
16193     ;;
16194   netbsd*)
16195     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16196       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16197       wlarc=
16198       hardcode_libdir_flag_spec_CXX='-R$libdir'
16199       hardcode_direct_CXX=yes
16200       hardcode_shlibpath_var_CXX=no
16201     fi
16202     # Workaround some broken pre-1.5 toolchains
16203     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16204     ;;
16205   openbsd2*)
16206     # C++ shared libraries are fairly broken
16207     ld_shlibs_CXX=no
16208     ;;
16209   openbsd*)
16210     hardcode_direct_CXX=yes
16211     hardcode_shlibpath_var_CXX=no
16212     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16213     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16214     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16215       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16216       export_dynamic_flag_spec_CXX='${wl}-E'
16217       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16218     fi
16219     output_verbose_link_cmd='echo'
16220     ;;
16221   osf3*)
16222     case $cc_basename in
16223       KCC)
16224         # Kuck and Associates, Inc. (KAI) C++ Compiler
16225
16226         # KCC will only create a shared library if the output file
16227         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16228         # to its proper name (with version) after linking.
16229         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'
16230
16231         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16232         hardcode_libdir_separator_CXX=:
16233
16234         # Archives containing C++ object files must be created using
16235         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16236         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16237
16238         ;;
16239       RCC)
16240         # Rational C++ 2.4.1
16241         # FIXME: insert proper C++ library support
16242         ld_shlibs_CXX=no
16243         ;;
16244       cxx)
16245         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16246         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'
16247
16248         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16249         hardcode_libdir_separator_CXX=:
16250
16251         # Commands to make compiler produce verbose output that lists
16252         # what "hidden" libraries, object files and flags are used when
16253         # linking a shared library.
16254         #
16255         # There doesn't appear to be a way to prevent this compiler from
16256         # explicitly linking system object files so we need to strip them
16257         # from the output so that they don't get included in the library
16258         # dependencies.
16259         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'
16260         ;;
16261       *)
16262         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16263           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16264           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'
16265
16266           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16267           hardcode_libdir_separator_CXX=:
16268
16269           # Commands to make compiler produce verbose output that lists
16270           # what "hidden" libraries, object files and flags are used when
16271           # linking a shared library.
16272           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16273
16274         else
16275           # FIXME: insert proper C++ library support
16276           ld_shlibs_CXX=no
16277         fi
16278         ;;
16279     esac
16280     ;;
16281   osf4* | osf5*)
16282     case $cc_basename in
16283       KCC)
16284         # Kuck and Associates, Inc. (KAI) C++ Compiler
16285
16286         # KCC will only create a shared library if the output file
16287         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16288         # to its proper name (with version) after linking.
16289         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'
16290
16291         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16292         hardcode_libdir_separator_CXX=:
16293
16294         # Archives containing C++ object files must be created using
16295         # the KAI C++ compiler.
16296         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16297         ;;
16298       RCC)
16299         # Rational C++ 2.4.1
16300         # FIXME: insert proper C++ library support
16301         ld_shlibs_CXX=no
16302         ;;
16303       cxx)
16304         allow_undefined_flag_CXX=' -expect_unresolved \*'
16305         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'
16306         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16307           echo "-hidden">> $lib.exp~
16308           $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~
16309           $rm $lib.exp'
16310
16311         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16312         hardcode_libdir_separator_CXX=:
16313
16314         # Commands to make compiler produce verbose output that lists
16315         # what "hidden" libraries, object files and flags are used when
16316         # linking a shared library.
16317         #
16318         # There doesn't appear to be a way to prevent this compiler from
16319         # explicitly linking system object files so we need to strip them
16320         # from the output so that they don't get included in the library
16321         # dependencies.
16322         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'
16323         ;;
16324       *)
16325         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16326           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16327          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'
16328
16329           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16330           hardcode_libdir_separator_CXX=:
16331
16332           # Commands to make compiler produce verbose output that lists
16333           # what "hidden" libraries, object files and flags are used when
16334           # linking a shared library.
16335           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16336
16337         else
16338           # FIXME: insert proper C++ library support
16339           ld_shlibs_CXX=no
16340         fi
16341         ;;
16342     esac
16343     ;;
16344   psos*)
16345     # FIXME: insert proper C++ library support
16346     ld_shlibs_CXX=no
16347     ;;
16348   sco*)
16349     archive_cmds_need_lc_CXX=no
16350     case $cc_basename in
16351       CC)
16352         # FIXME: insert proper C++ library support
16353         ld_shlibs_CXX=no
16354         ;;
16355       *)
16356         # FIXME: insert proper C++ library support
16357         ld_shlibs_CXX=no
16358         ;;
16359     esac
16360     ;;
16361   sunos4*)
16362     case $cc_basename in
16363       CC)
16364         # Sun C++ 4.x
16365         # FIXME: insert proper C++ library support
16366         ld_shlibs_CXX=no
16367         ;;
16368       lcc)
16369         # Lucid
16370         # FIXME: insert proper C++ library support
16371         ld_shlibs_CXX=no
16372         ;;
16373       *)
16374         # FIXME: insert proper C++ library support
16375         ld_shlibs_CXX=no
16376         ;;
16377     esac
16378     ;;
16379   solaris*)
16380     case $cc_basename in
16381       CC)
16382         # Sun C++ 4.2, 5.x and Centerline C++
16383         no_undefined_flag_CXX=' -zdefs'
16384         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16385         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16386         $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'
16387
16388         hardcode_libdir_flag_spec_CXX='-R$libdir'
16389         hardcode_shlibpath_var_CXX=no
16390         case $host_os in
16391           solaris2.0-5 | solaris2.0-5.*) ;;
16392           *)
16393             # The C++ compiler is used as linker so we must use $wl
16394             # flag to pass the commands to the underlying system
16395             # linker.
16396             # Supported since Solaris 2.6 (maybe 2.5.1?)
16397             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16398             ;;
16399         esac
16400         link_all_deplibs_CXX=yes
16401
16402         # Commands to make compiler produce verbose output that lists
16403         # what "hidden" libraries, object files and flags are used when
16404         # linking a shared library.
16405         #
16406         # There doesn't appear to be a way to prevent this compiler from
16407         # explicitly linking system object files so we need to strip them
16408         # from the output so that they don't get included in the library
16409         # dependencies.
16410         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'
16411
16412         # Archives containing C++ object files must be created using
16413         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16414         # necessary to make sure instantiated templates are included
16415         # in the archive.
16416         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16417         ;;
16418       gcx)
16419         # Green Hills C++ Compiler
16420         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16421
16422         # The C++ compiler must be used to create the archive.
16423         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16424         ;;
16425       *)
16426         # GNU C++ compiler with Solaris linker
16427         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16428           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16429           if $CC --version | grep -v '^2\.7' > /dev/null; then
16430             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16431             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16432                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16433
16434             # Commands to make compiler produce verbose output that lists
16435             # what "hidden" libraries, object files and flags are used when
16436             # linking a shared library.
16437             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16438           else
16439             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16440             # platform.
16441             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16442             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16443                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16444
16445             # Commands to make compiler produce verbose output that lists
16446             # what "hidden" libraries, object files and flags are used when
16447             # linking a shared library.
16448             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16449           fi
16450
16451           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16452         fi
16453         ;;
16454     esac
16455     ;;
16456   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16457     archive_cmds_need_lc_CXX=no
16458     ;;
16459   tandem*)
16460     case $cc_basename in
16461       NCC)
16462         # NonStop-UX NCC 3.20
16463         # FIXME: insert proper C++ library support
16464         ld_shlibs_CXX=no
16465         ;;
16466       *)
16467         # FIXME: insert proper C++ library support
16468         ld_shlibs_CXX=no
16469         ;;
16470     esac
16471     ;;
16472   vxworks*)
16473     # FIXME: insert proper C++ library support
16474     ld_shlibs_CXX=no
16475     ;;
16476   *)
16477     # FIXME: insert proper C++ library support
16478     ld_shlibs_CXX=no
16479     ;;
16480 esac
16481 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16482 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16483 test "$ld_shlibs_CXX" = no && can_build_shared=no
16484
16485 GCC_CXX="$GXX"
16486 LD_CXX="$LD"
16487
16488
16489 cat > conftest.$ac_ext <<EOF
16490 class Foo
16491 {
16492 public:
16493   Foo (void) { a = 0; }
16494 private:
16495   int a;
16496 };
16497 EOF
16498
16499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16500   (eval $ac_compile) 2>&5
16501   ac_status=$?
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); }; then
16504   # Parse the compiler output and extract the necessary
16505   # objects, libraries and library flags.
16506
16507   # Sentinel used to keep track of whether or not we are before
16508   # the conftest object file.
16509   pre_test_object_deps_done=no
16510
16511   # The `*' in the case matches for architectures that use `case' in
16512   # $output_verbose_cmd can trigger glob expansion during the loop
16513   # eval without this substitution.
16514   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16515
16516   for p in `eval $output_verbose_link_cmd`; do
16517     case $p in
16518
16519     -L* | -R* | -l*)
16520        # Some compilers place space between "-{L,R}" and the path.
16521        # Remove the space.
16522        if test $p = "-L" \
16523           || test $p = "-R"; then
16524          prev=$p
16525          continue
16526        else
16527          prev=
16528        fi
16529
16530        if test "$pre_test_object_deps_done" = no; then
16531          case $p in
16532          -L* | -R*)
16533            # Internal compiler library paths should come after those
16534            # provided the user.  The postdeps already come after the
16535            # user supplied libs so there is no need to process them.
16536            if test -z "$compiler_lib_search_path_CXX"; then
16537              compiler_lib_search_path_CXX="${prev}${p}"
16538            else
16539              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16540            fi
16541            ;;
16542          # The "-l" case would never come before the object being
16543          # linked, so don't bother handling this case.
16544          esac
16545        else
16546          if test -z "$postdeps_CXX"; then
16547            postdeps_CXX="${prev}${p}"
16548          else
16549            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16550          fi
16551        fi
16552        ;;
16553
16554     *.$objext)
16555        # This assumes that the test object file only shows up
16556        # once in the compiler output.
16557        if test "$p" = "conftest.$objext"; then
16558          pre_test_object_deps_done=yes
16559          continue
16560        fi
16561
16562        if test "$pre_test_object_deps_done" = no; then
16563          if test -z "$predep_objects_CXX"; then
16564            predep_objects_CXX="$p"
16565          else
16566            predep_objects_CXX="$predep_objects_CXX $p"
16567          fi
16568        else
16569          if test -z "$postdep_objects_CXX"; then
16570            postdep_objects_CXX="$p"
16571          else
16572            postdep_objects_CXX="$postdep_objects_CXX $p"
16573          fi
16574        fi
16575        ;;
16576
16577     *) ;; # Ignore the rest.
16578
16579     esac
16580   done
16581
16582   # Clean up.
16583   rm -f a.out a.exe
16584 else
16585   echo "libtool.m4: error: problem compiling CXX test program"
16586 fi
16587
16588 $rm -f confest.$objext
16589
16590 case " $postdeps_CXX " in
16591 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16592 esac
16593
16594 lt_prog_compiler_wl_CXX=
16595 lt_prog_compiler_pic_CXX=
16596 lt_prog_compiler_static_CXX=
16597
16598 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16599 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16600
16601   # C++ specific cases for pic, static, wl, etc.
16602   if test "$GXX" = yes; then
16603     lt_prog_compiler_wl_CXX='-Wl,'
16604     lt_prog_compiler_static_CXX='-static'
16605
16606     case $host_os in
16607     aix*)
16608       # All AIX code is PIC.
16609       if test "$host_cpu" = ia64; then
16610         # AIX 5 now supports IA64 processor
16611         lt_prog_compiler_static_CXX='-Bstatic'
16612       fi
16613       ;;
16614     amigaos*)
16615       # FIXME: we need at least 68020 code to build shared libraries, but
16616       # adding the `-m68020' flag to GCC prevents building anything better,
16617       # like `-m68040'.
16618       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16619       ;;
16620     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16621       # PIC is the default for these OSes.
16622       ;;
16623     mingw* | os2* | pw32*)
16624       # This hack is so that the source file can tell whether it is being
16625       # built for inclusion in a dll (and should export symbols for example).
16626       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16627       ;;
16628     darwin* | rhapsody*)
16629       # PIC is the default on this platform
16630       # Common symbols not allowed in MH_DYLIB files
16631       lt_prog_compiler_pic_CXX='-fno-common'
16632       ;;
16633     *djgpp*)
16634       # DJGPP does not support shared libraries at all
16635       lt_prog_compiler_pic_CXX=
16636       ;;
16637     sysv4*MP*)
16638       if test -d /usr/nec; then
16639         lt_prog_compiler_pic_CXX=-Kconform_pic
16640       fi
16641       ;;
16642     hpux*)
16643       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16644       # not for PA HP-UX.
16645       case "$host_cpu" in
16646       hppa*64*|ia64*)
16647         ;;
16648       *)
16649         lt_prog_compiler_pic_CXX='-fPIC'
16650         ;;
16651       esac
16652       ;;
16653     *)
16654       lt_prog_compiler_pic_CXX='-fPIC'
16655       ;;
16656     esac
16657   else
16658     case $host_os in
16659       aix4* | aix5*)
16660         # All AIX code is PIC.
16661         if test "$host_cpu" = ia64; then
16662           # AIX 5 now supports IA64 processor
16663           lt_prog_compiler_static_CXX='-Bstatic'
16664         else
16665           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16666         fi
16667         ;;
16668       chorus*)
16669         case $cc_basename in
16670         cxch68)
16671           # Green Hills C++ Compiler
16672           # _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"
16673           ;;
16674         esac
16675         ;;
16676        darwin*)
16677          # PIC is the default on this platform
16678          # Common symbols not allowed in MH_DYLIB files
16679          case "$cc_basename" in
16680            xlc*)
16681            lt_prog_compiler_pic_CXX='-qnocommon'
16682            lt_prog_compiler_wl_CXX='-Wl,'
16683            ;;
16684          esac
16685        ;;
16686       dgux*)
16687         case $cc_basename in
16688           ec++)
16689             lt_prog_compiler_pic_CXX='-KPIC'
16690             ;;
16691           ghcx)
16692             # Green Hills C++ Compiler
16693             lt_prog_compiler_pic_CXX='-pic'
16694             ;;
16695           *)
16696             ;;
16697         esac
16698         ;;
16699       freebsd* | kfreebsd*-gnu)
16700         # FreeBSD uses GNU C++
16701         ;;
16702       hpux9* | hpux10* | hpux11*)
16703         case $cc_basename in
16704           CC)
16705             lt_prog_compiler_wl_CXX='-Wl,'
16706             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16707             if test "$host_cpu" != ia64; then
16708               lt_prog_compiler_pic_CXX='+Z'
16709             fi
16710             ;;
16711           aCC)
16712             lt_prog_compiler_wl_CXX='-Wl,'
16713             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16714             case "$host_cpu" in
16715             hppa*64*|ia64*)
16716               # +Z the default
16717               ;;
16718             *)
16719               lt_prog_compiler_pic_CXX='+Z'
16720               ;;
16721             esac
16722             ;;
16723           *)
16724             ;;
16725         esac
16726         ;;
16727       irix5* | irix6* | nonstopux*)
16728         case $cc_basename in
16729           CC)
16730             lt_prog_compiler_wl_CXX='-Wl,'
16731             lt_prog_compiler_static_CXX='-non_shared'
16732             # CC pic flag -KPIC is the default.
16733             ;;
16734           *)
16735             ;;
16736         esac
16737         ;;
16738       linux*)
16739         case $cc_basename in
16740           KCC)
16741             # KAI C++ Compiler
16742             lt_prog_compiler_wl_CXX='--backend -Wl,'
16743             lt_prog_compiler_pic_CXX='-fPIC'
16744             ;;
16745           icpc)
16746             # Intel C++
16747             lt_prog_compiler_wl_CXX='-Wl,'
16748             lt_prog_compiler_pic_CXX='-KPIC'
16749             lt_prog_compiler_static_CXX='-static'
16750             ;;
16751           cxx)
16752             # Compaq C++
16753             # Make sure the PIC flag is empty.  It appears that all Alpha
16754             # Linux and Compaq Tru64 Unix objects are PIC.
16755             lt_prog_compiler_pic_CXX=
16756             lt_prog_compiler_static_CXX='-non_shared'
16757             ;;
16758           *)
16759             ;;
16760         esac
16761         ;;
16762       lynxos*)
16763         ;;
16764       m88k*)
16765         ;;
16766       mvs*)
16767         case $cc_basename in
16768           cxx)
16769             lt_prog_compiler_pic_CXX='-W c,exportall'
16770             ;;
16771           *)
16772             ;;
16773         esac
16774         ;;
16775       netbsd*)
16776         ;;
16777       osf3* | osf4* | osf5*)
16778         case $cc_basename in
16779           KCC)
16780             lt_prog_compiler_wl_CXX='--backend -Wl,'
16781             ;;
16782           RCC)
16783             # Rational C++ 2.4.1
16784             lt_prog_compiler_pic_CXX='-pic'
16785             ;;
16786           cxx)
16787             # Digital/Compaq C++
16788             lt_prog_compiler_wl_CXX='-Wl,'
16789             # Make sure the PIC flag is empty.  It appears that all Alpha
16790             # Linux and Compaq Tru64 Unix objects are PIC.
16791             lt_prog_compiler_pic_CXX=
16792             lt_prog_compiler_static_CXX='-non_shared'
16793             ;;
16794           *)
16795             ;;
16796         esac
16797         ;;
16798       psos*)
16799         ;;
16800       sco*)
16801         case $cc_basename in
16802           CC)
16803             lt_prog_compiler_pic_CXX='-fPIC'
16804             ;;
16805           *)
16806             ;;
16807         esac
16808         ;;
16809       solaris*)
16810         case $cc_basename in
16811           CC)
16812             # Sun C++ 4.2, 5.x and Centerline C++
16813             lt_prog_compiler_pic_CXX='-KPIC'
16814             lt_prog_compiler_static_CXX='-Bstatic'
16815             lt_prog_compiler_wl_CXX='-Qoption ld '
16816             ;;
16817           gcx)
16818             # Green Hills C++ Compiler
16819             lt_prog_compiler_pic_CXX='-PIC'
16820             ;;
16821           *)
16822             ;;
16823         esac
16824         ;;
16825       sunos4*)
16826         case $cc_basename in
16827           CC)
16828             # Sun C++ 4.x
16829             lt_prog_compiler_pic_CXX='-pic'
16830             lt_prog_compiler_static_CXX='-Bstatic'
16831             ;;
16832           lcc)
16833             # Lucid
16834             lt_prog_compiler_pic_CXX='-pic'
16835             ;;
16836           *)
16837             ;;
16838         esac
16839         ;;
16840       tandem*)
16841         case $cc_basename in
16842           NCC)
16843             # NonStop-UX NCC 3.20
16844             lt_prog_compiler_pic_CXX='-KPIC'
16845             ;;
16846           *)
16847             ;;
16848         esac
16849         ;;
16850       unixware*)
16851         ;;
16852       vxworks*)
16853         ;;
16854       *)
16855         lt_prog_compiler_can_build_shared_CXX=no
16856         ;;
16857     esac
16858   fi
16859
16860 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16861 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16862
16863 #
16864 # Check to make sure the PIC flag actually works.
16865 #
16866 if test -n "$lt_prog_compiler_pic_CXX"; then
16867
16868 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16870 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16871   echo $ECHO_N "(cached) $ECHO_C" >&6
16872 else
16873   lt_prog_compiler_pic_works_CXX=no
16874   ac_outfile=conftest.$ac_objext
16875    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16876    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16877    # Insert the option either (1) after the last *FLAGS variable, or
16878    # (2) before a word containing "conftest.", or (3) at the end.
16879    # Note that $ac_compile itself does not contain backslashes and begins
16880    # with a dollar sign (not a hyphen), so the echo should work correctly.
16881    # The option is referenced via a variable to avoid confusing sed.
16882    lt_compile=`echo "$ac_compile" | $SED \
16883    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16885    -e 's:$: $lt_compiler_flag:'`
16886    (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16887    (eval "$lt_compile" 2>conftest.err)
16888    ac_status=$?
16889    cat conftest.err >&5
16890    echo "$as_me:16874: \$? = $ac_status" >&5
16891    if (exit $ac_status) && test -s "$ac_outfile"; then
16892      # The compiler can only warn and ignore the option if not recognized
16893      # So say no if there are warnings
16894      if test ! -s conftest.err; then
16895        lt_prog_compiler_pic_works_CXX=yes
16896      fi
16897    fi
16898    $rm conftest*
16899
16900 fi
16901 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16902 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16903
16904 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16905     case $lt_prog_compiler_pic_CXX in
16906      "" | " "*) ;;
16907      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16908      esac
16909 else
16910     lt_prog_compiler_pic_CXX=
16911      lt_prog_compiler_can_build_shared_CXX=no
16912 fi
16913
16914 fi
16915 case "$host_os" in
16916   # For platforms which do not support PIC, -DPIC is meaningless:
16917   *djgpp*)
16918     lt_prog_compiler_pic_CXX=
16919     ;;
16920   *)
16921     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16922     ;;
16923 esac
16924
16925 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16927 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16928   echo $ECHO_N "(cached) $ECHO_C" >&6
16929 else
16930   lt_cv_prog_compiler_c_o_CXX=no
16931    $rm -r conftest 2>/dev/null
16932    mkdir conftest
16933    cd conftest
16934    mkdir out
16935    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16936
16937    lt_compiler_flag="-o out/conftest2.$ac_objext"
16938    # Insert the option either (1) after the last *FLAGS variable, or
16939    # (2) before a word containing "conftest.", or (3) at the end.
16940    # Note that $ac_compile itself does not contain backslashes and begins
16941    # with a dollar sign (not a hyphen), so the echo should work correctly.
16942    lt_compile=`echo "$ac_compile" | $SED \
16943    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16944    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16945    -e 's:$: $lt_compiler_flag:'`
16946    (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
16947    (eval "$lt_compile" 2>out/conftest.err)
16948    ac_status=$?
16949    cat out/conftest.err >&5
16950    echo "$as_me:16934: \$? = $ac_status" >&5
16951    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16952    then
16953      # The compiler can only warn and ignore the option if not recognized
16954      # So say no if there are warnings
16955      if test ! -s out/conftest.err; then
16956        lt_cv_prog_compiler_c_o_CXX=yes
16957      fi
16958    fi
16959    chmod u+w .
16960    $rm conftest*
16961    # SGI C++ compiler will create directory out/ii_files/ for
16962    # template instantiation
16963    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16964    $rm out/* && rmdir out
16965    cd ..
16966    rmdir conftest
16967    $rm conftest*
16968
16969 fi
16970 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16971 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16972
16973
16974 hard_links="nottested"
16975 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16976   # do not overwrite the value of need_locks provided by the user
16977   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16978 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16979   hard_links=yes
16980   $rm conftest*
16981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16982   touch conftest.a
16983   ln conftest.a conftest.b 2>&5 || hard_links=no
16984   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16985   echo "$as_me:$LINENO: result: $hard_links" >&5
16986 echo "${ECHO_T}$hard_links" >&6
16987   if test "$hard_links" = no; then
16988     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16989 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16990     need_locks=warn
16991   fi
16992 else
16993   need_locks=no
16994 fi
16995
16996 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16997 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16998
16999   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17000   case $host_os in
17001   aix4* | aix5*)
17002     # If we're using GNU nm, then we don't want the "-C" option.
17003     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17004     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17005       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'
17006     else
17007       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'
17008     fi
17009     ;;
17010   pw32*)
17011     export_symbols_cmds_CXX="$ltdll_cmds"
17012   ;;
17013   cygwin* | mingw*)
17014     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17015   ;;
17016   *)
17017     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17018   ;;
17019   esac
17020
17021 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17022 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17023 test "$ld_shlibs_CXX" = no && can_build_shared=no
17024
17025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17026 if test "$GCC" = yes; then
17027   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17028 fi
17029
17030 #
17031 # Do we need to explicitly link libc?
17032 #
17033 case "x$archive_cmds_need_lc_CXX" in
17034 x|xyes)
17035   # Assume -lc should be added
17036   archive_cmds_need_lc_CXX=yes
17037
17038   if test "$enable_shared" = yes && test "$GCC" = yes; then
17039     case $archive_cmds_CXX in
17040     *'~'*)
17041       # FIXME: we may have to deal with multi-command sequences.
17042       ;;
17043     '$CC '*)
17044       # Test whether the compiler implicitly links with -lc since on some
17045       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17046       # to ld, don't add -lc before -lgcc.
17047       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17049       $rm conftest*
17050       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17051
17052       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17053   (eval $ac_compile) 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } 2>conftest.err; then
17057         soname=conftest
17058         lib=conftest
17059         libobjs=conftest.$ac_objext
17060         deplibs=
17061         wl=$lt_prog_compiler_wl_CXX
17062         compiler_flags=-v
17063         linker_flags=-v
17064         verstring=
17065         output_objdir=.
17066         libname=conftest
17067         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17068         allow_undefined_flag_CXX=
17069         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17070   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }
17074         then
17075           archive_cmds_need_lc_CXX=no
17076         else
17077           archive_cmds_need_lc_CXX=yes
17078         fi
17079         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17080       else
17081         cat conftest.err 1>&5
17082       fi
17083       $rm conftest*
17084       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17085 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17086       ;;
17087     esac
17088   fi
17089   ;;
17090 esac
17091
17092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17094 library_names_spec=
17095 libname_spec='lib$name'
17096 soname_spec=
17097 shrext_cmds=".so"
17098 postinstall_cmds=
17099 postuninstall_cmds=
17100 finish_cmds=
17101 finish_eval=
17102 shlibpath_var=
17103 shlibpath_overrides_runpath=unknown
17104 version_type=none
17105 dynamic_linker="$host_os ld.so"
17106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17107 if test "$GCC" = yes; then
17108   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17109   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17110     # if the path contains ";" then we assume it to be the separator
17111     # otherwise default to the standard path separator (i.e. ":") - it is
17112     # assumed that no part of a normal pathname contains ";" but that should
17113     # okay in the real world where ";" in dirpaths is itself problematic.
17114     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17115   else
17116     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17117   fi
17118 else
17119   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17120 fi
17121 need_lib_prefix=unknown
17122 hardcode_into_libs=no
17123
17124 # when you set need_version to no, make sure it does not cause -set_version
17125 # flags to be left without arguments
17126 need_version=unknown
17127
17128 case $host_os in
17129 aix3*)
17130   version_type=linux
17131   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17132   shlibpath_var=LIBPATH
17133
17134   # AIX 3 has no versioning support, so we append a major version to the name.
17135   soname_spec='${libname}${release}${shared_ext}$major'
17136   ;;
17137
17138 aix4* | aix5*)
17139   version_type=linux
17140   need_lib_prefix=no
17141   need_version=no
17142   hardcode_into_libs=yes
17143   if test "$host_cpu" = ia64; then
17144     # AIX 5 supports IA64
17145     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17146     shlibpath_var=LD_LIBRARY_PATH
17147   else
17148     # With GCC up to 2.95.x, collect2 would create an import file
17149     # for dependence libraries.  The import file would start with
17150     # the line `#! .'.  This would cause the generated library to
17151     # depend on `.', always an invalid library.  This was fixed in
17152     # development snapshots of GCC prior to 3.0.
17153     case $host_os in
17154       aix4 | aix4.[01] | aix4.[01].*)
17155       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17156            echo ' yes '
17157            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17158         :
17159       else
17160         can_build_shared=no
17161       fi
17162       ;;
17163     esac
17164     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17165     # soname into executable. Probably we can add versioning support to
17166     # collect2, so additional links can be useful in future.
17167     if test "$aix_use_runtimelinking" = yes; then
17168       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17169       # instead of lib<name>.a to let people know that these are not
17170       # typical AIX shared libraries.
17171       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172     else
17173       # We preserve .a as extension for shared libraries through AIX4.2
17174       # and later when we are not doing run time linking.
17175       library_names_spec='${libname}${release}.a $libname.a'
17176       soname_spec='${libname}${release}${shared_ext}$major'
17177     fi
17178     shlibpath_var=LIBPATH
17179   fi
17180   ;;
17181
17182 amigaos*)
17183   library_names_spec='$libname.ixlibrary $libname.a'
17184   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17185   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'
17186   ;;
17187
17188 beos*)
17189   library_names_spec='${libname}${shared_ext}'
17190   dynamic_linker="$host_os ld.so"
17191   shlibpath_var=LIBRARY_PATH
17192   ;;
17193
17194 bsdi[45]*)
17195   version_type=linux
17196   need_version=no
17197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198   soname_spec='${libname}${release}${shared_ext}$major'
17199   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17202   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17203   # the default ld.so.conf also contains /usr/contrib/lib and
17204   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17205   # libtool to hard-code these into programs
17206   ;;
17207
17208 cygwin* | mingw* | pw32*)
17209   version_type=windows
17210   shrext_cmds=".dll"
17211   need_version=no
17212   need_lib_prefix=no
17213
17214   case $GCC,$host_os in
17215   yes,cygwin* | yes,mingw* | yes,pw32*)
17216     library_names_spec='$libname.dll.a'
17217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17218     postinstall_cmds='base_file=`basename \${file}`~
17219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17220       dldir=$destdir/`dirname \$dlpath`~
17221       test -d \$dldir || mkdir -p \$dldir~
17222       $install_prog $dir/$dlname \$dldir/$dlname'
17223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17224       dlpath=$dir/\$dldll~
17225        $rm \$dlpath'
17226     shlibpath_overrides_runpath=yes
17227
17228     case $host_os in
17229     cygwin*)
17230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17233       ;;
17234     mingw*)
17235       # MinGW DLLs use traditional 'lib' prefix
17236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17237       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17238       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17239         # It is most probably a Windows format PATH printed by
17240         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17241         # path with ; separators, and with drive letters. We can handle the
17242         # drive letters (cygwin fileutils understands them), so leave them,
17243         # especially as we might pass files found there to a mingw objdump,
17244         # which wouldn't understand a cygwinified path. Ahh.
17245         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17246       else
17247         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17248       fi
17249       ;;
17250     pw32*)
17251       # pw32 DLLs use 'pw' prefix rather than 'lib'
17252       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17253       ;;
17254     esac
17255     ;;
17256
17257   *)
17258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17259     ;;
17260   esac
17261   dynamic_linker='Win32 ld.exe'
17262   # FIXME: first we should search . and the directory the executable is in
17263   shlibpath_var=PATH
17264   ;;
17265
17266 darwin* | rhapsody*)
17267   dynamic_linker="$host_os dyld"
17268   version_type=darwin
17269   need_lib_prefix=no
17270   need_version=no
17271   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17272   soname_spec='${libname}${release}${major}$shared_ext'
17273   shlibpath_overrides_runpath=yes
17274   shlibpath_var=DYLD_LIBRARY_PATH
17275   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17276   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17277   if test "$GCC" = yes; then
17278     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"`
17279   else
17280     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17281   fi
17282   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17283   ;;
17284
17285 dgux*)
17286   version_type=linux
17287   need_lib_prefix=no
17288   need_version=no
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17290   soname_spec='${libname}${release}${shared_ext}$major'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   ;;
17293
17294 freebsd1*)
17295   dynamic_linker=no
17296   ;;
17297
17298 kfreebsd*-gnu)
17299   version_type=linux
17300   need_lib_prefix=no
17301   need_version=no
17302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17303   soname_spec='${libname}${release}${shared_ext}$major'
17304   shlibpath_var=LD_LIBRARY_PATH
17305   shlibpath_overrides_runpath=no
17306   hardcode_into_libs=yes
17307   dynamic_linker='GNU ld.so'
17308   ;;
17309
17310 freebsd*)
17311   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17312   version_type=freebsd-$objformat
17313   case $version_type in
17314     freebsd-elf*)
17315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17316       need_version=no
17317       need_lib_prefix=no
17318       ;;
17319     freebsd-*)
17320       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17321       need_version=yes
17322       ;;
17323   esac
17324   shlibpath_var=LD_LIBRARY_PATH
17325   case $host_os in
17326   freebsd2*)
17327     shlibpath_overrides_runpath=yes
17328     ;;
17329   freebsd3.01* | freebsdelf3.01*)
17330     shlibpath_overrides_runpath=yes
17331     hardcode_into_libs=yes
17332     ;;
17333   *) # from 3.2 on
17334     shlibpath_overrides_runpath=no
17335     hardcode_into_libs=yes
17336     ;;
17337   esac
17338   ;;
17339
17340 gnu*)
17341   version_type=linux
17342   need_lib_prefix=no
17343   need_version=no
17344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17345   soname_spec='${libname}${release}${shared_ext}$major'
17346   shlibpath_var=LD_LIBRARY_PATH
17347   hardcode_into_libs=yes
17348   ;;
17349
17350 hpux9* | hpux10* | hpux11*)
17351   # Give a soname corresponding to the major version so that dld.sl refuses to
17352   # link against other versions.
17353   version_type=sunos
17354   need_lib_prefix=no
17355   need_version=no
17356   case "$host_cpu" in
17357   ia64*)
17358     shrext_cmds='.so'
17359     hardcode_into_libs=yes
17360     dynamic_linker="$host_os dld.so"
17361     shlibpath_var=LD_LIBRARY_PATH
17362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364     soname_spec='${libname}${release}${shared_ext}$major'
17365     if test "X$HPUX_IA64_MODE" = X32; then
17366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17367     else
17368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17369     fi
17370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17371     ;;
17372    hppa*64*)
17373      shrext_cmds='.sl'
17374      hardcode_into_libs=yes
17375      dynamic_linker="$host_os dld.sl"
17376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379      soname_spec='${libname}${release}${shared_ext}$major'
17380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17382      ;;
17383    *)
17384     shrext_cmds='.sl'
17385     dynamic_linker="$host_os dld.sl"
17386     shlibpath_var=SHLIB_PATH
17387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17389     soname_spec='${libname}${release}${shared_ext}$major'
17390     ;;
17391   esac
17392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17393   postinstall_cmds='chmod 555 $lib'
17394   ;;
17395
17396 irix5* | irix6* | nonstopux*)
17397   case $host_os in
17398     nonstopux*) version_type=nonstopux ;;
17399     *)
17400         if test "$lt_cv_prog_gnu_ld" = yes; then
17401                 version_type=linux
17402         else
17403                 version_type=irix
17404         fi ;;
17405   esac
17406   need_lib_prefix=no
17407   need_version=no
17408   soname_spec='${libname}${release}${shared_ext}$major'
17409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17410   case $host_os in
17411   irix5* | nonstopux*)
17412     libsuff= shlibsuff=
17413     ;;
17414   *)
17415     case $LD in # libtool.m4 will add one of these switches to LD
17416     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17417       libsuff= shlibsuff= libmagic=32-bit;;
17418     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17419       libsuff=32 shlibsuff=N32 libmagic=N32;;
17420     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17421       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17422     *) libsuff= shlibsuff= libmagic=never-match;;
17423     esac
17424     ;;
17425   esac
17426   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17427   shlibpath_overrides_runpath=no
17428   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17429   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17430   hardcode_into_libs=yes
17431   ;;
17432
17433 # No shared lib support for Linux oldld, aout, or coff.
17434 linux*oldld* | linux*aout* | linux*coff*)
17435   dynamic_linker=no
17436   ;;
17437
17438 # This must be Linux ELF.
17439 linux*)
17440   version_type=linux
17441   need_lib_prefix=no
17442   need_version=no
17443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444   soname_spec='${libname}${release}${shared_ext}$major'
17445   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17446   shlibpath_var=LD_LIBRARY_PATH
17447   shlibpath_overrides_runpath=no
17448   # This implies no fast_install, which is unacceptable.
17449   # Some rework will be needed to allow for fast_install
17450   # before this can be enabled.
17451   hardcode_into_libs=yes
17452
17453   # Append ld.so.conf contents to the search path
17454   if test -f /etc/ld.so.conf; then
17455     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17456     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17457   fi
17458
17459   # We used to test for /lib/ld.so.1 and disable shared libraries on
17460   # powerpc, because MkLinux only supported shared libraries with the
17461   # GNU dynamic linker.  Since this was broken with cross compilers,
17462   # most powerpc-linux boxes support dynamic linking these days and
17463   # people can always --disable-shared, the test was removed, and we
17464   # assume the GNU/Linux dynamic linker is in use.
17465   dynamic_linker='GNU/Linux ld.so'
17466   ;;
17467
17468 knetbsd*-gnu)
17469   version_type=linux
17470   need_lib_prefix=no
17471   need_version=no
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473   soname_spec='${libname}${release}${shared_ext}$major'
17474   shlibpath_var=LD_LIBRARY_PATH
17475   shlibpath_overrides_runpath=no
17476   hardcode_into_libs=yes
17477   dynamic_linker='GNU ld.so'
17478   ;;
17479
17480 netbsd*)
17481   version_type=sunos
17482   need_lib_prefix=no
17483   need_version=no
17484   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17486     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17487     dynamic_linker='NetBSD (a.out) ld.so'
17488   else
17489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17490     soname_spec='${libname}${release}${shared_ext}$major'
17491     dynamic_linker='NetBSD ld.elf_so'
17492   fi
17493   shlibpath_var=LD_LIBRARY_PATH
17494   shlibpath_overrides_runpath=yes
17495   hardcode_into_libs=yes
17496   ;;
17497
17498 newsos6)
17499   version_type=linux
17500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501   shlibpath_var=LD_LIBRARY_PATH
17502   shlibpath_overrides_runpath=yes
17503   ;;
17504
17505 nto-qnx*)
17506   version_type=linux
17507   need_lib_prefix=no
17508   need_version=no
17509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510   soname_spec='${libname}${release}${shared_ext}$major'
17511   shlibpath_var=LD_LIBRARY_PATH
17512   shlibpath_overrides_runpath=yes
17513   ;;
17514
17515 openbsd*)
17516   version_type=sunos
17517   need_lib_prefix=no
17518   need_version=no
17519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17521   shlibpath_var=LD_LIBRARY_PATH
17522   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17523     case $host_os in
17524       openbsd2.[89] | openbsd2.[89].*)
17525         shlibpath_overrides_runpath=no
17526         ;;
17527       *)
17528         shlibpath_overrides_runpath=yes
17529         ;;
17530       esac
17531   else
17532     shlibpath_overrides_runpath=yes
17533   fi
17534   ;;
17535
17536 os2*)
17537   libname_spec='$name'
17538   shrext_cmds=".dll"
17539   need_lib_prefix=no
17540   library_names_spec='$libname${shared_ext} $libname.a'
17541   dynamic_linker='OS/2 ld.exe'
17542   shlibpath_var=LIBPATH
17543   ;;
17544
17545 osf3* | osf4* | osf5*)
17546   version_type=osf
17547   need_lib_prefix=no
17548   need_version=no
17549   soname_spec='${libname}${release}${shared_ext}$major'
17550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551   shlibpath_var=LD_LIBRARY_PATH
17552   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17553   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17554   ;;
17555
17556 sco3.2v5*)
17557   version_type=osf
17558   soname_spec='${libname}${release}${shared_ext}$major'
17559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560   shlibpath_var=LD_LIBRARY_PATH
17561   ;;
17562
17563 solaris*)
17564   version_type=linux
17565   need_lib_prefix=no
17566   need_version=no
17567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568   soname_spec='${libname}${release}${shared_ext}$major'
17569   shlibpath_var=LD_LIBRARY_PATH
17570   shlibpath_overrides_runpath=yes
17571   hardcode_into_libs=yes
17572   # ldd complains unless libraries are executable
17573   postinstall_cmds='chmod +x $lib'
17574   ;;
17575
17576 sunos4*)
17577   version_type=sunos
17578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17579   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17580   shlibpath_var=LD_LIBRARY_PATH
17581   shlibpath_overrides_runpath=yes
17582   if test "$with_gnu_ld" = yes; then
17583     need_lib_prefix=no
17584   fi
17585   need_version=yes
17586   ;;
17587
17588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17589   version_type=linux
17590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591   soname_spec='${libname}${release}${shared_ext}$major'
17592   shlibpath_var=LD_LIBRARY_PATH
17593   case $host_vendor in
17594     sni)
17595       shlibpath_overrides_runpath=no
17596       need_lib_prefix=no
17597       export_dynamic_flag_spec='${wl}-Blargedynsym'
17598       runpath_var=LD_RUN_PATH
17599       ;;
17600     siemens)
17601       need_lib_prefix=no
17602       ;;
17603     motorola)
17604       need_lib_prefix=no
17605       need_version=no
17606       shlibpath_overrides_runpath=no
17607       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17608       ;;
17609   esac
17610   ;;
17611
17612 sysv4*MP*)
17613   if test -d /usr/nec ;then
17614     version_type=linux
17615     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17616     soname_spec='$libname${shared_ext}.$major'
17617     shlibpath_var=LD_LIBRARY_PATH
17618   fi
17619   ;;
17620
17621 uts4*)
17622   version_type=linux
17623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17624   soname_spec='${libname}${release}${shared_ext}$major'
17625   shlibpath_var=LD_LIBRARY_PATH
17626   ;;
17627
17628 *)
17629   dynamic_linker=no
17630   ;;
17631 esac
17632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17633 echo "${ECHO_T}$dynamic_linker" >&6
17634 test "$dynamic_linker" = no && can_build_shared=no
17635
17636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17638 hardcode_action_CXX=
17639 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17640    test -n "$runpath_var_CXX" || \
17641    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17642
17643   # We can hardcode non-existant directories.
17644   if test "$hardcode_direct_CXX" != no &&
17645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17646      # have to relink, otherwise we might link with an installed library
17647      # when we should be linking with a yet-to-be-installed one
17648      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17649      test "$hardcode_minus_L_CXX" != no; then
17650     # Linking always hardcodes the temporary library directory.
17651     hardcode_action_CXX=relink
17652   else
17653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17654     hardcode_action_CXX=immediate
17655   fi
17656 else
17657   # We cannot hardcode anything, or else we can only hardcode existing
17658   # directories.
17659   hardcode_action_CXX=unsupported
17660 fi
17661 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17662 echo "${ECHO_T}$hardcode_action_CXX" >&6
17663
17664 if test "$hardcode_action_CXX" = relink; then
17665   # Fast installation is not supported
17666   enable_fast_install=no
17667 elif test "$shlibpath_overrides_runpath" = yes ||
17668      test "$enable_shared" = no; then
17669   # Fast installation is not necessary
17670   enable_fast_install=needless
17671 fi
17672
17673 striplib=
17674 old_striplib=
17675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17680   echo "$as_me:$LINENO: result: yes" >&5
17681 echo "${ECHO_T}yes" >&6
17682 else
17683 # FIXME - insert some real tests, host_os isn't really good enough
17684   case $host_os in
17685    darwin*)
17686        if test -n "$STRIP" ; then
17687          striplib="$STRIP -x"
17688          echo "$as_me:$LINENO: result: yes" >&5
17689 echo "${ECHO_T}yes" >&6
17690        else
17691   echo "$as_me:$LINENO: result: no" >&5
17692 echo "${ECHO_T}no" >&6
17693 fi
17694        ;;
17695    *)
17696   echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6
17698     ;;
17699   esac
17700 fi
17701
17702 if test "x$enable_dlopen" != xyes; then
17703   enable_dlopen=unknown
17704   enable_dlopen_self=unknown
17705   enable_dlopen_self_static=unknown
17706 else
17707   lt_cv_dlopen=no
17708   lt_cv_dlopen_libs=
17709
17710   case $host_os in
17711   beos*)
17712     lt_cv_dlopen="load_add_on"
17713     lt_cv_dlopen_libs=
17714     lt_cv_dlopen_self=yes
17715     ;;
17716
17717   mingw* | pw32*)
17718     lt_cv_dlopen="LoadLibrary"
17719     lt_cv_dlopen_libs=
17720    ;;
17721
17722   cygwin*)
17723     lt_cv_dlopen="dlopen"
17724     lt_cv_dlopen_libs=
17725    ;;
17726
17727   darwin*)
17728   # if libdl is installed we need to link against it
17729     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17732   echo $ECHO_N "(cached) $ECHO_C" >&6
17733 else
17734   ac_check_lib_save_LIBS=$LIBS
17735 LIBS="-ldl  $LIBS"
17736 cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742
17743 /* Override any gcc2 internal prototype to avoid an error.  */
17744 #ifdef __cplusplus
17745 extern "C"
17746 #endif
17747 /* We use char because int might match the return type of a gcc2
17748    builtin and then its argument prototype would still apply.  */
17749 char dlopen ();
17750 int
17751 main ()
17752 {
17753 dlopen ();
17754   ;
17755   return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17760   (eval $ac_link) 2>conftest.er1
17761   ac_status=$?
17762   grep -v '^ *+' conftest.er1 >conftest.err
17763   rm -f conftest.er1
17764   cat conftest.err >&5
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); } &&
17767          { ac_try='test -z "$ac_cxx_werror_flag"
17768                          || test ! -s conftest.err'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; } &&
17774          { ac_try='test -s conftest$ac_exeext'
17775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776   (eval $ac_try) 2>&5
17777   ac_status=$?
17778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; }; then
17780   ac_cv_lib_dl_dlopen=yes
17781 else
17782   echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17784
17785 ac_cv_lib_dl_dlopen=no
17786 fi
17787 rm -f conftest.err conftest.$ac_objext \
17788       conftest$ac_exeext conftest.$ac_ext
17789 LIBS=$ac_check_lib_save_LIBS
17790 fi
17791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17793 if test $ac_cv_lib_dl_dlopen = yes; then
17794   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17795 else
17796
17797     lt_cv_dlopen="dyld"
17798     lt_cv_dlopen_libs=
17799     lt_cv_dlopen_self=yes
17800
17801 fi
17802
17803    ;;
17804
17805   *)
17806     echo "$as_me:$LINENO: checking for shl_load" >&5
17807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17808 if test "${ac_cv_func_shl_load+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811   cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17819 #define shl_load innocuous_shl_load
17820
17821 /* System header to define __stub macros and hopefully few prototypes,
17822     which can conflict with char shl_load (); below.
17823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17824     <limits.h> exists even on freestanding compilers.  */
17825
17826 #ifdef __STDC__
17827 # include <limits.h>
17828 #else
17829 # include <assert.h>
17830 #endif
17831
17832 #undef shl_load
17833
17834 /* Override any gcc2 internal prototype to avoid an error.  */
17835 #ifdef __cplusplus
17836 extern "C"
17837 {
17838 #endif
17839 /* We use char because int might match the return type of a gcc2
17840    builtin and then its argument prototype would still apply.  */
17841 char shl_load ();
17842 /* The GNU C library defines this for functions which it implements
17843     to always fail with ENOSYS.  Some functions are actually named
17844     something starting with __ and the normal name is an alias.  */
17845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17846 choke me
17847 #else
17848 char (*f) () = shl_load;
17849 #endif
17850 #ifdef __cplusplus
17851 }
17852 #endif
17853
17854 int
17855 main ()
17856 {
17857 return f != shl_load;
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext conftest$ac_exeext
17863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17864   (eval $ac_link) 2>conftest.er1
17865   ac_status=$?
17866   grep -v '^ *+' conftest.er1 >conftest.err
17867   rm -f conftest.er1
17868   cat conftest.err >&5
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); } &&
17871          { ac_try='test -z "$ac_cxx_werror_flag"
17872                          || test ! -s conftest.err'
17873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874   (eval $ac_try) 2>&5
17875   ac_status=$?
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); }; } &&
17878          { ac_try='test -s conftest$ac_exeext'
17879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880   (eval $ac_try) 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; }; then
17884   ac_cv_func_shl_load=yes
17885 else
17886   echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ac_cv_func_shl_load=no
17890 fi
17891 rm -f conftest.err conftest.$ac_objext \
17892       conftest$ac_exeext conftest.$ac_ext
17893 fi
17894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17896 if test $ac_cv_func_shl_load = yes; then
17897   lt_cv_dlopen="shl_load"
17898 else
17899   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17902   echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904   ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-ldld  $LIBS"
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h.  */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h.  */
17912
17913 /* Override any gcc2 internal prototype to avoid an error.  */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 /* We use char because int might match the return type of a gcc2
17918    builtin and then its argument prototype would still apply.  */
17919 char shl_load ();
17920 int
17921 main ()
17922 {
17923 shl_load ();
17924   ;
17925   return 0;
17926 }
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17930   (eval $ac_link) 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_cxx_werror_flag"
17938                          || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest$ac_exeext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   ac_cv_lib_dld_shl_load=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 ac_cv_lib_dld_shl_load=no
17956 fi
17957 rm -f conftest.err conftest.$ac_objext \
17958       conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17960 fi
17961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17963 if test $ac_cv_lib_dld_shl_load = yes; then
17964   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17965 else
17966   echo "$as_me:$LINENO: checking for dlopen" >&5
17967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17968 if test "${ac_cv_func_dlopen+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17979 #define dlopen innocuous_dlopen
17980
17981 /* System header to define __stub macros and hopefully few prototypes,
17982     which can conflict with char dlopen (); below.
17983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984     <limits.h> exists even on freestanding compilers.  */
17985
17986 #ifdef __STDC__
17987 # include <limits.h>
17988 #else
17989 # include <assert.h>
17990 #endif
17991
17992 #undef dlopen
17993
17994 /* Override any gcc2 internal prototype to avoid an error.  */
17995 #ifdef __cplusplus
17996 extern "C"
17997 {
17998 #endif
17999 /* We use char because int might match the return type of a gcc2
18000    builtin and then its argument prototype would still apply.  */
18001 char dlopen ();
18002 /* The GNU C library defines this for functions which it implements
18003     to always fail with ENOSYS.  Some functions are actually named
18004     something starting with __ and the normal name is an alias.  */
18005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18006 choke me
18007 #else
18008 char (*f) () = dlopen;
18009 #endif
18010 #ifdef __cplusplus
18011 }
18012 #endif
18013
18014 int
18015 main ()
18016 {
18017 return f != dlopen;
18018   ;
18019   return 0;
18020 }
18021 _ACEOF
18022 rm -f conftest.$ac_objext conftest$ac_exeext
18023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18024   (eval $ac_link) 2>conftest.er1
18025   ac_status=$?
18026   grep -v '^ *+' conftest.er1 >conftest.err
18027   rm -f conftest.er1
18028   cat conftest.err >&5
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); } &&
18031          { ac_try='test -z "$ac_cxx_werror_flag"
18032                          || test ! -s conftest.err'
18033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034   (eval $ac_try) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; } &&
18038          { ac_try='test -s conftest$ac_exeext'
18039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040   (eval $ac_try) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; }; then
18044   ac_cv_func_dlopen=yes
18045 else
18046   echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18048
18049 ac_cv_func_dlopen=no
18050 fi
18051 rm -f conftest.err conftest.$ac_objext \
18052       conftest$ac_exeext conftest.$ac_ext
18053 fi
18054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18056 if test $ac_cv_func_dlopen = yes; then
18057   lt_cv_dlopen="dlopen"
18058 else
18059   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 else
18064   ac_check_lib_save_LIBS=$LIBS
18065 LIBS="-ldl  $LIBS"
18066 cat >conftest.$ac_ext <<_ACEOF
18067 /* confdefs.h.  */
18068 _ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h.  */
18072
18073 /* Override any gcc2 internal prototype to avoid an error.  */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 /* We use char because int might match the return type of a gcc2
18078    builtin and then its argument prototype would still apply.  */
18079 char dlopen ();
18080 int
18081 main ()
18082 {
18083 dlopen ();
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090   (eval $ac_link) 2>conftest.er1
18091   ac_status=$?
18092   grep -v '^ *+' conftest.er1 >conftest.err
18093   rm -f conftest.er1
18094   cat conftest.err >&5
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } &&
18097          { ac_try='test -z "$ac_cxx_werror_flag"
18098                          || test ! -s conftest.err'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; } &&
18104          { ac_try='test -s conftest$ac_exeext'
18105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106   (eval $ac_try) 2>&5
18107   ac_status=$?
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); }; }; then
18110   ac_cv_lib_dl_dlopen=yes
18111 else
18112   echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18114
18115 ac_cv_lib_dl_dlopen=no
18116 fi
18117 rm -f conftest.err conftest.$ac_objext \
18118       conftest$ac_exeext conftest.$ac_ext
18119 LIBS=$ac_check_lib_save_LIBS
18120 fi
18121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18123 if test $ac_cv_lib_dl_dlopen = yes; then
18124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18125 else
18126   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18129   echo $ECHO_N "(cached) $ECHO_C" >&6
18130 else
18131   ac_check_lib_save_LIBS=$LIBS
18132 LIBS="-lsvld  $LIBS"
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h.  */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h.  */
18139
18140 /* Override any gcc2 internal prototype to avoid an error.  */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 /* We use char because int might match the return type of a gcc2
18145    builtin and then its argument prototype would still apply.  */
18146 char dlopen ();
18147 int
18148 main ()
18149 {
18150 dlopen ();
18151   ;
18152   return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157   (eval $ac_link) 2>conftest.er1
18158   ac_status=$?
18159   grep -v '^ *+' conftest.er1 >conftest.err
18160   rm -f conftest.er1
18161   cat conftest.err >&5
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); } &&
18164          { ac_try='test -z "$ac_cxx_werror_flag"
18165                          || test ! -s conftest.err'
18166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167   (eval $ac_try) 2>&5
18168   ac_status=$?
18169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170   (exit $ac_status); }; } &&
18171          { ac_try='test -s conftest$ac_exeext'
18172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173   (eval $ac_try) 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); }; }; then
18177   ac_cv_lib_svld_dlopen=yes
18178 else
18179   echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182 ac_cv_lib_svld_dlopen=no
18183 fi
18184 rm -f conftest.err conftest.$ac_objext \
18185       conftest$ac_exeext conftest.$ac_ext
18186 LIBS=$ac_check_lib_save_LIBS
18187 fi
18188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18190 if test $ac_cv_lib_svld_dlopen = yes; then
18191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18192 else
18193   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18196   echo $ECHO_N "(cached) $ECHO_C" >&6
18197 else
18198   ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-ldld  $LIBS"
18200 cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 /* Override any gcc2 internal prototype to avoid an error.  */
18208 #ifdef __cplusplus
18209 extern "C"
18210 #endif
18211 /* We use char because int might match the return type of a gcc2
18212    builtin and then its argument prototype would still apply.  */
18213 char dld_link ();
18214 int
18215 main ()
18216 {
18217 dld_link ();
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext conftest$ac_exeext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18224   (eval $ac_link) 2>conftest.er1
18225   ac_status=$?
18226   grep -v '^ *+' conftest.er1 >conftest.err
18227   rm -f conftest.er1
18228   cat conftest.err >&5
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); } &&
18231          { ac_try='test -z "$ac_cxx_werror_flag"
18232                          || test ! -s conftest.err'
18233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234   (eval $ac_try) 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; } &&
18238          { ac_try='test -s conftest$ac_exeext'
18239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240   (eval $ac_try) 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; }; then
18244   ac_cv_lib_dld_dld_link=yes
18245 else
18246   echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249 ac_cv_lib_dld_dld_link=no
18250 fi
18251 rm -f conftest.err conftest.$ac_objext \
18252       conftest$ac_exeext conftest.$ac_ext
18253 LIBS=$ac_check_lib_save_LIBS
18254 fi
18255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18257 if test $ac_cv_lib_dld_dld_link = yes; then
18258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18259 fi
18260
18261
18262 fi
18263
18264
18265 fi
18266
18267
18268 fi
18269
18270
18271 fi
18272
18273
18274 fi
18275
18276     ;;
18277   esac
18278
18279   if test "x$lt_cv_dlopen" != xno; then
18280     enable_dlopen=yes
18281   else
18282     enable_dlopen=no
18283   fi
18284
18285   case $lt_cv_dlopen in
18286   dlopen)
18287     save_CPPFLAGS="$CPPFLAGS"
18288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18289
18290     save_LDFLAGS="$LDFLAGS"
18291     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18292
18293     save_LIBS="$LIBS"
18294     LIBS="$lt_cv_dlopen_libs $LIBS"
18295
18296     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18298 if test "${lt_cv_dlopen_self+set}" = set; then
18299   echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301           if test "$cross_compiling" = yes; then :
18302   lt_cv_dlopen_self=cross
18303 else
18304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18305   lt_status=$lt_dlunknown
18306   cat > conftest.$ac_ext <<EOF
18307 #line 18291 "configure"
18308 #include "confdefs.h"
18309
18310 #if HAVE_DLFCN_H
18311 #include <dlfcn.h>
18312 #endif
18313
18314 #include <stdio.h>
18315
18316 #ifdef RTLD_GLOBAL
18317 #  define LT_DLGLOBAL           RTLD_GLOBAL
18318 #else
18319 #  ifdef DL_GLOBAL
18320 #    define LT_DLGLOBAL         DL_GLOBAL
18321 #  else
18322 #    define LT_DLGLOBAL         0
18323 #  endif
18324 #endif
18325
18326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18327    find out it does not work in some platform. */
18328 #ifndef LT_DLLAZY_OR_NOW
18329 #  ifdef RTLD_LAZY
18330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18331 #  else
18332 #    ifdef DL_LAZY
18333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18334 #    else
18335 #      ifdef RTLD_NOW
18336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18337 #      else
18338 #        ifdef DL_NOW
18339 #          define LT_DLLAZY_OR_NOW      DL_NOW
18340 #        else
18341 #          define LT_DLLAZY_OR_NOW      0
18342 #        endif
18343 #      endif
18344 #    endif
18345 #  endif
18346 #endif
18347
18348 #ifdef __cplusplus
18349 extern "C" void exit (int);
18350 #endif
18351
18352 void fnord() { int i=42;}
18353 int main ()
18354 {
18355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18356   int status = $lt_dlunknown;
18357
18358   if (self)
18359     {
18360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18362       /* dlclose (self); */
18363     }
18364
18365     exit (status);
18366 }
18367 EOF
18368   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369   (eval $ac_link) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18373     (./conftest; exit; ) 2>/dev/null
18374     lt_status=$?
18375     case x$lt_status in
18376       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18377       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18378       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18379     esac
18380   else :
18381     # compilation failed
18382     lt_cv_dlopen_self=no
18383   fi
18384 fi
18385 rm -fr conftest*
18386
18387
18388 fi
18389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18391
18392     if test "x$lt_cv_dlopen_self" = xyes; then
18393       LDFLAGS="$LDFLAGS $link_static_flag"
18394       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18396 if test "${lt_cv_dlopen_self_static+set}" = set; then
18397   echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399           if test "$cross_compiling" = yes; then :
18400   lt_cv_dlopen_self_static=cross
18401 else
18402   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18403   lt_status=$lt_dlunknown
18404   cat > conftest.$ac_ext <<EOF
18405 #line 18389 "configure"
18406 #include "confdefs.h"
18407
18408 #if HAVE_DLFCN_H
18409 #include <dlfcn.h>
18410 #endif
18411
18412 #include <stdio.h>
18413
18414 #ifdef RTLD_GLOBAL
18415 #  define LT_DLGLOBAL           RTLD_GLOBAL
18416 #else
18417 #  ifdef DL_GLOBAL
18418 #    define LT_DLGLOBAL         DL_GLOBAL
18419 #  else
18420 #    define LT_DLGLOBAL         0
18421 #  endif
18422 #endif
18423
18424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18425    find out it does not work in some platform. */
18426 #ifndef LT_DLLAZY_OR_NOW
18427 #  ifdef RTLD_LAZY
18428 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18429 #  else
18430 #    ifdef DL_LAZY
18431 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18432 #    else
18433 #      ifdef RTLD_NOW
18434 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18435 #      else
18436 #        ifdef DL_NOW
18437 #          define LT_DLLAZY_OR_NOW      DL_NOW
18438 #        else
18439 #          define LT_DLLAZY_OR_NOW      0
18440 #        endif
18441 #      endif
18442 #    endif
18443 #  endif
18444 #endif
18445
18446 #ifdef __cplusplus
18447 extern "C" void exit (int);
18448 #endif
18449
18450 void fnord() { int i=42;}
18451 int main ()
18452 {
18453   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18454   int status = $lt_dlunknown;
18455
18456   if (self)
18457     {
18458       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18459       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18460       /* dlclose (self); */
18461     }
18462
18463     exit (status);
18464 }
18465 EOF
18466   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467   (eval $ac_link) 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18471     (./conftest; exit; ) 2>/dev/null
18472     lt_status=$?
18473     case x$lt_status in
18474       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18475       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18476       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18477     esac
18478   else :
18479     # compilation failed
18480     lt_cv_dlopen_self_static=no
18481   fi
18482 fi
18483 rm -fr conftest*
18484
18485
18486 fi
18487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18489     fi
18490
18491     CPPFLAGS="$save_CPPFLAGS"
18492     LDFLAGS="$save_LDFLAGS"
18493     LIBS="$save_LIBS"
18494     ;;
18495   esac
18496
18497   case $lt_cv_dlopen_self in
18498   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18499   *) enable_dlopen_self=unknown ;;
18500   esac
18501
18502   case $lt_cv_dlopen_self_static in
18503   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18504   *) enable_dlopen_self_static=unknown ;;
18505   esac
18506 fi
18507
18508
18509 # The else clause should only fire when bootstrapping the
18510 # libtool distribution, otherwise you forgot to ship ltmain.sh
18511 # with your package, and you will get complaints that there are
18512 # no rules to generate ltmain.sh.
18513 if test -f "$ltmain"; then
18514   # See if we are running on zsh, and set the options which allow our commands through
18515   # without removal of \ escapes.
18516   if test -n "${ZSH_VERSION+set}" ; then
18517     setopt NO_GLOB_SUBST
18518   fi
18519   # Now quote all the things that may contain metacharacters while being
18520   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18521   # variables and quote the copies for generation of the libtool script.
18522   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18523     SED SHELL STRIP \
18524     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526     deplibs_check_method reload_flag reload_cmds need_locks \
18527     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528     lt_cv_sys_global_symbol_to_c_name_address \
18529     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530     old_postinstall_cmds old_postuninstall_cmds \
18531     compiler_CXX \
18532     CC_CXX \
18533     LD_CXX \
18534     lt_prog_compiler_wl_CXX \
18535     lt_prog_compiler_pic_CXX \
18536     lt_prog_compiler_static_CXX \
18537     lt_prog_compiler_no_builtin_flag_CXX \
18538     export_dynamic_flag_spec_CXX \
18539     thread_safe_flag_spec_CXX \
18540     whole_archive_flag_spec_CXX \
18541     enable_shared_with_static_runtimes_CXX \
18542     old_archive_cmds_CXX \
18543     old_archive_from_new_cmds_CXX \
18544     predep_objects_CXX \
18545     postdep_objects_CXX \
18546     predeps_CXX \
18547     postdeps_CXX \
18548     compiler_lib_search_path_CXX \
18549     archive_cmds_CXX \
18550     archive_expsym_cmds_CXX \
18551     postinstall_cmds_CXX \
18552     postuninstall_cmds_CXX \
18553     old_archive_from_expsyms_cmds_CXX \
18554     allow_undefined_flag_CXX \
18555     no_undefined_flag_CXX \
18556     export_symbols_cmds_CXX \
18557     hardcode_libdir_flag_spec_CXX \
18558     hardcode_libdir_flag_spec_ld_CXX \
18559     hardcode_libdir_separator_CXX \
18560     hardcode_automatic_CXX \
18561     module_cmds_CXX \
18562     module_expsym_cmds_CXX \
18563     lt_cv_prog_compiler_c_o_CXX \
18564     exclude_expsyms_CXX \
18565     include_expsyms_CXX; do
18566
18567     case $var in
18568     old_archive_cmds_CXX | \
18569     old_archive_from_new_cmds_CXX | \
18570     archive_cmds_CXX | \
18571     archive_expsym_cmds_CXX | \
18572     module_cmds_CXX | \
18573     module_expsym_cmds_CXX | \
18574     old_archive_from_expsyms_cmds_CXX | \
18575     export_symbols_cmds_CXX | \
18576     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18577     postinstall_cmds | postuninstall_cmds | \
18578     old_postinstall_cmds | old_postuninstall_cmds | \
18579     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18580       # Double-quote double-evaled strings.
18581       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18582       ;;
18583     *)
18584       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18585       ;;
18586     esac
18587   done
18588
18589   case $lt_echo in
18590   *'\$0 --fallback-echo"')
18591     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18592     ;;
18593   esac
18594
18595 cfgfile="$ofile"
18596
18597   cat <<__EOF__ >> "$cfgfile"
18598 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18599
18600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18601
18602 # Shell to use when invoking shell scripts.
18603 SHELL=$lt_SHELL
18604
18605 # Whether or not to build shared libraries.
18606 build_libtool_libs=$enable_shared
18607
18608 # Whether or not to build static libraries.
18609 build_old_libs=$enable_static
18610
18611 # Whether or not to add -lc for building shared libraries.
18612 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18613
18614 # Whether or not to disallow shared libs when runtime libs are static
18615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18616
18617 # Whether or not to optimize for fast installation.
18618 fast_install=$enable_fast_install
18619
18620 # The host system.
18621 host_alias=$host_alias
18622 host=$host
18623
18624 # An echo program that does not interpret backslashes.
18625 echo=$lt_echo
18626
18627 # The archiver.
18628 AR=$lt_AR
18629 AR_FLAGS=$lt_AR_FLAGS
18630
18631 # A C compiler.
18632 LTCC=$lt_LTCC
18633
18634 # A language-specific compiler.
18635 CC=$lt_compiler_CXX
18636
18637 # Is the compiler the GNU C compiler?
18638 with_gcc=$GCC_CXX
18639
18640 # An ERE matcher.
18641 EGREP=$lt_EGREP
18642
18643 # The linker used to build libraries.
18644 LD=$lt_LD_CXX
18645
18646 # Whether we need hard or soft links.
18647 LN_S=$lt_LN_S
18648
18649 # A BSD-compatible nm program.
18650 NM=$lt_NM
18651
18652 # A symbol stripping program
18653 STRIP=$lt_STRIP
18654
18655 # Used to examine libraries when file_magic_cmd begins "file"
18656 MAGIC_CMD=$MAGIC_CMD
18657
18658 # Used on cygwin: DLL creation program.
18659 DLLTOOL="$DLLTOOL"
18660
18661 # Used on cygwin: object dumper.
18662 OBJDUMP="$OBJDUMP"
18663
18664 # Used on cygwin: assembler.
18665 AS="$AS"
18666
18667 # The name of the directory that contains temporary libtool files.
18668 objdir=$objdir
18669
18670 # How to create reloadable object files.
18671 reload_flag=$lt_reload_flag
18672 reload_cmds=$lt_reload_cmds
18673
18674 # How to pass a linker flag through the compiler.
18675 wl=$lt_lt_prog_compiler_wl_CXX
18676
18677 # Object file suffix (normally "o").
18678 objext="$ac_objext"
18679
18680 # Old archive suffix (normally "a").
18681 libext="$libext"
18682
18683 # Shared library suffix (normally ".so").
18684 shrext_cmds='$shrext_cmds'
18685
18686 # Executable file suffix (normally "").
18687 exeext="$exeext"
18688
18689 # Additional compiler flags for building library objects.
18690 pic_flag=$lt_lt_prog_compiler_pic_CXX
18691 pic_mode=$pic_mode
18692
18693 # What is the maximum length of a command?
18694 max_cmd_len=$lt_cv_sys_max_cmd_len
18695
18696 # Does compiler simultaneously support -c and -o options?
18697 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18698
18699 # Must we lock files when doing compilation ?
18700 need_locks=$lt_need_locks
18701
18702 # Do we need the lib prefix for modules?
18703 need_lib_prefix=$need_lib_prefix
18704
18705 # Do we need a version for libraries?
18706 need_version=$need_version
18707
18708 # Whether dlopen is supported.
18709 dlopen_support=$enable_dlopen
18710
18711 # Whether dlopen of programs is supported.
18712 dlopen_self=$enable_dlopen_self
18713
18714 # Whether dlopen of statically linked programs is supported.
18715 dlopen_self_static=$enable_dlopen_self_static
18716
18717 # Compiler flag to prevent dynamic linking.
18718 link_static_flag=$lt_lt_prog_compiler_static_CXX
18719
18720 # Compiler flag to turn off builtin functions.
18721 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18722
18723 # Compiler flag to allow reflexive dlopens.
18724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18725
18726 # Compiler flag to generate shared objects directly from archives.
18727 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18728
18729 # Compiler flag to generate thread-safe objects.
18730 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18731
18732 # Library versioning type.
18733 version_type=$version_type
18734
18735 # Format of library name prefix.
18736 libname_spec=$lt_libname_spec
18737
18738 # List of archive names.  First name is the real one, the rest are links.
18739 # The last name is the one that the linker finds with -lNAME.
18740 library_names_spec=$lt_library_names_spec
18741
18742 # The coded name of the library, if different from the real name.
18743 soname_spec=$lt_soname_spec
18744
18745 # Commands used to build and install an old-style archive.
18746 RANLIB=$lt_RANLIB
18747 old_archive_cmds=$lt_old_archive_cmds_CXX
18748 old_postinstall_cmds=$lt_old_postinstall_cmds
18749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18750
18751 # Create an old-style archive from a shared archive.
18752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18753
18754 # Create a temporary old-style archive to link instead of a shared archive.
18755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18756
18757 # Commands used to build and install a shared archive.
18758 archive_cmds=$lt_archive_cmds_CXX
18759 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18760 postinstall_cmds=$lt_postinstall_cmds
18761 postuninstall_cmds=$lt_postuninstall_cmds
18762
18763 # Commands used to build a loadable module (assumed same as above if empty)
18764 module_cmds=$lt_module_cmds_CXX
18765 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18766
18767 # Commands to strip libraries.
18768 old_striplib=$lt_old_striplib
18769 striplib=$lt_striplib
18770
18771 # Dependencies to place before the objects being linked to create a
18772 # shared library.
18773 predep_objects=$lt_predep_objects_CXX
18774
18775 # Dependencies to place after the objects being linked to create a
18776 # shared library.
18777 postdep_objects=$lt_postdep_objects_CXX
18778
18779 # Dependencies to place before the objects being linked to create a
18780 # shared library.
18781 predeps=$lt_predeps_CXX
18782
18783 # Dependencies to place after the objects being linked to create a
18784 # shared library.
18785 postdeps=$lt_postdeps_CXX
18786
18787 # The library search path used internally by the compiler when linking
18788 # a shared library.
18789 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18790
18791 # Method to check whether dependent libraries are shared objects.
18792 deplibs_check_method=$lt_deplibs_check_method
18793
18794 # Command to use when deplibs_check_method == file_magic.
18795 file_magic_cmd=$lt_file_magic_cmd
18796
18797 # Flag that allows shared libraries with undefined symbols to be built.
18798 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18799
18800 # Flag that forces no undefined symbols.
18801 no_undefined_flag=$lt_no_undefined_flag_CXX
18802
18803 # Commands used to finish a libtool library installation in a directory.
18804 finish_cmds=$lt_finish_cmds
18805
18806 # Same as above, but a single script fragment to be evaled but not shown.
18807 finish_eval=$lt_finish_eval
18808
18809 # Take the output of nm and produce a listing of raw symbols and C names.
18810 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18811
18812 # Transform the output of nm in a proper C declaration
18813 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18814
18815 # Transform the output of nm in a C name address pair
18816 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18817
18818 # This is the shared library runtime path variable.
18819 runpath_var=$runpath_var
18820
18821 # This is the shared library path variable.
18822 shlibpath_var=$shlibpath_var
18823
18824 # Is shlibpath searched before the hard-coded library search path?
18825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18826
18827 # How to hardcode a shared library path into an executable.
18828 hardcode_action=$hardcode_action_CXX
18829
18830 # Whether we should hardcode library paths into libraries.
18831 hardcode_into_libs=$hardcode_into_libs
18832
18833 # Flag to hardcode \$libdir into a binary during linking.
18834 # This must work even if \$libdir does not exist.
18835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18836
18837 # If ld is used when linking, flag to hardcode \$libdir into
18838 # a binary during linking. This must work even if \$libdir does
18839 # not exist.
18840 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18841
18842 # Whether we need a single -rpath flag with a separated argument.
18843 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18844
18845 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18846 # resulting binary.
18847 hardcode_direct=$hardcode_direct_CXX
18848
18849 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_minus_L=$hardcode_minus_L_CXX
18852
18853 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18854 # the resulting binary.
18855 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18856
18857 # Set to yes if building a shared library automatically hardcodes DIR into the library
18858 # and all subsequent libraries and executables linked against it.
18859 hardcode_automatic=$hardcode_automatic_CXX
18860
18861 # Variables whose values should be saved in libtool wrapper scripts and
18862 # restored at relink time.
18863 variables_saved_for_relink="$variables_saved_for_relink"
18864
18865 # Whether libtool must link a program against all its dependency libraries.
18866 link_all_deplibs=$link_all_deplibs_CXX
18867
18868 # Compile-time system search path for libraries
18869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18870
18871 # Run-time system search path for libraries
18872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18873
18874 # Fix the shell variable \$srcfile for the compiler.
18875 fix_srcfile_path="$fix_srcfile_path_CXX"
18876
18877 # Set to yes if exported symbols are required.
18878 always_export_symbols=$always_export_symbols_CXX
18879
18880 # The commands to list exported symbols.
18881 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18882
18883 # The commands to extract the exported symbol list from a shared archive.
18884 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18885
18886 # Symbols that should not be listed in the preloaded symbols.
18887 exclude_expsyms=$lt_exclude_expsyms_CXX
18888
18889 # Symbols that must always be exported.
18890 include_expsyms=$lt_include_expsyms_CXX
18891
18892 # ### END LIBTOOL TAG CONFIG: $tagname
18893
18894 __EOF__
18895
18896
18897 else
18898   # If there is no Makefile yet, we rely on a make rule to execute
18899   # `config.status --recheck' to rerun these tests and create the
18900   # libtool script then.
18901   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18902   if test -f "$ltmain_in"; then
18903     test -f Makefile && make "$ltmain"
18904   fi
18905 fi
18906
18907
18908 ac_ext=c
18909 ac_cpp='$CPP $CPPFLAGS'
18910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18913
18914 CC=$lt_save_CC
18915 LDCXX=$LD
18916 LD=$lt_save_LD
18917 GCC=$lt_save_GCC
18918 with_gnu_ldcxx=$with_gnu_ld
18919 with_gnu_ld=$lt_save_with_gnu_ld
18920 lt_cv_path_LDCXX=$lt_cv_path_LD
18921 lt_cv_path_LD=$lt_save_path_LD
18922 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18923 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18924
18925         else
18926           tagname=""
18927         fi
18928         ;;
18929
18930       F77)
18931         if test -n "$F77" && test "X$F77" != "Xno"; then
18932
18933 ac_ext=f
18934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18937
18938
18939 archive_cmds_need_lc_F77=no
18940 allow_undefined_flag_F77=
18941 always_export_symbols_F77=no
18942 archive_expsym_cmds_F77=
18943 export_dynamic_flag_spec_F77=
18944 hardcode_direct_F77=no
18945 hardcode_libdir_flag_spec_F77=
18946 hardcode_libdir_flag_spec_ld_F77=
18947 hardcode_libdir_separator_F77=
18948 hardcode_minus_L_F77=no
18949 hardcode_automatic_F77=no
18950 module_cmds_F77=
18951 module_expsym_cmds_F77=
18952 link_all_deplibs_F77=unknown
18953 old_archive_cmds_F77=$old_archive_cmds
18954 no_undefined_flag_F77=
18955 whole_archive_flag_spec_F77=
18956 enable_shared_with_static_runtimes_F77=no
18957
18958 # Source file extension for f77 test sources.
18959 ac_ext=f
18960
18961 # Object file extension for compiled f77 test sources.
18962 objext=o
18963 objext_F77=$objext
18964
18965 # Code to be used in simple compile tests
18966 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18967
18968 # Code to be used in simple link tests
18969 lt_simple_link_test_code="      program t\n      end\n"
18970
18971 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18972
18973 # If no C compiler was specified, use CC.
18974 LTCC=${LTCC-"$CC"}
18975
18976 # Allow CC to be a program name with arguments.
18977 compiler=$CC
18978
18979
18980 # Allow CC to be a program name with arguments.
18981 lt_save_CC="$CC"
18982 CC=${F77-"f77"}
18983 compiler=$CC
18984 compiler_F77=$CC
18985 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18986
18987 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18988 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18989 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18990 echo "${ECHO_T}$can_build_shared" >&6
18991
18992 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18993 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18994 test "$can_build_shared" = "no" && enable_shared=no
18995
18996 # On AIX, shared libraries and static libraries use the same namespace, and
18997 # are all built from PIC.
18998 case "$host_os" in
18999 aix3*)
19000   test "$enable_shared" = yes && enable_static=no
19001   if test -n "$RANLIB"; then
19002     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19003     postinstall_cmds='$RANLIB $lib'
19004   fi
19005   ;;
19006 aix4* | aix5*)
19007   test "$enable_shared" = yes && enable_static=no
19008   ;;
19009 esac
19010 echo "$as_me:$LINENO: result: $enable_shared" >&5
19011 echo "${ECHO_T}$enable_shared" >&6
19012
19013 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19014 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19015 # Make sure either enable_shared or enable_static is yes.
19016 test "$enable_shared" = yes || enable_static=yes
19017 echo "$as_me:$LINENO: result: $enable_static" >&5
19018 echo "${ECHO_T}$enable_static" >&6
19019
19020 test "$ld_shlibs_F77" = no && can_build_shared=no
19021
19022 GCC_F77="$G77"
19023 LD_F77="$LD"
19024
19025 lt_prog_compiler_wl_F77=
19026 lt_prog_compiler_pic_F77=
19027 lt_prog_compiler_static_F77=
19028
19029 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19030 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19031
19032   if test "$GCC" = yes; then
19033     lt_prog_compiler_wl_F77='-Wl,'
19034     lt_prog_compiler_static_F77='-static'
19035
19036     case $host_os in
19037       aix*)
19038       # All AIX code is PIC.
19039       if test "$host_cpu" = ia64; then
19040         # AIX 5 now supports IA64 processor
19041         lt_prog_compiler_static_F77='-Bstatic'
19042       fi
19043       ;;
19044
19045     amigaos*)
19046       # FIXME: we need at least 68020 code to build shared libraries, but
19047       # adding the `-m68020' flag to GCC prevents building anything better,
19048       # like `-m68040'.
19049       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19050       ;;
19051
19052     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19053       # PIC is the default for these OSes.
19054       ;;
19055
19056     mingw* | pw32* | os2*)
19057       # This hack is so that the source file can tell whether it is being
19058       # built for inclusion in a dll (and should export symbols for example).
19059       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19060       ;;
19061
19062     darwin* | rhapsody*)
19063       # PIC is the default on this platform
19064       # Common symbols not allowed in MH_DYLIB files
19065       lt_prog_compiler_pic_F77='-fno-common'
19066       ;;
19067
19068     msdosdjgpp*)
19069       # Just because we use GCC doesn't mean we suddenly get shared libraries
19070       # on systems that don't support them.
19071       lt_prog_compiler_can_build_shared_F77=no
19072       enable_shared=no
19073       ;;
19074
19075     sysv4*MP*)
19076       if test -d /usr/nec; then
19077         lt_prog_compiler_pic_F77=-Kconform_pic
19078       fi
19079       ;;
19080
19081     hpux*)
19082       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19083       # not for PA HP-UX.
19084       case "$host_cpu" in
19085       hppa*64*|ia64*)
19086         # +Z the default
19087         ;;
19088       *)
19089         lt_prog_compiler_pic_F77='-fPIC'
19090         ;;
19091       esac
19092       ;;
19093
19094     *)
19095       lt_prog_compiler_pic_F77='-fPIC'
19096       ;;
19097     esac
19098   else
19099     # PORTME Check for flag to pass linker flags through the system compiler.
19100     case $host_os in
19101     aix*)
19102       lt_prog_compiler_wl_F77='-Wl,'
19103       if test "$host_cpu" = ia64; then
19104         # AIX 5 now supports IA64 processor
19105         lt_prog_compiler_static_F77='-Bstatic'
19106       else
19107         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19108       fi
19109       ;;
19110       darwin*)
19111         # PIC is the default on this platform
19112         # Common symbols not allowed in MH_DYLIB files
19113        case "$cc_basename" in
19114          xlc*)
19115          lt_prog_compiler_pic_F77='-qnocommon'
19116          lt_prog_compiler_wl_F77='-Wl,'
19117          ;;
19118        esac
19119        ;;
19120
19121     mingw* | pw32* | os2*)
19122       # This hack is so that the source file can tell whether it is being
19123       # built for inclusion in a dll (and should export symbols for example).
19124       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19125       ;;
19126
19127     hpux9* | hpux10* | hpux11*)
19128       lt_prog_compiler_wl_F77='-Wl,'
19129       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19130       # not for PA HP-UX.
19131       case "$host_cpu" in
19132       hppa*64*|ia64*)
19133         # +Z the default
19134         ;;
19135       *)
19136         lt_prog_compiler_pic_F77='+Z'
19137         ;;
19138       esac
19139       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19140       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19141       ;;
19142
19143     irix5* | irix6* | nonstopux*)
19144       lt_prog_compiler_wl_F77='-Wl,'
19145       # PIC (with -KPIC) is the default.
19146       lt_prog_compiler_static_F77='-non_shared'
19147       ;;
19148
19149     newsos6)
19150       lt_prog_compiler_pic_F77='-KPIC'
19151       lt_prog_compiler_static_F77='-Bstatic'
19152       ;;
19153
19154     linux*)
19155       case $CC in
19156       icc* | ecc*)
19157         lt_prog_compiler_wl_F77='-Wl,'
19158         lt_prog_compiler_pic_F77='-KPIC'
19159         lt_prog_compiler_static_F77='-static'
19160         ;;
19161       ccc*)
19162         lt_prog_compiler_wl_F77='-Wl,'
19163         # All Alpha code is PIC.
19164         lt_prog_compiler_static_F77='-non_shared'
19165         ;;
19166       esac
19167       ;;
19168
19169     osf3* | osf4* | osf5*)
19170       lt_prog_compiler_wl_F77='-Wl,'
19171       # All OSF/1 code is PIC.
19172       lt_prog_compiler_static_F77='-non_shared'
19173       ;;
19174
19175     sco3.2v5*)
19176       lt_prog_compiler_pic_F77='-Kpic'
19177       lt_prog_compiler_static_F77='-dn'
19178       ;;
19179
19180     solaris*)
19181       lt_prog_compiler_wl_F77='-Wl,'
19182       lt_prog_compiler_pic_F77='-KPIC'
19183       lt_prog_compiler_static_F77='-Bstatic'
19184       ;;
19185
19186     sunos4*)
19187       lt_prog_compiler_wl_F77='-Qoption ld '
19188       lt_prog_compiler_pic_F77='-PIC'
19189       lt_prog_compiler_static_F77='-Bstatic'
19190       ;;
19191
19192     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19193       lt_prog_compiler_wl_F77='-Wl,'
19194       lt_prog_compiler_pic_F77='-KPIC'
19195       lt_prog_compiler_static_F77='-Bstatic'
19196       ;;
19197
19198     sysv4*MP*)
19199       if test -d /usr/nec ;then
19200         lt_prog_compiler_pic_F77='-Kconform_pic'
19201         lt_prog_compiler_static_F77='-Bstatic'
19202       fi
19203       ;;
19204
19205     uts4*)
19206       lt_prog_compiler_pic_F77='-pic'
19207       lt_prog_compiler_static_F77='-Bstatic'
19208       ;;
19209
19210     *)
19211       lt_prog_compiler_can_build_shared_F77=no
19212       ;;
19213     esac
19214   fi
19215
19216 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19217 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19218
19219 #
19220 # Check to make sure the PIC flag actually works.
19221 #
19222 if test -n "$lt_prog_compiler_pic_F77"; then
19223
19224 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19225 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19226 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19227   echo $ECHO_N "(cached) $ECHO_C" >&6
19228 else
19229   lt_prog_compiler_pic_works_F77=no
19230   ac_outfile=conftest.$ac_objext
19231    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19232    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19233    # Insert the option either (1) after the last *FLAGS variable, or
19234    # (2) before a word containing "conftest.", or (3) at the end.
19235    # Note that $ac_compile itself does not contain backslashes and begins
19236    # with a dollar sign (not a hyphen), so the echo should work correctly.
19237    # The option is referenced via a variable to avoid confusing sed.
19238    lt_compile=`echo "$ac_compile" | $SED \
19239    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19241    -e 's:$: $lt_compiler_flag:'`
19242    (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
19243    (eval "$lt_compile" 2>conftest.err)
19244    ac_status=$?
19245    cat conftest.err >&5
19246    echo "$as_me:19230: \$? = $ac_status" >&5
19247    if (exit $ac_status) && test -s "$ac_outfile"; then
19248      # The compiler can only warn and ignore the option if not recognized
19249      # So say no if there are warnings
19250      if test ! -s conftest.err; then
19251        lt_prog_compiler_pic_works_F77=yes
19252      fi
19253    fi
19254    $rm conftest*
19255
19256 fi
19257 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19258 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19259
19260 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19261     case $lt_prog_compiler_pic_F77 in
19262      "" | " "*) ;;
19263      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19264      esac
19265 else
19266     lt_prog_compiler_pic_F77=
19267      lt_prog_compiler_can_build_shared_F77=no
19268 fi
19269
19270 fi
19271 case "$host_os" in
19272   # For platforms which do not support PIC, -DPIC is meaningless:
19273   *djgpp*)
19274     lt_prog_compiler_pic_F77=
19275     ;;
19276   *)
19277     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19278     ;;
19279 esac
19280
19281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19283 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   lt_cv_prog_compiler_c_o_F77=no
19287    $rm -r conftest 2>/dev/null
19288    mkdir conftest
19289    cd conftest
19290    mkdir out
19291    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19292
19293    lt_compiler_flag="-o out/conftest2.$ac_objext"
19294    # Insert the option either (1) after the last *FLAGS variable, or
19295    # (2) before a word containing "conftest.", or (3) at the end.
19296    # Note that $ac_compile itself does not contain backslashes and begins
19297    # with a dollar sign (not a hyphen), so the echo should work correctly.
19298    lt_compile=`echo "$ac_compile" | $SED \
19299    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19301    -e 's:$: $lt_compiler_flag:'`
19302    (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
19303    (eval "$lt_compile" 2>out/conftest.err)
19304    ac_status=$?
19305    cat out/conftest.err >&5
19306    echo "$as_me:19290: \$? = $ac_status" >&5
19307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19308    then
19309      # The compiler can only warn and ignore the option if not recognized
19310      # So say no if there are warnings
19311      if test ! -s out/conftest.err; then
19312        lt_cv_prog_compiler_c_o_F77=yes
19313      fi
19314    fi
19315    chmod u+w .
19316    $rm conftest*
19317    # SGI C++ compiler will create directory out/ii_files/ for
19318    # template instantiation
19319    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19320    $rm out/* && rmdir out
19321    cd ..
19322    rmdir conftest
19323    $rm conftest*
19324
19325 fi
19326 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19327 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19328
19329
19330 hard_links="nottested"
19331 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19332   # do not overwrite the value of need_locks provided by the user
19333   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19334 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19335   hard_links=yes
19336   $rm conftest*
19337   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19338   touch conftest.a
19339   ln conftest.a conftest.b 2>&5 || hard_links=no
19340   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19341   echo "$as_me:$LINENO: result: $hard_links" >&5
19342 echo "${ECHO_T}$hard_links" >&6
19343   if test "$hard_links" = no; then
19344     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19345 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19346     need_locks=warn
19347   fi
19348 else
19349   need_locks=no
19350 fi
19351
19352 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19353 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19354
19355   runpath_var=
19356   allow_undefined_flag_F77=
19357   enable_shared_with_static_runtimes_F77=no
19358   archive_cmds_F77=
19359   archive_expsym_cmds_F77=
19360   old_archive_From_new_cmds_F77=
19361   old_archive_from_expsyms_cmds_F77=
19362   export_dynamic_flag_spec_F77=
19363   whole_archive_flag_spec_F77=
19364   thread_safe_flag_spec_F77=
19365   hardcode_libdir_flag_spec_F77=
19366   hardcode_libdir_flag_spec_ld_F77=
19367   hardcode_libdir_separator_F77=
19368   hardcode_direct_F77=no
19369   hardcode_minus_L_F77=no
19370   hardcode_shlibpath_var_F77=unsupported
19371   link_all_deplibs_F77=unknown
19372   hardcode_automatic_F77=no
19373   module_cmds_F77=
19374   module_expsym_cmds_F77=
19375   always_export_symbols_F77=no
19376   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19377   # include_expsyms should be a list of space-separated symbols to be *always*
19378   # included in the symbol list
19379   include_expsyms_F77=
19380   # exclude_expsyms can be an extended regexp of symbols to exclude
19381   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19382   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19383   # as well as any symbol that contains `d'.
19384   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19385   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19386   # platforms (ab)use it in PIC code, but their linkers get confused if
19387   # the symbol is explicitly referenced.  Since portable code cannot
19388   # rely on this symbol name, it's probably fine to never include it in
19389   # preloaded symbol tables.
19390   extract_expsyms_cmds=
19391
19392   case $host_os in
19393   cygwin* | mingw* | pw32*)
19394     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19395     # When not using gcc, we currently assume that we are using
19396     # Microsoft Visual C++.
19397     if test "$GCC" != yes; then
19398       with_gnu_ld=no
19399     fi
19400     ;;
19401   openbsd*)
19402     with_gnu_ld=no
19403     ;;
19404   esac
19405
19406   ld_shlibs_F77=yes
19407   if test "$with_gnu_ld" = yes; then
19408     # If archive_cmds runs LD, not CC, wlarc should be empty
19409     wlarc='${wl}'
19410
19411     # See if GNU ld supports shared libraries.
19412     case $host_os in
19413     aix3* | aix4* | aix5*)
19414       # On AIX/PPC, the GNU linker is very broken
19415       if test "$host_cpu" != ia64; then
19416         ld_shlibs_F77=no
19417         cat <<EOF 1>&2
19418
19419 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19420 *** to be unable to reliably create shared libraries on AIX.
19421 *** Therefore, libtool is disabling shared libraries support.  If you
19422 *** really care for shared libraries, you may want to modify your PATH
19423 *** so that a non-GNU linker is found, and then restart.
19424
19425 EOF
19426       fi
19427       ;;
19428
19429     amigaos*)
19430       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)'
19431       hardcode_libdir_flag_spec_F77='-L$libdir'
19432       hardcode_minus_L_F77=yes
19433
19434       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19435       # that the semantics of dynamic libraries on AmigaOS, at least up
19436       # to version 4, is to share data among multiple programs linked
19437       # with the same dynamic library.  Since this doesn't match the
19438       # behavior of shared libraries on other platforms, we can't use
19439       # them.
19440       ld_shlibs_F77=no
19441       ;;
19442
19443     beos*)
19444       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19445         allow_undefined_flag_F77=unsupported
19446         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19447         # support --undefined.  This deserves some investigation.  FIXME
19448         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19449       else
19450         ld_shlibs_F77=no
19451       fi
19452       ;;
19453
19454     cygwin* | mingw* | pw32*)
19455       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19456       # as there is no search path for DLLs.
19457       hardcode_libdir_flag_spec_F77='-L$libdir'
19458       allow_undefined_flag_F77=unsupported
19459       always_export_symbols_F77=no
19460       enable_shared_with_static_runtimes_F77=yes
19461       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19462
19463       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19464         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19465         # If the export-symbols file already is a .def file (1st line
19466         # is EXPORTS), use it as is; otherwise, prepend...
19467         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19468           cp $export_symbols $output_objdir/$soname.def;
19469         else
19470           echo EXPORTS > $output_objdir/$soname.def;
19471           cat $export_symbols >> $output_objdir/$soname.def;
19472         fi~
19473         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19474       else
19475         ld_shlibs=no
19476       fi
19477       ;;
19478
19479     netbsd*)
19480       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19481         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19482         wlarc=
19483       else
19484         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19485         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19486       fi
19487       ;;
19488
19489     solaris* | sysv5*)
19490       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19491         ld_shlibs_F77=no
19492         cat <<EOF 1>&2
19493
19494 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19495 *** create shared libraries on Solaris systems.  Therefore, libtool
19496 *** is disabling shared libraries support.  We urge you to upgrade GNU
19497 *** binutils to release 2.9.1 or newer.  Another option is to modify
19498 *** your PATH or compiler configuration so that the native linker is
19499 *** used, and then restart.
19500
19501 EOF
19502       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19505       else
19506         ld_shlibs_F77=no
19507       fi
19508       ;;
19509
19510     sunos4*)
19511       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19512       wlarc=
19513       hardcode_direct_F77=yes
19514       hardcode_shlibpath_var_F77=no
19515       ;;
19516
19517   linux*)
19518     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19519         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19520         archive_cmds_F77="$tmp_archive_cmds"
19521       supports_anon_versioning=no
19522       case `$LD -v 2>/dev/null` in
19523         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19524         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19525         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19526         *\ 2.11.*) ;; # other 2.11 versions
19527         *) supports_anon_versioning=yes ;;
19528       esac
19529       if test $supports_anon_versioning = yes; then
19530         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19532 $echo "local: *; };" >> $output_objdir/$libname.ver~
19533         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19534       else
19535         archive_expsym_cmds_F77="$tmp_archive_cmds"
19536       fi
19537     else
19538       ld_shlibs_F77=no
19539     fi
19540     ;;
19541
19542     *)
19543       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19544         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19545         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19546       else
19547         ld_shlibs_F77=no
19548       fi
19549       ;;
19550     esac
19551
19552     if test "$ld_shlibs_F77" = yes; then
19553       runpath_var=LD_RUN_PATH
19554       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19555       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19556       # ancient GNU ld didn't support --whole-archive et. al.
19557       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19558         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19559       else
19560         whole_archive_flag_spec_F77=
19561       fi
19562     fi
19563   else
19564     # PORTME fill in a description of your system's linker (not GNU ld)
19565     case $host_os in
19566     aix3*)
19567       allow_undefined_flag_F77=unsupported
19568       always_export_symbols_F77=yes
19569       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'
19570       # Note: this linker hardcodes the directories in LIBPATH if there
19571       # are no directories specified by -L.
19572       hardcode_minus_L_F77=yes
19573       if test "$GCC" = yes && test -z "$link_static_flag"; then
19574         # Neither direct hardcoding nor static linking is supported with a
19575         # broken collect2.
19576         hardcode_direct_F77=unsupported
19577       fi
19578       ;;
19579
19580     aix4* | aix5*)
19581       if test "$host_cpu" = ia64; then
19582         # On IA64, the linker does run time linking by default, so we don't
19583         # have to do anything special.
19584         aix_use_runtimelinking=no
19585         exp_sym_flag='-Bexport'
19586         no_entry_flag=""
19587       else
19588         # If we're using GNU nm, then we don't want the "-C" option.
19589         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19590         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19591           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'
19592         else
19593           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'
19594         fi
19595         aix_use_runtimelinking=no
19596
19597         # Test if we are trying to use run time linking or normal
19598         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19599         # need to do runtime linking.
19600         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19601           for ld_flag in $LDFLAGS; do
19602           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19603             aix_use_runtimelinking=yes
19604             break
19605           fi
19606           done
19607         esac
19608
19609         exp_sym_flag='-bexport'
19610         no_entry_flag='-bnoentry'
19611       fi
19612
19613       # When large executables or shared objects are built, AIX ld can
19614       # have problems creating the table of contents.  If linking a library
19615       # or program results in "error TOC overflow" add -mminimal-toc to
19616       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19617       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19618
19619       archive_cmds_F77=''
19620       hardcode_direct_F77=yes
19621       hardcode_libdir_separator_F77=':'
19622       link_all_deplibs_F77=yes
19623
19624       if test "$GCC" = yes; then
19625         case $host_os in aix4.012|aix4.012.*)
19626         # We only want to do this on AIX 4.2 and lower, the check
19627         # below for broken collect2 doesn't work under 4.3+
19628           collect2name=`${CC} -print-prog-name=collect2`
19629           if test -f "$collect2name" && \
19630            strings "$collect2name" | grep resolve_lib_name >/dev/null
19631           then
19632           # We have reworked collect2
19633           hardcode_direct_F77=yes
19634           else
19635           # We have old collect2
19636           hardcode_direct_F77=unsupported
19637           # It fails to find uninstalled libraries when the uninstalled
19638           # path is not listed in the libpath.  Setting hardcode_minus_L
19639           # to unsupported forces relinking
19640           hardcode_minus_L_F77=yes
19641           hardcode_libdir_flag_spec_F77='-L$libdir'
19642           hardcode_libdir_separator_F77=
19643           fi
19644         esac
19645         shared_flag='-shared'
19646       else
19647         # not using gcc
19648         if test "$host_cpu" = ia64; then
19649         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19650         # chokes on -Wl,-G. The following line is correct:
19651           shared_flag='-G'
19652         else
19653         if test "$aix_use_runtimelinking" = yes; then
19654             shared_flag='${wl}-G'
19655           else
19656             shared_flag='${wl}-bM:SRE'
19657         fi
19658         fi
19659       fi
19660
19661       # It seems that -bexpall does not export symbols beginning with
19662       # underscore (_), so it is better to generate a list of symbols to export.
19663       always_export_symbols_F77=yes
19664       if test "$aix_use_runtimelinking" = yes; then
19665         # Warning - without using the other runtime loading flags (-brtl),
19666         # -berok will link without error, but may produce a broken library.
19667         allow_undefined_flag_F77='-berok'
19668        # Determine the default libpath from the value encoded in an empty executable.
19669        cat >conftest.$ac_ext <<_ACEOF
19670       program main
19671
19672       end
19673 _ACEOF
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676   (eval $ac_link) 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } &&
19683          { ac_try='test -z "$ac_f77_werror_flag"
19684                          || test ! -s conftest.err'
19685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686   (eval $ac_try) 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; } &&
19690          { ac_try='test -s conftest$ac_exeext'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; }; then
19696
19697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19698 }'`
19699 # Check for a 64-bit object if we didn't find anything.
19700 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; }
19701 }'`; fi
19702 else
19703   echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 fi
19707 rm -f conftest.err conftest.$ac_objext \
19708       conftest$ac_exeext conftest.$ac_ext
19709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19710
19711        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19712         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"
19713        else
19714         if test "$host_cpu" = ia64; then
19715           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19716           allow_undefined_flag_F77="-z nodefs"
19717           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"
19718         else
19719          # Determine the default libpath from the value encoded in an empty executable.
19720          cat >conftest.$ac_ext <<_ACEOF
19721       program main
19722
19723       end
19724 _ACEOF
19725 rm -f conftest.$ac_objext conftest$ac_exeext
19726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727   (eval $ac_link) 2>conftest.er1
19728   ac_status=$?
19729   grep -v '^ *+' conftest.er1 >conftest.err
19730   rm -f conftest.er1
19731   cat conftest.err >&5
19732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733   (exit $ac_status); } &&
19734          { ac_try='test -z "$ac_f77_werror_flag"
19735                          || test ! -s conftest.err'
19736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737   (eval $ac_try) 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; } &&
19741          { ac_try='test -s conftest$ac_exeext'
19742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743   (eval $ac_try) 2>&5
19744   ac_status=$?
19745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); }; }; then
19747
19748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19749 }'`
19750 # Check for a 64-bit object if we didn't find anything.
19751 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; }
19752 }'`; fi
19753 else
19754   echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 fi
19758 rm -f conftest.err conftest.$ac_objext \
19759       conftest$ac_exeext conftest.$ac_ext
19760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19761
19762          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19763           # Warning - without using the other run time loading flags,
19764           # -berok will link without error, but may produce a broken library.
19765           no_undefined_flag_F77=' ${wl}-bernotok'
19766           allow_undefined_flag_F77=' ${wl}-berok'
19767           # -bexpall does not export symbols beginning with underscore (_)
19768           always_export_symbols_F77=yes
19769           # Exported symbols can be pulled into shared objects from archives
19770           whole_archive_flag_spec_F77=' '
19771           archive_cmds_need_lc_F77=yes
19772           # This is similar to how AIX traditionally builds it's shared libraries.
19773           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'
19774         fi
19775       fi
19776       ;;
19777
19778     amigaos*)
19779       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)'
19780       hardcode_libdir_flag_spec_F77='-L$libdir'
19781       hardcode_minus_L_F77=yes
19782       # see comment about different semantics on the GNU ld section
19783       ld_shlibs_F77=no
19784       ;;
19785
19786     bsdi[45]*)
19787       export_dynamic_flag_spec_F77=-rdynamic
19788       ;;
19789
19790     cygwin* | mingw* | pw32*)
19791       # When not using gcc, we currently assume that we are using
19792       # Microsoft Visual C++.
19793       # hardcode_libdir_flag_spec is actually meaningless, as there is
19794       # no search path for DLLs.
19795       hardcode_libdir_flag_spec_F77=' '
19796       allow_undefined_flag_F77=unsupported
19797       # Tell ltmain to make .lib files, not .a files.
19798       libext=lib
19799       # Tell ltmain to make .dll files, not .so files.
19800       shrext_cmds=".dll"
19801       # FIXME: Setting linknames here is a bad hack.
19802       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19803       # The linker will automatically build a .lib file if we build a DLL.
19804       old_archive_From_new_cmds_F77='true'
19805       # FIXME: Should let the user specify the lib program.
19806       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19807       fix_srcfile_path='`cygpath -w "$srcfile"`'
19808       enable_shared_with_static_runtimes_F77=yes
19809       ;;
19810
19811     darwin* | rhapsody*)
19812       case "$host_os" in
19813         rhapsody* | darwin1.[012])
19814          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19815          ;;
19816        *) # Darwin 1.3 on
19817          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19818            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19819          else
19820            case ${MACOSX_DEPLOYMENT_TARGET} in
19821              10.[012])
19822                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19823                ;;
19824              10.*)
19825                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19826                ;;
19827            esac
19828          fi
19829          ;;
19830       esac
19831       archive_cmds_need_lc_F77=no
19832       hardcode_direct_F77=no
19833       hardcode_automatic_F77=yes
19834       hardcode_shlibpath_var_F77=unsupported
19835       whole_archive_flag_spec_F77=''
19836       link_all_deplibs_F77=yes
19837     if test "$GCC" = yes ; then
19838         output_verbose_link_cmd='echo'
19839         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19840       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19841       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19842       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}'
19843       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}'
19844     else
19845       case "$cc_basename" in
19846         xlc*)
19847          output_verbose_link_cmd='echo'
19848          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19849          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19850           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19851          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}'
19852           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}'
19853           ;;
19854        *)
19855          ld_shlibs_F77=no
19856           ;;
19857       esac
19858     fi
19859       ;;
19860
19861     dgux*)
19862       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863       hardcode_libdir_flag_spec_F77='-L$libdir'
19864       hardcode_shlibpath_var_F77=no
19865       ;;
19866
19867     freebsd1*)
19868       ld_shlibs_F77=no
19869       ;;
19870
19871     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19872     # support.  Future versions do this automatically, but an explicit c++rt0.o
19873     # does not break anything, and helps significantly (at the cost of a little
19874     # extra space).
19875     freebsd2.2*)
19876       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19877       hardcode_libdir_flag_spec_F77='-R$libdir'
19878       hardcode_direct_F77=yes
19879       hardcode_shlibpath_var_F77=no
19880       ;;
19881
19882     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19883     freebsd2*)
19884       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19885       hardcode_direct_F77=yes
19886       hardcode_minus_L_F77=yes
19887       hardcode_shlibpath_var_F77=no
19888       ;;
19889
19890     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19891     freebsd* | kfreebsd*-gnu)
19892       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19893       hardcode_libdir_flag_spec_F77='-R$libdir'
19894       hardcode_direct_F77=yes
19895       hardcode_shlibpath_var_F77=no
19896       ;;
19897
19898     hpux9*)
19899       if test "$GCC" = yes; then
19900         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'
19901       else
19902         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'
19903       fi
19904       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19905       hardcode_libdir_separator_F77=:
19906       hardcode_direct_F77=yes
19907
19908       # hardcode_minus_L: Not really in the search PATH,
19909       # but as the default location of the library.
19910       hardcode_minus_L_F77=yes
19911       export_dynamic_flag_spec_F77='${wl}-E'
19912       ;;
19913
19914     hpux10* | hpux11*)
19915       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19916         case "$host_cpu" in
19917         hppa*64*|ia64*)
19918           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19919           ;;
19920         *)
19921           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19922           ;;
19923         esac
19924       else
19925         case "$host_cpu" in
19926         hppa*64*|ia64*)
19927           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19928           ;;
19929         *)
19930           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19931           ;;
19932         esac
19933       fi
19934       if test "$with_gnu_ld" = no; then
19935         case "$host_cpu" in
19936         hppa*64*)
19937           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19939           hardcode_libdir_separator_F77=:
19940           hardcode_direct_F77=no
19941           hardcode_shlibpath_var_F77=no
19942           ;;
19943         ia64*)
19944           hardcode_libdir_flag_spec_F77='-L$libdir'
19945           hardcode_direct_F77=no
19946           hardcode_shlibpath_var_F77=no
19947
19948           # hardcode_minus_L: Not really in the search PATH,
19949           # but as the default location of the library.
19950           hardcode_minus_L_F77=yes
19951           ;;
19952         *)
19953           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19954           hardcode_libdir_separator_F77=:
19955           hardcode_direct_F77=yes
19956           export_dynamic_flag_spec_F77='${wl}-E'
19957
19958           # hardcode_minus_L: Not really in the search PATH,
19959           # but as the default location of the library.
19960           hardcode_minus_L_F77=yes
19961           ;;
19962         esac
19963       fi
19964       ;;
19965
19966     irix5* | irix6* | nonstopux*)
19967       if test "$GCC" = yes; then
19968         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'
19969       else
19970         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'
19971         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19972       fi
19973       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19974       hardcode_libdir_separator_F77=:
19975       link_all_deplibs_F77=yes
19976       ;;
19977
19978     netbsd*)
19979       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19980         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19981       else
19982         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19983       fi
19984       hardcode_libdir_flag_spec_F77='-R$libdir'
19985       hardcode_direct_F77=yes
19986       hardcode_shlibpath_var_F77=no
19987       ;;
19988
19989     newsos6)
19990       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991       hardcode_direct_F77=yes
19992       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19993       hardcode_libdir_separator_F77=:
19994       hardcode_shlibpath_var_F77=no
19995       ;;
19996
19997     openbsd*)
19998       hardcode_direct_F77=yes
19999       hardcode_shlibpath_var_F77=no
20000       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20001         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20002         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20003         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20004         export_dynamic_flag_spec_F77='${wl}-E'
20005       else
20006        case $host_os in
20007          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20008            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20009            hardcode_libdir_flag_spec_F77='-R$libdir'
20010            ;;
20011          *)
20012            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20013            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20014            ;;
20015        esac
20016       fi
20017       ;;
20018
20019     os2*)
20020       hardcode_libdir_flag_spec_F77='-L$libdir'
20021       hardcode_minus_L_F77=yes
20022       allow_undefined_flag_F77=unsupported
20023       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'
20024       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20025       ;;
20026
20027     osf3*)
20028       if test "$GCC" = yes; then
20029         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20030         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'
20031       else
20032         allow_undefined_flag_F77=' -expect_unresolved \*'
20033         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'
20034       fi
20035       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20036       hardcode_libdir_separator_F77=:
20037       ;;
20038
20039     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20040       if test "$GCC" = yes; then
20041         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20042         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'
20043         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20044       else
20045         allow_undefined_flag_F77=' -expect_unresolved \*'
20046         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'
20047         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~
20048         $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'
20049
20050         # Both c and cxx compiler support -rpath directly
20051         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20052       fi
20053       hardcode_libdir_separator_F77=:
20054       ;;
20055
20056     sco3.2v5*)
20057       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20058       hardcode_shlibpath_var_F77=no
20059       export_dynamic_flag_spec_F77='${wl}-Bexport'
20060       runpath_var=LD_RUN_PATH
20061       hardcode_runpath_var=yes
20062       ;;
20063
20064     solaris*)
20065       no_undefined_flag_F77=' -z text'
20066       if test "$GCC" = yes; then
20067         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20068         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20069           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20070       else
20071         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20072         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20073         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20074       fi
20075       hardcode_libdir_flag_spec_F77='-R$libdir'
20076       hardcode_shlibpath_var_F77=no
20077       case $host_os in
20078       solaris2.[0-5] | solaris2.[0-5].*) ;;
20079       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20080         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20081       esac
20082       link_all_deplibs_F77=yes
20083       ;;
20084
20085     sunos4*)
20086       if test "x$host_vendor" = xsequent; then
20087         # Use $CC to link under sequent, because it throws in some extra .o
20088         # files that make .init and .fini sections work.
20089         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20090       else
20091         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20092       fi
20093       hardcode_libdir_flag_spec_F77='-L$libdir'
20094       hardcode_direct_F77=yes
20095       hardcode_minus_L_F77=yes
20096       hardcode_shlibpath_var_F77=no
20097       ;;
20098
20099     sysv4)
20100       case $host_vendor in
20101         sni)
20102           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20103           hardcode_direct_F77=yes # is this really true???
20104         ;;
20105         siemens)
20106           ## LD is ld it makes a PLAMLIB
20107           ## CC just makes a GrossModule.
20108           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20109           reload_cmds_F77='$CC -r -o $output$reload_objs'
20110           hardcode_direct_F77=no
20111         ;;
20112         motorola)
20113           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20115         ;;
20116       esac
20117       runpath_var='LD_RUN_PATH'
20118       hardcode_shlibpath_var_F77=no
20119       ;;
20120
20121     sysv4.3*)
20122       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20123       hardcode_shlibpath_var_F77=no
20124       export_dynamic_flag_spec_F77='-Bexport'
20125       ;;
20126
20127     sysv4*MP*)
20128       if test -d /usr/nec; then
20129         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20130         hardcode_shlibpath_var_F77=no
20131         runpath_var=LD_RUN_PATH
20132         hardcode_runpath_var=yes
20133         ld_shlibs_F77=yes
20134       fi
20135       ;;
20136
20137     sysv4.2uw2*)
20138       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20139       hardcode_direct_F77=yes
20140       hardcode_minus_L_F77=no
20141       hardcode_shlibpath_var_F77=no
20142       hardcode_runpath_var=yes
20143       runpath_var=LD_RUN_PATH
20144       ;;
20145
20146    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20147       no_undefined_flag_F77='${wl}-z ${wl}text'
20148       if test "$GCC" = yes; then
20149         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20150       else
20151         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20152       fi
20153       runpath_var='LD_RUN_PATH'
20154       hardcode_shlibpath_var_F77=no
20155       ;;
20156
20157     sysv5*)
20158       no_undefined_flag_F77=' -z text'
20159       # $CC -shared without GNU ld will not create a library from C++
20160       # object files and a static libstdc++, better avoid it by now
20161       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20162       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20163                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20164       hardcode_libdir_flag_spec_F77=
20165       hardcode_shlibpath_var_F77=no
20166       runpath_var='LD_RUN_PATH'
20167       ;;
20168
20169     uts4*)
20170       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20171       hardcode_libdir_flag_spec_F77='-L$libdir'
20172       hardcode_shlibpath_var_F77=no
20173       ;;
20174
20175     *)
20176       ld_shlibs_F77=no
20177       ;;
20178     esac
20179   fi
20180
20181 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20182 echo "${ECHO_T}$ld_shlibs_F77" >&6
20183 test "$ld_shlibs_F77" = no && can_build_shared=no
20184
20185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20186 if test "$GCC" = yes; then
20187   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20188 fi
20189
20190 #
20191 # Do we need to explicitly link libc?
20192 #
20193 case "x$archive_cmds_need_lc_F77" in
20194 x|xyes)
20195   # Assume -lc should be added
20196   archive_cmds_need_lc_F77=yes
20197
20198   if test "$enable_shared" = yes && test "$GCC" = yes; then
20199     case $archive_cmds_F77 in
20200     *'~'*)
20201       # FIXME: we may have to deal with multi-command sequences.
20202       ;;
20203     '$CC '*)
20204       # Test whether the compiler implicitly links with -lc since on some
20205       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20206       # to ld, don't add -lc before -lgcc.
20207       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20208 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20209       $rm conftest*
20210       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20211
20212       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213   (eval $ac_compile) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } 2>conftest.err; then
20217         soname=conftest
20218         lib=conftest
20219         libobjs=conftest.$ac_objext
20220         deplibs=
20221         wl=$lt_prog_compiler_wl_F77
20222         compiler_flags=-v
20223         linker_flags=-v
20224         verstring=
20225         output_objdir=.
20226         libname=conftest
20227         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20228         allow_undefined_flag_F77=
20229         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20230   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }
20234         then
20235           archive_cmds_need_lc_F77=no
20236         else
20237           archive_cmds_need_lc_F77=yes
20238         fi
20239         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20240       else
20241         cat conftest.err 1>&5
20242       fi
20243       $rm conftest*
20244       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20245 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20246       ;;
20247     esac
20248   fi
20249   ;;
20250 esac
20251
20252 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20253 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20254 library_names_spec=
20255 libname_spec='lib$name'
20256 soname_spec=
20257 shrext_cmds=".so"
20258 postinstall_cmds=
20259 postuninstall_cmds=
20260 finish_cmds=
20261 finish_eval=
20262 shlibpath_var=
20263 shlibpath_overrides_runpath=unknown
20264 version_type=none
20265 dynamic_linker="$host_os ld.so"
20266 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20267 if test "$GCC" = yes; then
20268   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20269   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20270     # if the path contains ";" then we assume it to be the separator
20271     # otherwise default to the standard path separator (i.e. ":") - it is
20272     # assumed that no part of a normal pathname contains ";" but that should
20273     # okay in the real world where ";" in dirpaths is itself problematic.
20274     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20275   else
20276     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20277   fi
20278 else
20279   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20280 fi
20281 need_lib_prefix=unknown
20282 hardcode_into_libs=no
20283
20284 # when you set need_version to no, make sure it does not cause -set_version
20285 # flags to be left without arguments
20286 need_version=unknown
20287
20288 case $host_os in
20289 aix3*)
20290   version_type=linux
20291   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20292   shlibpath_var=LIBPATH
20293
20294   # AIX 3 has no versioning support, so we append a major version to the name.
20295   soname_spec='${libname}${release}${shared_ext}$major'
20296   ;;
20297
20298 aix4* | aix5*)
20299   version_type=linux
20300   need_lib_prefix=no
20301   need_version=no
20302   hardcode_into_libs=yes
20303   if test "$host_cpu" = ia64; then
20304     # AIX 5 supports IA64
20305     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20306     shlibpath_var=LD_LIBRARY_PATH
20307   else
20308     # With GCC up to 2.95.x, collect2 would create an import file
20309     # for dependence libraries.  The import file would start with
20310     # the line `#! .'.  This would cause the generated library to
20311     # depend on `.', always an invalid library.  This was fixed in
20312     # development snapshots of GCC prior to 3.0.
20313     case $host_os in
20314       aix4 | aix4.[01] | aix4.[01].*)
20315       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20316            echo ' yes '
20317            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20318         :
20319       else
20320         can_build_shared=no
20321       fi
20322       ;;
20323     esac
20324     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20325     # soname into executable. Probably we can add versioning support to
20326     # collect2, so additional links can be useful in future.
20327     if test "$aix_use_runtimelinking" = yes; then
20328       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20329       # instead of lib<name>.a to let people know that these are not
20330       # typical AIX shared libraries.
20331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20332     else
20333       # We preserve .a as extension for shared libraries through AIX4.2
20334       # and later when we are not doing run time linking.
20335       library_names_spec='${libname}${release}.a $libname.a'
20336       soname_spec='${libname}${release}${shared_ext}$major'
20337     fi
20338     shlibpath_var=LIBPATH
20339   fi
20340   ;;
20341
20342 amigaos*)
20343   library_names_spec='$libname.ixlibrary $libname.a'
20344   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20345   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'
20346   ;;
20347
20348 beos*)
20349   library_names_spec='${libname}${shared_ext}'
20350   dynamic_linker="$host_os ld.so"
20351   shlibpath_var=LIBRARY_PATH
20352   ;;
20353
20354 bsdi[45]*)
20355   version_type=linux
20356   need_version=no
20357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358   soname_spec='${libname}${release}${shared_ext}$major'
20359   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20360   shlibpath_var=LD_LIBRARY_PATH
20361   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20362   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20363   # the default ld.so.conf also contains /usr/contrib/lib and
20364   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20365   # libtool to hard-code these into programs
20366   ;;
20367
20368 cygwin* | mingw* | pw32*)
20369   version_type=windows
20370   shrext_cmds=".dll"
20371   need_version=no
20372   need_lib_prefix=no
20373
20374   case $GCC,$host_os in
20375   yes,cygwin* | yes,mingw* | yes,pw32*)
20376     library_names_spec='$libname.dll.a'
20377     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20378     postinstall_cmds='base_file=`basename \${file}`~
20379       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20380       dldir=$destdir/`dirname \$dlpath`~
20381       test -d \$dldir || mkdir -p \$dldir~
20382       $install_prog $dir/$dlname \$dldir/$dlname'
20383     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20384       dlpath=$dir/\$dldll~
20385        $rm \$dlpath'
20386     shlibpath_overrides_runpath=yes
20387
20388     case $host_os in
20389     cygwin*)
20390       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20391       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20392       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20393       ;;
20394     mingw*)
20395       # MinGW DLLs use traditional 'lib' prefix
20396       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20397       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20398       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20399         # It is most probably a Windows format PATH printed by
20400         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20401         # path with ; separators, and with drive letters. We can handle the
20402         # drive letters (cygwin fileutils understands them), so leave them,
20403         # especially as we might pass files found there to a mingw objdump,
20404         # which wouldn't understand a cygwinified path. Ahh.
20405         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20406       else
20407         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20408       fi
20409       ;;
20410     pw32*)
20411       # pw32 DLLs use 'pw' prefix rather than 'lib'
20412       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20413       ;;
20414     esac
20415     ;;
20416
20417   *)
20418     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20419     ;;
20420   esac
20421   dynamic_linker='Win32 ld.exe'
20422   # FIXME: first we should search . and the directory the executable is in
20423   shlibpath_var=PATH
20424   ;;
20425
20426 darwin* | rhapsody*)
20427   dynamic_linker="$host_os dyld"
20428   version_type=darwin
20429   need_lib_prefix=no
20430   need_version=no
20431   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20432   soname_spec='${libname}${release}${major}$shared_ext'
20433   shlibpath_overrides_runpath=yes
20434   shlibpath_var=DYLD_LIBRARY_PATH
20435   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20436   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20437   if test "$GCC" = yes; then
20438     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"`
20439   else
20440     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20441   fi
20442   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20443   ;;
20444
20445 dgux*)
20446   version_type=linux
20447   need_lib_prefix=no
20448   need_version=no
20449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20450   soname_spec='${libname}${release}${shared_ext}$major'
20451   shlibpath_var=LD_LIBRARY_PATH
20452   ;;
20453
20454 freebsd1*)
20455   dynamic_linker=no
20456   ;;
20457
20458 kfreebsd*-gnu)
20459   version_type=linux
20460   need_lib_prefix=no
20461   need_version=no
20462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20463   soname_spec='${libname}${release}${shared_ext}$major'
20464   shlibpath_var=LD_LIBRARY_PATH
20465   shlibpath_overrides_runpath=no
20466   hardcode_into_libs=yes
20467   dynamic_linker='GNU ld.so'
20468   ;;
20469
20470 freebsd*)
20471   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20472   version_type=freebsd-$objformat
20473   case $version_type in
20474     freebsd-elf*)
20475       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20476       need_version=no
20477       need_lib_prefix=no
20478       ;;
20479     freebsd-*)
20480       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20481       need_version=yes
20482       ;;
20483   esac
20484   shlibpath_var=LD_LIBRARY_PATH
20485   case $host_os in
20486   freebsd2*)
20487     shlibpath_overrides_runpath=yes
20488     ;;
20489   freebsd3.01* | freebsdelf3.01*)
20490     shlibpath_overrides_runpath=yes
20491     hardcode_into_libs=yes
20492     ;;
20493   *) # from 3.2 on
20494     shlibpath_overrides_runpath=no
20495     hardcode_into_libs=yes
20496     ;;
20497   esac
20498   ;;
20499
20500 gnu*)
20501   version_type=linux
20502   need_lib_prefix=no
20503   need_version=no
20504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505   soname_spec='${libname}${release}${shared_ext}$major'
20506   shlibpath_var=LD_LIBRARY_PATH
20507   hardcode_into_libs=yes
20508   ;;
20509
20510 hpux9* | hpux10* | hpux11*)
20511   # Give a soname corresponding to the major version so that dld.sl refuses to
20512   # link against other versions.
20513   version_type=sunos
20514   need_lib_prefix=no
20515   need_version=no
20516   case "$host_cpu" in
20517   ia64*)
20518     shrext_cmds='.so'
20519     hardcode_into_libs=yes
20520     dynamic_linker="$host_os dld.so"
20521     shlibpath_var=LD_LIBRARY_PATH
20522     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524     soname_spec='${libname}${release}${shared_ext}$major'
20525     if test "X$HPUX_IA64_MODE" = X32; then
20526       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20527     else
20528       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20529     fi
20530     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20531     ;;
20532    hppa*64*)
20533      shrext_cmds='.sl'
20534      hardcode_into_libs=yes
20535      dynamic_linker="$host_os dld.sl"
20536      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20537      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539      soname_spec='${libname}${release}${shared_ext}$major'
20540      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20542      ;;
20543    *)
20544     shrext_cmds='.sl'
20545     dynamic_linker="$host_os dld.sl"
20546     shlibpath_var=SHLIB_PATH
20547     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549     soname_spec='${libname}${release}${shared_ext}$major'
20550     ;;
20551   esac
20552   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553   postinstall_cmds='chmod 555 $lib'
20554   ;;
20555
20556 irix5* | irix6* | nonstopux*)
20557   case $host_os in
20558     nonstopux*) version_type=nonstopux ;;
20559     *)
20560         if test "$lt_cv_prog_gnu_ld" = yes; then
20561                 version_type=linux
20562         else
20563                 version_type=irix
20564         fi ;;
20565   esac
20566   need_lib_prefix=no
20567   need_version=no
20568   soname_spec='${libname}${release}${shared_ext}$major'
20569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20570   case $host_os in
20571   irix5* | nonstopux*)
20572     libsuff= shlibsuff=
20573     ;;
20574   *)
20575     case $LD in # libtool.m4 will add one of these switches to LD
20576     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20577       libsuff= shlibsuff= libmagic=32-bit;;
20578     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20579       libsuff=32 shlibsuff=N32 libmagic=N32;;
20580     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20581       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20582     *) libsuff= shlibsuff= libmagic=never-match;;
20583     esac
20584     ;;
20585   esac
20586   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20587   shlibpath_overrides_runpath=no
20588   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20589   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20590   hardcode_into_libs=yes
20591   ;;
20592
20593 # No shared lib support for Linux oldld, aout, or coff.
20594 linux*oldld* | linux*aout* | linux*coff*)
20595   dynamic_linker=no
20596   ;;
20597
20598 # This must be Linux ELF.
20599 linux*)
20600   version_type=linux
20601   need_lib_prefix=no
20602   need_version=no
20603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20604   soname_spec='${libname}${release}${shared_ext}$major'
20605   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20606   shlibpath_var=LD_LIBRARY_PATH
20607   shlibpath_overrides_runpath=no
20608   # This implies no fast_install, which is unacceptable.
20609   # Some rework will be needed to allow for fast_install
20610   # before this can be enabled.
20611   hardcode_into_libs=yes
20612
20613   # Append ld.so.conf contents to the search path
20614   if test -f /etc/ld.so.conf; then
20615     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20616     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20617   fi
20618
20619   # We used to test for /lib/ld.so.1 and disable shared libraries on
20620   # powerpc, because MkLinux only supported shared libraries with the
20621   # GNU dynamic linker.  Since this was broken with cross compilers,
20622   # most powerpc-linux boxes support dynamic linking these days and
20623   # people can always --disable-shared, the test was removed, and we
20624   # assume the GNU/Linux dynamic linker is in use.
20625   dynamic_linker='GNU/Linux ld.so'
20626   ;;
20627
20628 knetbsd*-gnu)
20629   version_type=linux
20630   need_lib_prefix=no
20631   need_version=no
20632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20633   soname_spec='${libname}${release}${shared_ext}$major'
20634   shlibpath_var=LD_LIBRARY_PATH
20635   shlibpath_overrides_runpath=no
20636   hardcode_into_libs=yes
20637   dynamic_linker='GNU ld.so'
20638   ;;
20639
20640 netbsd*)
20641   version_type=sunos
20642   need_lib_prefix=no
20643   need_version=no
20644   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20645     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20646     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20647     dynamic_linker='NetBSD (a.out) ld.so'
20648   else
20649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20650     soname_spec='${libname}${release}${shared_ext}$major'
20651     dynamic_linker='NetBSD ld.elf_so'
20652   fi
20653   shlibpath_var=LD_LIBRARY_PATH
20654   shlibpath_overrides_runpath=yes
20655   hardcode_into_libs=yes
20656   ;;
20657
20658 newsos6)
20659   version_type=linux
20660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20661   shlibpath_var=LD_LIBRARY_PATH
20662   shlibpath_overrides_runpath=yes
20663   ;;
20664
20665 nto-qnx*)
20666   version_type=linux
20667   need_lib_prefix=no
20668   need_version=no
20669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670   soname_spec='${libname}${release}${shared_ext}$major'
20671   shlibpath_var=LD_LIBRARY_PATH
20672   shlibpath_overrides_runpath=yes
20673   ;;
20674
20675 openbsd*)
20676   version_type=sunos
20677   need_lib_prefix=no
20678   need_version=no
20679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20680   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20681   shlibpath_var=LD_LIBRARY_PATH
20682   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20683     case $host_os in
20684       openbsd2.[89] | openbsd2.[89].*)
20685         shlibpath_overrides_runpath=no
20686         ;;
20687       *)
20688         shlibpath_overrides_runpath=yes
20689         ;;
20690       esac
20691   else
20692     shlibpath_overrides_runpath=yes
20693   fi
20694   ;;
20695
20696 os2*)
20697   libname_spec='$name'
20698   shrext_cmds=".dll"
20699   need_lib_prefix=no
20700   library_names_spec='$libname${shared_ext} $libname.a'
20701   dynamic_linker='OS/2 ld.exe'
20702   shlibpath_var=LIBPATH
20703   ;;
20704
20705 osf3* | osf4* | osf5*)
20706   version_type=osf
20707   need_lib_prefix=no
20708   need_version=no
20709   soname_spec='${libname}${release}${shared_ext}$major'
20710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711   shlibpath_var=LD_LIBRARY_PATH
20712   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20713   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20714   ;;
20715
20716 sco3.2v5*)
20717   version_type=osf
20718   soname_spec='${libname}${release}${shared_ext}$major'
20719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20720   shlibpath_var=LD_LIBRARY_PATH
20721   ;;
20722
20723 solaris*)
20724   version_type=linux
20725   need_lib_prefix=no
20726   need_version=no
20727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728   soname_spec='${libname}${release}${shared_ext}$major'
20729   shlibpath_var=LD_LIBRARY_PATH
20730   shlibpath_overrides_runpath=yes
20731   hardcode_into_libs=yes
20732   # ldd complains unless libraries are executable
20733   postinstall_cmds='chmod +x $lib'
20734   ;;
20735
20736 sunos4*)
20737   version_type=sunos
20738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20740   shlibpath_var=LD_LIBRARY_PATH
20741   shlibpath_overrides_runpath=yes
20742   if test "$with_gnu_ld" = yes; then
20743     need_lib_prefix=no
20744   fi
20745   need_version=yes
20746   ;;
20747
20748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20749   version_type=linux
20750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20751   soname_spec='${libname}${release}${shared_ext}$major'
20752   shlibpath_var=LD_LIBRARY_PATH
20753   case $host_vendor in
20754     sni)
20755       shlibpath_overrides_runpath=no
20756       need_lib_prefix=no
20757       export_dynamic_flag_spec='${wl}-Blargedynsym'
20758       runpath_var=LD_RUN_PATH
20759       ;;
20760     siemens)
20761       need_lib_prefix=no
20762       ;;
20763     motorola)
20764       need_lib_prefix=no
20765       need_version=no
20766       shlibpath_overrides_runpath=no
20767       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20768       ;;
20769   esac
20770   ;;
20771
20772 sysv4*MP*)
20773   if test -d /usr/nec ;then
20774     version_type=linux
20775     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20776     soname_spec='$libname${shared_ext}.$major'
20777     shlibpath_var=LD_LIBRARY_PATH
20778   fi
20779   ;;
20780
20781 uts4*)
20782   version_type=linux
20783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784   soname_spec='${libname}${release}${shared_ext}$major'
20785   shlibpath_var=LD_LIBRARY_PATH
20786   ;;
20787
20788 *)
20789   dynamic_linker=no
20790   ;;
20791 esac
20792 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20793 echo "${ECHO_T}$dynamic_linker" >&6
20794 test "$dynamic_linker" = no && can_build_shared=no
20795
20796 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20798 hardcode_action_F77=
20799 if test -n "$hardcode_libdir_flag_spec_F77" || \
20800    test -n "$runpath_var_F77" || \
20801    test "X$hardcode_automatic_F77" = "Xyes" ; then
20802
20803   # We can hardcode non-existant directories.
20804   if test "$hardcode_direct_F77" != no &&
20805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20806      # have to relink, otherwise we might link with an installed library
20807      # when we should be linking with a yet-to-be-installed one
20808      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20809      test "$hardcode_minus_L_F77" != no; then
20810     # Linking always hardcodes the temporary library directory.
20811     hardcode_action_F77=relink
20812   else
20813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20814     hardcode_action_F77=immediate
20815   fi
20816 else
20817   # We cannot hardcode anything, or else we can only hardcode existing
20818   # directories.
20819   hardcode_action_F77=unsupported
20820 fi
20821 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20822 echo "${ECHO_T}$hardcode_action_F77" >&6
20823
20824 if test "$hardcode_action_F77" = relink; then
20825   # Fast installation is not supported
20826   enable_fast_install=no
20827 elif test "$shlibpath_overrides_runpath" = yes ||
20828      test "$enable_shared" = no; then
20829   # Fast installation is not necessary
20830   enable_fast_install=needless
20831 fi
20832
20833 striplib=
20834 old_striplib=
20835 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20836 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20837 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20838   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20839   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20840   echo "$as_me:$LINENO: result: yes" >&5
20841 echo "${ECHO_T}yes" >&6
20842 else
20843 # FIXME - insert some real tests, host_os isn't really good enough
20844   case $host_os in
20845    darwin*)
20846        if test -n "$STRIP" ; then
20847          striplib="$STRIP -x"
20848          echo "$as_me:$LINENO: result: yes" >&5
20849 echo "${ECHO_T}yes" >&6
20850        else
20851   echo "$as_me:$LINENO: result: no" >&5
20852 echo "${ECHO_T}no" >&6
20853 fi
20854        ;;
20855    *)
20856   echo "$as_me:$LINENO: result: no" >&5
20857 echo "${ECHO_T}no" >&6
20858     ;;
20859   esac
20860 fi
20861
20862
20863
20864 # The else clause should only fire when bootstrapping the
20865 # libtool distribution, otherwise you forgot to ship ltmain.sh
20866 # with your package, and you will get complaints that there are
20867 # no rules to generate ltmain.sh.
20868 if test -f "$ltmain"; then
20869   # See if we are running on zsh, and set the options which allow our commands through
20870   # without removal of \ escapes.
20871   if test -n "${ZSH_VERSION+set}" ; then
20872     setopt NO_GLOB_SUBST
20873   fi
20874   # Now quote all the things that may contain metacharacters while being
20875   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20876   # variables and quote the copies for generation of the libtool script.
20877   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20878     SED SHELL STRIP \
20879     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20880     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20881     deplibs_check_method reload_flag reload_cmds need_locks \
20882     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20883     lt_cv_sys_global_symbol_to_c_name_address \
20884     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20885     old_postinstall_cmds old_postuninstall_cmds \
20886     compiler_F77 \
20887     CC_F77 \
20888     LD_F77 \
20889     lt_prog_compiler_wl_F77 \
20890     lt_prog_compiler_pic_F77 \
20891     lt_prog_compiler_static_F77 \
20892     lt_prog_compiler_no_builtin_flag_F77 \
20893     export_dynamic_flag_spec_F77 \
20894     thread_safe_flag_spec_F77 \
20895     whole_archive_flag_spec_F77 \
20896     enable_shared_with_static_runtimes_F77 \
20897     old_archive_cmds_F77 \
20898     old_archive_from_new_cmds_F77 \
20899     predep_objects_F77 \
20900     postdep_objects_F77 \
20901     predeps_F77 \
20902     postdeps_F77 \
20903     compiler_lib_search_path_F77 \
20904     archive_cmds_F77 \
20905     archive_expsym_cmds_F77 \
20906     postinstall_cmds_F77 \
20907     postuninstall_cmds_F77 \
20908     old_archive_from_expsyms_cmds_F77 \
20909     allow_undefined_flag_F77 \
20910     no_undefined_flag_F77 \
20911     export_symbols_cmds_F77 \
20912     hardcode_libdir_flag_spec_F77 \
20913     hardcode_libdir_flag_spec_ld_F77 \
20914     hardcode_libdir_separator_F77 \
20915     hardcode_automatic_F77 \
20916     module_cmds_F77 \
20917     module_expsym_cmds_F77 \
20918     lt_cv_prog_compiler_c_o_F77 \
20919     exclude_expsyms_F77 \
20920     include_expsyms_F77; do
20921
20922     case $var in
20923     old_archive_cmds_F77 | \
20924     old_archive_from_new_cmds_F77 | \
20925     archive_cmds_F77 | \
20926     archive_expsym_cmds_F77 | \
20927     module_cmds_F77 | \
20928     module_expsym_cmds_F77 | \
20929     old_archive_from_expsyms_cmds_F77 | \
20930     export_symbols_cmds_F77 | \
20931     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20932     postinstall_cmds | postuninstall_cmds | \
20933     old_postinstall_cmds | old_postuninstall_cmds | \
20934     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20935       # Double-quote double-evaled strings.
20936       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20937       ;;
20938     *)
20939       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20940       ;;
20941     esac
20942   done
20943
20944   case $lt_echo in
20945   *'\$0 --fallback-echo"')
20946     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20947     ;;
20948   esac
20949
20950 cfgfile="$ofile"
20951
20952   cat <<__EOF__ >> "$cfgfile"
20953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20954
20955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20956
20957 # Shell to use when invoking shell scripts.
20958 SHELL=$lt_SHELL
20959
20960 # Whether or not to build shared libraries.
20961 build_libtool_libs=$enable_shared
20962
20963 # Whether or not to build static libraries.
20964 build_old_libs=$enable_static
20965
20966 # Whether or not to add -lc for building shared libraries.
20967 build_libtool_need_lc=$archive_cmds_need_lc_F77
20968
20969 # Whether or not to disallow shared libs when runtime libs are static
20970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20971
20972 # Whether or not to optimize for fast installation.
20973 fast_install=$enable_fast_install
20974
20975 # The host system.
20976 host_alias=$host_alias
20977 host=$host
20978
20979 # An echo program that does not interpret backslashes.
20980 echo=$lt_echo
20981
20982 # The archiver.
20983 AR=$lt_AR
20984 AR_FLAGS=$lt_AR_FLAGS
20985
20986 # A C compiler.
20987 LTCC=$lt_LTCC
20988
20989 # A language-specific compiler.
20990 CC=$lt_compiler_F77
20991
20992 # Is the compiler the GNU C compiler?
20993 with_gcc=$GCC_F77
20994
20995 # An ERE matcher.
20996 EGREP=$lt_EGREP
20997
20998 # The linker used to build libraries.
20999 LD=$lt_LD_F77
21000
21001 # Whether we need hard or soft links.
21002 LN_S=$lt_LN_S
21003
21004 # A BSD-compatible nm program.
21005 NM=$lt_NM
21006
21007 # A symbol stripping program
21008 STRIP=$lt_STRIP
21009
21010 # Used to examine libraries when file_magic_cmd begins "file"
21011 MAGIC_CMD=$MAGIC_CMD
21012
21013 # Used on cygwin: DLL creation program.
21014 DLLTOOL="$DLLTOOL"
21015
21016 # Used on cygwin: object dumper.
21017 OBJDUMP="$OBJDUMP"
21018
21019 # Used on cygwin: assembler.
21020 AS="$AS"
21021
21022 # The name of the directory that contains temporary libtool files.
21023 objdir=$objdir
21024
21025 # How to create reloadable object files.
21026 reload_flag=$lt_reload_flag
21027 reload_cmds=$lt_reload_cmds
21028
21029 # How to pass a linker flag through the compiler.
21030 wl=$lt_lt_prog_compiler_wl_F77
21031
21032 # Object file suffix (normally "o").
21033 objext="$ac_objext"
21034
21035 # Old archive suffix (normally "a").
21036 libext="$libext"
21037
21038 # Shared library suffix (normally ".so").
21039 shrext_cmds='$shrext_cmds'
21040
21041 # Executable file suffix (normally "").
21042 exeext="$exeext"
21043
21044 # Additional compiler flags for building library objects.
21045 pic_flag=$lt_lt_prog_compiler_pic_F77
21046 pic_mode=$pic_mode
21047
21048 # What is the maximum length of a command?
21049 max_cmd_len=$lt_cv_sys_max_cmd_len
21050
21051 # Does compiler simultaneously support -c and -o options?
21052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21053
21054 # Must we lock files when doing compilation ?
21055 need_locks=$lt_need_locks
21056
21057 # Do we need the lib prefix for modules?
21058 need_lib_prefix=$need_lib_prefix
21059
21060 # Do we need a version for libraries?
21061 need_version=$need_version
21062
21063 # Whether dlopen is supported.
21064 dlopen_support=$enable_dlopen
21065
21066 # Whether dlopen of programs is supported.
21067 dlopen_self=$enable_dlopen_self
21068
21069 # Whether dlopen of statically linked programs is supported.
21070 dlopen_self_static=$enable_dlopen_self_static
21071
21072 # Compiler flag to prevent dynamic linking.
21073 link_static_flag=$lt_lt_prog_compiler_static_F77
21074
21075 # Compiler flag to turn off builtin functions.
21076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21077
21078 # Compiler flag to allow reflexive dlopens.
21079 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21080
21081 # Compiler flag to generate shared objects directly from archives.
21082 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21083
21084 # Compiler flag to generate thread-safe objects.
21085 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21086
21087 # Library versioning type.
21088 version_type=$version_type
21089
21090 # Format of library name prefix.
21091 libname_spec=$lt_libname_spec
21092
21093 # List of archive names.  First name is the real one, the rest are links.
21094 # The last name is the one that the linker finds with -lNAME.
21095 library_names_spec=$lt_library_names_spec
21096
21097 # The coded name of the library, if different from the real name.
21098 soname_spec=$lt_soname_spec
21099
21100 # Commands used to build and install an old-style archive.
21101 RANLIB=$lt_RANLIB
21102 old_archive_cmds=$lt_old_archive_cmds_F77
21103 old_postinstall_cmds=$lt_old_postinstall_cmds
21104 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21105
21106 # Create an old-style archive from a shared archive.
21107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21108
21109 # Create a temporary old-style archive to link instead of a shared archive.
21110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21111
21112 # Commands used to build and install a shared archive.
21113 archive_cmds=$lt_archive_cmds_F77
21114 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21115 postinstall_cmds=$lt_postinstall_cmds
21116 postuninstall_cmds=$lt_postuninstall_cmds
21117
21118 # Commands used to build a loadable module (assumed same as above if empty)
21119 module_cmds=$lt_module_cmds_F77
21120 module_expsym_cmds=$lt_module_expsym_cmds_F77
21121
21122 # Commands to strip libraries.
21123 old_striplib=$lt_old_striplib
21124 striplib=$lt_striplib
21125
21126 # Dependencies to place before the objects being linked to create a
21127 # shared library.
21128 predep_objects=$lt_predep_objects_F77
21129
21130 # Dependencies to place after the objects being linked to create a
21131 # shared library.
21132 postdep_objects=$lt_postdep_objects_F77
21133
21134 # Dependencies to place before the objects being linked to create a
21135 # shared library.
21136 predeps=$lt_predeps_F77
21137
21138 # Dependencies to place after the objects being linked to create a
21139 # shared library.
21140 postdeps=$lt_postdeps_F77
21141
21142 # The library search path used internally by the compiler when linking
21143 # a shared library.
21144 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21145
21146 # Method to check whether dependent libraries are shared objects.
21147 deplibs_check_method=$lt_deplibs_check_method
21148
21149 # Command to use when deplibs_check_method == file_magic.
21150 file_magic_cmd=$lt_file_magic_cmd
21151
21152 # Flag that allows shared libraries with undefined symbols to be built.
21153 allow_undefined_flag=$lt_allow_undefined_flag_F77
21154
21155 # Flag that forces no undefined symbols.
21156 no_undefined_flag=$lt_no_undefined_flag_F77
21157
21158 # Commands used to finish a libtool library installation in a directory.
21159 finish_cmds=$lt_finish_cmds
21160
21161 # Same as above, but a single script fragment to be evaled but not shown.
21162 finish_eval=$lt_finish_eval
21163
21164 # Take the output of nm and produce a listing of raw symbols and C names.
21165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21166
21167 # Transform the output of nm in a proper C declaration
21168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21169
21170 # Transform the output of nm in a C name address pair
21171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21172
21173 # This is the shared library runtime path variable.
21174 runpath_var=$runpath_var
21175
21176 # This is the shared library path variable.
21177 shlibpath_var=$shlibpath_var
21178
21179 # Is shlibpath searched before the hard-coded library search path?
21180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21181
21182 # How to hardcode a shared library path into an executable.
21183 hardcode_action=$hardcode_action_F77
21184
21185 # Whether we should hardcode library paths into libraries.
21186 hardcode_into_libs=$hardcode_into_libs
21187
21188 # Flag to hardcode \$libdir into a binary during linking.
21189 # This must work even if \$libdir does not exist.
21190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21191
21192 # If ld is used when linking, flag to hardcode \$libdir into
21193 # a binary during linking. This must work even if \$libdir does
21194 # not exist.
21195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21196
21197 # Whether we need a single -rpath flag with a separated argument.
21198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21199
21200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21201 # resulting binary.
21202 hardcode_direct=$hardcode_direct_F77
21203
21204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21205 # resulting binary.
21206 hardcode_minus_L=$hardcode_minus_L_F77
21207
21208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21209 # the resulting binary.
21210 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21211
21212 # Set to yes if building a shared library automatically hardcodes DIR into the library
21213 # and all subsequent libraries and executables linked against it.
21214 hardcode_automatic=$hardcode_automatic_F77
21215
21216 # Variables whose values should be saved in libtool wrapper scripts and
21217 # restored at relink time.
21218 variables_saved_for_relink="$variables_saved_for_relink"
21219
21220 # Whether libtool must link a program against all its dependency libraries.
21221 link_all_deplibs=$link_all_deplibs_F77
21222
21223 # Compile-time system search path for libraries
21224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21225
21226 # Run-time system search path for libraries
21227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21228
21229 # Fix the shell variable \$srcfile for the compiler.
21230 fix_srcfile_path="$fix_srcfile_path_F77"
21231
21232 # Set to yes if exported symbols are required.
21233 always_export_symbols=$always_export_symbols_F77
21234
21235 # The commands to list exported symbols.
21236 export_symbols_cmds=$lt_export_symbols_cmds_F77
21237
21238 # The commands to extract the exported symbol list from a shared archive.
21239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21240
21241 # Symbols that should not be listed in the preloaded symbols.
21242 exclude_expsyms=$lt_exclude_expsyms_F77
21243
21244 # Symbols that must always be exported.
21245 include_expsyms=$lt_include_expsyms_F77
21246
21247 # ### END LIBTOOL TAG CONFIG: $tagname
21248
21249 __EOF__
21250
21251
21252 else
21253   # If there is no Makefile yet, we rely on a make rule to execute
21254   # `config.status --recheck' to rerun these tests and create the
21255   # libtool script then.
21256   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21257   if test -f "$ltmain_in"; then
21258     test -f Makefile && make "$ltmain"
21259   fi
21260 fi
21261
21262
21263 ac_ext=c
21264 ac_cpp='$CPP $CPPFLAGS'
21265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21268
21269 CC="$lt_save_CC"
21270
21271         else
21272           tagname=""
21273         fi
21274         ;;
21275
21276       GCJ)
21277         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21278           ac_ext=c
21279 ac_cpp='$CPP $CPPFLAGS'
21280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21283
21284
21285 # Source file extension for Java test sources.
21286 ac_ext=java
21287
21288 # Object file extension for compiled Java test sources.
21289 objext=o
21290 objext_GCJ=$objext
21291
21292 # Code to be used in simple compile tests
21293 lt_simple_compile_test_code="class foo {}\n"
21294
21295 # Code to be used in simple link tests
21296 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21297
21298 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21299
21300 # If no C compiler was specified, use CC.
21301 LTCC=${LTCC-"$CC"}
21302
21303 # Allow CC to be a program name with arguments.
21304 compiler=$CC
21305
21306
21307 # Allow CC to be a program name with arguments.
21308 lt_save_CC="$CC"
21309 CC=${GCJ-"gcj"}
21310 compiler=$CC
21311 compiler_GCJ=$CC
21312
21313 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21314 archive_cmds_need_lc_GCJ=no
21315
21316
21317 lt_prog_compiler_no_builtin_flag_GCJ=
21318
21319 if test "$GCC" = yes; then
21320   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21321
21322
21323 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21324 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21325 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   lt_cv_prog_compiler_rtti_exceptions=no
21329   ac_outfile=conftest.$ac_objext
21330    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21331    lt_compiler_flag="-fno-rtti -fno-exceptions"
21332    # Insert the option either (1) after the last *FLAGS variable, or
21333    # (2) before a word containing "conftest.", or (3) at the end.
21334    # Note that $ac_compile itself does not contain backslashes and begins
21335    # with a dollar sign (not a hyphen), so the echo should work correctly.
21336    # The option is referenced via a variable to avoid confusing sed.
21337    lt_compile=`echo "$ac_compile" | $SED \
21338    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21340    -e 's:$: $lt_compiler_flag:'`
21341    (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
21342    (eval "$lt_compile" 2>conftest.err)
21343    ac_status=$?
21344    cat conftest.err >&5
21345    echo "$as_me:21329: \$? = $ac_status" >&5
21346    if (exit $ac_status) && test -s "$ac_outfile"; then
21347      # The compiler can only warn and ignore the option if not recognized
21348      # So say no if there are warnings
21349      if test ! -s conftest.err; then
21350        lt_cv_prog_compiler_rtti_exceptions=yes
21351      fi
21352    fi
21353    $rm conftest*
21354
21355 fi
21356 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21357 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21358
21359 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21360     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21361 else
21362     :
21363 fi
21364
21365 fi
21366
21367 lt_prog_compiler_wl_GCJ=
21368 lt_prog_compiler_pic_GCJ=
21369 lt_prog_compiler_static_GCJ=
21370
21371 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21373
21374   if test "$GCC" = yes; then
21375     lt_prog_compiler_wl_GCJ='-Wl,'
21376     lt_prog_compiler_static_GCJ='-static'
21377
21378     case $host_os in
21379       aix*)
21380       # All AIX code is PIC.
21381       if test "$host_cpu" = ia64; then
21382         # AIX 5 now supports IA64 processor
21383         lt_prog_compiler_static_GCJ='-Bstatic'
21384       fi
21385       ;;
21386
21387     amigaos*)
21388       # FIXME: we need at least 68020 code to build shared libraries, but
21389       # adding the `-m68020' flag to GCC prevents building anything better,
21390       # like `-m68040'.
21391       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21392       ;;
21393
21394     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21395       # PIC is the default for these OSes.
21396       ;;
21397
21398     mingw* | pw32* | os2*)
21399       # This hack is so that the source file can tell whether it is being
21400       # built for inclusion in a dll (and should export symbols for example).
21401       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21402       ;;
21403
21404     darwin* | rhapsody*)
21405       # PIC is the default on this platform
21406       # Common symbols not allowed in MH_DYLIB files
21407       lt_prog_compiler_pic_GCJ='-fno-common'
21408       ;;
21409
21410     msdosdjgpp*)
21411       # Just because we use GCC doesn't mean we suddenly get shared libraries
21412       # on systems that don't support them.
21413       lt_prog_compiler_can_build_shared_GCJ=no
21414       enable_shared=no
21415       ;;
21416
21417     sysv4*MP*)
21418       if test -d /usr/nec; then
21419         lt_prog_compiler_pic_GCJ=-Kconform_pic
21420       fi
21421       ;;
21422
21423     hpux*)
21424       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21425       # not for PA HP-UX.
21426       case "$host_cpu" in
21427       hppa*64*|ia64*)
21428         # +Z the default
21429         ;;
21430       *)
21431         lt_prog_compiler_pic_GCJ='-fPIC'
21432         ;;
21433       esac
21434       ;;
21435
21436     *)
21437       lt_prog_compiler_pic_GCJ='-fPIC'
21438       ;;
21439     esac
21440   else
21441     # PORTME Check for flag to pass linker flags through the system compiler.
21442     case $host_os in
21443     aix*)
21444       lt_prog_compiler_wl_GCJ='-Wl,'
21445       if test "$host_cpu" = ia64; then
21446         # AIX 5 now supports IA64 processor
21447         lt_prog_compiler_static_GCJ='-Bstatic'
21448       else
21449         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21450       fi
21451       ;;
21452       darwin*)
21453         # PIC is the default on this platform
21454         # Common symbols not allowed in MH_DYLIB files
21455        case "$cc_basename" in
21456          xlc*)
21457          lt_prog_compiler_pic_GCJ='-qnocommon'
21458          lt_prog_compiler_wl_GCJ='-Wl,'
21459          ;;
21460        esac
21461        ;;
21462
21463     mingw* | pw32* | os2*)
21464       # This hack is so that the source file can tell whether it is being
21465       # built for inclusion in a dll (and should export symbols for example).
21466       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21467       ;;
21468
21469     hpux9* | hpux10* | hpux11*)
21470       lt_prog_compiler_wl_GCJ='-Wl,'
21471       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21472       # not for PA HP-UX.
21473       case "$host_cpu" in
21474       hppa*64*|ia64*)
21475         # +Z the default
21476         ;;
21477       *)
21478         lt_prog_compiler_pic_GCJ='+Z'
21479         ;;
21480       esac
21481       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21482       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21483       ;;
21484
21485     irix5* | irix6* | nonstopux*)
21486       lt_prog_compiler_wl_GCJ='-Wl,'
21487       # PIC (with -KPIC) is the default.
21488       lt_prog_compiler_static_GCJ='-non_shared'
21489       ;;
21490
21491     newsos6)
21492       lt_prog_compiler_pic_GCJ='-KPIC'
21493       lt_prog_compiler_static_GCJ='-Bstatic'
21494       ;;
21495
21496     linux*)
21497       case $CC in
21498       icc* | ecc*)
21499         lt_prog_compiler_wl_GCJ='-Wl,'
21500         lt_prog_compiler_pic_GCJ='-KPIC'
21501         lt_prog_compiler_static_GCJ='-static'
21502         ;;
21503       ccc*)
21504         lt_prog_compiler_wl_GCJ='-Wl,'
21505         # All Alpha code is PIC.
21506         lt_prog_compiler_static_GCJ='-non_shared'
21507         ;;
21508       esac
21509       ;;
21510
21511     osf3* | osf4* | osf5*)
21512       lt_prog_compiler_wl_GCJ='-Wl,'
21513       # All OSF/1 code is PIC.
21514       lt_prog_compiler_static_GCJ='-non_shared'
21515       ;;
21516
21517     sco3.2v5*)
21518       lt_prog_compiler_pic_GCJ='-Kpic'
21519       lt_prog_compiler_static_GCJ='-dn'
21520       ;;
21521
21522     solaris*)
21523       lt_prog_compiler_wl_GCJ='-Wl,'
21524       lt_prog_compiler_pic_GCJ='-KPIC'
21525       lt_prog_compiler_static_GCJ='-Bstatic'
21526       ;;
21527
21528     sunos4*)
21529       lt_prog_compiler_wl_GCJ='-Qoption ld '
21530       lt_prog_compiler_pic_GCJ='-PIC'
21531       lt_prog_compiler_static_GCJ='-Bstatic'
21532       ;;
21533
21534     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21535       lt_prog_compiler_wl_GCJ='-Wl,'
21536       lt_prog_compiler_pic_GCJ='-KPIC'
21537       lt_prog_compiler_static_GCJ='-Bstatic'
21538       ;;
21539
21540     sysv4*MP*)
21541       if test -d /usr/nec ;then
21542         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21543         lt_prog_compiler_static_GCJ='-Bstatic'
21544       fi
21545       ;;
21546
21547     uts4*)
21548       lt_prog_compiler_pic_GCJ='-pic'
21549       lt_prog_compiler_static_GCJ='-Bstatic'
21550       ;;
21551
21552     *)
21553       lt_prog_compiler_can_build_shared_GCJ=no
21554       ;;
21555     esac
21556   fi
21557
21558 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21559 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21560
21561 #
21562 # Check to make sure the PIC flag actually works.
21563 #
21564 if test -n "$lt_prog_compiler_pic_GCJ"; then
21565
21566 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21567 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21568 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   lt_prog_compiler_pic_works_GCJ=no
21572   ac_outfile=conftest.$ac_objext
21573    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21574    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21575    # Insert the option either (1) after the last *FLAGS variable, or
21576    # (2) before a word containing "conftest.", or (3) at the end.
21577    # Note that $ac_compile itself does not contain backslashes and begins
21578    # with a dollar sign (not a hyphen), so the echo should work correctly.
21579    # The option is referenced via a variable to avoid confusing sed.
21580    lt_compile=`echo "$ac_compile" | $SED \
21581    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21582    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21583    -e 's:$: $lt_compiler_flag:'`
21584    (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21585    (eval "$lt_compile" 2>conftest.err)
21586    ac_status=$?
21587    cat conftest.err >&5
21588    echo "$as_me:21572: \$? = $ac_status" >&5
21589    if (exit $ac_status) && test -s "$ac_outfile"; then
21590      # The compiler can only warn and ignore the option if not recognized
21591      # So say no if there are warnings
21592      if test ! -s conftest.err; then
21593        lt_prog_compiler_pic_works_GCJ=yes
21594      fi
21595    fi
21596    $rm conftest*
21597
21598 fi
21599 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21600 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21601
21602 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21603     case $lt_prog_compiler_pic_GCJ in
21604      "" | " "*) ;;
21605      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21606      esac
21607 else
21608     lt_prog_compiler_pic_GCJ=
21609      lt_prog_compiler_can_build_shared_GCJ=no
21610 fi
21611
21612 fi
21613 case "$host_os" in
21614   # For platforms which do not support PIC, -DPIC is meaningless:
21615   *djgpp*)
21616     lt_prog_compiler_pic_GCJ=
21617     ;;
21618   *)
21619     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21620     ;;
21621 esac
21622
21623 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21624 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21625 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21626   echo $ECHO_N "(cached) $ECHO_C" >&6
21627 else
21628   lt_cv_prog_compiler_c_o_GCJ=no
21629    $rm -r conftest 2>/dev/null
21630    mkdir conftest
21631    cd conftest
21632    mkdir out
21633    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21634
21635    lt_compiler_flag="-o out/conftest2.$ac_objext"
21636    # Insert the option either (1) after the last *FLAGS variable, or
21637    # (2) before a word containing "conftest.", or (3) at the end.
21638    # Note that $ac_compile itself does not contain backslashes and begins
21639    # with a dollar sign (not a hyphen), so the echo should work correctly.
21640    lt_compile=`echo "$ac_compile" | $SED \
21641    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21642    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21643    -e 's:$: $lt_compiler_flag:'`
21644    (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
21645    (eval "$lt_compile" 2>out/conftest.err)
21646    ac_status=$?
21647    cat out/conftest.err >&5
21648    echo "$as_me:21632: \$? = $ac_status" >&5
21649    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21650    then
21651      # The compiler can only warn and ignore the option if not recognized
21652      # So say no if there are warnings
21653      if test ! -s out/conftest.err; then
21654        lt_cv_prog_compiler_c_o_GCJ=yes
21655      fi
21656    fi
21657    chmod u+w .
21658    $rm conftest*
21659    # SGI C++ compiler will create directory out/ii_files/ for
21660    # template instantiation
21661    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21662    $rm out/* && rmdir out
21663    cd ..
21664    rmdir conftest
21665    $rm conftest*
21666
21667 fi
21668 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21669 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21670
21671
21672 hard_links="nottested"
21673 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21674   # do not overwrite the value of need_locks provided by the user
21675   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21676 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21677   hard_links=yes
21678   $rm conftest*
21679   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21680   touch conftest.a
21681   ln conftest.a conftest.b 2>&5 || hard_links=no
21682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21683   echo "$as_me:$LINENO: result: $hard_links" >&5
21684 echo "${ECHO_T}$hard_links" >&6
21685   if test "$hard_links" = no; then
21686     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21687 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21688     need_locks=warn
21689   fi
21690 else
21691   need_locks=no
21692 fi
21693
21694 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21696
21697   runpath_var=
21698   allow_undefined_flag_GCJ=
21699   enable_shared_with_static_runtimes_GCJ=no
21700   archive_cmds_GCJ=
21701   archive_expsym_cmds_GCJ=
21702   old_archive_From_new_cmds_GCJ=
21703   old_archive_from_expsyms_cmds_GCJ=
21704   export_dynamic_flag_spec_GCJ=
21705   whole_archive_flag_spec_GCJ=
21706   thread_safe_flag_spec_GCJ=
21707   hardcode_libdir_flag_spec_GCJ=
21708   hardcode_libdir_flag_spec_ld_GCJ=
21709   hardcode_libdir_separator_GCJ=
21710   hardcode_direct_GCJ=no
21711   hardcode_minus_L_GCJ=no
21712   hardcode_shlibpath_var_GCJ=unsupported
21713   link_all_deplibs_GCJ=unknown
21714   hardcode_automatic_GCJ=no
21715   module_cmds_GCJ=
21716   module_expsym_cmds_GCJ=
21717   always_export_symbols_GCJ=no
21718   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21719   # include_expsyms should be a list of space-separated symbols to be *always*
21720   # included in the symbol list
21721   include_expsyms_GCJ=
21722   # exclude_expsyms can be an extended regexp of symbols to exclude
21723   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21724   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21725   # as well as any symbol that contains `d'.
21726   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21727   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21728   # platforms (ab)use it in PIC code, but their linkers get confused if
21729   # the symbol is explicitly referenced.  Since portable code cannot
21730   # rely on this symbol name, it's probably fine to never include it in
21731   # preloaded symbol tables.
21732   extract_expsyms_cmds=
21733
21734   case $host_os in
21735   cygwin* | mingw* | pw32*)
21736     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21737     # When not using gcc, we currently assume that we are using
21738     # Microsoft Visual C++.
21739     if test "$GCC" != yes; then
21740       with_gnu_ld=no
21741     fi
21742     ;;
21743   openbsd*)
21744     with_gnu_ld=no
21745     ;;
21746   esac
21747
21748   ld_shlibs_GCJ=yes
21749   if test "$with_gnu_ld" = yes; then
21750     # If archive_cmds runs LD, not CC, wlarc should be empty
21751     wlarc='${wl}'
21752
21753     # See if GNU ld supports shared libraries.
21754     case $host_os in
21755     aix3* | aix4* | aix5*)
21756       # On AIX/PPC, the GNU linker is very broken
21757       if test "$host_cpu" != ia64; then
21758         ld_shlibs_GCJ=no
21759         cat <<EOF 1>&2
21760
21761 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21762 *** to be unable to reliably create shared libraries on AIX.
21763 *** Therefore, libtool is disabling shared libraries support.  If you
21764 *** really care for shared libraries, you may want to modify your PATH
21765 *** so that a non-GNU linker is found, and then restart.
21766
21767 EOF
21768       fi
21769       ;;
21770
21771     amigaos*)
21772       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)'
21773       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21774       hardcode_minus_L_GCJ=yes
21775
21776       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21777       # that the semantics of dynamic libraries on AmigaOS, at least up
21778       # to version 4, is to share data among multiple programs linked
21779       # with the same dynamic library.  Since this doesn't match the
21780       # behavior of shared libraries on other platforms, we can't use
21781       # them.
21782       ld_shlibs_GCJ=no
21783       ;;
21784
21785     beos*)
21786       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787         allow_undefined_flag_GCJ=unsupported
21788         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21789         # support --undefined.  This deserves some investigation.  FIXME
21790         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21791       else
21792         ld_shlibs_GCJ=no
21793       fi
21794       ;;
21795
21796     cygwin* | mingw* | pw32*)
21797       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21798       # as there is no search path for DLLs.
21799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21800       allow_undefined_flag_GCJ=unsupported
21801       always_export_symbols_GCJ=no
21802       enable_shared_with_static_runtimes_GCJ=yes
21803       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21804
21805       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21806         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21807         # If the export-symbols file already is a .def file (1st line
21808         # is EXPORTS), use it as is; otherwise, prepend...
21809         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21810           cp $export_symbols $output_objdir/$soname.def;
21811         else
21812           echo EXPORTS > $output_objdir/$soname.def;
21813           cat $export_symbols >> $output_objdir/$soname.def;
21814         fi~
21815         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21816       else
21817         ld_shlibs=no
21818       fi
21819       ;;
21820
21821     netbsd*)
21822       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21823         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21824         wlarc=
21825       else
21826         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21827         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21828       fi
21829       ;;
21830
21831     solaris* | sysv5*)
21832       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21833         ld_shlibs_GCJ=no
21834         cat <<EOF 1>&2
21835
21836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21837 *** create shared libraries on Solaris systems.  Therefore, libtool
21838 *** is disabling shared libraries support.  We urge you to upgrade GNU
21839 *** binutils to release 2.9.1 or newer.  Another option is to modify
21840 *** your PATH or compiler configuration so that the native linker is
21841 *** used, and then restart.
21842
21843 EOF
21844       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21847       else
21848         ld_shlibs_GCJ=no
21849       fi
21850       ;;
21851
21852     sunos4*)
21853       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21854       wlarc=
21855       hardcode_direct_GCJ=yes
21856       hardcode_shlibpath_var_GCJ=no
21857       ;;
21858
21859   linux*)
21860     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21861         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21862         archive_cmds_GCJ="$tmp_archive_cmds"
21863       supports_anon_versioning=no
21864       case `$LD -v 2>/dev/null` in
21865         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21866         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21867         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21868         *\ 2.11.*) ;; # other 2.11 versions
21869         *) supports_anon_versioning=yes ;;
21870       esac
21871       if test $supports_anon_versioning = yes; then
21872         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21874 $echo "local: *; };" >> $output_objdir/$libname.ver~
21875         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21876       else
21877         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21878       fi
21879     else
21880       ld_shlibs_GCJ=no
21881     fi
21882     ;;
21883
21884     *)
21885       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21886         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21887         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21888       else
21889         ld_shlibs_GCJ=no
21890       fi
21891       ;;
21892     esac
21893
21894     if test "$ld_shlibs_GCJ" = yes; then
21895       runpath_var=LD_RUN_PATH
21896       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21897       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21898       # ancient GNU ld didn't support --whole-archive et. al.
21899       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21900         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21901       else
21902         whole_archive_flag_spec_GCJ=
21903       fi
21904     fi
21905   else
21906     # PORTME fill in a description of your system's linker (not GNU ld)
21907     case $host_os in
21908     aix3*)
21909       allow_undefined_flag_GCJ=unsupported
21910       always_export_symbols_GCJ=yes
21911       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'
21912       # Note: this linker hardcodes the directories in LIBPATH if there
21913       # are no directories specified by -L.
21914       hardcode_minus_L_GCJ=yes
21915       if test "$GCC" = yes && test -z "$link_static_flag"; then
21916         # Neither direct hardcoding nor static linking is supported with a
21917         # broken collect2.
21918         hardcode_direct_GCJ=unsupported
21919       fi
21920       ;;
21921
21922     aix4* | aix5*)
21923       if test "$host_cpu" = ia64; then
21924         # On IA64, the linker does run time linking by default, so we don't
21925         # have to do anything special.
21926         aix_use_runtimelinking=no
21927         exp_sym_flag='-Bexport'
21928         no_entry_flag=""
21929       else
21930         # If we're using GNU nm, then we don't want the "-C" option.
21931         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21932         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21933           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'
21934         else
21935           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'
21936         fi
21937         aix_use_runtimelinking=no
21938
21939         # Test if we are trying to use run time linking or normal
21940         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21941         # need to do runtime linking.
21942         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21943           for ld_flag in $LDFLAGS; do
21944           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21945             aix_use_runtimelinking=yes
21946             break
21947           fi
21948           done
21949         esac
21950
21951         exp_sym_flag='-bexport'
21952         no_entry_flag='-bnoentry'
21953       fi
21954
21955       # When large executables or shared objects are built, AIX ld can
21956       # have problems creating the table of contents.  If linking a library
21957       # or program results in "error TOC overflow" add -mminimal-toc to
21958       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21959       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21960
21961       archive_cmds_GCJ=''
21962       hardcode_direct_GCJ=yes
21963       hardcode_libdir_separator_GCJ=':'
21964       link_all_deplibs_GCJ=yes
21965
21966       if test "$GCC" = yes; then
21967         case $host_os in aix4.012|aix4.012.*)
21968         # We only want to do this on AIX 4.2 and lower, the check
21969         # below for broken collect2 doesn't work under 4.3+
21970           collect2name=`${CC} -print-prog-name=collect2`
21971           if test -f "$collect2name" && \
21972            strings "$collect2name" | grep resolve_lib_name >/dev/null
21973           then
21974           # We have reworked collect2
21975           hardcode_direct_GCJ=yes
21976           else
21977           # We have old collect2
21978           hardcode_direct_GCJ=unsupported
21979           # It fails to find uninstalled libraries when the uninstalled
21980           # path is not listed in the libpath.  Setting hardcode_minus_L
21981           # to unsupported forces relinking
21982           hardcode_minus_L_GCJ=yes
21983           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21984           hardcode_libdir_separator_GCJ=
21985           fi
21986         esac
21987         shared_flag='-shared'
21988       else
21989         # not using gcc
21990         if test "$host_cpu" = ia64; then
21991         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21992         # chokes on -Wl,-G. The following line is correct:
21993           shared_flag='-G'
21994         else
21995         if test "$aix_use_runtimelinking" = yes; then
21996             shared_flag='${wl}-G'
21997           else
21998             shared_flag='${wl}-bM:SRE'
21999         fi
22000         fi
22001       fi
22002
22003       # It seems that -bexpall does not export symbols beginning with
22004       # underscore (_), so it is better to generate a list of symbols to export.
22005       always_export_symbols_GCJ=yes
22006       if test "$aix_use_runtimelinking" = yes; then
22007         # Warning - without using the other runtime loading flags (-brtl),
22008         # -berok will link without error, but may produce a broken library.
22009         allow_undefined_flag_GCJ='-berok'
22010        # Determine the default libpath from the value encoded in an empty executable.
22011        cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017
22018 int
22019 main ()
22020 {
22021
22022   ;
22023   return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22028   (eval $ac_link) 2>conftest.er1
22029   ac_status=$?
22030   grep -v '^ *+' conftest.er1 >conftest.err
22031   rm -f conftest.er1
22032   cat conftest.err >&5
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -z "$ac_c_werror_flag"
22036                          || test ! -s conftest.err'
22037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; } &&
22042          { ac_try='test -s conftest$ac_exeext'
22043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044   (eval $ac_try) 2>&5
22045   ac_status=$?
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); }; }; then
22048
22049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22050 }'`
22051 # Check for a 64-bit object if we didn't find anything.
22052 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; }
22053 }'`; fi
22054 else
22055   echo "$as_me: failed program was:" >&5
22056 sed 's/^/| /' conftest.$ac_ext >&5
22057
22058 fi
22059 rm -f conftest.err conftest.$ac_objext \
22060       conftest$ac_exeext conftest.$ac_ext
22061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22062
22063        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22064         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"
22065        else
22066         if test "$host_cpu" = ia64; then
22067           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22068           allow_undefined_flag_GCJ="-z nodefs"
22069           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"
22070         else
22071          # Determine the default libpath from the value encoded in an empty executable.
22072          cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22078
22079 int
22080 main ()
22081 {
22082
22083   ;
22084   return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22089   (eval $ac_link) 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } &&
22096          { ac_try='test -z "$ac_c_werror_flag"
22097                          || test ! -s conftest.err'
22098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099   (eval $ac_try) 2>&5
22100   ac_status=$?
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); }; } &&
22103          { ac_try='test -s conftest$ac_exeext'
22104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105   (eval $ac_try) 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; }; then
22109
22110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22111 }'`
22112 # Check for a 64-bit object if we didn't find anything.
22113 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; }
22114 }'`; fi
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 fi
22120 rm -f conftest.err conftest.$ac_objext \
22121       conftest$ac_exeext conftest.$ac_ext
22122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22123
22124          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22125           # Warning - without using the other run time loading flags,
22126           # -berok will link without error, but may produce a broken library.
22127           no_undefined_flag_GCJ=' ${wl}-bernotok'
22128           allow_undefined_flag_GCJ=' ${wl}-berok'
22129           # -bexpall does not export symbols beginning with underscore (_)
22130           always_export_symbols_GCJ=yes
22131           # Exported symbols can be pulled into shared objects from archives
22132           whole_archive_flag_spec_GCJ=' '
22133           archive_cmds_need_lc_GCJ=yes
22134           # This is similar to how AIX traditionally builds it's shared libraries.
22135           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'
22136         fi
22137       fi
22138       ;;
22139
22140     amigaos*)
22141       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)'
22142       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22143       hardcode_minus_L_GCJ=yes
22144       # see comment about different semantics on the GNU ld section
22145       ld_shlibs_GCJ=no
22146       ;;
22147
22148     bsdi[45]*)
22149       export_dynamic_flag_spec_GCJ=-rdynamic
22150       ;;
22151
22152     cygwin* | mingw* | pw32*)
22153       # When not using gcc, we currently assume that we are using
22154       # Microsoft Visual C++.
22155       # hardcode_libdir_flag_spec is actually meaningless, as there is
22156       # no search path for DLLs.
22157       hardcode_libdir_flag_spec_GCJ=' '
22158       allow_undefined_flag_GCJ=unsupported
22159       # Tell ltmain to make .lib files, not .a files.
22160       libext=lib
22161       # Tell ltmain to make .dll files, not .so files.
22162       shrext_cmds=".dll"
22163       # FIXME: Setting linknames here is a bad hack.
22164       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22165       # The linker will automatically build a .lib file if we build a DLL.
22166       old_archive_From_new_cmds_GCJ='true'
22167       # FIXME: Should let the user specify the lib program.
22168       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22169       fix_srcfile_path='`cygpath -w "$srcfile"`'
22170       enable_shared_with_static_runtimes_GCJ=yes
22171       ;;
22172
22173     darwin* | rhapsody*)
22174       case "$host_os" in
22175         rhapsody* | darwin1.[012])
22176          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22177          ;;
22178        *) # Darwin 1.3 on
22179          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22180            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22181          else
22182            case ${MACOSX_DEPLOYMENT_TARGET} in
22183              10.[012])
22184                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22185                ;;
22186              10.*)
22187                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22188                ;;
22189            esac
22190          fi
22191          ;;
22192       esac
22193       archive_cmds_need_lc_GCJ=no
22194       hardcode_direct_GCJ=no
22195       hardcode_automatic_GCJ=yes
22196       hardcode_shlibpath_var_GCJ=unsupported
22197       whole_archive_flag_spec_GCJ=''
22198       link_all_deplibs_GCJ=yes
22199     if test "$GCC" = yes ; then
22200         output_verbose_link_cmd='echo'
22201         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22202       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22203       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22204       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}'
22205       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}'
22206     else
22207       case "$cc_basename" in
22208         xlc*)
22209          output_verbose_link_cmd='echo'
22210          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22211          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22213          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}'
22214           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}'
22215           ;;
22216        *)
22217          ld_shlibs_GCJ=no
22218           ;;
22219       esac
22220     fi
22221       ;;
22222
22223     dgux*)
22224       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22226       hardcode_shlibpath_var_GCJ=no
22227       ;;
22228
22229     freebsd1*)
22230       ld_shlibs_GCJ=no
22231       ;;
22232
22233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22234     # support.  Future versions do this automatically, but an explicit c++rt0.o
22235     # does not break anything, and helps significantly (at the cost of a little
22236     # extra space).
22237     freebsd2.2*)
22238       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22239       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240       hardcode_direct_GCJ=yes
22241       hardcode_shlibpath_var_GCJ=no
22242       ;;
22243
22244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22245     freebsd2*)
22246       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22247       hardcode_direct_GCJ=yes
22248       hardcode_minus_L_GCJ=yes
22249       hardcode_shlibpath_var_GCJ=no
22250       ;;
22251
22252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22253     freebsd* | kfreebsd*-gnu)
22254       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22255       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22256       hardcode_direct_GCJ=yes
22257       hardcode_shlibpath_var_GCJ=no
22258       ;;
22259
22260     hpux9*)
22261       if test "$GCC" = yes; then
22262         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'
22263       else
22264         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'
22265       fi
22266       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22267       hardcode_libdir_separator_GCJ=:
22268       hardcode_direct_GCJ=yes
22269
22270       # hardcode_minus_L: Not really in the search PATH,
22271       # but as the default location of the library.
22272       hardcode_minus_L_GCJ=yes
22273       export_dynamic_flag_spec_GCJ='${wl}-E'
22274       ;;
22275
22276     hpux10* | hpux11*)
22277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22278         case "$host_cpu" in
22279         hppa*64*|ia64*)
22280           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281           ;;
22282         *)
22283           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22284           ;;
22285         esac
22286       else
22287         case "$host_cpu" in
22288         hppa*64*|ia64*)
22289           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22290           ;;
22291         *)
22292           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22293           ;;
22294         esac
22295       fi
22296       if test "$with_gnu_ld" = no; then
22297         case "$host_cpu" in
22298         hppa*64*)
22299           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22301           hardcode_libdir_separator_GCJ=:
22302           hardcode_direct_GCJ=no
22303           hardcode_shlibpath_var_GCJ=no
22304           ;;
22305         ia64*)
22306           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22307           hardcode_direct_GCJ=no
22308           hardcode_shlibpath_var_GCJ=no
22309
22310           # hardcode_minus_L: Not really in the search PATH,
22311           # but as the default location of the library.
22312           hardcode_minus_L_GCJ=yes
22313           ;;
22314         *)
22315           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22316           hardcode_libdir_separator_GCJ=:
22317           hardcode_direct_GCJ=yes
22318           export_dynamic_flag_spec_GCJ='${wl}-E'
22319
22320           # hardcode_minus_L: Not really in the search PATH,
22321           # but as the default location of the library.
22322           hardcode_minus_L_GCJ=yes
22323           ;;
22324         esac
22325       fi
22326       ;;
22327
22328     irix5* | irix6* | nonstopux*)
22329       if test "$GCC" = yes; then
22330         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'
22331       else
22332         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'
22333         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22334       fi
22335       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22336       hardcode_libdir_separator_GCJ=:
22337       link_all_deplibs_GCJ=yes
22338       ;;
22339
22340     netbsd*)
22341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22342         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22343       else
22344         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22345       fi
22346       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22347       hardcode_direct_GCJ=yes
22348       hardcode_shlibpath_var_GCJ=no
22349       ;;
22350
22351     newsos6)
22352       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353       hardcode_direct_GCJ=yes
22354       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22355       hardcode_libdir_separator_GCJ=:
22356       hardcode_shlibpath_var_GCJ=no
22357       ;;
22358
22359     openbsd*)
22360       hardcode_direct_GCJ=yes
22361       hardcode_shlibpath_var_GCJ=no
22362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22363         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22364         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22365         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22366         export_dynamic_flag_spec_GCJ='${wl}-E'
22367       else
22368        case $host_os in
22369          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22370            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22371            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22372            ;;
22373          *)
22374            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22375            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22376            ;;
22377        esac
22378       fi
22379       ;;
22380
22381     os2*)
22382       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22383       hardcode_minus_L_GCJ=yes
22384       allow_undefined_flag_GCJ=unsupported
22385       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'
22386       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22387       ;;
22388
22389     osf3*)
22390       if test "$GCC" = yes; then
22391         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22392         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'
22393       else
22394         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22395         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'
22396       fi
22397       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22398       hardcode_libdir_separator_GCJ=:
22399       ;;
22400
22401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22402       if test "$GCC" = yes; then
22403         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22404         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'
22405         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22406       else
22407         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22408         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'
22409         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~
22410         $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'
22411
22412         # Both c and cxx compiler support -rpath directly
22413         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22414       fi
22415       hardcode_libdir_separator_GCJ=:
22416       ;;
22417
22418     sco3.2v5*)
22419       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22420       hardcode_shlibpath_var_GCJ=no
22421       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22422       runpath_var=LD_RUN_PATH
22423       hardcode_runpath_var=yes
22424       ;;
22425
22426     solaris*)
22427       no_undefined_flag_GCJ=' -z text'
22428       if test "$GCC" = yes; then
22429         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22430         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22431           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22432       else
22433         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22434         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22436       fi
22437       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22438       hardcode_shlibpath_var_GCJ=no
22439       case $host_os in
22440       solaris2.[0-5] | solaris2.[0-5].*) ;;
22441       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22442         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22443       esac
22444       link_all_deplibs_GCJ=yes
22445       ;;
22446
22447     sunos4*)
22448       if test "x$host_vendor" = xsequent; then
22449         # Use $CC to link under sequent, because it throws in some extra .o
22450         # files that make .init and .fini sections work.
22451         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22452       else
22453         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22454       fi
22455       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22456       hardcode_direct_GCJ=yes
22457       hardcode_minus_L_GCJ=yes
22458       hardcode_shlibpath_var_GCJ=no
22459       ;;
22460
22461     sysv4)
22462       case $host_vendor in
22463         sni)
22464           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22465           hardcode_direct_GCJ=yes # is this really true???
22466         ;;
22467         siemens)
22468           ## LD is ld it makes a PLAMLIB
22469           ## CC just makes a GrossModule.
22470           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22471           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22472           hardcode_direct_GCJ=no
22473         ;;
22474         motorola)
22475           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22477         ;;
22478       esac
22479       runpath_var='LD_RUN_PATH'
22480       hardcode_shlibpath_var_GCJ=no
22481       ;;
22482
22483     sysv4.3*)
22484       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22485       hardcode_shlibpath_var_GCJ=no
22486       export_dynamic_flag_spec_GCJ='-Bexport'
22487       ;;
22488
22489     sysv4*MP*)
22490       if test -d /usr/nec; then
22491         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22492         hardcode_shlibpath_var_GCJ=no
22493         runpath_var=LD_RUN_PATH
22494         hardcode_runpath_var=yes
22495         ld_shlibs_GCJ=yes
22496       fi
22497       ;;
22498
22499     sysv4.2uw2*)
22500       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22501       hardcode_direct_GCJ=yes
22502       hardcode_minus_L_GCJ=no
22503       hardcode_shlibpath_var_GCJ=no
22504       hardcode_runpath_var=yes
22505       runpath_var=LD_RUN_PATH
22506       ;;
22507
22508    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22509       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22510       if test "$GCC" = yes; then
22511         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512       else
22513         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514       fi
22515       runpath_var='LD_RUN_PATH'
22516       hardcode_shlibpath_var_GCJ=no
22517       ;;
22518
22519     sysv5*)
22520       no_undefined_flag_GCJ=' -z text'
22521       # $CC -shared without GNU ld will not create a library from C++
22522       # object files and a static libstdc++, better avoid it by now
22523       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22524       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22525                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22526       hardcode_libdir_flag_spec_GCJ=
22527       hardcode_shlibpath_var_GCJ=no
22528       runpath_var='LD_RUN_PATH'
22529       ;;
22530
22531     uts4*)
22532       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22533       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22534       hardcode_shlibpath_var_GCJ=no
22535       ;;
22536
22537     *)
22538       ld_shlibs_GCJ=no
22539       ;;
22540     esac
22541   fi
22542
22543 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22544 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22545 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22546
22547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22548 if test "$GCC" = yes; then
22549   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22550 fi
22551
22552 #
22553 # Do we need to explicitly link libc?
22554 #
22555 case "x$archive_cmds_need_lc_GCJ" in
22556 x|xyes)
22557   # Assume -lc should be added
22558   archive_cmds_need_lc_GCJ=yes
22559
22560   if test "$enable_shared" = yes && test "$GCC" = yes; then
22561     case $archive_cmds_GCJ in
22562     *'~'*)
22563       # FIXME: we may have to deal with multi-command sequences.
22564       ;;
22565     '$CC '*)
22566       # Test whether the compiler implicitly links with -lc since on some
22567       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22568       # to ld, don't add -lc before -lgcc.
22569       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22570 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22571       $rm conftest*
22572       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22573
22574       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22575   (eval $ac_compile) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); } 2>conftest.err; then
22579         soname=conftest
22580         lib=conftest
22581         libobjs=conftest.$ac_objext
22582         deplibs=
22583         wl=$lt_prog_compiler_wl_GCJ
22584         compiler_flags=-v
22585         linker_flags=-v
22586         verstring=
22587         output_objdir=.
22588         libname=conftest
22589         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22590         allow_undefined_flag_GCJ=
22591         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22592   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22593   ac_status=$?
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); }
22596         then
22597           archive_cmds_need_lc_GCJ=no
22598         else
22599           archive_cmds_need_lc_GCJ=yes
22600         fi
22601         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22602       else
22603         cat conftest.err 1>&5
22604       fi
22605       $rm conftest*
22606       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22607 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22608       ;;
22609     esac
22610   fi
22611   ;;
22612 esac
22613
22614 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22615 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22616 library_names_spec=
22617 libname_spec='lib$name'
22618 soname_spec=
22619 shrext_cmds=".so"
22620 postinstall_cmds=
22621 postuninstall_cmds=
22622 finish_cmds=
22623 finish_eval=
22624 shlibpath_var=
22625 shlibpath_overrides_runpath=unknown
22626 version_type=none
22627 dynamic_linker="$host_os ld.so"
22628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22629 if test "$GCC" = yes; then
22630   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22631   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22632     # if the path contains ";" then we assume it to be the separator
22633     # otherwise default to the standard path separator (i.e. ":") - it is
22634     # assumed that no part of a normal pathname contains ";" but that should
22635     # okay in the real world where ";" in dirpaths is itself problematic.
22636     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22637   else
22638     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22639   fi
22640 else
22641   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22642 fi
22643 need_lib_prefix=unknown
22644 hardcode_into_libs=no
22645
22646 # when you set need_version to no, make sure it does not cause -set_version
22647 # flags to be left without arguments
22648 need_version=unknown
22649
22650 case $host_os in
22651 aix3*)
22652   version_type=linux
22653   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22654   shlibpath_var=LIBPATH
22655
22656   # AIX 3 has no versioning support, so we append a major version to the name.
22657   soname_spec='${libname}${release}${shared_ext}$major'
22658   ;;
22659
22660 aix4* | aix5*)
22661   version_type=linux
22662   need_lib_prefix=no
22663   need_version=no
22664   hardcode_into_libs=yes
22665   if test "$host_cpu" = ia64; then
22666     # AIX 5 supports IA64
22667     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22668     shlibpath_var=LD_LIBRARY_PATH
22669   else
22670     # With GCC up to 2.95.x, collect2 would create an import file
22671     # for dependence libraries.  The import file would start with
22672     # the line `#! .'.  This would cause the generated library to
22673     # depend on `.', always an invalid library.  This was fixed in
22674     # development snapshots of GCC prior to 3.0.
22675     case $host_os in
22676       aix4 | aix4.[01] | aix4.[01].*)
22677       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22678            echo ' yes '
22679            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22680         :
22681       else
22682         can_build_shared=no
22683       fi
22684       ;;
22685     esac
22686     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22687     # soname into executable. Probably we can add versioning support to
22688     # collect2, so additional links can be useful in future.
22689     if test "$aix_use_runtimelinking" = yes; then
22690       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22691       # instead of lib<name>.a to let people know that these are not
22692       # typical AIX shared libraries.
22693       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22694     else
22695       # We preserve .a as extension for shared libraries through AIX4.2
22696       # and later when we are not doing run time linking.
22697       library_names_spec='${libname}${release}.a $libname.a'
22698       soname_spec='${libname}${release}${shared_ext}$major'
22699     fi
22700     shlibpath_var=LIBPATH
22701   fi
22702   ;;
22703
22704 amigaos*)
22705   library_names_spec='$libname.ixlibrary $libname.a'
22706   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22707   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'
22708   ;;
22709
22710 beos*)
22711   library_names_spec='${libname}${shared_ext}'
22712   dynamic_linker="$host_os ld.so"
22713   shlibpath_var=LIBRARY_PATH
22714   ;;
22715
22716 bsdi[45]*)
22717   version_type=linux
22718   need_version=no
22719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22720   soname_spec='${libname}${release}${shared_ext}$major'
22721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22722   shlibpath_var=LD_LIBRARY_PATH
22723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22725   # the default ld.so.conf also contains /usr/contrib/lib and
22726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22727   # libtool to hard-code these into programs
22728   ;;
22729
22730 cygwin* | mingw* | pw32*)
22731   version_type=windows
22732   shrext_cmds=".dll"
22733   need_version=no
22734   need_lib_prefix=no
22735
22736   case $GCC,$host_os in
22737   yes,cygwin* | yes,mingw* | yes,pw32*)
22738     library_names_spec='$libname.dll.a'
22739     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22740     postinstall_cmds='base_file=`basename \${file}`~
22741       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22742       dldir=$destdir/`dirname \$dlpath`~
22743       test -d \$dldir || mkdir -p \$dldir~
22744       $install_prog $dir/$dlname \$dldir/$dlname'
22745     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22746       dlpath=$dir/\$dldll~
22747        $rm \$dlpath'
22748     shlibpath_overrides_runpath=yes
22749
22750     case $host_os in
22751     cygwin*)
22752       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22753       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22754       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22755       ;;
22756     mingw*)
22757       # MinGW DLLs use traditional 'lib' prefix
22758       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22759       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22760       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22761         # It is most probably a Windows format PATH printed by
22762         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22763         # path with ; separators, and with drive letters. We can handle the
22764         # drive letters (cygwin fileutils understands them), so leave them,
22765         # especially as we might pass files found there to a mingw objdump,
22766         # which wouldn't understand a cygwinified path. Ahh.
22767         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22768       else
22769         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22770       fi
22771       ;;
22772     pw32*)
22773       # pw32 DLLs use 'pw' prefix rather than 'lib'
22774       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22775       ;;
22776     esac
22777     ;;
22778
22779   *)
22780     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22781     ;;
22782   esac
22783   dynamic_linker='Win32 ld.exe'
22784   # FIXME: first we should search . and the directory the executable is in
22785   shlibpath_var=PATH
22786   ;;
22787
22788 darwin* | rhapsody*)
22789   dynamic_linker="$host_os dyld"
22790   version_type=darwin
22791   need_lib_prefix=no
22792   need_version=no
22793   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22794   soname_spec='${libname}${release}${major}$shared_ext'
22795   shlibpath_overrides_runpath=yes
22796   shlibpath_var=DYLD_LIBRARY_PATH
22797   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22798   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22799   if test "$GCC" = yes; then
22800     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"`
22801   else
22802     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22803   fi
22804   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22805   ;;
22806
22807 dgux*)
22808   version_type=linux
22809   need_lib_prefix=no
22810   need_version=no
22811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22812   soname_spec='${libname}${release}${shared_ext}$major'
22813   shlibpath_var=LD_LIBRARY_PATH
22814   ;;
22815
22816 freebsd1*)
22817   dynamic_linker=no
22818   ;;
22819
22820 kfreebsd*-gnu)
22821   version_type=linux
22822   need_lib_prefix=no
22823   need_version=no
22824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22825   soname_spec='${libname}${release}${shared_ext}$major'
22826   shlibpath_var=LD_LIBRARY_PATH
22827   shlibpath_overrides_runpath=no
22828   hardcode_into_libs=yes
22829   dynamic_linker='GNU ld.so'
22830   ;;
22831
22832 freebsd*)
22833   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22834   version_type=freebsd-$objformat
22835   case $version_type in
22836     freebsd-elf*)
22837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22838       need_version=no
22839       need_lib_prefix=no
22840       ;;
22841     freebsd-*)
22842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22843       need_version=yes
22844       ;;
22845   esac
22846   shlibpath_var=LD_LIBRARY_PATH
22847   case $host_os in
22848   freebsd2*)
22849     shlibpath_overrides_runpath=yes
22850     ;;
22851   freebsd3.01* | freebsdelf3.01*)
22852     shlibpath_overrides_runpath=yes
22853     hardcode_into_libs=yes
22854     ;;
22855   *) # from 3.2 on
22856     shlibpath_overrides_runpath=no
22857     hardcode_into_libs=yes
22858     ;;
22859   esac
22860   ;;
22861
22862 gnu*)
22863   version_type=linux
22864   need_lib_prefix=no
22865   need_version=no
22866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22867   soname_spec='${libname}${release}${shared_ext}$major'
22868   shlibpath_var=LD_LIBRARY_PATH
22869   hardcode_into_libs=yes
22870   ;;
22871
22872 hpux9* | hpux10* | hpux11*)
22873   # Give a soname corresponding to the major version so that dld.sl refuses to
22874   # link against other versions.
22875   version_type=sunos
22876   need_lib_prefix=no
22877   need_version=no
22878   case "$host_cpu" in
22879   ia64*)
22880     shrext_cmds='.so'
22881     hardcode_into_libs=yes
22882     dynamic_linker="$host_os dld.so"
22883     shlibpath_var=LD_LIBRARY_PATH
22884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22886     soname_spec='${libname}${release}${shared_ext}$major'
22887     if test "X$HPUX_IA64_MODE" = X32; then
22888       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22889     else
22890       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22891     fi
22892     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22893     ;;
22894    hppa*64*)
22895      shrext_cmds='.sl'
22896      hardcode_into_libs=yes
22897      dynamic_linker="$host_os dld.sl"
22898      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22899      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22900      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22901      soname_spec='${libname}${release}${shared_ext}$major'
22902      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22903      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22904      ;;
22905    *)
22906     shrext_cmds='.sl'
22907     dynamic_linker="$host_os dld.sl"
22908     shlibpath_var=SHLIB_PATH
22909     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22911     soname_spec='${libname}${release}${shared_ext}$major'
22912     ;;
22913   esac
22914   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22915   postinstall_cmds='chmod 555 $lib'
22916   ;;
22917
22918 irix5* | irix6* | nonstopux*)
22919   case $host_os in
22920     nonstopux*) version_type=nonstopux ;;
22921     *)
22922         if test "$lt_cv_prog_gnu_ld" = yes; then
22923                 version_type=linux
22924         else
22925                 version_type=irix
22926         fi ;;
22927   esac
22928   need_lib_prefix=no
22929   need_version=no
22930   soname_spec='${libname}${release}${shared_ext}$major'
22931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22932   case $host_os in
22933   irix5* | nonstopux*)
22934     libsuff= shlibsuff=
22935     ;;
22936   *)
22937     case $LD in # libtool.m4 will add one of these switches to LD
22938     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22939       libsuff= shlibsuff= libmagic=32-bit;;
22940     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22941       libsuff=32 shlibsuff=N32 libmagic=N32;;
22942     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22943       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22944     *) libsuff= shlibsuff= libmagic=never-match;;
22945     esac
22946     ;;
22947   esac
22948   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22949   shlibpath_overrides_runpath=no
22950   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22951   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22952   hardcode_into_libs=yes
22953   ;;
22954
22955 # No shared lib support for Linux oldld, aout, or coff.
22956 linux*oldld* | linux*aout* | linux*coff*)
22957   dynamic_linker=no
22958   ;;
22959
22960 # This must be Linux ELF.
22961 linux*)
22962   version_type=linux
22963   need_lib_prefix=no
22964   need_version=no
22965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966   soname_spec='${libname}${release}${shared_ext}$major'
22967   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22968   shlibpath_var=LD_LIBRARY_PATH
22969   shlibpath_overrides_runpath=no
22970   # This implies no fast_install, which is unacceptable.
22971   # Some rework will be needed to allow for fast_install
22972   # before this can be enabled.
22973   hardcode_into_libs=yes
22974
22975   # Append ld.so.conf contents to the search path
22976   if test -f /etc/ld.so.conf; then
22977     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22978     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22979   fi
22980
22981   # We used to test for /lib/ld.so.1 and disable shared libraries on
22982   # powerpc, because MkLinux only supported shared libraries with the
22983   # GNU dynamic linker.  Since this was broken with cross compilers,
22984   # most powerpc-linux boxes support dynamic linking these days and
22985   # people can always --disable-shared, the test was removed, and we
22986   # assume the GNU/Linux dynamic linker is in use.
22987   dynamic_linker='GNU/Linux ld.so'
22988   ;;
22989
22990 knetbsd*-gnu)
22991   version_type=linux
22992   need_lib_prefix=no
22993   need_version=no
22994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22995   soname_spec='${libname}${release}${shared_ext}$major'
22996   shlibpath_var=LD_LIBRARY_PATH
22997   shlibpath_overrides_runpath=no
22998   hardcode_into_libs=yes
22999   dynamic_linker='GNU ld.so'
23000   ;;
23001
23002 netbsd*)
23003   version_type=sunos
23004   need_lib_prefix=no
23005   need_version=no
23006   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23008     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23009     dynamic_linker='NetBSD (a.out) ld.so'
23010   else
23011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23012     soname_spec='${libname}${release}${shared_ext}$major'
23013     dynamic_linker='NetBSD ld.elf_so'
23014   fi
23015   shlibpath_var=LD_LIBRARY_PATH
23016   shlibpath_overrides_runpath=yes
23017   hardcode_into_libs=yes
23018   ;;
23019
23020 newsos6)
23021   version_type=linux
23022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23023   shlibpath_var=LD_LIBRARY_PATH
23024   shlibpath_overrides_runpath=yes
23025   ;;
23026
23027 nto-qnx*)
23028   version_type=linux
23029   need_lib_prefix=no
23030   need_version=no
23031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032   soname_spec='${libname}${release}${shared_ext}$major'
23033   shlibpath_var=LD_LIBRARY_PATH
23034   shlibpath_overrides_runpath=yes
23035   ;;
23036
23037 openbsd*)
23038   version_type=sunos
23039   need_lib_prefix=no
23040   need_version=no
23041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23042   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23043   shlibpath_var=LD_LIBRARY_PATH
23044   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23045     case $host_os in
23046       openbsd2.[89] | openbsd2.[89].*)
23047         shlibpath_overrides_runpath=no
23048         ;;
23049       *)
23050         shlibpath_overrides_runpath=yes
23051         ;;
23052       esac
23053   else
23054     shlibpath_overrides_runpath=yes
23055   fi
23056   ;;
23057
23058 os2*)
23059   libname_spec='$name'
23060   shrext_cmds=".dll"
23061   need_lib_prefix=no
23062   library_names_spec='$libname${shared_ext} $libname.a'
23063   dynamic_linker='OS/2 ld.exe'
23064   shlibpath_var=LIBPATH
23065   ;;
23066
23067 osf3* | osf4* | osf5*)
23068   version_type=osf
23069   need_lib_prefix=no
23070   need_version=no
23071   soname_spec='${libname}${release}${shared_ext}$major'
23072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23073   shlibpath_var=LD_LIBRARY_PATH
23074   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23075   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23076   ;;
23077
23078 sco3.2v5*)
23079   version_type=osf
23080   soname_spec='${libname}${release}${shared_ext}$major'
23081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23082   shlibpath_var=LD_LIBRARY_PATH
23083   ;;
23084
23085 solaris*)
23086   version_type=linux
23087   need_lib_prefix=no
23088   need_version=no
23089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23090   soname_spec='${libname}${release}${shared_ext}$major'
23091   shlibpath_var=LD_LIBRARY_PATH
23092   shlibpath_overrides_runpath=yes
23093   hardcode_into_libs=yes
23094   # ldd complains unless libraries are executable
23095   postinstall_cmds='chmod +x $lib'
23096   ;;
23097
23098 sunos4*)
23099   version_type=sunos
23100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23101   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23102   shlibpath_var=LD_LIBRARY_PATH
23103   shlibpath_overrides_runpath=yes
23104   if test "$with_gnu_ld" = yes; then
23105     need_lib_prefix=no
23106   fi
23107   need_version=yes
23108   ;;
23109
23110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23111   version_type=linux
23112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23113   soname_spec='${libname}${release}${shared_ext}$major'
23114   shlibpath_var=LD_LIBRARY_PATH
23115   case $host_vendor in
23116     sni)
23117       shlibpath_overrides_runpath=no
23118       need_lib_prefix=no
23119       export_dynamic_flag_spec='${wl}-Blargedynsym'
23120       runpath_var=LD_RUN_PATH
23121       ;;
23122     siemens)
23123       need_lib_prefix=no
23124       ;;
23125     motorola)
23126       need_lib_prefix=no
23127       need_version=no
23128       shlibpath_overrides_runpath=no
23129       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23130       ;;
23131   esac
23132   ;;
23133
23134 sysv4*MP*)
23135   if test -d /usr/nec ;then
23136     version_type=linux
23137     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23138     soname_spec='$libname${shared_ext}.$major'
23139     shlibpath_var=LD_LIBRARY_PATH
23140   fi
23141   ;;
23142
23143 uts4*)
23144   version_type=linux
23145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23146   soname_spec='${libname}${release}${shared_ext}$major'
23147   shlibpath_var=LD_LIBRARY_PATH
23148   ;;
23149
23150 *)
23151   dynamic_linker=no
23152   ;;
23153 esac
23154 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23155 echo "${ECHO_T}$dynamic_linker" >&6
23156 test "$dynamic_linker" = no && can_build_shared=no
23157
23158 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23159 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23160 hardcode_action_GCJ=
23161 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23162    test -n "$runpath_var_GCJ" || \
23163    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23164
23165   # We can hardcode non-existant directories.
23166   if test "$hardcode_direct_GCJ" != no &&
23167      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23168      # have to relink, otherwise we might link with an installed library
23169      # when we should be linking with a yet-to-be-installed one
23170      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23171      test "$hardcode_minus_L_GCJ" != no; then
23172     # Linking always hardcodes the temporary library directory.
23173     hardcode_action_GCJ=relink
23174   else
23175     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23176     hardcode_action_GCJ=immediate
23177   fi
23178 else
23179   # We cannot hardcode anything, or else we can only hardcode existing
23180   # directories.
23181   hardcode_action_GCJ=unsupported
23182 fi
23183 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23184 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23185
23186 if test "$hardcode_action_GCJ" = relink; then
23187   # Fast installation is not supported
23188   enable_fast_install=no
23189 elif test "$shlibpath_overrides_runpath" = yes ||
23190      test "$enable_shared" = no; then
23191   # Fast installation is not necessary
23192   enable_fast_install=needless
23193 fi
23194
23195 striplib=
23196 old_striplib=
23197 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23198 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23199 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23200   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23201   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23202   echo "$as_me:$LINENO: result: yes" >&5
23203 echo "${ECHO_T}yes" >&6
23204 else
23205 # FIXME - insert some real tests, host_os isn't really good enough
23206   case $host_os in
23207    darwin*)
23208        if test -n "$STRIP" ; then
23209          striplib="$STRIP -x"
23210          echo "$as_me:$LINENO: result: yes" >&5
23211 echo "${ECHO_T}yes" >&6
23212        else
23213   echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6
23215 fi
23216        ;;
23217    *)
23218   echo "$as_me:$LINENO: result: no" >&5
23219 echo "${ECHO_T}no" >&6
23220     ;;
23221   esac
23222 fi
23223
23224 if test "x$enable_dlopen" != xyes; then
23225   enable_dlopen=unknown
23226   enable_dlopen_self=unknown
23227   enable_dlopen_self_static=unknown
23228 else
23229   lt_cv_dlopen=no
23230   lt_cv_dlopen_libs=
23231
23232   case $host_os in
23233   beos*)
23234     lt_cv_dlopen="load_add_on"
23235     lt_cv_dlopen_libs=
23236     lt_cv_dlopen_self=yes
23237     ;;
23238
23239   mingw* | pw32*)
23240     lt_cv_dlopen="LoadLibrary"
23241     lt_cv_dlopen_libs=
23242    ;;
23243
23244   cygwin*)
23245     lt_cv_dlopen="dlopen"
23246     lt_cv_dlopen_libs=
23247    ;;
23248
23249   darwin*)
23250   # if libdl is installed we need to link against it
23251     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23254   echo $ECHO_N "(cached) $ECHO_C" >&6
23255 else
23256   ac_check_lib_save_LIBS=$LIBS
23257 LIBS="-ldl  $LIBS"
23258 cat >conftest.$ac_ext <<_ACEOF
23259 /* confdefs.h.  */
23260 _ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h.  */
23264
23265 /* Override any gcc2 internal prototype to avoid an error.  */
23266 #ifdef __cplusplus
23267 extern "C"
23268 #endif
23269 /* We use char because int might match the return type of a gcc2
23270    builtin and then its argument prototype would still apply.  */
23271 char dlopen ();
23272 int
23273 main ()
23274 {
23275 dlopen ();
23276   ;
23277   return 0;
23278 }
23279 _ACEOF
23280 rm -f conftest.$ac_objext conftest$ac_exeext
23281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23282   (eval $ac_link) 2>conftest.er1
23283   ac_status=$?
23284   grep -v '^ *+' conftest.er1 >conftest.err
23285   rm -f conftest.er1
23286   cat conftest.err >&5
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } &&
23289          { ac_try='test -z "$ac_c_werror_flag"
23290                          || test ! -s conftest.err'
23291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23292   (eval $ac_try) 2>&5
23293   ac_status=$?
23294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295   (exit $ac_status); }; } &&
23296          { ac_try='test -s conftest$ac_exeext'
23297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298   (eval $ac_try) 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); }; }; then
23302   ac_cv_lib_dl_dlopen=yes
23303 else
23304   echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307 ac_cv_lib_dl_dlopen=no
23308 fi
23309 rm -f conftest.err conftest.$ac_objext \
23310       conftest$ac_exeext conftest.$ac_ext
23311 LIBS=$ac_check_lib_save_LIBS
23312 fi
23313 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23315 if test $ac_cv_lib_dl_dlopen = yes; then
23316   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23317 else
23318
23319     lt_cv_dlopen="dyld"
23320     lt_cv_dlopen_libs=
23321     lt_cv_dlopen_self=yes
23322
23323 fi
23324
23325    ;;
23326
23327   *)
23328     echo "$as_me:$LINENO: checking for shl_load" >&5
23329 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23330 if test "${ac_cv_func_shl_load+set}" = set; then
23331   echo $ECHO_N "(cached) $ECHO_C" >&6
23332 else
23333   cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23341 #define shl_load innocuous_shl_load
23342
23343 /* System header to define __stub macros and hopefully few prototypes,
23344     which can conflict with char shl_load (); below.
23345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23346     <limits.h> exists even on freestanding compilers.  */
23347
23348 #ifdef __STDC__
23349 # include <limits.h>
23350 #else
23351 # include <assert.h>
23352 #endif
23353
23354 #undef shl_load
23355
23356 /* Override any gcc2 internal prototype to avoid an error.  */
23357 #ifdef __cplusplus
23358 extern "C"
23359 {
23360 #endif
23361 /* We use char because int might match the return type of a gcc2
23362    builtin and then its argument prototype would still apply.  */
23363 char shl_load ();
23364 /* The GNU C library defines this for functions which it implements
23365     to always fail with ENOSYS.  Some functions are actually named
23366     something starting with __ and the normal name is an alias.  */
23367 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23368 choke me
23369 #else
23370 char (*f) () = shl_load;
23371 #endif
23372 #ifdef __cplusplus
23373 }
23374 #endif
23375
23376 int
23377 main ()
23378 {
23379 return f != shl_load;
23380   ;
23381   return 0;
23382 }
23383 _ACEOF
23384 rm -f conftest.$ac_objext conftest$ac_exeext
23385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23386   (eval $ac_link) 2>conftest.er1
23387   ac_status=$?
23388   grep -v '^ *+' conftest.er1 >conftest.err
23389   rm -f conftest.er1
23390   cat conftest.err >&5
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); } &&
23393          { ac_try='test -z "$ac_c_werror_flag"
23394                          || test ! -s conftest.err'
23395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396   (eval $ac_try) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); }; } &&
23400          { ac_try='test -s conftest$ac_exeext'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; }; then
23406   ac_cv_func_shl_load=yes
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 ac_cv_func_shl_load=no
23412 fi
23413 rm -f conftest.err conftest.$ac_objext \
23414       conftest$ac_exeext conftest.$ac_ext
23415 fi
23416 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23417 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23418 if test $ac_cv_func_shl_load = yes; then
23419   lt_cv_dlopen="shl_load"
23420 else
23421   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23422 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23423 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23424   echo $ECHO_N "(cached) $ECHO_C" >&6
23425 else
23426   ac_check_lib_save_LIBS=$LIBS
23427 LIBS="-ldld  $LIBS"
23428 cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434
23435 /* Override any gcc2 internal prototype to avoid an error.  */
23436 #ifdef __cplusplus
23437 extern "C"
23438 #endif
23439 /* We use char because int might match the return type of a gcc2
23440    builtin and then its argument prototype would still apply.  */
23441 char shl_load ();
23442 int
23443 main ()
23444 {
23445 shl_load ();
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23452   (eval $ac_link) 2>conftest.er1
23453   ac_status=$?
23454   grep -v '^ *+' conftest.er1 >conftest.err
23455   rm -f conftest.er1
23456   cat conftest.err >&5
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } &&
23459          { ac_try='test -z "$ac_c_werror_flag"
23460                          || test ! -s conftest.err'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; } &&
23466          { ac_try='test -s conftest$ac_exeext'
23467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468   (eval $ac_try) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   ac_cv_lib_dld_shl_load=yes
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477 ac_cv_lib_dld_shl_load=no
23478 fi
23479 rm -f conftest.err conftest.$ac_objext \
23480       conftest$ac_exeext conftest.$ac_ext
23481 LIBS=$ac_check_lib_save_LIBS
23482 fi
23483 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23484 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23485 if test $ac_cv_lib_dld_shl_load = yes; then
23486   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23487 else
23488   echo "$as_me:$LINENO: checking for dlopen" >&5
23489 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23490 if test "${ac_cv_func_dlopen+set}" = set; then
23491   echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493   cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h.  */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h.  */
23499 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23501 #define dlopen innocuous_dlopen
23502
23503 /* System header to define __stub macros and hopefully few prototypes,
23504     which can conflict with char dlopen (); below.
23505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506     <limits.h> exists even on freestanding compilers.  */
23507
23508 #ifdef __STDC__
23509 # include <limits.h>
23510 #else
23511 # include <assert.h>
23512 #endif
23513
23514 #undef dlopen
23515
23516 /* Override any gcc2 internal prototype to avoid an error.  */
23517 #ifdef __cplusplus
23518 extern "C"
23519 {
23520 #endif
23521 /* We use char because int might match the return type of a gcc2
23522    builtin and then its argument prototype would still apply.  */
23523 char dlopen ();
23524 /* The GNU C library defines this for functions which it implements
23525     to always fail with ENOSYS.  Some functions are actually named
23526     something starting with __ and the normal name is an alias.  */
23527 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23528 choke me
23529 #else
23530 char (*f) () = dlopen;
23531 #endif
23532 #ifdef __cplusplus
23533 }
23534 #endif
23535
23536 int
23537 main ()
23538 {
23539 return f != dlopen;
23540   ;
23541   return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546   (eval $ac_link) 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } &&
23553          { ac_try='test -z "$ac_c_werror_flag"
23554                          || test ! -s conftest.err'
23555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556   (eval $ac_try) 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); }; } &&
23560          { ac_try='test -s conftest$ac_exeext'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   ac_cv_func_dlopen=yes
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571 ac_cv_func_dlopen=no
23572 fi
23573 rm -f conftest.err conftest.$ac_objext \
23574       conftest$ac_exeext conftest.$ac_ext
23575 fi
23576 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23577 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23578 if test $ac_cv_func_dlopen = yes; then
23579   lt_cv_dlopen="dlopen"
23580 else
23581   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23582 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23583 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23584   echo $ECHO_N "(cached) $ECHO_C" >&6
23585 else
23586   ac_check_lib_save_LIBS=$LIBS
23587 LIBS="-ldl  $LIBS"
23588 cat >conftest.$ac_ext <<_ACEOF
23589 /* confdefs.h.  */
23590 _ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h.  */
23594
23595 /* Override any gcc2 internal prototype to avoid an error.  */
23596 #ifdef __cplusplus
23597 extern "C"
23598 #endif
23599 /* We use char because int might match the return type of a gcc2
23600    builtin and then its argument prototype would still apply.  */
23601 char dlopen ();
23602 int
23603 main ()
23604 {
23605 dlopen ();
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23612   (eval $ac_link) 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } &&
23619          { ac_try='test -z "$ac_c_werror_flag"
23620                          || test ! -s conftest.err'
23621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622   (eval $ac_try) 2>&5
23623   ac_status=$?
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); }; } &&
23626          { ac_try='test -s conftest$ac_exeext'
23627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628   (eval $ac_try) 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; }; then
23632   ac_cv_lib_dl_dlopen=yes
23633 else
23634   echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637 ac_cv_lib_dl_dlopen=no
23638 fi
23639 rm -f conftest.err conftest.$ac_objext \
23640       conftest$ac_exeext conftest.$ac_ext
23641 LIBS=$ac_check_lib_save_LIBS
23642 fi
23643 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23645 if test $ac_cv_lib_dl_dlopen = yes; then
23646   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23647 else
23648   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23649 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23650 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23651   echo $ECHO_N "(cached) $ECHO_C" >&6
23652 else
23653   ac_check_lib_save_LIBS=$LIBS
23654 LIBS="-lsvld  $LIBS"
23655 cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661
23662 /* Override any gcc2 internal prototype to avoid an error.  */
23663 #ifdef __cplusplus
23664 extern "C"
23665 #endif
23666 /* We use char because int might match the return type of a gcc2
23667    builtin and then its argument prototype would still apply.  */
23668 char dlopen ();
23669 int
23670 main ()
23671 {
23672 dlopen ();
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23679   (eval $ac_link) 2>conftest.er1
23680   ac_status=$?
23681   grep -v '^ *+' conftest.er1 >conftest.err
23682   rm -f conftest.er1
23683   cat conftest.err >&5
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); } &&
23686          { ac_try='test -z "$ac_c_werror_flag"
23687                          || test ! -s conftest.err'
23688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); }; } &&
23693          { ac_try='test -s conftest$ac_exeext'
23694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695   (eval $ac_try) 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); }; }; then
23699   ac_cv_lib_svld_dlopen=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704 ac_cv_lib_svld_dlopen=no
23705 fi
23706 rm -f conftest.err conftest.$ac_objext \
23707       conftest$ac_exeext conftest.$ac_ext
23708 LIBS=$ac_check_lib_save_LIBS
23709 fi
23710 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23711 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23712 if test $ac_cv_lib_svld_dlopen = yes; then
23713   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23714 else
23715   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23716 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23717 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720   ac_check_lib_save_LIBS=$LIBS
23721 LIBS="-ldld  $LIBS"
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h.  */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h.  */
23728
23729 /* Override any gcc2 internal prototype to avoid an error.  */
23730 #ifdef __cplusplus
23731 extern "C"
23732 #endif
23733 /* We use char because int might match the return type of a gcc2
23734    builtin and then its argument prototype would still apply.  */
23735 char dld_link ();
23736 int
23737 main ()
23738 {
23739 dld_link ();
23740   ;
23741   return 0;
23742 }
23743 _ACEOF
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23746   (eval $ac_link) 2>conftest.er1
23747   ac_status=$?
23748   grep -v '^ *+' conftest.er1 >conftest.err
23749   rm -f conftest.er1
23750   cat conftest.err >&5
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } &&
23753          { ac_try='test -z "$ac_c_werror_flag"
23754                          || test ! -s conftest.err'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; } &&
23760          { ac_try='test -s conftest$ac_exeext'
23761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762   (eval $ac_try) 2>&5
23763   ac_status=$?
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); }; }; then
23766   ac_cv_lib_dld_dld_link=yes
23767 else
23768   echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771 ac_cv_lib_dld_dld_link=no
23772 fi
23773 rm -f conftest.err conftest.$ac_objext \
23774       conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23776 fi
23777 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23778 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23779 if test $ac_cv_lib_dld_dld_link = yes; then
23780   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23781 fi
23782
23783
23784 fi
23785
23786
23787 fi
23788
23789
23790 fi
23791
23792
23793 fi
23794
23795
23796 fi
23797
23798     ;;
23799   esac
23800
23801   if test "x$lt_cv_dlopen" != xno; then
23802     enable_dlopen=yes
23803   else
23804     enable_dlopen=no
23805   fi
23806
23807   case $lt_cv_dlopen in
23808   dlopen)
23809     save_CPPFLAGS="$CPPFLAGS"
23810     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23811
23812     save_LDFLAGS="$LDFLAGS"
23813     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23814
23815     save_LIBS="$LIBS"
23816     LIBS="$lt_cv_dlopen_libs $LIBS"
23817
23818     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23819 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23820 if test "${lt_cv_dlopen_self+set}" = set; then
23821   echo $ECHO_N "(cached) $ECHO_C" >&6
23822 else
23823           if test "$cross_compiling" = yes; then :
23824   lt_cv_dlopen_self=cross
23825 else
23826   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23827   lt_status=$lt_dlunknown
23828   cat > conftest.$ac_ext <<EOF
23829 #line 23813 "configure"
23830 #include "confdefs.h"
23831
23832 #if HAVE_DLFCN_H
23833 #include <dlfcn.h>
23834 #endif
23835
23836 #include <stdio.h>
23837
23838 #ifdef RTLD_GLOBAL
23839 #  define LT_DLGLOBAL           RTLD_GLOBAL
23840 #else
23841 #  ifdef DL_GLOBAL
23842 #    define LT_DLGLOBAL         DL_GLOBAL
23843 #  else
23844 #    define LT_DLGLOBAL         0
23845 #  endif
23846 #endif
23847
23848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23849    find out it does not work in some platform. */
23850 #ifndef LT_DLLAZY_OR_NOW
23851 #  ifdef RTLD_LAZY
23852 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23853 #  else
23854 #    ifdef DL_LAZY
23855 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23856 #    else
23857 #      ifdef RTLD_NOW
23858 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23859 #      else
23860 #        ifdef DL_NOW
23861 #          define LT_DLLAZY_OR_NOW      DL_NOW
23862 #        else
23863 #          define LT_DLLAZY_OR_NOW      0
23864 #        endif
23865 #      endif
23866 #    endif
23867 #  endif
23868 #endif
23869
23870 #ifdef __cplusplus
23871 extern "C" void exit (int);
23872 #endif
23873
23874 void fnord() { int i=42;}
23875 int main ()
23876 {
23877   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23878   int status = $lt_dlunknown;
23879
23880   if (self)
23881     {
23882       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23883       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23884       /* dlclose (self); */
23885     }
23886
23887     exit (status);
23888 }
23889 EOF
23890   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23891   (eval $ac_link) 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23895     (./conftest; exit; ) 2>/dev/null
23896     lt_status=$?
23897     case x$lt_status in
23898       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23899       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23900       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23901     esac
23902   else :
23903     # compilation failed
23904     lt_cv_dlopen_self=no
23905   fi
23906 fi
23907 rm -fr conftest*
23908
23909
23910 fi
23911 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23912 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23913
23914     if test "x$lt_cv_dlopen_self" = xyes; then
23915       LDFLAGS="$LDFLAGS $link_static_flag"
23916       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23917 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23918 if test "${lt_cv_dlopen_self_static+set}" = set; then
23919   echo $ECHO_N "(cached) $ECHO_C" >&6
23920 else
23921           if test "$cross_compiling" = yes; then :
23922   lt_cv_dlopen_self_static=cross
23923 else
23924   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23925   lt_status=$lt_dlunknown
23926   cat > conftest.$ac_ext <<EOF
23927 #line 23911 "configure"
23928 #include "confdefs.h"
23929
23930 #if HAVE_DLFCN_H
23931 #include <dlfcn.h>
23932 #endif
23933
23934 #include <stdio.h>
23935
23936 #ifdef RTLD_GLOBAL
23937 #  define LT_DLGLOBAL           RTLD_GLOBAL
23938 #else
23939 #  ifdef DL_GLOBAL
23940 #    define LT_DLGLOBAL         DL_GLOBAL
23941 #  else
23942 #    define LT_DLGLOBAL         0
23943 #  endif
23944 #endif
23945
23946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23947    find out it does not work in some platform. */
23948 #ifndef LT_DLLAZY_OR_NOW
23949 #  ifdef RTLD_LAZY
23950 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23951 #  else
23952 #    ifdef DL_LAZY
23953 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23954 #    else
23955 #      ifdef RTLD_NOW
23956 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23957 #      else
23958 #        ifdef DL_NOW
23959 #          define LT_DLLAZY_OR_NOW      DL_NOW
23960 #        else
23961 #          define LT_DLLAZY_OR_NOW      0
23962 #        endif
23963 #      endif
23964 #    endif
23965 #  endif
23966 #endif
23967
23968 #ifdef __cplusplus
23969 extern "C" void exit (int);
23970 #endif
23971
23972 void fnord() { int i=42;}
23973 int main ()
23974 {
23975   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23976   int status = $lt_dlunknown;
23977
23978   if (self)
23979     {
23980       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23981       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23982       /* dlclose (self); */
23983     }
23984
23985     exit (status);
23986 }
23987 EOF
23988   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23989   (eval $ac_link) 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23993     (./conftest; exit; ) 2>/dev/null
23994     lt_status=$?
23995     case x$lt_status in
23996       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23997       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23998       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23999     esac
24000   else :
24001     # compilation failed
24002     lt_cv_dlopen_self_static=no
24003   fi
24004 fi
24005 rm -fr conftest*
24006
24007
24008 fi
24009 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24011     fi
24012
24013     CPPFLAGS="$save_CPPFLAGS"
24014     LDFLAGS="$save_LDFLAGS"
24015     LIBS="$save_LIBS"
24016     ;;
24017   esac
24018
24019   case $lt_cv_dlopen_self in
24020   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24021   *) enable_dlopen_self=unknown ;;
24022   esac
24023
24024   case $lt_cv_dlopen_self_static in
24025   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24026   *) enable_dlopen_self_static=unknown ;;
24027   esac
24028 fi
24029
24030
24031 # The else clause should only fire when bootstrapping the
24032 # libtool distribution, otherwise you forgot to ship ltmain.sh
24033 # with your package, and you will get complaints that there are
24034 # no rules to generate ltmain.sh.
24035 if test -f "$ltmain"; then
24036   # See if we are running on zsh, and set the options which allow our commands through
24037   # without removal of \ escapes.
24038   if test -n "${ZSH_VERSION+set}" ; then
24039     setopt NO_GLOB_SUBST
24040   fi
24041   # Now quote all the things that may contain metacharacters while being
24042   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24043   # variables and quote the copies for generation of the libtool script.
24044   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24045     SED SHELL STRIP \
24046     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24047     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24048     deplibs_check_method reload_flag reload_cmds need_locks \
24049     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24050     lt_cv_sys_global_symbol_to_c_name_address \
24051     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24052     old_postinstall_cmds old_postuninstall_cmds \
24053     compiler_GCJ \
24054     CC_GCJ \
24055     LD_GCJ \
24056     lt_prog_compiler_wl_GCJ \
24057     lt_prog_compiler_pic_GCJ \
24058     lt_prog_compiler_static_GCJ \
24059     lt_prog_compiler_no_builtin_flag_GCJ \
24060     export_dynamic_flag_spec_GCJ \
24061     thread_safe_flag_spec_GCJ \
24062     whole_archive_flag_spec_GCJ \
24063     enable_shared_with_static_runtimes_GCJ \
24064     old_archive_cmds_GCJ \
24065     old_archive_from_new_cmds_GCJ \
24066     predep_objects_GCJ \
24067     postdep_objects_GCJ \
24068     predeps_GCJ \
24069     postdeps_GCJ \
24070     compiler_lib_search_path_GCJ \
24071     archive_cmds_GCJ \
24072     archive_expsym_cmds_GCJ \
24073     postinstall_cmds_GCJ \
24074     postuninstall_cmds_GCJ \
24075     old_archive_from_expsyms_cmds_GCJ \
24076     allow_undefined_flag_GCJ \
24077     no_undefined_flag_GCJ \
24078     export_symbols_cmds_GCJ \
24079     hardcode_libdir_flag_spec_GCJ \
24080     hardcode_libdir_flag_spec_ld_GCJ \
24081     hardcode_libdir_separator_GCJ \
24082     hardcode_automatic_GCJ \
24083     module_cmds_GCJ \
24084     module_expsym_cmds_GCJ \
24085     lt_cv_prog_compiler_c_o_GCJ \
24086     exclude_expsyms_GCJ \
24087     include_expsyms_GCJ; do
24088
24089     case $var in
24090     old_archive_cmds_GCJ | \
24091     old_archive_from_new_cmds_GCJ | \
24092     archive_cmds_GCJ | \
24093     archive_expsym_cmds_GCJ | \
24094     module_cmds_GCJ | \
24095     module_expsym_cmds_GCJ | \
24096     old_archive_from_expsyms_cmds_GCJ | \
24097     export_symbols_cmds_GCJ | \
24098     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24099     postinstall_cmds | postuninstall_cmds | \
24100     old_postinstall_cmds | old_postuninstall_cmds | \
24101     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24102       # Double-quote double-evaled strings.
24103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24104       ;;
24105     *)
24106       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24107       ;;
24108     esac
24109   done
24110
24111   case $lt_echo in
24112   *'\$0 --fallback-echo"')
24113     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24114     ;;
24115   esac
24116
24117 cfgfile="$ofile"
24118
24119   cat <<__EOF__ >> "$cfgfile"
24120 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24121
24122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24123
24124 # Shell to use when invoking shell scripts.
24125 SHELL=$lt_SHELL
24126
24127 # Whether or not to build shared libraries.
24128 build_libtool_libs=$enable_shared
24129
24130 # Whether or not to build static libraries.
24131 build_old_libs=$enable_static
24132
24133 # Whether or not to add -lc for building shared libraries.
24134 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24135
24136 # Whether or not to disallow shared libs when runtime libs are static
24137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24138
24139 # Whether or not to optimize for fast installation.
24140 fast_install=$enable_fast_install
24141
24142 # The host system.
24143 host_alias=$host_alias
24144 host=$host
24145
24146 # An echo program that does not interpret backslashes.
24147 echo=$lt_echo
24148
24149 # The archiver.
24150 AR=$lt_AR
24151 AR_FLAGS=$lt_AR_FLAGS
24152
24153 # A C compiler.
24154 LTCC=$lt_LTCC
24155
24156 # A language-specific compiler.
24157 CC=$lt_compiler_GCJ
24158
24159 # Is the compiler the GNU C compiler?
24160 with_gcc=$GCC_GCJ
24161
24162 # An ERE matcher.
24163 EGREP=$lt_EGREP
24164
24165 # The linker used to build libraries.
24166 LD=$lt_LD_GCJ
24167
24168 # Whether we need hard or soft links.
24169 LN_S=$lt_LN_S
24170
24171 # A BSD-compatible nm program.
24172 NM=$lt_NM
24173
24174 # A symbol stripping program
24175 STRIP=$lt_STRIP
24176
24177 # Used to examine libraries when file_magic_cmd begins "file"
24178 MAGIC_CMD=$MAGIC_CMD
24179
24180 # Used on cygwin: DLL creation program.
24181 DLLTOOL="$DLLTOOL"
24182
24183 # Used on cygwin: object dumper.
24184 OBJDUMP="$OBJDUMP"
24185
24186 # Used on cygwin: assembler.
24187 AS="$AS"
24188
24189 # The name of the directory that contains temporary libtool files.
24190 objdir=$objdir
24191
24192 # How to create reloadable object files.
24193 reload_flag=$lt_reload_flag
24194 reload_cmds=$lt_reload_cmds
24195
24196 # How to pass a linker flag through the compiler.
24197 wl=$lt_lt_prog_compiler_wl_GCJ
24198
24199 # Object file suffix (normally "o").
24200 objext="$ac_objext"
24201
24202 # Old archive suffix (normally "a").
24203 libext="$libext"
24204
24205 # Shared library suffix (normally ".so").
24206 shrext_cmds='$shrext_cmds'
24207
24208 # Executable file suffix (normally "").
24209 exeext="$exeext"
24210
24211 # Additional compiler flags for building library objects.
24212 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24213 pic_mode=$pic_mode
24214
24215 # What is the maximum length of a command?
24216 max_cmd_len=$lt_cv_sys_max_cmd_len
24217
24218 # Does compiler simultaneously support -c and -o options?
24219 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24220
24221 # Must we lock files when doing compilation ?
24222 need_locks=$lt_need_locks
24223
24224 # Do we need the lib prefix for modules?
24225 need_lib_prefix=$need_lib_prefix
24226
24227 # Do we need a version for libraries?
24228 need_version=$need_version
24229
24230 # Whether dlopen is supported.
24231 dlopen_support=$enable_dlopen
24232
24233 # Whether dlopen of programs is supported.
24234 dlopen_self=$enable_dlopen_self
24235
24236 # Whether dlopen of statically linked programs is supported.
24237 dlopen_self_static=$enable_dlopen_self_static
24238
24239 # Compiler flag to prevent dynamic linking.
24240 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24241
24242 # Compiler flag to turn off builtin functions.
24243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24244
24245 # Compiler flag to allow reflexive dlopens.
24246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24247
24248 # Compiler flag to generate shared objects directly from archives.
24249 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24250
24251 # Compiler flag to generate thread-safe objects.
24252 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24253
24254 # Library versioning type.
24255 version_type=$version_type
24256
24257 # Format of library name prefix.
24258 libname_spec=$lt_libname_spec
24259
24260 # List of archive names.  First name is the real one, the rest are links.
24261 # The last name is the one that the linker finds with -lNAME.
24262 library_names_spec=$lt_library_names_spec
24263
24264 # The coded name of the library, if different from the real name.
24265 soname_spec=$lt_soname_spec
24266
24267 # Commands used to build and install an old-style archive.
24268 RANLIB=$lt_RANLIB
24269 old_archive_cmds=$lt_old_archive_cmds_GCJ
24270 old_postinstall_cmds=$lt_old_postinstall_cmds
24271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24272
24273 # Create an old-style archive from a shared archive.
24274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24275
24276 # Create a temporary old-style archive to link instead of a shared archive.
24277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24278
24279 # Commands used to build and install a shared archive.
24280 archive_cmds=$lt_archive_cmds_GCJ
24281 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24282 postinstall_cmds=$lt_postinstall_cmds
24283 postuninstall_cmds=$lt_postuninstall_cmds
24284
24285 # Commands used to build a loadable module (assumed same as above if empty)
24286 module_cmds=$lt_module_cmds_GCJ
24287 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24288
24289 # Commands to strip libraries.
24290 old_striplib=$lt_old_striplib
24291 striplib=$lt_striplib
24292
24293 # Dependencies to place before the objects being linked to create a
24294 # shared library.
24295 predep_objects=$lt_predep_objects_GCJ
24296
24297 # Dependencies to place after the objects being linked to create a
24298 # shared library.
24299 postdep_objects=$lt_postdep_objects_GCJ
24300
24301 # Dependencies to place before the objects being linked to create a
24302 # shared library.
24303 predeps=$lt_predeps_GCJ
24304
24305 # Dependencies to place after the objects being linked to create a
24306 # shared library.
24307 postdeps=$lt_postdeps_GCJ
24308
24309 # The library search path used internally by the compiler when linking
24310 # a shared library.
24311 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24312
24313 # Method to check whether dependent libraries are shared objects.
24314 deplibs_check_method=$lt_deplibs_check_method
24315
24316 # Command to use when deplibs_check_method == file_magic.
24317 file_magic_cmd=$lt_file_magic_cmd
24318
24319 # Flag that allows shared libraries with undefined symbols to be built.
24320 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24321
24322 # Flag that forces no undefined symbols.
24323 no_undefined_flag=$lt_no_undefined_flag_GCJ
24324
24325 # Commands used to finish a libtool library installation in a directory.
24326 finish_cmds=$lt_finish_cmds
24327
24328 # Same as above, but a single script fragment to be evaled but not shown.
24329 finish_eval=$lt_finish_eval
24330
24331 # Take the output of nm and produce a listing of raw symbols and C names.
24332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24333
24334 # Transform the output of nm in a proper C declaration
24335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24336
24337 # Transform the output of nm in a C name address pair
24338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24339
24340 # This is the shared library runtime path variable.
24341 runpath_var=$runpath_var
24342
24343 # This is the shared library path variable.
24344 shlibpath_var=$shlibpath_var
24345
24346 # Is shlibpath searched before the hard-coded library search path?
24347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24348
24349 # How to hardcode a shared library path into an executable.
24350 hardcode_action=$hardcode_action_GCJ
24351
24352 # Whether we should hardcode library paths into libraries.
24353 hardcode_into_libs=$hardcode_into_libs
24354
24355 # Flag to hardcode \$libdir into a binary during linking.
24356 # This must work even if \$libdir does not exist.
24357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24358
24359 # If ld is used when linking, flag to hardcode \$libdir into
24360 # a binary during linking. This must work even if \$libdir does
24361 # not exist.
24362 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24363
24364 # Whether we need a single -rpath flag with a separated argument.
24365 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24366
24367 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24368 # resulting binary.
24369 hardcode_direct=$hardcode_direct_GCJ
24370
24371 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24372 # resulting binary.
24373 hardcode_minus_L=$hardcode_minus_L_GCJ
24374
24375 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24376 # the resulting binary.
24377 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24378
24379 # Set to yes if building a shared library automatically hardcodes DIR into the library
24380 # and all subsequent libraries and executables linked against it.
24381 hardcode_automatic=$hardcode_automatic_GCJ
24382
24383 # Variables whose values should be saved in libtool wrapper scripts and
24384 # restored at relink time.
24385 variables_saved_for_relink="$variables_saved_for_relink"
24386
24387 # Whether libtool must link a program against all its dependency libraries.
24388 link_all_deplibs=$link_all_deplibs_GCJ
24389
24390 # Compile-time system search path for libraries
24391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24392
24393 # Run-time system search path for libraries
24394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24395
24396 # Fix the shell variable \$srcfile for the compiler.
24397 fix_srcfile_path="$fix_srcfile_path_GCJ"
24398
24399 # Set to yes if exported symbols are required.
24400 always_export_symbols=$always_export_symbols_GCJ
24401
24402 # The commands to list exported symbols.
24403 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24404
24405 # The commands to extract the exported symbol list from a shared archive.
24406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24407
24408 # Symbols that should not be listed in the preloaded symbols.
24409 exclude_expsyms=$lt_exclude_expsyms_GCJ
24410
24411 # Symbols that must always be exported.
24412 include_expsyms=$lt_include_expsyms_GCJ
24413
24414 # ### END LIBTOOL TAG CONFIG: $tagname
24415
24416 __EOF__
24417
24418
24419 else
24420   # If there is no Makefile yet, we rely on a make rule to execute
24421   # `config.status --recheck' to rerun these tests and create the
24422   # libtool script then.
24423   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24424   if test -f "$ltmain_in"; then
24425     test -f Makefile && make "$ltmain"
24426   fi
24427 fi
24428
24429
24430 ac_ext=c
24431 ac_cpp='$CPP $CPPFLAGS'
24432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24435
24436 CC="$lt_save_CC"
24437
24438         else
24439           tagname=""
24440         fi
24441         ;;
24442
24443       RC)
24444         ac_ext=c
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24449
24450
24451 # Source file extension for RC test sources.
24452 ac_ext=rc
24453
24454 # Object file extension for compiled RC test sources.
24455 objext=o
24456 objext_RC=$objext
24457
24458 # Code to be used in simple compile tests
24459 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24460
24461 # Code to be used in simple link tests
24462 lt_simple_link_test_code="$lt_simple_compile_test_code"
24463
24464 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24465
24466 # If no C compiler was specified, use CC.
24467 LTCC=${LTCC-"$CC"}
24468
24469 # Allow CC to be a program name with arguments.
24470 compiler=$CC
24471
24472
24473 # Allow CC to be a program name with arguments.
24474 lt_save_CC="$CC"
24475 CC=${RC-"windres"}
24476 compiler=$CC
24477 compiler_RC=$CC
24478 lt_cv_prog_compiler_c_o_RC=yes
24479
24480 # The else clause should only fire when bootstrapping the
24481 # libtool distribution, otherwise you forgot to ship ltmain.sh
24482 # with your package, and you will get complaints that there are
24483 # no rules to generate ltmain.sh.
24484 if test -f "$ltmain"; then
24485   # See if we are running on zsh, and set the options which allow our commands through
24486   # without removal of \ escapes.
24487   if test -n "${ZSH_VERSION+set}" ; then
24488     setopt NO_GLOB_SUBST
24489   fi
24490   # Now quote all the things that may contain metacharacters while being
24491   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24492   # variables and quote the copies for generation of the libtool script.
24493   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24494     SED SHELL STRIP \
24495     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24496     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24497     deplibs_check_method reload_flag reload_cmds need_locks \
24498     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24499     lt_cv_sys_global_symbol_to_c_name_address \
24500     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24501     old_postinstall_cmds old_postuninstall_cmds \
24502     compiler_RC \
24503     CC_RC \
24504     LD_RC \
24505     lt_prog_compiler_wl_RC \
24506     lt_prog_compiler_pic_RC \
24507     lt_prog_compiler_static_RC \
24508     lt_prog_compiler_no_builtin_flag_RC \
24509     export_dynamic_flag_spec_RC \
24510     thread_safe_flag_spec_RC \
24511     whole_archive_flag_spec_RC \
24512     enable_shared_with_static_runtimes_RC \
24513     old_archive_cmds_RC \
24514     old_archive_from_new_cmds_RC \
24515     predep_objects_RC \
24516     postdep_objects_RC \
24517     predeps_RC \
24518     postdeps_RC \
24519     compiler_lib_search_path_RC \
24520     archive_cmds_RC \
24521     archive_expsym_cmds_RC \
24522     postinstall_cmds_RC \
24523     postuninstall_cmds_RC \
24524     old_archive_from_expsyms_cmds_RC \
24525     allow_undefined_flag_RC \
24526     no_undefined_flag_RC \
24527     export_symbols_cmds_RC \
24528     hardcode_libdir_flag_spec_RC \
24529     hardcode_libdir_flag_spec_ld_RC \
24530     hardcode_libdir_separator_RC \
24531     hardcode_automatic_RC \
24532     module_cmds_RC \
24533     module_expsym_cmds_RC \
24534     lt_cv_prog_compiler_c_o_RC \
24535     exclude_expsyms_RC \
24536     include_expsyms_RC; do
24537
24538     case $var in
24539     old_archive_cmds_RC | \
24540     old_archive_from_new_cmds_RC | \
24541     archive_cmds_RC | \
24542     archive_expsym_cmds_RC | \
24543     module_cmds_RC | \
24544     module_expsym_cmds_RC | \
24545     old_archive_from_expsyms_cmds_RC | \
24546     export_symbols_cmds_RC | \
24547     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24548     postinstall_cmds | postuninstall_cmds | \
24549     old_postinstall_cmds | old_postuninstall_cmds | \
24550     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24551       # Double-quote double-evaled strings.
24552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24553       ;;
24554     *)
24555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24556       ;;
24557     esac
24558   done
24559
24560   case $lt_echo in
24561   *'\$0 --fallback-echo"')
24562     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24563     ;;
24564   esac
24565
24566 cfgfile="$ofile"
24567
24568   cat <<__EOF__ >> "$cfgfile"
24569 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24570
24571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24572
24573 # Shell to use when invoking shell scripts.
24574 SHELL=$lt_SHELL
24575
24576 # Whether or not to build shared libraries.
24577 build_libtool_libs=$enable_shared
24578
24579 # Whether or not to build static libraries.
24580 build_old_libs=$enable_static
24581
24582 # Whether or not to add -lc for building shared libraries.
24583 build_libtool_need_lc=$archive_cmds_need_lc_RC
24584
24585 # Whether or not to disallow shared libs when runtime libs are static
24586 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24587
24588 # Whether or not to optimize for fast installation.
24589 fast_install=$enable_fast_install
24590
24591 # The host system.
24592 host_alias=$host_alias
24593 host=$host
24594
24595 # An echo program that does not interpret backslashes.
24596 echo=$lt_echo
24597
24598 # The archiver.
24599 AR=$lt_AR
24600 AR_FLAGS=$lt_AR_FLAGS
24601
24602 # A C compiler.
24603 LTCC=$lt_LTCC
24604
24605 # A language-specific compiler.
24606 CC=$lt_compiler_RC
24607
24608 # Is the compiler the GNU C compiler?
24609 with_gcc=$GCC_RC
24610
24611 # An ERE matcher.
24612 EGREP=$lt_EGREP
24613
24614 # The linker used to build libraries.
24615 LD=$lt_LD_RC
24616
24617 # Whether we need hard or soft links.
24618 LN_S=$lt_LN_S
24619
24620 # A BSD-compatible nm program.
24621 NM=$lt_NM
24622
24623 # A symbol stripping program
24624 STRIP=$lt_STRIP
24625
24626 # Used to examine libraries when file_magic_cmd begins "file"
24627 MAGIC_CMD=$MAGIC_CMD
24628
24629 # Used on cygwin: DLL creation program.
24630 DLLTOOL="$DLLTOOL"
24631
24632 # Used on cygwin: object dumper.
24633 OBJDUMP="$OBJDUMP"
24634
24635 # Used on cygwin: assembler.
24636 AS="$AS"
24637
24638 # The name of the directory that contains temporary libtool files.
24639 objdir=$objdir
24640
24641 # How to create reloadable object files.
24642 reload_flag=$lt_reload_flag
24643 reload_cmds=$lt_reload_cmds
24644
24645 # How to pass a linker flag through the compiler.
24646 wl=$lt_lt_prog_compiler_wl_RC
24647
24648 # Object file suffix (normally "o").
24649 objext="$ac_objext"
24650
24651 # Old archive suffix (normally "a").
24652 libext="$libext"
24653
24654 # Shared library suffix (normally ".so").
24655 shrext_cmds='$shrext_cmds'
24656
24657 # Executable file suffix (normally "").
24658 exeext="$exeext"
24659
24660 # Additional compiler flags for building library objects.
24661 pic_flag=$lt_lt_prog_compiler_pic_RC
24662 pic_mode=$pic_mode
24663
24664 # What is the maximum length of a command?
24665 max_cmd_len=$lt_cv_sys_max_cmd_len
24666
24667 # Does compiler simultaneously support -c and -o options?
24668 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24669
24670 # Must we lock files when doing compilation ?
24671 need_locks=$lt_need_locks
24672
24673 # Do we need the lib prefix for modules?
24674 need_lib_prefix=$need_lib_prefix
24675
24676 # Do we need a version for libraries?
24677 need_version=$need_version
24678
24679 # Whether dlopen is supported.
24680 dlopen_support=$enable_dlopen
24681
24682 # Whether dlopen of programs is supported.
24683 dlopen_self=$enable_dlopen_self
24684
24685 # Whether dlopen of statically linked programs is supported.
24686 dlopen_self_static=$enable_dlopen_self_static
24687
24688 # Compiler flag to prevent dynamic linking.
24689 link_static_flag=$lt_lt_prog_compiler_static_RC
24690
24691 # Compiler flag to turn off builtin functions.
24692 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24693
24694 # Compiler flag to allow reflexive dlopens.
24695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24696
24697 # Compiler flag to generate shared objects directly from archives.
24698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24699
24700 # Compiler flag to generate thread-safe objects.
24701 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24702
24703 # Library versioning type.
24704 version_type=$version_type
24705
24706 # Format of library name prefix.
24707 libname_spec=$lt_libname_spec
24708
24709 # List of archive names.  First name is the real one, the rest are links.
24710 # The last name is the one that the linker finds with -lNAME.
24711 library_names_spec=$lt_library_names_spec
24712
24713 # The coded name of the library, if different from the real name.
24714 soname_spec=$lt_soname_spec
24715
24716 # Commands used to build and install an old-style archive.
24717 RANLIB=$lt_RANLIB
24718 old_archive_cmds=$lt_old_archive_cmds_RC
24719 old_postinstall_cmds=$lt_old_postinstall_cmds
24720 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24721
24722 # Create an old-style archive from a shared archive.
24723 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24724
24725 # Create a temporary old-style archive to link instead of a shared archive.
24726 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24727
24728 # Commands used to build and install a shared archive.
24729 archive_cmds=$lt_archive_cmds_RC
24730 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24731 postinstall_cmds=$lt_postinstall_cmds
24732 postuninstall_cmds=$lt_postuninstall_cmds
24733
24734 # Commands used to build a loadable module (assumed same as above if empty)
24735 module_cmds=$lt_module_cmds_RC
24736 module_expsym_cmds=$lt_module_expsym_cmds_RC
24737
24738 # Commands to strip libraries.
24739 old_striplib=$lt_old_striplib
24740 striplib=$lt_striplib
24741
24742 # Dependencies to place before the objects being linked to create a
24743 # shared library.
24744 predep_objects=$lt_predep_objects_RC
24745
24746 # Dependencies to place after the objects being linked to create a
24747 # shared library.
24748 postdep_objects=$lt_postdep_objects_RC
24749
24750 # Dependencies to place before the objects being linked to create a
24751 # shared library.
24752 predeps=$lt_predeps_RC
24753
24754 # Dependencies to place after the objects being linked to create a
24755 # shared library.
24756 postdeps=$lt_postdeps_RC
24757
24758 # The library search path used internally by the compiler when linking
24759 # a shared library.
24760 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24761
24762 # Method to check whether dependent libraries are shared objects.
24763 deplibs_check_method=$lt_deplibs_check_method
24764
24765 # Command to use when deplibs_check_method == file_magic.
24766 file_magic_cmd=$lt_file_magic_cmd
24767
24768 # Flag that allows shared libraries with undefined symbols to be built.
24769 allow_undefined_flag=$lt_allow_undefined_flag_RC
24770
24771 # Flag that forces no undefined symbols.
24772 no_undefined_flag=$lt_no_undefined_flag_RC
24773
24774 # Commands used to finish a libtool library installation in a directory.
24775 finish_cmds=$lt_finish_cmds
24776
24777 # Same as above, but a single script fragment to be evaled but not shown.
24778 finish_eval=$lt_finish_eval
24779
24780 # Take the output of nm and produce a listing of raw symbols and C names.
24781 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24782
24783 # Transform the output of nm in a proper C declaration
24784 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24785
24786 # Transform the output of nm in a C name address pair
24787 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24788
24789 # This is the shared library runtime path variable.
24790 runpath_var=$runpath_var
24791
24792 # This is the shared library path variable.
24793 shlibpath_var=$shlibpath_var
24794
24795 # Is shlibpath searched before the hard-coded library search path?
24796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24797
24798 # How to hardcode a shared library path into an executable.
24799 hardcode_action=$hardcode_action_RC
24800
24801 # Whether we should hardcode library paths into libraries.
24802 hardcode_into_libs=$hardcode_into_libs
24803
24804 # Flag to hardcode \$libdir into a binary during linking.
24805 # This must work even if \$libdir does not exist.
24806 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24807
24808 # If ld is used when linking, flag to hardcode \$libdir into
24809 # a binary during linking. This must work even if \$libdir does
24810 # not exist.
24811 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24812
24813 # Whether we need a single -rpath flag with a separated argument.
24814 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24815
24816 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24817 # resulting binary.
24818 hardcode_direct=$hardcode_direct_RC
24819
24820 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24821 # resulting binary.
24822 hardcode_minus_L=$hardcode_minus_L_RC
24823
24824 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24825 # the resulting binary.
24826 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24827
24828 # Set to yes if building a shared library automatically hardcodes DIR into the library
24829 # and all subsequent libraries and executables linked against it.
24830 hardcode_automatic=$hardcode_automatic_RC
24831
24832 # Variables whose values should be saved in libtool wrapper scripts and
24833 # restored at relink time.
24834 variables_saved_for_relink="$variables_saved_for_relink"
24835
24836 # Whether libtool must link a program against all its dependency libraries.
24837 link_all_deplibs=$link_all_deplibs_RC
24838
24839 # Compile-time system search path for libraries
24840 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24841
24842 # Run-time system search path for libraries
24843 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24844
24845 # Fix the shell variable \$srcfile for the compiler.
24846 fix_srcfile_path="$fix_srcfile_path_RC"
24847
24848 # Set to yes if exported symbols are required.
24849 always_export_symbols=$always_export_symbols_RC
24850
24851 # The commands to list exported symbols.
24852 export_symbols_cmds=$lt_export_symbols_cmds_RC
24853
24854 # The commands to extract the exported symbol list from a shared archive.
24855 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24856
24857 # Symbols that should not be listed in the preloaded symbols.
24858 exclude_expsyms=$lt_exclude_expsyms_RC
24859
24860 # Symbols that must always be exported.
24861 include_expsyms=$lt_include_expsyms_RC
24862
24863 # ### END LIBTOOL TAG CONFIG: $tagname
24864
24865 __EOF__
24866
24867
24868 else
24869   # If there is no Makefile yet, we rely on a make rule to execute
24870   # `config.status --recheck' to rerun these tests and create the
24871   # libtool script then.
24872   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24873   if test -f "$ltmain_in"; then
24874     test -f Makefile && make "$ltmain"
24875   fi
24876 fi
24877
24878
24879 ac_ext=c
24880 ac_cpp='$CPP $CPPFLAGS'
24881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24884
24885 CC="$lt_save_CC"
24886
24887         ;;
24888
24889       *)
24890         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24891 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24892    { (exit 1); exit 1; }; }
24893         ;;
24894       esac
24895
24896       # Append the new tag name to the list of available tags.
24897       if test -n "$tagname" ; then
24898       available_tags="$available_tags $tagname"
24899     fi
24900     fi
24901   done
24902   IFS="$lt_save_ifs"
24903
24904   # Now substitute the updated list of available tags.
24905   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24906     mv "${ofile}T" "$ofile"
24907     chmod +x "$ofile"
24908   else
24909     rm -f "${ofile}T"
24910     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24911 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24912    { (exit 1); exit 1; }; }
24913   fi
24914 fi
24915
24916
24917
24918 # This can be used to rebuild libtool when needed
24919 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24920
24921 # Always use our own libtool.
24922 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24923
24924 # Prevent multiple expansion
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946 if test "$lt_cv_dlopen_self" = "yes" ; then
24947
24948 cat >>confdefs.h <<\_ACEOF
24949 #define CAN_DLOPEN_SELF 1
24950 _ACEOF
24951
24952 fi
24953
24954 etags_version=`$ETAGS --version 2>&1`
24955 case "$etags_version" in
24956         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24957         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24958         *) ETAGSFLAGS="" ;;
24959 esac
24960 ETAGSFLAGS=$ETAGSFLAGS
24961
24962
24963 if test "$WITH_LLVMGCCDIR" = "default" ; then
24964   LLVMGCC="llvm-gcc${EXEEXT}"
24965   LLVMGXX="llvm-g++${EXEEXT}"
24966   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24967 set dummy $LLVMGCC; ac_word=$2
24968 echo "$as_me:$LINENO: checking for $ac_word" >&5
24969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24970 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24971   echo $ECHO_N "(cached) $ECHO_C" >&6
24972 else
24973   case $LLVMGCC in
24974   [\\/]* | ?:[\\/]*)
24975   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24976   ;;
24977   *)
24978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979 for as_dir in $PATH
24980 do
24981   IFS=$as_save_IFS
24982   test -z "$as_dir" && as_dir=.
24983   for ac_exec_ext in '' $ac_executable_extensions; do
24984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24985     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24987     break 2
24988   fi
24989 done
24990 done
24991
24992   ;;
24993 esac
24994 fi
24995 LLVMGCC=$ac_cv_path_LLVMGCC
24996
24997 if test -n "$LLVMGCC"; then
24998   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24999 echo "${ECHO_T}$LLVMGCC" >&6
25000 else
25001   echo "$as_me:$LINENO: result: no" >&5
25002 echo "${ECHO_T}no" >&6
25003 fi
25004
25005   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25006 set dummy $LLVMGXX; ac_word=$2
25007 echo "$as_me:$LINENO: checking for $ac_word" >&5
25008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25009 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25010   echo $ECHO_N "(cached) $ECHO_C" >&6
25011 else
25012   case $LLVMGXX in
25013   [\\/]* | ?:[\\/]*)
25014   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25015   ;;
25016   *)
25017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25018 for as_dir in $PATH
25019 do
25020   IFS=$as_save_IFS
25021   test -z "$as_dir" && as_dir=.
25022   for ac_exec_ext in '' $ac_executable_extensions; do
25023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25024     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25026     break 2
25027   fi
25028 done
25029 done
25030
25031   ;;
25032 esac
25033 fi
25034 LLVMGXX=$ac_cv_path_LLVMGXX
25035
25036 if test -n "$LLVMGXX"; then
25037   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25038 echo "${ECHO_T}$LLVMGXX" >&6
25039 else
25040   echo "$as_me:$LINENO: result: no" >&5
25041 echo "${ECHO_T}no" >&6
25042 fi
25043
25044 else
25045   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25046   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25047   LLVMGCC=$LLVMGCC
25048
25049   LLVMGXX=$LLVMGXX
25050
25051 fi
25052
25053 echo "$as_me:$LINENO: checking tool compatibility" >&5
25054 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25055
25056 ICC=no
25057 IXX=no
25058 case $CC in
25059   icc*|icpc*)
25060     ICC=yes
25061     IXX=yes
25062     ;;
25063    *)
25064     ;;
25065 esac
25066
25067 if test "$GCC" != "yes" && test "$ICC" != "yes"
25068 then
25069   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25070 echo "$as_me: error: gcc|icc required but not found" >&2;}
25071    { (exit 1); exit 1; }; }
25072 fi
25073
25074 if test "$GXX" != "yes" && test "$IXX" != "yes"
25075 then
25076   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25077 echo "$as_me: error: g++|icc required but not found" >&2;}
25078    { (exit 1); exit 1; }; }
25079 fi
25080
25081 if test "$GCC" = "yes"
25082 then
25083   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25084   if test "$gccmajor" -lt "3"
25085   then
25086     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25087 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25088    { (exit 1); exit 1; }; }
25089   fi
25090 fi
25091
25092 if test -z "$llvm_cv_gnu_make_command"
25093 then
25094   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25095 echo "$as_me: error: GNU Make required but not found" >&2;}
25096    { (exit 1); exit 1; }; }
25097 fi
25098
25099 echo "$as_me:$LINENO: result: ok" >&5
25100 echo "${ECHO_T}ok" >&6
25101
25102
25103
25104 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25105 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25106 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25107   echo $ECHO_N "(cached) $ECHO_C" >&6
25108 else
25109   ac_check_lib_save_LIBS=$LIBS
25110 LIBS="-lelf  $LIBS"
25111 cat >conftest.$ac_ext <<_ACEOF
25112 /* confdefs.h.  */
25113 _ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h.  */
25117
25118 /* Override any gcc2 internal prototype to avoid an error.  */
25119 #ifdef __cplusplus
25120 extern "C"
25121 #endif
25122 /* We use char because int might match the return type of a gcc2
25123    builtin and then its argument prototype would still apply.  */
25124 char elf_begin ();
25125 int
25126 main ()
25127 {
25128 elf_begin ();
25129   ;
25130   return 0;
25131 }
25132 _ACEOF
25133 rm -f conftest.$ac_objext conftest$ac_exeext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25135   (eval $ac_link) 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } &&
25142          { ac_try='test -z "$ac_c_werror_flag"
25143                          || test ! -s conftest.err'
25144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145   (eval $ac_try) 2>&5
25146   ac_status=$?
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); }; } &&
25149          { ac_try='test -s conftest$ac_exeext'
25150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151   (eval $ac_try) 2>&5
25152   ac_status=$?
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); }; }; then
25155   ac_cv_lib_elf_elf_begin=yes
25156 else
25157   echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160 ac_cv_lib_elf_elf_begin=no
25161 fi
25162 rm -f conftest.err conftest.$ac_objext \
25163       conftest$ac_exeext conftest.$ac_ext
25164 LIBS=$ac_check_lib_save_LIBS
25165 fi
25166 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25167 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25168 if test $ac_cv_lib_elf_elf_begin = yes; then
25169   cat >>confdefs.h <<_ACEOF
25170 #define HAVE_LIBELF 1
25171 _ACEOF
25172
25173   LIBS="-lelf $LIBS"
25174
25175 fi
25176
25177
25178 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25179 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25180 if test "${ac_cv_lib_m_sin+set}" = set; then
25181   echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183   ac_check_lib_save_LIBS=$LIBS
25184 LIBS="-lm  $LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191
25192 /* Override any gcc2 internal prototype to avoid an error.  */
25193 #ifdef __cplusplus
25194 extern "C"
25195 #endif
25196 /* We use char because int might match the return type of a gcc2
25197    builtin and then its argument prototype would still apply.  */
25198 char sin ();
25199 int
25200 main ()
25201 {
25202 sin ();
25203   ;
25204   return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25209   (eval $ac_link) 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } &&
25216          { ac_try='test -z "$ac_c_werror_flag"
25217                          || test ! -s conftest.err'
25218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219   (eval $ac_try) 2>&5
25220   ac_status=$?
25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222   (exit $ac_status); }; } &&
25223          { ac_try='test -s conftest$ac_exeext'
25224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225   (eval $ac_try) 2>&5
25226   ac_status=$?
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); }; }; then
25229   ac_cv_lib_m_sin=yes
25230 else
25231   echo "$as_me: failed program was:" >&5
25232 sed 's/^/| /' conftest.$ac_ext >&5
25233
25234 ac_cv_lib_m_sin=no
25235 fi
25236 rm -f conftest.err conftest.$ac_objext \
25237       conftest$ac_exeext conftest.$ac_ext
25238 LIBS=$ac_check_lib_save_LIBS
25239 fi
25240 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25241 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25242 if test $ac_cv_lib_m_sin = yes; then
25243   cat >>confdefs.h <<_ACEOF
25244 #define HAVE_LIBM 1
25245 _ACEOF
25246
25247   LIBS="-lm $LIBS"
25248
25249 fi
25250
25251 if test "$llvm_cv_os_type" == "MingW" ; then
25252
25253 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25254 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25255 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25256   echo $ECHO_N "(cached) $ECHO_C" >&6
25257 else
25258   ac_check_lib_save_LIBS=$LIBS
25259 LIBS="-limagehlp  $LIBS"
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h.  */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h.  */
25266
25267
25268 int
25269 main ()
25270 {
25271 main ();
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext conftest$ac_exeext
25277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25278   (eval $ac_link) 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } &&
25285          { ac_try='test -z "$ac_c_werror_flag"
25286                          || test ! -s conftest.err'
25287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288   (eval $ac_try) 2>&5
25289   ac_status=$?
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); }; } &&
25292          { ac_try='test -s conftest$ac_exeext'
25293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294   (eval $ac_try) 2>&5
25295   ac_status=$?
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); }; }; then
25298   ac_cv_lib_imagehlp_main=yes
25299 else
25300   echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25302
25303 ac_cv_lib_imagehlp_main=no
25304 fi
25305 rm -f conftest.err conftest.$ac_objext \
25306       conftest$ac_exeext conftest.$ac_ext
25307 LIBS=$ac_check_lib_save_LIBS
25308 fi
25309 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25310 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25311 if test $ac_cv_lib_imagehlp_main = yes; then
25312   cat >>confdefs.h <<_ACEOF
25313 #define HAVE_LIBIMAGEHLP 1
25314 _ACEOF
25315
25316   LIBS="-limagehlp $LIBS"
25317
25318 fi
25319
25320
25321 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25322 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25323 if test "${ac_cv_lib_psapi_main+set}" = set; then
25324   echo $ECHO_N "(cached) $ECHO_C" >&6
25325 else
25326   ac_check_lib_save_LIBS=$LIBS
25327 LIBS="-lpsapi  $LIBS"
25328 cat >conftest.$ac_ext <<_ACEOF
25329 /* confdefs.h.  */
25330 _ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h.  */
25334
25335
25336 int
25337 main ()
25338 {
25339 main ();
25340   ;
25341   return 0;
25342 }
25343 _ACEOF
25344 rm -f conftest.$ac_objext conftest$ac_exeext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25346   (eval $ac_link) 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } &&
25353          { ac_try='test -z "$ac_c_werror_flag"
25354                          || test ! -s conftest.err'
25355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356   (eval $ac_try) 2>&5
25357   ac_status=$?
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); }; } &&
25360          { ac_try='test -s conftest$ac_exeext'
25361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); }; }; then
25366   ac_cv_lib_psapi_main=yes
25367 else
25368   echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371 ac_cv_lib_psapi_main=no
25372 fi
25373 rm -f conftest.err conftest.$ac_objext \
25374       conftest$ac_exeext conftest.$ac_ext
25375 LIBS=$ac_check_lib_save_LIBS
25376 fi
25377 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25378 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25379 if test $ac_cv_lib_psapi_main = yes; then
25380   cat >>confdefs.h <<_ACEOF
25381 #define HAVE_LIBPSAPI 1
25382 _ACEOF
25383
25384   LIBS="-lpsapi $LIBS"
25385
25386 fi
25387
25388 fi
25389
25390 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25391 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25392 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25393   echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395   ac_func_search_save_LIBS=$LIBS
25396 ac_cv_search_lt_dlopen=no
25397 cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403
25404 /* Override any gcc2 internal prototype to avoid an error.  */
25405 #ifdef __cplusplus
25406 extern "C"
25407 #endif
25408 /* We use char because int might match the return type of a gcc2
25409    builtin and then its argument prototype would still apply.  */
25410 char lt_dlopen ();
25411 int
25412 main ()
25413 {
25414 lt_dlopen ();
25415   ;
25416   return 0;
25417 }
25418 _ACEOF
25419 rm -f conftest.$ac_objext conftest$ac_exeext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421   (eval $ac_link) 2>conftest.er1
25422   ac_status=$?
25423   grep -v '^ *+' conftest.er1 >conftest.err
25424   rm -f conftest.er1
25425   cat conftest.err >&5
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); } &&
25428          { ac_try='test -z "$ac_c_werror_flag"
25429                          || test ! -s conftest.err'
25430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431   (eval $ac_try) 2>&5
25432   ac_status=$?
25433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434   (exit $ac_status); }; } &&
25435          { ac_try='test -s conftest$ac_exeext'
25436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437   (eval $ac_try) 2>&5
25438   ac_status=$?
25439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440   (exit $ac_status); }; }; then
25441   ac_cv_search_lt_dlopen="none required"
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 fi
25447 rm -f conftest.err conftest.$ac_objext \
25448       conftest$ac_exeext conftest.$ac_ext
25449 if test "$ac_cv_search_lt_dlopen" = no; then
25450   for ac_lib in ltdl; do
25451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25452     cat >conftest.$ac_ext <<_ACEOF
25453 /* confdefs.h.  */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h.  */
25458
25459 /* Override any gcc2 internal prototype to avoid an error.  */
25460 #ifdef __cplusplus
25461 extern "C"
25462 #endif
25463 /* We use char because int might match the return type of a gcc2
25464    builtin and then its argument prototype would still apply.  */
25465 char lt_dlopen ();
25466 int
25467 main ()
25468 {
25469 lt_dlopen ();
25470   ;
25471   return 0;
25472 }
25473 _ACEOF
25474 rm -f conftest.$ac_objext conftest$ac_exeext
25475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25476   (eval $ac_link) 2>conftest.er1
25477   ac_status=$?
25478   grep -v '^ *+' conftest.er1 >conftest.err
25479   rm -f conftest.er1
25480   cat conftest.err >&5
25481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482   (exit $ac_status); } &&
25483          { ac_try='test -z "$ac_c_werror_flag"
25484                          || test ! -s conftest.err'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; } &&
25490          { ac_try='test -s conftest$ac_exeext'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; }; then
25496   ac_cv_search_lt_dlopen="-l$ac_lib"
25497 break
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 fi
25503 rm -f conftest.err conftest.$ac_objext \
25504       conftest$ac_exeext conftest.$ac_ext
25505   done
25506 fi
25507 LIBS=$ac_func_search_save_LIBS
25508 fi
25509 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25510 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25511 if test "$ac_cv_search_lt_dlopen" != no; then
25512   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25513
25514 cat >>confdefs.h <<\_ACEOF
25515 #define HAVE_LT_DLOPEN 1
25516 _ACEOF
25517
25518 else
25519   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25520                            not be available" >&5
25521 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25522                            not be available" >&2;}
25523 fi
25524
25525
25526 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25527 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25528 if test "${ac_cv_search_dlopen+set}" = set; then
25529   echo $ECHO_N "(cached) $ECHO_C" >&6
25530 else
25531   ac_func_search_save_LIBS=$LIBS
25532 ac_cv_search_dlopen=no
25533 cat >conftest.$ac_ext <<_ACEOF
25534 /* confdefs.h.  */
25535 _ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h.  */
25539
25540 /* Override any gcc2 internal prototype to avoid an error.  */
25541 #ifdef __cplusplus
25542 extern "C"
25543 #endif
25544 /* We use char because int might match the return type of a gcc2
25545    builtin and then its argument prototype would still apply.  */
25546 char dlopen ();
25547 int
25548 main ()
25549 {
25550 dlopen ();
25551   ;
25552   return 0;
25553 }
25554 _ACEOF
25555 rm -f conftest.$ac_objext conftest$ac_exeext
25556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25557   (eval $ac_link) 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } &&
25564          { ac_try='test -z "$ac_c_werror_flag"
25565                          || test ! -s conftest.err'
25566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567   (eval $ac_try) 2>&5
25568   ac_status=$?
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); }; } &&
25571          { ac_try='test -s conftest$ac_exeext'
25572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573   (eval $ac_try) 2>&5
25574   ac_status=$?
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); }; }; then
25577   ac_cv_search_dlopen="none required"
25578 else
25579   echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25581
25582 fi
25583 rm -f conftest.err conftest.$ac_objext \
25584       conftest$ac_exeext conftest.$ac_ext
25585 if test "$ac_cv_search_dlopen" = no; then
25586   for ac_lib in dl; do
25587     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25588     cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h.  */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h.  */
25594
25595 /* Override any gcc2 internal prototype to avoid an error.  */
25596 #ifdef __cplusplus
25597 extern "C"
25598 #endif
25599 /* We use char because int might match the return type of a gcc2
25600    builtin and then its argument prototype would still apply.  */
25601 char dlopen ();
25602 int
25603 main ()
25604 {
25605 dlopen ();
25606   ;
25607   return 0;
25608 }
25609 _ACEOF
25610 rm -f conftest.$ac_objext conftest$ac_exeext
25611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25612   (eval $ac_link) 2>conftest.er1
25613   ac_status=$?
25614   grep -v '^ *+' conftest.er1 >conftest.err
25615   rm -f conftest.er1
25616   cat conftest.err >&5
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); } &&
25619          { ac_try='test -z "$ac_c_werror_flag"
25620                          || test ! -s conftest.err'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; } &&
25626          { ac_try='test -s conftest$ac_exeext'
25627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628   (eval $ac_try) 2>&5
25629   ac_status=$?
25630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631   (exit $ac_status); }; }; then
25632   ac_cv_search_dlopen="-l$ac_lib"
25633 break
25634 else
25635   echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638 fi
25639 rm -f conftest.err conftest.$ac_objext \
25640       conftest$ac_exeext conftest.$ac_ext
25641   done
25642 fi
25643 LIBS=$ac_func_search_save_LIBS
25644 fi
25645 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25646 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25647 if test "$ac_cv_search_dlopen" != no; then
25648   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25649
25650 cat >>confdefs.h <<\_ACEOF
25651 #define HAVE_DLOPEN 1
25652 _ACEOF
25653
25654 else
25655   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25656 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25657 fi
25658
25659
25660 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25661 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25662 if test "${ac_cv_search_mallinfo+set}" = set; then
25663   echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25665   ac_func_search_save_LIBS=$LIBS
25666 ac_cv_search_mallinfo=no
25667 cat >conftest.$ac_ext <<_ACEOF
25668 /* confdefs.h.  */
25669 _ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h.  */
25673
25674 /* Override any gcc2 internal prototype to avoid an error.  */
25675 #ifdef __cplusplus
25676 extern "C"
25677 #endif
25678 /* We use char because int might match the return type of a gcc2
25679    builtin and then its argument prototype would still apply.  */
25680 char mallinfo ();
25681 int
25682 main ()
25683 {
25684 mallinfo ();
25685   ;
25686   return 0;
25687 }
25688 _ACEOF
25689 rm -f conftest.$ac_objext conftest$ac_exeext
25690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25691   (eval $ac_link) 2>conftest.er1
25692   ac_status=$?
25693   grep -v '^ *+' conftest.er1 >conftest.err
25694   rm -f conftest.er1
25695   cat conftest.err >&5
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); } &&
25698          { ac_try='test -z "$ac_c_werror_flag"
25699                          || test ! -s conftest.err'
25700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701   (eval $ac_try) 2>&5
25702   ac_status=$?
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); }; } &&
25705          { ac_try='test -s conftest$ac_exeext'
25706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707   (eval $ac_try) 2>&5
25708   ac_status=$?
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); }; }; then
25711   ac_cv_search_mallinfo="none required"
25712 else
25713   echo "$as_me: failed program was:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25715
25716 fi
25717 rm -f conftest.err conftest.$ac_objext \
25718       conftest$ac_exeext conftest.$ac_ext
25719 if test "$ac_cv_search_mallinfo" = no; then
25720   for ac_lib in malloc; do
25721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25722     cat >conftest.$ac_ext <<_ACEOF
25723 /* confdefs.h.  */
25724 _ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h.  */
25728
25729 /* Override any gcc2 internal prototype to avoid an error.  */
25730 #ifdef __cplusplus
25731 extern "C"
25732 #endif
25733 /* We use char because int might match the return type of a gcc2
25734    builtin and then its argument prototype would still apply.  */
25735 char mallinfo ();
25736 int
25737 main ()
25738 {
25739 mallinfo ();
25740   ;
25741   return 0;
25742 }
25743 _ACEOF
25744 rm -f conftest.$ac_objext conftest$ac_exeext
25745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25746   (eval $ac_link) 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } &&
25753          { ac_try='test -z "$ac_c_werror_flag"
25754                          || test ! -s conftest.err'
25755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756   (eval $ac_try) 2>&5
25757   ac_status=$?
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); }; } &&
25760          { ac_try='test -s conftest$ac_exeext'
25761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762   (eval $ac_try) 2>&5
25763   ac_status=$?
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); }; }; then
25766   ac_cv_search_mallinfo="-l$ac_lib"
25767 break
25768 else
25769   echo "$as_me: failed program was:" >&5
25770 sed 's/^/| /' conftest.$ac_ext >&5
25771
25772 fi
25773 rm -f conftest.err conftest.$ac_objext \
25774       conftest$ac_exeext conftest.$ac_ext
25775   done
25776 fi
25777 LIBS=$ac_func_search_save_LIBS
25778 fi
25779 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25780 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25781 if test "$ac_cv_search_mallinfo" != no; then
25782   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25783
25784 cat >>confdefs.h <<\_ACEOF
25785 #define HAVE_MALLINFO 1
25786 _ACEOF
25787
25788 fi
25789
25790
25791 if test "$ENABLE_THREADS" -eq 1 ; then
25792
25793 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25794 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25795 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798   ac_check_lib_save_LIBS=$LIBS
25799 LIBS="-lpthread  $LIBS"
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806
25807 /* Override any gcc2 internal prototype to avoid an error.  */
25808 #ifdef __cplusplus
25809 extern "C"
25810 #endif
25811 /* We use char because int might match the return type of a gcc2
25812    builtin and then its argument prototype would still apply.  */
25813 char pthread_mutex_init ();
25814 int
25815 main ()
25816 {
25817 pthread_mutex_init ();
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 rm -f conftest.$ac_objext conftest$ac_exeext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25824   (eval $ac_link) 2>conftest.er1
25825   ac_status=$?
25826   grep -v '^ *+' conftest.er1 >conftest.err
25827   rm -f conftest.er1
25828   cat conftest.err >&5
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } &&
25831          { ac_try='test -z "$ac_c_werror_flag"
25832                          || test ! -s conftest.err'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; } &&
25838          { ac_try='test -s conftest$ac_exeext'
25839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840   (eval $ac_try) 2>&5
25841   ac_status=$?
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); }; }; then
25844   ac_cv_lib_pthread_pthread_mutex_init=yes
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 ac_cv_lib_pthread_pthread_mutex_init=no
25850 fi
25851 rm -f conftest.err conftest.$ac_objext \
25852       conftest$ac_exeext conftest.$ac_ext
25853 LIBS=$ac_check_lib_save_LIBS
25854 fi
25855 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25856 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25857 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25858   cat >>confdefs.h <<_ACEOF
25859 #define HAVE_LIBPTHREAD 1
25860 _ACEOF
25861
25862   LIBS="-lpthread $LIBS"
25863
25864 fi
25865
25866   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25867 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25868 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25869   echo $ECHO_N "(cached) $ECHO_C" >&6
25870 else
25871   ac_func_search_save_LIBS=$LIBS
25872 ac_cv_search_pthread_mutex_lock=no
25873 cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879
25880 /* Override any gcc2 internal prototype to avoid an error.  */
25881 #ifdef __cplusplus
25882 extern "C"
25883 #endif
25884 /* We use char because int might match the return type of a gcc2
25885    builtin and then its argument prototype would still apply.  */
25886 char pthread_mutex_lock ();
25887 int
25888 main ()
25889 {
25890 pthread_mutex_lock ();
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest.$ac_objext conftest$ac_exeext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25897   (eval $ac_link) 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } &&
25904          { ac_try='test -z "$ac_c_werror_flag"
25905                          || test ! -s conftest.err'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; } &&
25911          { ac_try='test -s conftest$ac_exeext'
25912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913   (eval $ac_try) 2>&5
25914   ac_status=$?
25915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; }; then
25917   ac_cv_search_pthread_mutex_lock="none required"
25918 else
25919   echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922 fi
25923 rm -f conftest.err conftest.$ac_objext \
25924       conftest$ac_exeext conftest.$ac_ext
25925 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25926   for ac_lib in pthread; do
25927     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25928     cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h.  */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h.  */
25934
25935 /* Override any gcc2 internal prototype to avoid an error.  */
25936 #ifdef __cplusplus
25937 extern "C"
25938 #endif
25939 /* We use char because int might match the return type of a gcc2
25940    builtin and then its argument prototype would still apply.  */
25941 char pthread_mutex_lock ();
25942 int
25943 main ()
25944 {
25945 pthread_mutex_lock ();
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25952   (eval $ac_link) 2>conftest.er1
25953   ac_status=$?
25954   grep -v '^ *+' conftest.er1 >conftest.err
25955   rm -f conftest.er1
25956   cat conftest.err >&5
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); } &&
25959          { ac_try='test -z "$ac_c_werror_flag"
25960                          || test ! -s conftest.err'
25961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962   (eval $ac_try) 2>&5
25963   ac_status=$?
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); }; } &&
25966          { ac_try='test -s conftest$ac_exeext'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; }; then
25972   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25973 break
25974 else
25975   echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25977
25978 fi
25979 rm -f conftest.err conftest.$ac_objext \
25980       conftest$ac_exeext conftest.$ac_ext
25981   done
25982 fi
25983 LIBS=$ac_func_search_save_LIBS
25984 fi
25985 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25986 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25987 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25988   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25989
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_PTHREAD_MUTEX_LOCK 1
25992 _ACEOF
25993
25994 fi
25995
25996 fi
25997
25998
25999
26000
26001
26002
26003
26004 ac_header_dirent=no
26005 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26006   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26007 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26008 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   cat >conftest.$ac_ext <<_ACEOF
26013 /* confdefs.h.  */
26014 _ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h.  */
26018 #include <sys/types.h>
26019 #include <$ac_hdr>
26020
26021 int
26022 main ()
26023 {
26024 if ((DIR *) 0)
26025 return 0;
26026   ;
26027   return 0;
26028 }
26029 _ACEOF
26030 rm -f conftest.$ac_objext
26031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26032   (eval $ac_compile) 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } &&
26039          { ac_try='test -z "$ac_c_werror_flag"
26040                          || test ! -s conftest.err'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; } &&
26046          { ac_try='test -s conftest.$ac_objext'
26047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26048   (eval $ac_try) 2>&5
26049   ac_status=$?
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); }; }; then
26052   eval "$as_ac_Header=yes"
26053 else
26054   echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26056
26057 eval "$as_ac_Header=no"
26058 fi
26059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26060 fi
26061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26064   cat >>confdefs.h <<_ACEOF
26065 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26066 _ACEOF
26067
26068 ac_header_dirent=$ac_hdr; break
26069 fi
26070
26071 done
26072 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26073 if test $ac_header_dirent = dirent.h; then
26074   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26075 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26076 if test "${ac_cv_search_opendir+set}" = set; then
26077   echo $ECHO_N "(cached) $ECHO_C" >&6
26078 else
26079   ac_func_search_save_LIBS=$LIBS
26080 ac_cv_search_opendir=no
26081 cat >conftest.$ac_ext <<_ACEOF
26082 /* confdefs.h.  */
26083 _ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h.  */
26087
26088 /* Override any gcc2 internal prototype to avoid an error.  */
26089 #ifdef __cplusplus
26090 extern "C"
26091 #endif
26092 /* We use char because int might match the return type of a gcc2
26093    builtin and then its argument prototype would still apply.  */
26094 char opendir ();
26095 int
26096 main ()
26097 {
26098 opendir ();
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 rm -f conftest.$ac_objext conftest$ac_exeext
26104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26105   (eval $ac_link) 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } &&
26112          { ac_try='test -z "$ac_c_werror_flag"
26113                          || test ! -s conftest.err'
26114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115   (eval $ac_try) 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; } &&
26119          { ac_try='test -s conftest$ac_exeext'
26120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121   (eval $ac_try) 2>&5
26122   ac_status=$?
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); }; }; then
26125   ac_cv_search_opendir="none required"
26126 else
26127   echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130 fi
26131 rm -f conftest.err conftest.$ac_objext \
26132       conftest$ac_exeext conftest.$ac_ext
26133 if test "$ac_cv_search_opendir" = no; then
26134   for ac_lib in dir; do
26135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26136     cat >conftest.$ac_ext <<_ACEOF
26137 /* confdefs.h.  */
26138 _ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h.  */
26142
26143 /* Override any gcc2 internal prototype to avoid an error.  */
26144 #ifdef __cplusplus
26145 extern "C"
26146 #endif
26147 /* We use char because int might match the return type of a gcc2
26148    builtin and then its argument prototype would still apply.  */
26149 char opendir ();
26150 int
26151 main ()
26152 {
26153 opendir ();
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext conftest$ac_exeext
26159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26160   (eval $ac_link) 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } &&
26167          { ac_try='test -z "$ac_c_werror_flag"
26168                          || test ! -s conftest.err'
26169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170   (eval $ac_try) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; } &&
26174          { ac_try='test -s conftest$ac_exeext'
26175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176   (eval $ac_try) 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; }; then
26180   ac_cv_search_opendir="-l$ac_lib"
26181 break
26182 else
26183   echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186 fi
26187 rm -f conftest.err conftest.$ac_objext \
26188       conftest$ac_exeext conftest.$ac_ext
26189   done
26190 fi
26191 LIBS=$ac_func_search_save_LIBS
26192 fi
26193 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26194 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26195 if test "$ac_cv_search_opendir" != no; then
26196   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26197
26198 fi
26199
26200 else
26201   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26203 if test "${ac_cv_search_opendir+set}" = set; then
26204   echo $ECHO_N "(cached) $ECHO_C" >&6
26205 else
26206   ac_func_search_save_LIBS=$LIBS
26207 ac_cv_search_opendir=no
26208 cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214
26215 /* Override any gcc2 internal prototype to avoid an error.  */
26216 #ifdef __cplusplus
26217 extern "C"
26218 #endif
26219 /* We use char because int might match the return type of a gcc2
26220    builtin and then its argument prototype would still apply.  */
26221 char opendir ();
26222 int
26223 main ()
26224 {
26225 opendir ();
26226   ;
26227   return 0;
26228 }
26229 _ACEOF
26230 rm -f conftest.$ac_objext conftest$ac_exeext
26231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26232   (eval $ac_link) 2>conftest.er1
26233   ac_status=$?
26234   grep -v '^ *+' conftest.er1 >conftest.err
26235   rm -f conftest.er1
26236   cat conftest.err >&5
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); } &&
26239          { ac_try='test -z "$ac_c_werror_flag"
26240                          || test ! -s conftest.err'
26241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242   (eval $ac_try) 2>&5
26243   ac_status=$?
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); }; } &&
26246          { ac_try='test -s conftest$ac_exeext'
26247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248   (eval $ac_try) 2>&5
26249   ac_status=$?
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); }; }; then
26252   ac_cv_search_opendir="none required"
26253 else
26254   echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257 fi
26258 rm -f conftest.err conftest.$ac_objext \
26259       conftest$ac_exeext conftest.$ac_ext
26260 if test "$ac_cv_search_opendir" = no; then
26261   for ac_lib in x; do
26262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26263     cat >conftest.$ac_ext <<_ACEOF
26264 /* confdefs.h.  */
26265 _ACEOF
26266 cat confdefs.h >>conftest.$ac_ext
26267 cat >>conftest.$ac_ext <<_ACEOF
26268 /* end confdefs.h.  */
26269
26270 /* Override any gcc2 internal prototype to avoid an error.  */
26271 #ifdef __cplusplus
26272 extern "C"
26273 #endif
26274 /* We use char because int might match the return type of a gcc2
26275    builtin and then its argument prototype would still apply.  */
26276 char opendir ();
26277 int
26278 main ()
26279 {
26280 opendir ();
26281   ;
26282   return 0;
26283 }
26284 _ACEOF
26285 rm -f conftest.$ac_objext conftest$ac_exeext
26286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26287   (eval $ac_link) 2>conftest.er1
26288   ac_status=$?
26289   grep -v '^ *+' conftest.er1 >conftest.err
26290   rm -f conftest.er1
26291   cat conftest.err >&5
26292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293   (exit $ac_status); } &&
26294          { ac_try='test -z "$ac_c_werror_flag"
26295                          || test ! -s conftest.err'
26296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26297   (eval $ac_try) 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; } &&
26301          { ac_try='test -s conftest$ac_exeext'
26302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); }; }; then
26307   ac_cv_search_opendir="-l$ac_lib"
26308 break
26309 else
26310   echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 fi
26314 rm -f conftest.err conftest.$ac_objext \
26315       conftest$ac_exeext conftest.$ac_ext
26316   done
26317 fi
26318 LIBS=$ac_func_search_save_LIBS
26319 fi
26320 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26321 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26322 if test "$ac_cv_search_opendir" != no; then
26323   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26324
26325 fi
26326
26327 fi
26328
26329 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26330 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26331 if test "${ac_cv_header_mmap_anon+set}" = set; then
26332   echo $ECHO_N "(cached) $ECHO_C" >&6
26333 else
26334    ac_ext=c
26335 ac_cpp='$CPP $CPPFLAGS'
26336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26339
26340   cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 #include <sys/mman.h>
26347 #include <unistd.h>
26348 #include <fcntl.h>
26349 int
26350 main ()
26351 {
26352 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26353   ;
26354   return 0;
26355 }
26356 _ACEOF
26357 rm -f conftest.$ac_objext
26358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26359   (eval $ac_compile) 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } &&
26366          { ac_try='test -z "$ac_c_werror_flag"
26367                          || test ! -s conftest.err'
26368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369   (eval $ac_try) 2>&5
26370   ac_status=$?
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); }; } &&
26373          { ac_try='test -s conftest.$ac_objext'
26374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375   (eval $ac_try) 2>&5
26376   ac_status=$?
26377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378   (exit $ac_status); }; }; then
26379   ac_cv_header_mmap_anon=yes
26380 else
26381   echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26383
26384 ac_cv_header_mmap_anon=no
26385 fi
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387   ac_ext=c
26388 ac_cpp='$CPP $CPPFLAGS'
26389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26392
26393
26394 fi
26395 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26396 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26397 if test "$ac_cv_header_mmap_anon" = yes; then
26398
26399 cat >>confdefs.h <<\_ACEOF
26400 #define HAVE_MMAP_ANONYMOUS 1
26401 _ACEOF
26402
26403 fi
26404
26405 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26406 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26407 if test "${ac_cv_header_stat_broken+set}" = set; then
26408   echo $ECHO_N "(cached) $ECHO_C" >&6
26409 else
26410   cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h.  */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h.  */
26416 #include <sys/types.h>
26417 #include <sys/stat.h>
26418
26419 #if defined(S_ISBLK) && defined(S_IFDIR)
26420 # if S_ISBLK (S_IFDIR)
26421 You lose.
26422 # endif
26423 #endif
26424
26425 #if defined(S_ISBLK) && defined(S_IFCHR)
26426 # if S_ISBLK (S_IFCHR)
26427 You lose.
26428 # endif
26429 #endif
26430
26431 #if defined(S_ISLNK) && defined(S_IFREG)
26432 # if S_ISLNK (S_IFREG)
26433 You lose.
26434 # endif
26435 #endif
26436
26437 #if defined(S_ISSOCK) && defined(S_IFREG)
26438 # if S_ISSOCK (S_IFREG)
26439 You lose.
26440 # endif
26441 #endif
26442
26443 _ACEOF
26444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26445   $EGREP "You lose" >/dev/null 2>&1; then
26446   ac_cv_header_stat_broken=yes
26447 else
26448   ac_cv_header_stat_broken=no
26449 fi
26450 rm -f conftest*
26451
26452 fi
26453 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26454 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26455 if test $ac_cv_header_stat_broken = yes; then
26456
26457 cat >>confdefs.h <<\_ACEOF
26458 #define STAT_MACROS_BROKEN 1
26459 _ACEOF
26460
26461 fi
26462
26463 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26464 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26465 if test "${ac_cv_header_stdc+set}" = set; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 #include <stdlib.h>
26475 #include <stdarg.h>
26476 #include <string.h>
26477 #include <float.h>
26478
26479 int
26480 main ()
26481 {
26482
26483   ;
26484   return 0;
26485 }
26486 _ACEOF
26487 rm -f conftest.$ac_objext
26488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26489   (eval $ac_compile) 2>conftest.er1
26490   ac_status=$?
26491   grep -v '^ *+' conftest.er1 >conftest.err
26492   rm -f conftest.er1
26493   cat conftest.err >&5
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); } &&
26496          { ac_try='test -z "$ac_c_werror_flag"
26497                          || test ! -s conftest.err'
26498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499   (eval $ac_try) 2>&5
26500   ac_status=$?
26501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502   (exit $ac_status); }; } &&
26503          { ac_try='test -s conftest.$ac_objext'
26504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505   (eval $ac_try) 2>&5
26506   ac_status=$?
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); }; }; then
26509   ac_cv_header_stdc=yes
26510 else
26511   echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.$ac_ext >&5
26513
26514 ac_cv_header_stdc=no
26515 fi
26516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26517
26518 if test $ac_cv_header_stdc = yes; then
26519   # SunOS 4.x string.h does not declare mem*, 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 <string.h>
26527
26528 _ACEOF
26529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26530   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26541   cat >conftest.$ac_ext <<_ACEOF
26542 /* confdefs.h.  */
26543 _ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h.  */
26547 #include <stdlib.h>
26548
26549 _ACEOF
26550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26551   $EGREP "free" >/dev/null 2>&1; then
26552   :
26553 else
26554   ac_cv_header_stdc=no
26555 fi
26556 rm -f conftest*
26557
26558 fi
26559
26560 if test $ac_cv_header_stdc = yes; then
26561   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26562   if test "$cross_compiling" = yes; then
26563   :
26564 else
26565   cat >conftest.$ac_ext <<_ACEOF
26566 /* confdefs.h.  */
26567 _ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h.  */
26571 #include <ctype.h>
26572 #if ((' ' & 0x0FF) == 0x020)
26573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26575 #else
26576 # define ISLOWER(c) \
26577                    (('a' <= (c) && (c) <= 'i') \
26578                      || ('j' <= (c) && (c) <= 'r') \
26579                      || ('s' <= (c) && (c) <= 'z'))
26580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26581 #endif
26582
26583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26584 int
26585 main ()
26586 {
26587   int i;
26588   for (i = 0; i < 256; i++)
26589     if (XOR (islower (i), ISLOWER (i))
26590         || toupper (i) != TOUPPER (i))
26591       exit(2);
26592   exit (0);
26593 }
26594 _ACEOF
26595 rm -f conftest$ac_exeext
26596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26597   (eval $ac_link) 2>&5
26598   ac_status=$?
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; }; then
26606   :
26607 else
26608   echo "$as_me: program exited with status $ac_status" >&5
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ( exit $ac_status )
26613 ac_cv_header_stdc=no
26614 fi
26615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26616 fi
26617 fi
26618 fi
26619 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26620 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26621 if test $ac_cv_header_stdc = yes; then
26622
26623 cat >>confdefs.h <<\_ACEOF
26624 #define STDC_HEADERS 1
26625 _ACEOF
26626
26627 fi
26628
26629 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26630 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26631 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640 #include <sys/types.h>
26641 #include <sys/wait.h>
26642 #ifndef WEXITSTATUS
26643 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26644 #endif
26645 #ifndef WIFEXITED
26646 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26647 #endif
26648
26649 int
26650 main ()
26651 {
26652   int s;
26653   wait (&s);
26654   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26655   ;
26656   return 0;
26657 }
26658 _ACEOF
26659 rm -f conftest.$ac_objext
26660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26661   (eval $ac_compile) 2>conftest.er1
26662   ac_status=$?
26663   grep -v '^ *+' conftest.er1 >conftest.err
26664   rm -f conftest.er1
26665   cat conftest.err >&5
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); } &&
26668          { ac_try='test -z "$ac_c_werror_flag"
26669                          || test ! -s conftest.err'
26670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671   (eval $ac_try) 2>&5
26672   ac_status=$?
26673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674   (exit $ac_status); }; } &&
26675          { ac_try='test -s conftest.$ac_objext'
26676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677   (eval $ac_try) 2>&5
26678   ac_status=$?
26679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680   (exit $ac_status); }; }; then
26681   ac_cv_header_sys_wait_h=yes
26682 else
26683   echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26685
26686 ac_cv_header_sys_wait_h=no
26687 fi
26688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26689 fi
26690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26691 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26692 if test $ac_cv_header_sys_wait_h = yes; then
26693
26694 cat >>confdefs.h <<\_ACEOF
26695 #define HAVE_SYS_WAIT_H 1
26696 _ACEOF
26697
26698 fi
26699
26700 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26701 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26702 if test "${ac_cv_header_time+set}" = set; then
26703   echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705   cat >conftest.$ac_ext <<_ACEOF
26706 /* confdefs.h.  */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h.  */
26711 #include <sys/types.h>
26712 #include <sys/time.h>
26713 #include <time.h>
26714
26715 int
26716 main ()
26717 {
26718 if ((struct tm *) 0)
26719 return 0;
26720   ;
26721   return 0;
26722 }
26723 _ACEOF
26724 rm -f conftest.$ac_objext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26726   (eval $ac_compile) 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } &&
26733          { ac_try='test -z "$ac_c_werror_flag"
26734                          || test ! -s conftest.err'
26735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736   (eval $ac_try) 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; } &&
26740          { ac_try='test -s conftest.$ac_objext'
26741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742   (eval $ac_try) 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; }; then
26746   ac_cv_header_time=yes
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751 ac_cv_header_time=no
26752 fi
26753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26754 fi
26755 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26756 echo "${ECHO_T}$ac_cv_header_time" >&6
26757 if test $ac_cv_header_time = yes; then
26758
26759 cat >>confdefs.h <<\_ACEOF
26760 #define TIME_WITH_SYS_TIME 1
26761 _ACEOF
26762
26763 fi
26764
26765
26766
26767
26768
26769
26770
26771
26772 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26773 do
26774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26776   echo "$as_me:$LINENO: checking for $ac_header" >&5
26777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26779   echo $ECHO_N "(cached) $ECHO_C" >&6
26780 fi
26781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26783 else
26784   # Is the header compilable?
26785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26787 cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h.  */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h.  */
26793 $ac_includes_default
26794 #include <$ac_header>
26795 _ACEOF
26796 rm -f conftest.$ac_objext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26798   (eval $ac_compile) 2>conftest.er1
26799   ac_status=$?
26800   grep -v '^ *+' conftest.er1 >conftest.err
26801   rm -f conftest.er1
26802   cat conftest.err >&5
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); } &&
26805          { ac_try='test -z "$ac_c_werror_flag"
26806                          || test ! -s conftest.err'
26807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26808   (eval $ac_try) 2>&5
26809   ac_status=$?
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); }; } &&
26812          { ac_try='test -s conftest.$ac_objext'
26813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814   (eval $ac_try) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); }; }; then
26818   ac_header_compiler=yes
26819 else
26820   echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.$ac_ext >&5
26822
26823 ac_header_compiler=no
26824 fi
26825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26827 echo "${ECHO_T}$ac_header_compiler" >&6
26828
26829 # Is the header present?
26830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26832 cat >conftest.$ac_ext <<_ACEOF
26833 /* confdefs.h.  */
26834 _ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h.  */
26838 #include <$ac_header>
26839 _ACEOF
26840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26842   ac_status=$?
26843   grep -v '^ *+' conftest.er1 >conftest.err
26844   rm -f conftest.er1
26845   cat conftest.err >&5
26846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847   (exit $ac_status); } >/dev/null; then
26848   if test -s conftest.err; then
26849     ac_cpp_err=$ac_c_preproc_warn_flag
26850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26851   else
26852     ac_cpp_err=
26853   fi
26854 else
26855   ac_cpp_err=yes
26856 fi
26857 if test -z "$ac_cpp_err"; then
26858   ac_header_preproc=yes
26859 else
26860   echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26862
26863   ac_header_preproc=no
26864 fi
26865 rm -f conftest.err conftest.$ac_ext
26866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26867 echo "${ECHO_T}$ac_header_preproc" >&6
26868
26869 # So?  What about this header?
26870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26871   yes:no: )
26872     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26874     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26876     ac_header_preproc=yes
26877     ;;
26878   no:yes:* )
26879     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26881     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26882 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26883     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26885     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26886 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26889     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26891     (
26892       cat <<\_ASBOX
26893 ## ----------------------------------- ##
26894 ## Report this to llvmbugs@cs.uiuc.edu ##
26895 ## ----------------------------------- ##
26896 _ASBOX
26897     ) |
26898       sed "s/^/$as_me: WARNING:     /" >&2
26899     ;;
26900 esac
26901 echo "$as_me:$LINENO: checking for $ac_header" >&5
26902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26904   echo $ECHO_N "(cached) $ECHO_C" >&6
26905 else
26906   eval "$as_ac_Header=\$ac_header_preproc"
26907 fi
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26910
26911 fi
26912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26913   cat >>confdefs.h <<_ACEOF
26914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26915 _ACEOF
26916
26917 fi
26918
26919 done
26920
26921
26922
26923
26924
26925
26926
26927 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
26928 do
26929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26931   echo "$as_me:$LINENO: checking for $ac_header" >&5
26932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26934   echo $ECHO_N "(cached) $ECHO_C" >&6
26935 fi
26936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26938 else
26939   # Is the header compilable?
26940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h.  */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h.  */
26948 $ac_includes_default
26949 #include <$ac_header>
26950 _ACEOF
26951 rm -f conftest.$ac_objext
26952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26953   (eval $ac_compile) 2>conftest.er1
26954   ac_status=$?
26955   grep -v '^ *+' conftest.er1 >conftest.err
26956   rm -f conftest.er1
26957   cat conftest.err >&5
26958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); } &&
26960          { ac_try='test -z "$ac_c_werror_flag"
26961                          || test ! -s conftest.err'
26962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963   (eval $ac_try) 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; } &&
26967          { ac_try='test -s conftest.$ac_objext'
26968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969   (eval $ac_try) 2>&5
26970   ac_status=$?
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); }; }; then
26973   ac_header_compiler=yes
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978 ac_header_compiler=no
26979 fi
26980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26982 echo "${ECHO_T}$ac_header_compiler" >&6
26983
26984 # Is the header present?
26985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26987 cat >conftest.$ac_ext <<_ACEOF
26988 /* confdefs.h.  */
26989 _ACEOF
26990 cat confdefs.h >>conftest.$ac_ext
26991 cat >>conftest.$ac_ext <<_ACEOF
26992 /* end confdefs.h.  */
26993 #include <$ac_header>
26994 _ACEOF
26995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26997   ac_status=$?
26998   grep -v '^ *+' conftest.er1 >conftest.err
26999   rm -f conftest.er1
27000   cat conftest.err >&5
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } >/dev/null; then
27003   if test -s conftest.err; then
27004     ac_cpp_err=$ac_c_preproc_warn_flag
27005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27006   else
27007     ac_cpp_err=
27008   fi
27009 else
27010   ac_cpp_err=yes
27011 fi
27012 if test -z "$ac_cpp_err"; then
27013   ac_header_preproc=yes
27014 else
27015   echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27017
27018   ac_header_preproc=no
27019 fi
27020 rm -f conftest.err conftest.$ac_ext
27021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27022 echo "${ECHO_T}$ac_header_preproc" >&6
27023
27024 # So?  What about this header?
27025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27026   yes:no: )
27027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27031     ac_header_preproc=yes
27032     ;;
27033   no:yes:* )
27034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27046     (
27047       cat <<\_ASBOX
27048 ## ----------------------------------- ##
27049 ## Report this to llvmbugs@cs.uiuc.edu ##
27050 ## ----------------------------------- ##
27051 _ASBOX
27052     ) |
27053       sed "s/^/$as_me: WARNING:     /" >&2
27054     ;;
27055 esac
27056 echo "$as_me:$LINENO: checking for $ac_header" >&5
27057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27059   echo $ECHO_N "(cached) $ECHO_C" >&6
27060 else
27061   eval "$as_ac_Header=\$ac_header_preproc"
27062 fi
27063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27065
27066 fi
27067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27068   cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27070 _ACEOF
27071
27072 fi
27073
27074 done
27075
27076
27077
27078
27079
27080
27081 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27082 do
27083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27085   echo "$as_me:$LINENO: checking for $ac_header" >&5
27086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27088   echo $ECHO_N "(cached) $ECHO_C" >&6
27089 fi
27090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27092 else
27093   # Is the header compilable?
27094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102 $ac_includes_default
27103 #include <$ac_header>
27104 _ACEOF
27105 rm -f conftest.$ac_objext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27107   (eval $ac_compile) 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag"
27115                          || test ! -s conftest.err'
27116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; } &&
27121          { ac_try='test -s conftest.$ac_objext'
27122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123   (eval $ac_try) 2>&5
27124   ac_status=$?
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); }; }; then
27127   ac_header_compiler=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132 ac_header_compiler=no
27133 fi
27134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27136 echo "${ECHO_T}$ac_header_compiler" >&6
27137
27138 # Is the header present?
27139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27141 cat >conftest.$ac_ext <<_ACEOF
27142 /* confdefs.h.  */
27143 _ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h.  */
27147 #include <$ac_header>
27148 _ACEOF
27149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27151   ac_status=$?
27152   grep -v '^ *+' conftest.er1 >conftest.err
27153   rm -f conftest.er1
27154   cat conftest.err >&5
27155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156   (exit $ac_status); } >/dev/null; then
27157   if test -s conftest.err; then
27158     ac_cpp_err=$ac_c_preproc_warn_flag
27159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27160   else
27161     ac_cpp_err=
27162   fi
27163 else
27164   ac_cpp_err=yes
27165 fi
27166 if test -z "$ac_cpp_err"; then
27167   ac_header_preproc=yes
27168 else
27169   echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172   ac_header_preproc=no
27173 fi
27174 rm -f conftest.err conftest.$ac_ext
27175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27176 echo "${ECHO_T}$ac_header_preproc" >&6
27177
27178 # So?  What about this header?
27179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27180   yes:no: )
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27185     ac_header_preproc=yes
27186     ;;
27187   no:yes:* )
27188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27200     (
27201       cat <<\_ASBOX
27202 ## ----------------------------------- ##
27203 ## Report this to llvmbugs@cs.uiuc.edu ##
27204 ## ----------------------------------- ##
27205 _ASBOX
27206     ) |
27207       sed "s/^/$as_me: WARNING:     /" >&2
27208     ;;
27209 esac
27210 echo "$as_me:$LINENO: checking for $ac_header" >&5
27211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27213   echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215   eval "$as_ac_Header=\$ac_header_preproc"
27216 fi
27217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27219
27220 fi
27221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222   cat >>confdefs.h <<_ACEOF
27223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27224 _ACEOF
27225
27226 fi
27227
27228 done
27229
27230
27231
27232 for ac_header in sys/types.h malloc/malloc.h
27233 do
27234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27236   echo "$as_me:$LINENO: checking for $ac_header" >&5
27237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27239   echo $ECHO_N "(cached) $ECHO_C" >&6
27240 fi
27241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27243 else
27244   # Is the header compilable?
27245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27247 cat >conftest.$ac_ext <<_ACEOF
27248 /* confdefs.h.  */
27249 _ACEOF
27250 cat confdefs.h >>conftest.$ac_ext
27251 cat >>conftest.$ac_ext <<_ACEOF
27252 /* end confdefs.h.  */
27253 $ac_includes_default
27254 #include <$ac_header>
27255 _ACEOF
27256 rm -f conftest.$ac_objext
27257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27258   (eval $ac_compile) 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } &&
27265          { ac_try='test -z "$ac_c_werror_flag"
27266                          || test ! -s conftest.err'
27267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27268   (eval $ac_try) 2>&5
27269   ac_status=$?
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); }; } &&
27272          { ac_try='test -s conftest.$ac_objext'
27273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27274   (eval $ac_try) 2>&5
27275   ac_status=$?
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); }; }; then
27278   ac_header_compiler=yes
27279 else
27280   echo "$as_me: failed program was:" >&5
27281 sed 's/^/| /' conftest.$ac_ext >&5
27282
27283 ac_header_compiler=no
27284 fi
27285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27287 echo "${ECHO_T}$ac_header_compiler" >&6
27288
27289 # Is the header present?
27290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27292 cat >conftest.$ac_ext <<_ACEOF
27293 /* confdefs.h.  */
27294 _ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h.  */
27298 #include <$ac_header>
27299 _ACEOF
27300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27302   ac_status=$?
27303   grep -v '^ *+' conftest.er1 >conftest.err
27304   rm -f conftest.er1
27305   cat conftest.err >&5
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } >/dev/null; then
27308   if test -s conftest.err; then
27309     ac_cpp_err=$ac_c_preproc_warn_flag
27310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27311   else
27312     ac_cpp_err=
27313   fi
27314 else
27315   ac_cpp_err=yes
27316 fi
27317 if test -z "$ac_cpp_err"; then
27318   ac_header_preproc=yes
27319 else
27320   echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27322
27323   ac_header_preproc=no
27324 fi
27325 rm -f conftest.err conftest.$ac_ext
27326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27327 echo "${ECHO_T}$ac_header_preproc" >&6
27328
27329 # So?  What about this header?
27330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27331   yes:no: )
27332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27336     ac_header_preproc=yes
27337     ;;
27338   no:yes:* )
27339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27351     (
27352       cat <<\_ASBOX
27353 ## ----------------------------------- ##
27354 ## Report this to llvmbugs@cs.uiuc.edu ##
27355 ## ----------------------------------- ##
27356 _ASBOX
27357     ) |
27358       sed "s/^/$as_me: WARNING:     /" >&2
27359     ;;
27360 esac
27361 echo "$as_me:$LINENO: checking for $ac_header" >&5
27362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27364   echo $ECHO_N "(cached) $ECHO_C" >&6
27365 else
27366   eval "$as_ac_Header=\$ac_header_preproc"
27367 fi
27368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27370
27371 fi
27372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373   cat >>confdefs.h <<_ACEOF
27374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27375 _ACEOF
27376
27377 fi
27378
27379 done
27380
27381 if test "$ENABLE_THREADS" -eq 1 ; then
27382
27383 for ac_header in pthread.h
27384 do
27385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27387   echo "$as_me:$LINENO: checking for $ac_header" >&5
27388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27390   echo $ECHO_N "(cached) $ECHO_C" >&6
27391 fi
27392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27394 else
27395   # Is the header compilable?
27396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27398 cat >conftest.$ac_ext <<_ACEOF
27399 /* confdefs.h.  */
27400 _ACEOF
27401 cat confdefs.h >>conftest.$ac_ext
27402 cat >>conftest.$ac_ext <<_ACEOF
27403 /* end confdefs.h.  */
27404 $ac_includes_default
27405 #include <$ac_header>
27406 _ACEOF
27407 rm -f conftest.$ac_objext
27408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27409   (eval $ac_compile) 2>conftest.er1
27410   ac_status=$?
27411   grep -v '^ *+' conftest.er1 >conftest.err
27412   rm -f conftest.er1
27413   cat conftest.err >&5
27414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415   (exit $ac_status); } &&
27416          { ac_try='test -z "$ac_c_werror_flag"
27417                          || test ! -s conftest.err'
27418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27419   (eval $ac_try) 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); }; } &&
27423          { ac_try='test -s conftest.$ac_objext'
27424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425   (eval $ac_try) 2>&5
27426   ac_status=$?
27427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   ac_header_compiler=yes
27430 else
27431   echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434 ac_header_compiler=no
27435 fi
27436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27438 echo "${ECHO_T}$ac_header_compiler" >&6
27439
27440 # Is the header present?
27441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27443 cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449 #include <$ac_header>
27450 _ACEOF
27451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } >/dev/null; then
27459   if test -s conftest.err; then
27460     ac_cpp_err=$ac_c_preproc_warn_flag
27461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27462   else
27463     ac_cpp_err=
27464   fi
27465 else
27466   ac_cpp_err=yes
27467 fi
27468 if test -z "$ac_cpp_err"; then
27469   ac_header_preproc=yes
27470 else
27471   echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27473
27474   ac_header_preproc=no
27475 fi
27476 rm -f conftest.err conftest.$ac_ext
27477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478 echo "${ECHO_T}$ac_header_preproc" >&6
27479
27480 # So?  What about this header?
27481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27482   yes:no: )
27483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487     ac_header_preproc=yes
27488     ;;
27489   no:yes:* )
27490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27502     (
27503       cat <<\_ASBOX
27504 ## ----------------------------------- ##
27505 ## Report this to llvmbugs@cs.uiuc.edu ##
27506 ## ----------------------------------- ##
27507 _ASBOX
27508     ) |
27509       sed "s/^/$as_me: WARNING:     /" >&2
27510     ;;
27511 esac
27512 echo "$as_me:$LINENO: checking for $ac_header" >&5
27513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27515   echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517   eval "$as_ac_Header=\$ac_header_preproc"
27518 fi
27519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27521
27522 fi
27523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524   cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27526 _ACEOF
27527
27528 fi
27529
27530 done
27531
27532 fi
27533
27534
27535 echo "$as_me:$LINENO: checking for pid_t" >&5
27536 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27537 if test "${ac_cv_type_pid_t+set}" = set; then
27538   echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540   cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546 $ac_includes_default
27547 int
27548 main ()
27549 {
27550 if ((pid_t *) 0)
27551   return 0;
27552 if (sizeof (pid_t))
27553   return 0;
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 rm -f conftest.$ac_objext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27560   (eval $ac_compile) 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag"
27568                          || test ! -s conftest.err'
27569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570   (eval $ac_try) 2>&5
27571   ac_status=$?
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); }; } &&
27574          { ac_try='test -s conftest.$ac_objext'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_type_pid_t=yes
27581 else
27582   echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585 ac_cv_type_pid_t=no
27586 fi
27587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27588 fi
27589 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27591 if test $ac_cv_type_pid_t = yes; then
27592   :
27593 else
27594
27595 cat >>confdefs.h <<_ACEOF
27596 #define pid_t int
27597 _ACEOF
27598
27599 fi
27600
27601 echo "$as_me:$LINENO: checking for size_t" >&5
27602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27603 if test "${ac_cv_type_size_t+set}" = set; then
27604   echo $ECHO_N "(cached) $ECHO_C" >&6
27605 else
27606   cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 $ac_includes_default
27613 int
27614 main ()
27615 {
27616 if ((size_t *) 0)
27617   return 0;
27618 if (sizeof (size_t))
27619   return 0;
27620   ;
27621   return 0;
27622 }
27623 _ACEOF
27624 rm -f conftest.$ac_objext
27625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27626   (eval $ac_compile) 2>conftest.er1
27627   ac_status=$?
27628   grep -v '^ *+' conftest.er1 >conftest.err
27629   rm -f conftest.er1
27630   cat conftest.err >&5
27631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632   (exit $ac_status); } &&
27633          { ac_try='test -z "$ac_c_werror_flag"
27634                          || test ! -s conftest.err'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; } &&
27640          { ac_try='test -s conftest.$ac_objext'
27641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642   (eval $ac_try) 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; }; then
27646   ac_cv_type_size_t=yes
27647 else
27648   echo "$as_me: failed program was:" >&5
27649 sed 's/^/| /' conftest.$ac_ext >&5
27650
27651 ac_cv_type_size_t=no
27652 fi
27653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27656 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27657 if test $ac_cv_type_size_t = yes; then
27658   :
27659 else
27660
27661 cat >>confdefs.h <<_ACEOF
27662 #define size_t unsigned
27663 _ACEOF
27664
27665 fi
27666
27667 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27668 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27669 if test "${ac_cv_type_signal+set}" = set; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672   cat >conftest.$ac_ext <<_ACEOF
27673 /* confdefs.h.  */
27674 _ACEOF
27675 cat confdefs.h >>conftest.$ac_ext
27676 cat >>conftest.$ac_ext <<_ACEOF
27677 /* end confdefs.h.  */
27678 #include <sys/types.h>
27679 #include <signal.h>
27680 #ifdef signal
27681 # undef signal
27682 #endif
27683 #ifdef __cplusplus
27684 extern "C" void (*signal (int, void (*)(int)))(int);
27685 #else
27686 void (*signal ()) ();
27687 #endif
27688
27689 int
27690 main ()
27691 {
27692 int i;
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27699   (eval $ac_compile) 2>conftest.er1
27700   ac_status=$?
27701   grep -v '^ *+' conftest.er1 >conftest.err
27702   rm -f conftest.er1
27703   cat conftest.err >&5
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); } &&
27706          { ac_try='test -z "$ac_c_werror_flag"
27707                          || test ! -s conftest.err'
27708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709   (eval $ac_try) 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; } &&
27713          { ac_try='test -s conftest.$ac_objext'
27714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715   (eval $ac_try) 2>&5
27716   ac_status=$?
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); }; }; then
27719   ac_cv_type_signal=void
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724 ac_cv_type_signal=int
27725 fi
27726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27727 fi
27728 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27729 echo "${ECHO_T}$ac_cv_type_signal" >&6
27730
27731 cat >>confdefs.h <<_ACEOF
27732 #define RETSIGTYPE $ac_cv_type_signal
27733 _ACEOF
27734
27735
27736 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27737 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27738 if test "${ac_cv_struct_tm+set}" = set; then
27739   echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741   cat >conftest.$ac_ext <<_ACEOF
27742 /* confdefs.h.  */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h.  */
27747 #include <sys/types.h>
27748 #include <time.h>
27749
27750 int
27751 main ()
27752 {
27753 struct tm *tp; tp->tm_sec;
27754   ;
27755   return 0;
27756 }
27757 _ACEOF
27758 rm -f conftest.$ac_objext
27759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27760   (eval $ac_compile) 2>conftest.er1
27761   ac_status=$?
27762   grep -v '^ *+' conftest.er1 >conftest.err
27763   rm -f conftest.er1
27764   cat conftest.err >&5
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); } &&
27767          { ac_try='test -z "$ac_c_werror_flag"
27768                          || test ! -s conftest.err'
27769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770   (eval $ac_try) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; } &&
27774          { ac_try='test -s conftest.$ac_objext'
27775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27776   (eval $ac_try) 2>&5
27777   ac_status=$?
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); }; }; then
27780   ac_cv_struct_tm=time.h
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785 ac_cv_struct_tm=sys/time.h
27786 fi
27787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27788 fi
27789 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27790 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27791 if test $ac_cv_struct_tm = sys/time.h; then
27792
27793 cat >>confdefs.h <<\_ACEOF
27794 #define TM_IN_SYS_TIME 1
27795 _ACEOF
27796
27797 fi
27798
27799 echo "$as_me:$LINENO: checking for int64_t" >&5
27800 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27801 if test "${ac_cv_type_int64_t+set}" = set; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 $ac_includes_default
27811 int
27812 main ()
27813 {
27814 if ((int64_t *) 0)
27815   return 0;
27816 if (sizeof (int64_t))
27817   return 0;
27818   ;
27819   return 0;
27820 }
27821 _ACEOF
27822 rm -f conftest.$ac_objext
27823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27824   (eval $ac_compile) 2>conftest.er1
27825   ac_status=$?
27826   grep -v '^ *+' conftest.er1 >conftest.err
27827   rm -f conftest.er1
27828   cat conftest.err >&5
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); } &&
27831          { ac_try='test -z "$ac_c_werror_flag"
27832                          || test ! -s conftest.err'
27833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27834   (eval $ac_try) 2>&5
27835   ac_status=$?
27836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27837   (exit $ac_status); }; } &&
27838          { ac_try='test -s conftest.$ac_objext'
27839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27840   (eval $ac_try) 2>&5
27841   ac_status=$?
27842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843   (exit $ac_status); }; }; then
27844   ac_cv_type_int64_t=yes
27845 else
27846   echo "$as_me: failed program was:" >&5
27847 sed 's/^/| /' conftest.$ac_ext >&5
27848
27849 ac_cv_type_int64_t=no
27850 fi
27851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27852 fi
27853 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27854 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27855 if test $ac_cv_type_int64_t = yes; then
27856
27857 cat >>confdefs.h <<_ACEOF
27858 #define HAVE_INT64_T 1
27859 _ACEOF
27860
27861
27862 else
27863   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27864 echo "$as_me: error: Type int64_t required but not found" >&2;}
27865    { (exit 1); exit 1; }; }
27866 fi
27867
27868 echo "$as_me:$LINENO: checking for uint64_t" >&5
27869 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27870 if test "${ac_cv_type_uint64_t+set}" = set; then
27871   echo $ECHO_N "(cached) $ECHO_C" >&6
27872 else
27873   cat >conftest.$ac_ext <<_ACEOF
27874 /* confdefs.h.  */
27875 _ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h.  */
27879 $ac_includes_default
27880 int
27881 main ()
27882 {
27883 if ((uint64_t *) 0)
27884   return 0;
27885 if (sizeof (uint64_t))
27886   return 0;
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
27891 rm -f conftest.$ac_objext
27892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27893   (eval $ac_compile) 2>conftest.er1
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
27897   cat conftest.err >&5
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } &&
27900          { ac_try='test -z "$ac_c_werror_flag"
27901                          || test ! -s conftest.err'
27902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903   (eval $ac_try) 2>&5
27904   ac_status=$?
27905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906   (exit $ac_status); }; } &&
27907          { ac_try='test -s conftest.$ac_objext'
27908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909   (eval $ac_try) 2>&5
27910   ac_status=$?
27911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912   (exit $ac_status); }; }; then
27913   ac_cv_type_uint64_t=yes
27914 else
27915   echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918 ac_cv_type_uint64_t=no
27919 fi
27920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27921 fi
27922 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27923 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27924 if test $ac_cv_type_uint64_t = yes; then
27925
27926 cat >>confdefs.h <<_ACEOF
27927 #define HAVE_UINT64_T 1
27928 _ACEOF
27929
27930
27931 else
27932   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27933 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27934 if test "${ac_cv_type_u_int64_t+set}" = set; then
27935   echo $ECHO_N "(cached) $ECHO_C" >&6
27936 else
27937   cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943 $ac_includes_default
27944 int
27945 main ()
27946 {
27947 if ((u_int64_t *) 0)
27948   return 0;
27949 if (sizeof (u_int64_t))
27950   return 0;
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957   (eval $ac_compile) 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } &&
27964          { ac_try='test -z "$ac_c_werror_flag"
27965                          || test ! -s conftest.err'
27966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967   (eval $ac_try) 2>&5
27968   ac_status=$?
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); }; } &&
27971          { ac_try='test -s conftest.$ac_objext'
27972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973   (eval $ac_try) 2>&5
27974   ac_status=$?
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); }; }; then
27977   ac_cv_type_u_int64_t=yes
27978 else
27979   echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27981
27982 ac_cv_type_u_int64_t=no
27983 fi
27984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27985 fi
27986 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27987 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27988 if test $ac_cv_type_u_int64_t = yes; then
27989
27990 cat >>confdefs.h <<_ACEOF
27991 #define HAVE_U_INT64_T 1
27992 _ACEOF
27993
27994
27995 else
27996   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27997 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27998    { (exit 1); exit 1; }; }
27999 fi
28000
28001 fi
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28013 do
28014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28015 echo "$as_me:$LINENO: checking for $ac_func" >&5
28016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28017 if eval "test \"\${$as_ac_var+set}\" = set"; then
28018   echo $ECHO_N "(cached) $ECHO_C" >&6
28019 else
28020   cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h.  */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h.  */
28026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28028 #define $ac_func innocuous_$ac_func
28029
28030 /* System header to define __stub macros and hopefully few prototypes,
28031     which can conflict with char $ac_func (); below.
28032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28033     <limits.h> exists even on freestanding compilers.  */
28034
28035 #ifdef __STDC__
28036 # include <limits.h>
28037 #else
28038 # include <assert.h>
28039 #endif
28040
28041 #undef $ac_func
28042
28043 /* Override any gcc2 internal prototype to avoid an error.  */
28044 #ifdef __cplusplus
28045 extern "C"
28046 {
28047 #endif
28048 /* We use char because int might match the return type of a gcc2
28049    builtin and then its argument prototype would still apply.  */
28050 char $ac_func ();
28051 /* The GNU C library defines this for functions which it implements
28052     to always fail with ENOSYS.  Some functions are actually named
28053     something starting with __ and the normal name is an alias.  */
28054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28055 choke me
28056 #else
28057 char (*f) () = $ac_func;
28058 #endif
28059 #ifdef __cplusplus
28060 }
28061 #endif
28062
28063 int
28064 main ()
28065 {
28066 return f != $ac_func;
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext conftest$ac_exeext
28072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28073   (eval $ac_link) 2>conftest.er1
28074   ac_status=$?
28075   grep -v '^ *+' conftest.er1 >conftest.err
28076   rm -f conftest.er1
28077   cat conftest.err >&5
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); } &&
28080          { ac_try='test -z "$ac_c_werror_flag"
28081                          || test ! -s conftest.err'
28082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083   (eval $ac_try) 2>&5
28084   ac_status=$?
28085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086   (exit $ac_status); }; } &&
28087          { ac_try='test -s conftest$ac_exeext'
28088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28089   (eval $ac_try) 2>&5
28090   ac_status=$?
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); }; }; then
28093   eval "$as_ac_var=yes"
28094 else
28095   echo "$as_me: failed program was:" >&5
28096 sed 's/^/| /' conftest.$ac_ext >&5
28097
28098 eval "$as_ac_var=no"
28099 fi
28100 rm -f conftest.err conftest.$ac_objext \
28101       conftest$ac_exeext conftest.$ac_ext
28102 fi
28103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28105 if test `eval echo '${'$as_ac_var'}'` = yes; then
28106   cat >>confdefs.h <<_ACEOF
28107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28108 _ACEOF
28109
28110 fi
28111 done
28112
28113
28114
28115
28116
28117
28118
28119 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28120 do
28121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28122 echo "$as_me:$LINENO: checking for $ac_func" >&5
28123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28124 if eval "test \"\${$as_ac_var+set}\" = set"; then
28125   echo $ECHO_N "(cached) $ECHO_C" >&6
28126 else
28127   cat >conftest.$ac_ext <<_ACEOF
28128 /* confdefs.h.  */
28129 _ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h.  */
28133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28135 #define $ac_func innocuous_$ac_func
28136
28137 /* System header to define __stub macros and hopefully few prototypes,
28138     which can conflict with char $ac_func (); below.
28139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140     <limits.h> exists even on freestanding compilers.  */
28141
28142 #ifdef __STDC__
28143 # include <limits.h>
28144 #else
28145 # include <assert.h>
28146 #endif
28147
28148 #undef $ac_func
28149
28150 /* Override any gcc2 internal prototype to avoid an error.  */
28151 #ifdef __cplusplus
28152 extern "C"
28153 {
28154 #endif
28155 /* We use char because int might match the return type of a gcc2
28156    builtin and then its argument prototype would still apply.  */
28157 char $ac_func ();
28158 /* The GNU C library defines this for functions which it implements
28159     to always fail with ENOSYS.  Some functions are actually named
28160     something starting with __ and the normal name is an alias.  */
28161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28162 choke me
28163 #else
28164 char (*f) () = $ac_func;
28165 #endif
28166 #ifdef __cplusplus
28167 }
28168 #endif
28169
28170 int
28171 main ()
28172 {
28173 return f != $ac_func;
28174   ;
28175   return 0;
28176 }
28177 _ACEOF
28178 rm -f conftest.$ac_objext conftest$ac_exeext
28179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28180   (eval $ac_link) 2>conftest.er1
28181   ac_status=$?
28182   grep -v '^ *+' conftest.er1 >conftest.err
28183   rm -f conftest.er1
28184   cat conftest.err >&5
28185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28186   (exit $ac_status); } &&
28187          { ac_try='test -z "$ac_c_werror_flag"
28188                          || test ! -s conftest.err'
28189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28190   (eval $ac_try) 2>&5
28191   ac_status=$?
28192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193   (exit $ac_status); }; } &&
28194          { ac_try='test -s conftest$ac_exeext'
28195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28196   (eval $ac_try) 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); }; }; then
28200   eval "$as_ac_var=yes"
28201 else
28202   echo "$as_me: failed program was:" >&5
28203 sed 's/^/| /' conftest.$ac_ext >&5
28204
28205 eval "$as_ac_var=no"
28206 fi
28207 rm -f conftest.err conftest.$ac_objext \
28208       conftest$ac_exeext conftest.$ac_ext
28209 fi
28210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28212 if test `eval echo '${'$as_ac_var'}'` = yes; then
28213   cat >>confdefs.h <<_ACEOF
28214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28215 _ACEOF
28216
28217 fi
28218 done
28219
28220
28221
28222
28223
28224
28225
28226
28227 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28228 do
28229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28230 echo "$as_me:$LINENO: checking for $ac_func" >&5
28231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28232 if eval "test \"\${$as_ac_var+set}\" = set"; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235   cat >conftest.$ac_ext <<_ACEOF
28236 /* confdefs.h.  */
28237 _ACEOF
28238 cat confdefs.h >>conftest.$ac_ext
28239 cat >>conftest.$ac_ext <<_ACEOF
28240 /* end confdefs.h.  */
28241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28243 #define $ac_func innocuous_$ac_func
28244
28245 /* System header to define __stub macros and hopefully few prototypes,
28246     which can conflict with char $ac_func (); below.
28247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28248     <limits.h> exists even on freestanding compilers.  */
28249
28250 #ifdef __STDC__
28251 # include <limits.h>
28252 #else
28253 # include <assert.h>
28254 #endif
28255
28256 #undef $ac_func
28257
28258 /* Override any gcc2 internal prototype to avoid an error.  */
28259 #ifdef __cplusplus
28260 extern "C"
28261 {
28262 #endif
28263 /* We use char because int might match the return type of a gcc2
28264    builtin and then its argument prototype would still apply.  */
28265 char $ac_func ();
28266 /* The GNU C library defines this for functions which it implements
28267     to always fail with ENOSYS.  Some functions are actually named
28268     something starting with __ and the normal name is an alias.  */
28269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28270 choke me
28271 #else
28272 char (*f) () = $ac_func;
28273 #endif
28274 #ifdef __cplusplus
28275 }
28276 #endif
28277
28278 int
28279 main ()
28280 {
28281 return f != $ac_func;
28282   ;
28283   return 0;
28284 }
28285 _ACEOF
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288   (eval $ac_link) 2>conftest.er1
28289   ac_status=$?
28290   grep -v '^ *+' conftest.er1 >conftest.err
28291   rm -f conftest.er1
28292   cat conftest.err >&5
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); } &&
28295          { ac_try='test -z "$ac_c_werror_flag"
28296                          || test ! -s conftest.err'
28297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298   (eval $ac_try) 2>&5
28299   ac_status=$?
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); }; } &&
28302          { ac_try='test -s conftest$ac_exeext'
28303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304   (eval $ac_try) 2>&5
28305   ac_status=$?
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); }; }; then
28308   eval "$as_ac_var=yes"
28309 else
28310   echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28312
28313 eval "$as_ac_var=no"
28314 fi
28315 rm -f conftest.err conftest.$ac_objext \
28316       conftest$ac_exeext conftest.$ac_ext
28317 fi
28318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28320 if test `eval echo '${'$as_ac_var'}'` = yes; then
28321   cat >>confdefs.h <<_ACEOF
28322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28323 _ACEOF
28324
28325 fi
28326 done
28327
28328
28329
28330
28331
28332 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28333 do
28334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28335 echo "$as_me:$LINENO: checking for $ac_func" >&5
28336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28337 if eval "test \"\${$as_ac_var+set}\" = set"; then
28338   echo $ECHO_N "(cached) $ECHO_C" >&6
28339 else
28340   cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28348 #define $ac_func innocuous_$ac_func
28349
28350 /* System header to define __stub macros and hopefully few prototypes,
28351     which can conflict with char $ac_func (); below.
28352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28353     <limits.h> exists even on freestanding compilers.  */
28354
28355 #ifdef __STDC__
28356 # include <limits.h>
28357 #else
28358 # include <assert.h>
28359 #endif
28360
28361 #undef $ac_func
28362
28363 /* Override any gcc2 internal prototype to avoid an error.  */
28364 #ifdef __cplusplus
28365 extern "C"
28366 {
28367 #endif
28368 /* We use char because int might match the return type of a gcc2
28369    builtin and then its argument prototype would still apply.  */
28370 char $ac_func ();
28371 /* The GNU C library defines this for functions which it implements
28372     to always fail with ENOSYS.  Some functions are actually named
28373     something starting with __ and the normal name is an alias.  */
28374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28375 choke me
28376 #else
28377 char (*f) () = $ac_func;
28378 #endif
28379 #ifdef __cplusplus
28380 }
28381 #endif
28382
28383 int
28384 main ()
28385 {
28386 return f != $ac_func;
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 rm -f conftest.$ac_objext conftest$ac_exeext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28393   (eval $ac_link) 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } &&
28400          { ac_try='test -z "$ac_c_werror_flag"
28401                          || test ! -s conftest.err'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; } &&
28407          { ac_try='test -s conftest$ac_exeext'
28408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28409   (eval $ac_try) 2>&5
28410   ac_status=$?
28411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412   (exit $ac_status); }; }; then
28413   eval "$as_ac_var=yes"
28414 else
28415   echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418 eval "$as_ac_var=no"
28419 fi
28420 rm -f conftest.err conftest.$ac_objext \
28421       conftest$ac_exeext conftest.$ac_ext
28422 fi
28423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28425 if test `eval echo '${'$as_ac_var'}'` = yes; then
28426   cat >>confdefs.h <<_ACEOF
28427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28428 _ACEOF
28429
28430 fi
28431 done
28432
28433
28434
28435
28436
28437
28438
28439 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28440 do
28441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28442 echo "$as_me:$LINENO: checking for $ac_func" >&5
28443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28444 if eval "test \"\${$as_ac_var+set}\" = set"; then
28445   echo $ECHO_N "(cached) $ECHO_C" >&6
28446 else
28447   cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28455 #define $ac_func innocuous_$ac_func
28456
28457 /* System header to define __stub macros and hopefully few prototypes,
28458     which can conflict with char $ac_func (); below.
28459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28460     <limits.h> exists even on freestanding compilers.  */
28461
28462 #ifdef __STDC__
28463 # include <limits.h>
28464 #else
28465 # include <assert.h>
28466 #endif
28467
28468 #undef $ac_func
28469
28470 /* Override any gcc2 internal prototype to avoid an error.  */
28471 #ifdef __cplusplus
28472 extern "C"
28473 {
28474 #endif
28475 /* We use char because int might match the return type of a gcc2
28476    builtin and then its argument prototype would still apply.  */
28477 char $ac_func ();
28478 /* The GNU C library defines this for functions which it implements
28479     to always fail with ENOSYS.  Some functions are actually named
28480     something starting with __ and the normal name is an alias.  */
28481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28482 choke me
28483 #else
28484 char (*f) () = $ac_func;
28485 #endif
28486 #ifdef __cplusplus
28487 }
28488 #endif
28489
28490 int
28491 main ()
28492 {
28493 return f != $ac_func;
28494   ;
28495   return 0;
28496 }
28497 _ACEOF
28498 rm -f conftest.$ac_objext conftest$ac_exeext
28499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28500   (eval $ac_link) 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } &&
28507          { ac_try='test -z "$ac_c_werror_flag"
28508                          || test ! -s conftest.err'
28509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510   (eval $ac_try) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); }; } &&
28514          { ac_try='test -s conftest$ac_exeext'
28515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516   (eval $ac_try) 2>&5
28517   ac_status=$?
28518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519   (exit $ac_status); }; }; then
28520   eval "$as_ac_var=yes"
28521 else
28522   echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 eval "$as_ac_var=no"
28526 fi
28527 rm -f conftest.err conftest.$ac_objext \
28528       conftest$ac_exeext conftest.$ac_ext
28529 fi
28530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28532 if test `eval echo '${'$as_ac_var'}'` = yes; then
28533   cat >>confdefs.h <<_ACEOF
28534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28535 _ACEOF
28536
28537 fi
28538 done
28539
28540 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28541 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28542 if test "${llvm_cv_c_printf_a+set}" = set; then
28543   echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545   ac_ext=c
28546 ac_cpp='$CPP $CPPFLAGS'
28547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28550
28551  if test "$cross_compiling" = yes; then
28552   llvmac_cv_c_printf_a=no
28553 else
28554   cat >conftest.$ac_ext <<_ACEOF
28555
28556   /* confdefs.h.  */
28557 _ACEOF
28558 cat confdefs.h >>conftest.$ac_ext
28559 cat >>conftest.$ac_ext <<_ACEOF
28560 /* end confdefs.h.  */
28561
28562 #include <stdio.h>
28563 #include <stdlib.h>
28564
28565 int
28566 main ()
28567 {
28568
28569 volatile double A, B;
28570 char Buffer[100];
28571 A = 1;
28572 A /= 10.0;
28573 sprintf(Buffer, "%a", A);
28574 B = atof(Buffer);
28575 if (A != B)
28576   return (1);
28577 if (A != 0x1.999999999999ap-4)
28578   return (1);
28579 return (0);
28580   ;
28581   return 0;
28582 }
28583 _ACEOF
28584 rm -f conftest$ac_exeext
28585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28586   (eval $ac_link) 2>&5
28587   ac_status=$?
28588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591   (eval $ac_try) 2>&5
28592   ac_status=$?
28593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594   (exit $ac_status); }; }; then
28595   llvm_cv_c_printf_a=yes
28596 else
28597   echo "$as_me: program exited with status $ac_status" >&5
28598 echo "$as_me: failed program was:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ( exit $ac_status )
28602 llvmac_cv_c_printf_a=no
28603 fi
28604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28605 fi
28606  ac_ext=c
28607 ac_cpp='$CPP $CPPFLAGS'
28608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612 fi
28613 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28614 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28615  if test "$llvm_cv_c_printf_a" = "yes"; then
28616
28617 cat >>confdefs.h <<\_ACEOF
28618 #define HAVE_PRINTF_A 1
28619 _ACEOF
28620
28621  fi
28622
28623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28624 # for constant arguments.  Useless!
28625 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28627 if test "${ac_cv_working_alloca_h+set}" = set; then
28628   echo $ECHO_N "(cached) $ECHO_C" >&6
28629 else
28630   cat >conftest.$ac_ext <<_ACEOF
28631 /* confdefs.h.  */
28632 _ACEOF
28633 cat confdefs.h >>conftest.$ac_ext
28634 cat >>conftest.$ac_ext <<_ACEOF
28635 /* end confdefs.h.  */
28636 #include <alloca.h>
28637 int
28638 main ()
28639 {
28640 char *p = (char *) alloca (2 * sizeof (int));
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28647   (eval $ac_link) 2>conftest.er1
28648   ac_status=$?
28649   grep -v '^ *+' conftest.er1 >conftest.err
28650   rm -f conftest.er1
28651   cat conftest.err >&5
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); } &&
28654          { ac_try='test -z "$ac_c_werror_flag"
28655                          || test ! -s conftest.err'
28656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657   (eval $ac_try) 2>&5
28658   ac_status=$?
28659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660   (exit $ac_status); }; } &&
28661          { ac_try='test -s conftest$ac_exeext'
28662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663   (eval $ac_try) 2>&5
28664   ac_status=$?
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); }; }; then
28667   ac_cv_working_alloca_h=yes
28668 else
28669   echo "$as_me: failed program was:" >&5
28670 sed 's/^/| /' conftest.$ac_ext >&5
28671
28672 ac_cv_working_alloca_h=no
28673 fi
28674 rm -f conftest.err conftest.$ac_objext \
28675       conftest$ac_exeext conftest.$ac_ext
28676 fi
28677 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28678 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28679 if test $ac_cv_working_alloca_h = yes; then
28680
28681 cat >>confdefs.h <<\_ACEOF
28682 #define HAVE_ALLOCA_H 1
28683 _ACEOF
28684
28685 fi
28686
28687 echo "$as_me:$LINENO: checking for alloca" >&5
28688 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28689 if test "${ac_cv_func_alloca_works+set}" = set; then
28690   echo $ECHO_N "(cached) $ECHO_C" >&6
28691 else
28692   cat >conftest.$ac_ext <<_ACEOF
28693 /* confdefs.h.  */
28694 _ACEOF
28695 cat confdefs.h >>conftest.$ac_ext
28696 cat >>conftest.$ac_ext <<_ACEOF
28697 /* end confdefs.h.  */
28698 #ifdef __GNUC__
28699 # define alloca __builtin_alloca
28700 #else
28701 # ifdef _MSC_VER
28702 #  include <malloc.h>
28703 #  define alloca _alloca
28704 # else
28705 #  if HAVE_ALLOCA_H
28706 #   include <alloca.h>
28707 #  else
28708 #   ifdef _AIX
28709  #pragma alloca
28710 #   else
28711 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28712 char *alloca ();
28713 #    endif
28714 #   endif
28715 #  endif
28716 # endif
28717 #endif
28718
28719 int
28720 main ()
28721 {
28722 char *p = (char *) alloca (1);
28723   ;
28724   return 0;
28725 }
28726 _ACEOF
28727 rm -f conftest.$ac_objext conftest$ac_exeext
28728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28729   (eval $ac_link) 2>conftest.er1
28730   ac_status=$?
28731   grep -v '^ *+' conftest.er1 >conftest.err
28732   rm -f conftest.er1
28733   cat conftest.err >&5
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); } &&
28736          { ac_try='test -z "$ac_c_werror_flag"
28737                          || test ! -s conftest.err'
28738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739   (eval $ac_try) 2>&5
28740   ac_status=$?
28741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742   (exit $ac_status); }; } &&
28743          { ac_try='test -s conftest$ac_exeext'
28744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28745   (eval $ac_try) 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; }; then
28749   ac_cv_func_alloca_works=yes
28750 else
28751   echo "$as_me: failed program was:" >&5
28752 sed 's/^/| /' conftest.$ac_ext >&5
28753
28754 ac_cv_func_alloca_works=no
28755 fi
28756 rm -f conftest.err conftest.$ac_objext \
28757       conftest$ac_exeext conftest.$ac_ext
28758 fi
28759 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28760 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28761
28762 if test $ac_cv_func_alloca_works = yes; then
28763
28764 cat >>confdefs.h <<\_ACEOF
28765 #define HAVE_ALLOCA 1
28766 _ACEOF
28767
28768 else
28769   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28770 # that cause trouble.  Some versions do not even contain alloca or
28771 # contain a buggy version.  If you still want to use their alloca,
28772 # use ar to extract alloca.o from them instead of compiling alloca.c.
28773
28774 ALLOCA=alloca.$ac_objext
28775
28776 cat >>confdefs.h <<\_ACEOF
28777 #define C_ALLOCA 1
28778 _ACEOF
28779
28780
28781 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28782 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28783 if test "${ac_cv_os_cray+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786   cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792 #if defined(CRAY) && ! defined(CRAY2)
28793 webecray
28794 #else
28795 wenotbecray
28796 #endif
28797
28798 _ACEOF
28799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28800   $EGREP "webecray" >/dev/null 2>&1; then
28801   ac_cv_os_cray=yes
28802 else
28803   ac_cv_os_cray=no
28804 fi
28805 rm -f conftest*
28806
28807 fi
28808 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28809 echo "${ECHO_T}$ac_cv_os_cray" >&6
28810 if test $ac_cv_os_cray = yes; then
28811   for ac_func in _getb67 GETB67 getb67; do
28812     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 echo "$as_me:$LINENO: checking for $ac_func" >&5
28814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28815 if eval "test \"\${$as_ac_var+set}\" = set"; then
28816   echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818   cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h.  */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h.  */
28824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28826 #define $ac_func innocuous_$ac_func
28827
28828 /* System header to define __stub macros and hopefully few prototypes,
28829     which can conflict with char $ac_func (); below.
28830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28831     <limits.h> exists even on freestanding compilers.  */
28832
28833 #ifdef __STDC__
28834 # include <limits.h>
28835 #else
28836 # include <assert.h>
28837 #endif
28838
28839 #undef $ac_func
28840
28841 /* Override any gcc2 internal prototype to avoid an error.  */
28842 #ifdef __cplusplus
28843 extern "C"
28844 {
28845 #endif
28846 /* We use char because int might match the return type of a gcc2
28847    builtin and then its argument prototype would still apply.  */
28848 char $ac_func ();
28849 /* The GNU C library defines this for functions which it implements
28850     to always fail with ENOSYS.  Some functions are actually named
28851     something starting with __ and the normal name is an alias.  */
28852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28853 choke me
28854 #else
28855 char (*f) () = $ac_func;
28856 #endif
28857 #ifdef __cplusplus
28858 }
28859 #endif
28860
28861 int
28862 main ()
28863 {
28864 return f != $ac_func;
28865   ;
28866   return 0;
28867 }
28868 _ACEOF
28869 rm -f conftest.$ac_objext conftest$ac_exeext
28870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28871   (eval $ac_link) 2>conftest.er1
28872   ac_status=$?
28873   grep -v '^ *+' conftest.er1 >conftest.err
28874   rm -f conftest.er1
28875   cat conftest.err >&5
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); } &&
28878          { ac_try='test -z "$ac_c_werror_flag"
28879                          || test ! -s conftest.err'
28880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881   (eval $ac_try) 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; } &&
28885          { ac_try='test -s conftest$ac_exeext'
28886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28887   (eval $ac_try) 2>&5
28888   ac_status=$?
28889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); }; }; then
28891   eval "$as_ac_var=yes"
28892 else
28893   echo "$as_me: failed program was:" >&5
28894 sed 's/^/| /' conftest.$ac_ext >&5
28895
28896 eval "$as_ac_var=no"
28897 fi
28898 rm -f conftest.err conftest.$ac_objext \
28899       conftest$ac_exeext conftest.$ac_ext
28900 fi
28901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28903 if test `eval echo '${'$as_ac_var'}'` = yes; then
28904
28905 cat >>confdefs.h <<_ACEOF
28906 #define CRAY_STACKSEG_END $ac_func
28907 _ACEOF
28908
28909     break
28910 fi
28911
28912   done
28913 fi
28914
28915 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28916 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28917 if test "${ac_cv_c_stack_direction+set}" = set; then
28918   echo $ECHO_N "(cached) $ECHO_C" >&6
28919 else
28920   if test "$cross_compiling" = yes; then
28921   ac_cv_c_stack_direction=0
28922 else
28923   cat >conftest.$ac_ext <<_ACEOF
28924 /* confdefs.h.  */
28925 _ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h.  */
28929 int
28930 find_stack_direction ()
28931 {
28932   static char *addr = 0;
28933   auto char dummy;
28934   if (addr == 0)
28935     {
28936       addr = &dummy;
28937       return find_stack_direction ();
28938     }
28939   else
28940     return (&dummy > addr) ? 1 : -1;
28941 }
28942
28943 int
28944 main ()
28945 {
28946   exit (find_stack_direction () < 0);
28947 }
28948 _ACEOF
28949 rm -f conftest$ac_exeext
28950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28951   (eval $ac_link) 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28956   (eval $ac_try) 2>&5
28957   ac_status=$?
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); }; }; then
28960   ac_cv_c_stack_direction=1
28961 else
28962   echo "$as_me: program exited with status $ac_status" >&5
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966 ( exit $ac_status )
28967 ac_cv_c_stack_direction=-1
28968 fi
28969 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28970 fi
28971 fi
28972 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28973 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28974
28975 cat >>confdefs.h <<_ACEOF
28976 #define STACK_DIRECTION $ac_cv_c_stack_direction
28977 _ACEOF
28978
28979
28980 fi
28981
28982
28983 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28984 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28985 if test "${ac_cv_func_rand48+set}" = set; then
28986   echo $ECHO_N "(cached) $ECHO_C" >&6
28987 else
28988   ac_ext=cc
28989 ac_cpp='$CXXCPP $CPPFLAGS'
28990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28993
28994    cat >conftest.$ac_ext <<_ACEOF
28995 /* confdefs.h.  */
28996 _ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h.  */
29000 #include <stdlib.h>
29001 int
29002 main ()
29003 {
29004 srand48(0);lrand48();drand48();
29005   ;
29006   return 0;
29007 }
29008 _ACEOF
29009 rm -f conftest.$ac_objext
29010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29011   (eval $ac_compile) 2>conftest.er1
29012   ac_status=$?
29013   grep -v '^ *+' conftest.er1 >conftest.err
29014   rm -f conftest.er1
29015   cat conftest.err >&5
29016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017   (exit $ac_status); } &&
29018          { ac_try='test -z "$ac_cxx_werror_flag"
29019                          || test ! -s conftest.err'
29020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021   (eval $ac_try) 2>&5
29022   ac_status=$?
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); }; } &&
29025          { ac_try='test -s conftest.$ac_objext'
29026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027   (eval $ac_try) 2>&5
29028   ac_status=$?
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); }; }; then
29031   ac_cv_func_rand48=yes
29032 else
29033   echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29035
29036 ac_cv_func_rand48=no
29037 fi
29038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29039   ac_ext=c
29040 ac_cpp='$CPP $CPPFLAGS'
29041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29044
29045 fi
29046 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29047 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29048
29049 if test "$ac_cv_func_rand48" = "yes" ; then
29050
29051 cat >>confdefs.h <<\_ACEOF
29052 #define HAVE_RAND48 1
29053 _ACEOF
29054
29055 fi
29056
29057
29058 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29059 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29060 if test "${ac_cv_cxx_namespaces+set}" = set; then
29061   echo $ECHO_N "(cached) $ECHO_C" >&6
29062 else
29063   ac_ext=cc
29064 ac_cpp='$CXXCPP $CPPFLAGS'
29065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29068
29069  cat >conftest.$ac_ext <<_ACEOF
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075 namespace Outer { namespace Inner { int i = 0; }}
29076 int
29077 main ()
29078 {
29079 using namespace Outer::Inner; return i;
29080   ;
29081   return 0;
29082 }
29083 _ACEOF
29084 rm -f conftest.$ac_objext
29085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29086   (eval $ac_compile) 2>conftest.er1
29087   ac_status=$?
29088   grep -v '^ *+' conftest.er1 >conftest.err
29089   rm -f conftest.er1
29090   cat conftest.err >&5
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); } &&
29093          { ac_try='test -z "$ac_cxx_werror_flag"
29094                          || test ! -s conftest.err'
29095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096   (eval $ac_try) 2>&5
29097   ac_status=$?
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); }; } &&
29100          { ac_try='test -s conftest.$ac_objext'
29101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102   (eval $ac_try) 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ac_cv_cxx_namespaces=yes
29107 else
29108   echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29110
29111 ac_cv_cxx_namespaces=no
29112 fi
29113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29114  ac_ext=c
29115 ac_cpp='$CPP $CPPFLAGS'
29116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29119
29120
29121 fi
29122 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29123 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29124 if test "$ac_cv_cxx_namespaces" = yes; then
29125
29126 cat >>confdefs.h <<\_ACEOF
29127 #define HAVE_NAMESPACES
29128 _ACEOF
29129
29130 fi
29131
29132 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29133 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29134 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29135   echo $ECHO_N "(cached) $ECHO_C" >&6
29136 else
29137
29138   ac_ext=cc
29139 ac_cpp='$CXXCPP $CPPFLAGS'
29140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29143
29144   cat >conftest.$ac_ext <<_ACEOF
29145 /* confdefs.h.  */
29146 _ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h.  */
29150 #include <ext/hash_map>
29151 #ifdef HAVE_NAMESPACES
29152 using namespace std;
29153 #endif
29154 int
29155 main ()
29156 {
29157 hash_map<int, int> t;
29158   ;
29159   return 0;
29160 }
29161 _ACEOF
29162 rm -f conftest.$ac_objext
29163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29164   (eval $ac_compile) 2>conftest.er1
29165   ac_status=$?
29166   grep -v '^ *+' conftest.er1 >conftest.err
29167   rm -f conftest.er1
29168   cat conftest.err >&5
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); } &&
29171          { ac_try='test -z "$ac_cxx_werror_flag"
29172                          || test ! -s conftest.err'
29173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174   (eval $ac_try) 2>&5
29175   ac_status=$?
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); }; } &&
29178          { ac_try='test -s conftest.$ac_objext'
29179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29180   (eval $ac_try) 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; }; then
29184   ac_cv_cxx_have_std_ext_hash_map=yes
29185 else
29186   echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29188
29189 ac_cv_cxx_have_std_ext_hash_map=no
29190 fi
29191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29192   ac_ext=c
29193 ac_cpp='$CPP $CPPFLAGS'
29194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29197
29198 fi
29199 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29200 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29201  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29202  then
29203
29204 cat >>confdefs.h <<\_ACEOF
29205 #define HAVE_STD_EXT_HASH_MAP 1
29206 _ACEOF
29207
29208  else
29209
29210 cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_STD_EXT_HASH_MAP 0
29212 _ACEOF
29213
29214  fi
29215
29216  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29217 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29218 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29219   echo $ECHO_N "(cached) $ECHO_C" >&6
29220 else
29221
29222   ac_ext=cc
29223 ac_cpp='$CXXCPP $CPPFLAGS'
29224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29227
29228   cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234 #include <ext/hash_map>
29235 #ifdef HAVE_NAMESPACES
29236 using namespace __gnu_cxx;
29237 #endif
29238 int
29239 main ()
29240 {
29241 hash_map<int,int> t;
29242   ;
29243   return 0;
29244 }
29245 _ACEOF
29246 rm -f conftest.$ac_objext
29247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29248   (eval $ac_compile) 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } &&
29255          { ac_try='test -z "$ac_cxx_werror_flag"
29256                          || test ! -s conftest.err'
29257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258   (eval $ac_try) 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); }; } &&
29262          { ac_try='test -s conftest.$ac_objext'
29263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264   (eval $ac_try) 2>&5
29265   ac_status=$?
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); }; }; then
29268   ac_cv_cxx_have_gnu_ext_hash_map=yes
29269 else
29270   echo "$as_me: failed program was:" >&5
29271 sed 's/^/| /' conftest.$ac_ext >&5
29272
29273 ac_cv_cxx_have_gnu_ext_hash_map=no
29274 fi
29275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29276   ac_ext=c
29277 ac_cpp='$CPP $CPPFLAGS'
29278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29281
29282 fi
29283 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29284 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29285  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29286  then
29287
29288 cat >>confdefs.h <<\_ACEOF
29289 #define HAVE_GNU_EXT_HASH_MAP 1
29290 _ACEOF
29291
29292  else
29293
29294 cat >>confdefs.h <<\_ACEOF
29295 #define HAVE_GNU_EXT_HASH_MAP 0
29296 _ACEOF
29297
29298  fi
29299
29300  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29301 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29302 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29303   echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305
29306   ac_ext=cc
29307 ac_cpp='$CXXCPP $CPPFLAGS'
29308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29311
29312   cat >conftest.$ac_ext <<_ACEOF
29313 /* confdefs.h.  */
29314 _ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h.  */
29318 #include <hash_map>
29319 int
29320 main ()
29321 {
29322 hash_map<int,int> t;
29323   ;
29324   return 0;
29325 }
29326 _ACEOF
29327 rm -f conftest.$ac_objext
29328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29329   (eval $ac_compile) 2>conftest.er1
29330   ac_status=$?
29331   grep -v '^ *+' conftest.er1 >conftest.err
29332   rm -f conftest.er1
29333   cat conftest.err >&5
29334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335   (exit $ac_status); } &&
29336          { ac_try='test -z "$ac_cxx_werror_flag"
29337                          || test ! -s conftest.err'
29338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339   (eval $ac_try) 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); }; } &&
29343          { ac_try='test -s conftest.$ac_objext'
29344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345   (eval $ac_try) 2>&5
29346   ac_status=$?
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); }; }; then
29349   ac_cv_cxx_have_global_hash_map=yes
29350 else
29351   echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29353
29354 ac_cv_cxx_have_global_hash_map=no
29355 fi
29356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29357   ac_ext=c
29358 ac_cpp='$CPP $CPPFLAGS'
29359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29362
29363 fi
29364 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29365 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29366  if test "$ac_cv_cxx_have_global_hash_map" = yes
29367  then
29368
29369 cat >>confdefs.h <<\_ACEOF
29370 #define HAVE_GLOBAL_HASH_MAP 1
29371 _ACEOF
29372
29373  else
29374
29375 cat >>confdefs.h <<\_ACEOF
29376 #define HAVE_GLOBAL_HASH_MAP 0
29377 _ACEOF
29378
29379  fi
29380
29381 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29382 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29383 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29384   echo $ECHO_N "(cached) $ECHO_C" >&6
29385 else
29386
29387   ac_ext=cc
29388 ac_cpp='$CXXCPP $CPPFLAGS'
29389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29392
29393   cat >conftest.$ac_ext <<_ACEOF
29394 /* confdefs.h.  */
29395 _ACEOF
29396 cat confdefs.h >>conftest.$ac_ext
29397 cat >>conftest.$ac_ext <<_ACEOF
29398 /* end confdefs.h.  */
29399 #include <ext/hash_set>
29400 #ifdef HAVE_NAMESPACES
29401 using namespace std;
29402 #endif
29403 int
29404 main ()
29405 {
29406 hash_set<int> t;
29407   ;
29408   return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext
29412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29413   (eval $ac_compile) 2>conftest.er1
29414   ac_status=$?
29415   grep -v '^ *+' conftest.er1 >conftest.err
29416   rm -f conftest.er1
29417   cat conftest.err >&5
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); } &&
29420          { ac_try='test -z "$ac_cxx_werror_flag"
29421                          || test ! -s conftest.err'
29422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423   (eval $ac_try) 2>&5
29424   ac_status=$?
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); }; } &&
29427          { ac_try='test -s conftest.$ac_objext'
29428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429   (eval $ac_try) 2>&5
29430   ac_status=$?
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); }; }; then
29433   ac_cv_cxx_have_std_ext_hash_set=yes
29434 else
29435   echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 ac_cv_cxx_have_std_ext_hash_set=no
29439 fi
29440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29441   ac_ext=c
29442 ac_cpp='$CPP $CPPFLAGS'
29443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29446
29447 fi
29448 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29449 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29450  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29451  then
29452
29453 cat >>confdefs.h <<\_ACEOF
29454 #define HAVE_STD_EXT_HASH_SET 1
29455 _ACEOF
29456
29457  else
29458
29459 cat >>confdefs.h <<\_ACEOF
29460 #define HAVE_STD_EXT_HASH_SET 0
29461 _ACEOF
29462
29463  fi
29464
29465  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29466 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29467 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29468   echo $ECHO_N "(cached) $ECHO_C" >&6
29469 else
29470
29471   ac_ext=cc
29472 ac_cpp='$CXXCPP $CPPFLAGS'
29473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29476
29477   cat >conftest.$ac_ext <<_ACEOF
29478 /* confdefs.h.  */
29479 _ACEOF
29480 cat confdefs.h >>conftest.$ac_ext
29481 cat >>conftest.$ac_ext <<_ACEOF
29482 /* end confdefs.h.  */
29483 #include <ext/hash_set>
29484 #ifdef HAVE_NAMESPACES
29485 using namespace __gnu_cxx;
29486 #endif
29487 int
29488 main ()
29489 {
29490 hash_set<int> t;
29491   ;
29492   return 0;
29493 }
29494 _ACEOF
29495 rm -f conftest.$ac_objext
29496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29497   (eval $ac_compile) 2>conftest.er1
29498   ac_status=$?
29499   grep -v '^ *+' conftest.er1 >conftest.err
29500   rm -f conftest.er1
29501   cat conftest.err >&5
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } &&
29504          { ac_try='test -z "$ac_cxx_werror_flag"
29505                          || test ! -s conftest.err'
29506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29507   (eval $ac_try) 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; } &&
29511          { ac_try='test -s conftest.$ac_objext'
29512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29513   (eval $ac_try) 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; }; then
29517   ac_cv_cxx_have_gnu_ext_hash_set=yes
29518 else
29519   echo "$as_me: failed program was:" >&5
29520 sed 's/^/| /' conftest.$ac_ext >&5
29521
29522 ac_cv_cxx_have_gnu_ext_hash_set=no
29523 fi
29524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29525   ac_ext=c
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29530
29531 fi
29532 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29533 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29534  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29535  then
29536
29537 cat >>confdefs.h <<\_ACEOF
29538 #define HAVE_GNU_EXT_HASH_SET 1
29539 _ACEOF
29540
29541  else
29542
29543 cat >>confdefs.h <<\_ACEOF
29544 #define HAVE_GNU_EXT_HASH_SET 0
29545 _ACEOF
29546
29547  fi
29548
29549  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29550 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29551 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29552   echo $ECHO_N "(cached) $ECHO_C" >&6
29553 else
29554
29555   ac_ext=cc
29556 ac_cpp='$CXXCPP $CPPFLAGS'
29557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29560
29561   cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 #include <hash_set>
29568 int
29569 main ()
29570 {
29571 hash_set<int> t; return 0;
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 rm -f conftest.$ac_objext
29577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29578   (eval $ac_compile) 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } &&
29585          { ac_try='test -z "$ac_cxx_werror_flag"
29586                          || test ! -s conftest.err'
29587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29588   (eval $ac_try) 2>&5
29589   ac_status=$?
29590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591   (exit $ac_status); }; } &&
29592          { ac_try='test -s conftest.$ac_objext'
29593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594   (eval $ac_try) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); }; }; then
29598   ac_cv_cxx_have_global_hash_set=yes
29599 else
29600   echo "$as_me: failed program was:" >&5
29601 sed 's/^/| /' conftest.$ac_ext >&5
29602
29603 ac_cv_cxx_have_global_hash_set=no
29604 fi
29605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29606   ac_ext=c
29607 ac_cpp='$CPP $CPPFLAGS'
29608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29611
29612 fi
29613 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29614 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29615  if test "$ac_cv_cxx_have_global_hash_set" = yes
29616  then
29617
29618 cat >>confdefs.h <<\_ACEOF
29619 #define HAVE_GLOBAL_HASH_SET 1
29620 _ACEOF
29621
29622  else
29623
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_GLOBAL_HASH_SET 0
29626 _ACEOF
29627
29628  fi
29629
29630 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29631 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29632 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29633   echo $ECHO_N "(cached) $ECHO_C" >&6
29634 else
29635
29636   ac_ext=cc
29637 ac_cpp='$CXXCPP $CPPFLAGS'
29638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29641
29642   cat >conftest.$ac_ext <<_ACEOF
29643 /* confdefs.h.  */
29644 _ACEOF
29645 cat confdefs.h >>conftest.$ac_ext
29646 cat >>conftest.$ac_ext <<_ACEOF
29647 /* end confdefs.h.  */
29648 #include <iterator>
29649 #ifdef HAVE_NAMESPACES
29650 using namespace std;
29651 #endif
29652 int
29653 main ()
29654 {
29655 iterator<int,int,int> t; return 0;
29656   ;
29657   return 0;
29658 }
29659 _ACEOF
29660 rm -f conftest.$ac_objext
29661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29662   (eval $ac_compile) 2>conftest.er1
29663   ac_status=$?
29664   grep -v '^ *+' conftest.er1 >conftest.err
29665   rm -f conftest.er1
29666   cat conftest.err >&5
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } &&
29669          { ac_try='test -z "$ac_cxx_werror_flag"
29670                          || test ! -s conftest.err'
29671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672   (eval $ac_try) 2>&5
29673   ac_status=$?
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); }; } &&
29676          { ac_try='test -s conftest.$ac_objext'
29677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29678   (eval $ac_try) 2>&5
29679   ac_status=$?
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); }; }; then
29682   ac_cv_cxx_have_std_iterator=yes
29683 else
29684   echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29686
29687 ac_cv_cxx_have_std_iterator=no
29688 fi
29689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29690   ac_ext=c
29691 ac_cpp='$CPP $CPPFLAGS'
29692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29695
29696
29697 fi
29698 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29699 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29700 if test "$ac_cv_cxx_have_std_iterator" = yes
29701 then
29702
29703 cat >>confdefs.h <<\_ACEOF
29704 #define HAVE_STD_ITERATOR 1
29705 _ACEOF
29706
29707 else
29708
29709 cat >>confdefs.h <<\_ACEOF
29710 #define HAVE_STD_ITERATOR 0
29711 _ACEOF
29712
29713 fi
29714
29715 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29716 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29717 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29718   echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29720
29721   ac_ext=cc
29722 ac_cpp='$CXXCPP $CPPFLAGS'
29723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29726
29727   cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h.  */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h.  */
29733 #include <iterator>
29734 #ifdef HAVE_NAMESPACES
29735 using namespace std;
29736 #endif
29737 int
29738 main ()
29739 {
29740 bidirectional_iterator<int,int> t; return 0;
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29747   (eval $ac_compile) 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_cxx_werror_flag"
29755                          || test ! -s conftest.err'
29756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757   (eval $ac_try) 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); }; } &&
29761          { ac_try='test -s conftest.$ac_objext'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; }; then
29767   ac_cv_cxx_have_bi_iterator=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772 ac_cv_cxx_have_bi_iterator=no
29773 fi
29774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29775   ac_ext=c
29776 ac_cpp='$CPP $CPPFLAGS'
29777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29780
29781
29782 fi
29783 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29784 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29785 if test "$ac_cv_cxx_have_bi_iterator" = yes
29786 then
29787
29788 cat >>confdefs.h <<\_ACEOF
29789 #define HAVE_BI_ITERATOR 1
29790 _ACEOF
29791
29792 else
29793
29794 cat >>confdefs.h <<\_ACEOF
29795 #define HAVE_BI_ITERATOR 0
29796 _ACEOF
29797
29798 fi
29799
29800 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29801 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29802 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29803   echo $ECHO_N "(cached) $ECHO_C" >&6
29804 else
29805
29806   ac_ext=cc
29807 ac_cpp='$CXXCPP $CPPFLAGS'
29808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29811
29812   cat >conftest.$ac_ext <<_ACEOF
29813 /* confdefs.h.  */
29814 _ACEOF
29815 cat confdefs.h >>conftest.$ac_ext
29816 cat >>conftest.$ac_ext <<_ACEOF
29817 /* end confdefs.h.  */
29818 #include <iterator>
29819 #ifdef HAVE_NAMESPACES
29820 using namespace std;
29821 #endif
29822 int
29823 main ()
29824 {
29825 forward_iterator<int,int> t; return 0;
29826   ;
29827   return 0;
29828 }
29829 _ACEOF
29830 rm -f conftest.$ac_objext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29832   (eval $ac_compile) 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } &&
29839          { ac_try='test -z "$ac_cxx_werror_flag"
29840                          || test ! -s conftest.err'
29841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842   (eval $ac_try) 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest.$ac_objext'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; }; then
29852   ac_cv_cxx_have_fwd_iterator=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857 ac_cv_cxx_have_fwd_iterator=no
29858 fi
29859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29860   ac_ext=c
29861 ac_cpp='$CPP $CPPFLAGS'
29862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29865
29866
29867 fi
29868 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29869 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29870 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29871 then
29872
29873 cat >>confdefs.h <<\_ACEOF
29874 #define HAVE_FWD_ITERATOR 1
29875 _ACEOF
29876
29877 else
29878
29879 cat >>confdefs.h <<\_ACEOF
29880 #define HAVE_FWD_ITERATOR 0
29881 _ACEOF
29882
29883 fi
29884
29885
29886 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29887 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29888 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29889   echo $ECHO_N "(cached) $ECHO_C" >&6
29890 else
29891   ac_ext=cc
29892 ac_cpp='$CXXCPP $CPPFLAGS'
29893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29896
29897    cat >conftest.$ac_ext <<_ACEOF
29898 /* confdefs.h.  */
29899 _ACEOF
29900 cat confdefs.h >>conftest.$ac_ext
29901 cat >>conftest.$ac_ext <<_ACEOF
29902 /* end confdefs.h.  */
29903 #include <math.h>
29904 int
29905 main ()
29906 {
29907 float f; isnan(f);
29908   ;
29909   return 0;
29910 }
29911 _ACEOF
29912 rm -f conftest.$ac_objext
29913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29914   (eval $ac_compile) 2>conftest.er1
29915   ac_status=$?
29916   grep -v '^ *+' conftest.er1 >conftest.err
29917   rm -f conftest.er1
29918   cat conftest.err >&5
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); } &&
29921          { ac_try='test -z "$ac_cxx_werror_flag"
29922                          || test ! -s conftest.err'
29923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924   (eval $ac_try) 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; } &&
29928          { ac_try='test -s conftest.$ac_objext'
29929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930   (eval $ac_try) 2>&5
29931   ac_status=$?
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); }; }; then
29934   ac_cv_func_isnan_in_math_h=yes
29935 else
29936   echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29938
29939 ac_cv_func_isnan_in_math_h=no
29940 fi
29941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29942   ac_ext=c
29943 ac_cpp='$CPP $CPPFLAGS'
29944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29947
29948 fi
29949 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29950 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29951
29952
29953 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29954
29955 cat >>confdefs.h <<\_ACEOF
29956 #define HAVE_ISNAN_IN_MATH_H 1
29957 _ACEOF
29958
29959 fi
29960
29961 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29962 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29963 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29964   echo $ECHO_N "(cached) $ECHO_C" >&6
29965 else
29966   ac_ext=cc
29967 ac_cpp='$CXXCPP $CPPFLAGS'
29968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29971
29972    cat >conftest.$ac_ext <<_ACEOF
29973 /* confdefs.h.  */
29974 _ACEOF
29975 cat confdefs.h >>conftest.$ac_ext
29976 cat >>conftest.$ac_ext <<_ACEOF
29977 /* end confdefs.h.  */
29978 #include <cmath>
29979 int
29980 main ()
29981 {
29982 float f; isnan(f);
29983   ;
29984   return 0;
29985 }
29986 _ACEOF
29987 rm -f conftest.$ac_objext
29988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29989   (eval $ac_compile) 2>conftest.er1
29990   ac_status=$?
29991   grep -v '^ *+' conftest.er1 >conftest.err
29992   rm -f conftest.er1
29993   cat conftest.err >&5
29994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995   (exit $ac_status); } &&
29996          { ac_try='test -z "$ac_cxx_werror_flag"
29997                          || test ! -s conftest.err'
29998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999   (eval $ac_try) 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; } &&
30003          { ac_try='test -s conftest.$ac_objext'
30004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005   (eval $ac_try) 2>&5
30006   ac_status=$?
30007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); }; }; then
30009   ac_cv_func_isnan_in_cmath=yes
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014 ac_cv_func_isnan_in_cmath=no
30015 fi
30016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30017   ac_ext=c
30018 ac_cpp='$CPP $CPPFLAGS'
30019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30022
30023 fi
30024 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30025 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30026
30027 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30028
30029 cat >>confdefs.h <<\_ACEOF
30030 #define HAVE_ISNAN_IN_CMATH 1
30031 _ACEOF
30032
30033 fi
30034
30035 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30036 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30037 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30038   echo $ECHO_N "(cached) $ECHO_C" >&6
30039 else
30040   ac_ext=cc
30041 ac_cpp='$CXXCPP $CPPFLAGS'
30042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30045
30046    cat >conftest.$ac_ext <<_ACEOF
30047 /* confdefs.h.  */
30048 _ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h.  */
30052 #include <cmath>
30053 int
30054 main ()
30055 {
30056 float f; std::isnan(f);
30057   ;
30058   return 0;
30059 }
30060 _ACEOF
30061 rm -f conftest.$ac_objext
30062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30063   (eval $ac_compile) 2>conftest.er1
30064   ac_status=$?
30065   grep -v '^ *+' conftest.er1 >conftest.err
30066   rm -f conftest.er1
30067   cat conftest.err >&5
30068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069   (exit $ac_status); } &&
30070          { ac_try='test -z "$ac_cxx_werror_flag"
30071                          || test ! -s conftest.err'
30072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073   (eval $ac_try) 2>&5
30074   ac_status=$?
30075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076   (exit $ac_status); }; } &&
30077          { ac_try='test -s conftest.$ac_objext'
30078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079   (eval $ac_try) 2>&5
30080   ac_status=$?
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); }; }; then
30083   ac_cv_func_std_isnan_in_cmath=yes
30084 else
30085   echo "$as_me: failed program was:" >&5
30086 sed 's/^/| /' conftest.$ac_ext >&5
30087
30088 ac_cv_func_std_isnan_in_cmath=no
30089 fi
30090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30091   ac_ext=c
30092 ac_cpp='$CPP $CPPFLAGS'
30093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30096
30097 fi
30098 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30099 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30100
30101 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30102
30103 cat >>confdefs.h <<\_ACEOF
30104 #define HAVE_STD_ISNAN_IN_CMATH 1
30105 _ACEOF
30106
30107 fi
30108
30109
30110 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30111 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30112 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30113   echo $ECHO_N "(cached) $ECHO_C" >&6
30114 else
30115   ac_ext=cc
30116 ac_cpp='$CXXCPP $CPPFLAGS'
30117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30120
30121    cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h.  */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h.  */
30127 #include <math.h>
30128 int
30129 main ()
30130 {
30131 float f; isinf(f);
30132   ;
30133   return 0;
30134 }
30135 _ACEOF
30136 rm -f conftest.$ac_objext
30137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30138   (eval $ac_compile) 2>conftest.er1
30139   ac_status=$?
30140   grep -v '^ *+' conftest.er1 >conftest.err
30141   rm -f conftest.er1
30142   cat conftest.err >&5
30143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144   (exit $ac_status); } &&
30145          { ac_try='test -z "$ac_cxx_werror_flag"
30146                          || test ! -s conftest.err'
30147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148   (eval $ac_try) 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; } &&
30152          { ac_try='test -s conftest.$ac_objext'
30153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30154   (eval $ac_try) 2>&5
30155   ac_status=$?
30156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30157   (exit $ac_status); }; }; then
30158   ac_cv_func_isinf_in_math_h=yes
30159 else
30160   echo "$as_me: failed program was:" >&5
30161 sed 's/^/| /' conftest.$ac_ext >&5
30162
30163 ac_cv_func_isinf_in_math_h=no
30164 fi
30165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30166   ac_ext=c
30167 ac_cpp='$CPP $CPPFLAGS'
30168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30171
30172 fi
30173 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30174 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30175
30176 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30177
30178 cat >>confdefs.h <<\_ACEOF
30179 #define HAVE_ISINF_IN_MATH_H 1
30180 _ACEOF
30181
30182 fi
30183
30184 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30185 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30186 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30187   echo $ECHO_N "(cached) $ECHO_C" >&6
30188 else
30189   ac_ext=cc
30190 ac_cpp='$CXXCPP $CPPFLAGS'
30191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30194
30195    cat >conftest.$ac_ext <<_ACEOF
30196 /* confdefs.h.  */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h.  */
30201 #include <cmath>
30202 int
30203 main ()
30204 {
30205 float f; isinf(f);
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30212   (eval $ac_compile) 2>conftest.er1
30213   ac_status=$?
30214   grep -v '^ *+' conftest.er1 >conftest.err
30215   rm -f conftest.er1
30216   cat conftest.err >&5
30217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218   (exit $ac_status); } &&
30219          { ac_try='test -z "$ac_cxx_werror_flag"
30220                          || test ! -s conftest.err'
30221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30222   (eval $ac_try) 2>&5
30223   ac_status=$?
30224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); }; } &&
30226          { ac_try='test -s conftest.$ac_objext'
30227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30228   (eval $ac_try) 2>&5
30229   ac_status=$?
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); }; }; then
30232   ac_cv_func_isinf_in_cmath=yes
30233 else
30234   echo "$as_me: failed program was:" >&5
30235 sed 's/^/| /' conftest.$ac_ext >&5
30236
30237 ac_cv_func_isinf_in_cmath=no
30238 fi
30239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30240   ac_ext=c
30241 ac_cpp='$CPP $CPPFLAGS'
30242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30245
30246 fi
30247 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30248 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30249
30250 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30251
30252 cat >>confdefs.h <<\_ACEOF
30253 #define HAVE_ISINF_IN_CMATH 1
30254 _ACEOF
30255
30256 fi
30257
30258 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30259 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30260 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30261   echo $ECHO_N "(cached) $ECHO_C" >&6
30262 else
30263   ac_ext=cc
30264 ac_cpp='$CXXCPP $CPPFLAGS'
30265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30268
30269    cat >conftest.$ac_ext <<_ACEOF
30270 /* confdefs.h.  */
30271 _ACEOF
30272 cat confdefs.h >>conftest.$ac_ext
30273 cat >>conftest.$ac_ext <<_ACEOF
30274 /* end confdefs.h.  */
30275 #include <cmath>
30276 int
30277 main ()
30278 {
30279 float f; std::isinf(f)}
30280   ;
30281   return 0;
30282 }
30283 _ACEOF
30284 rm -f conftest.$ac_objext
30285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30286   (eval $ac_compile) 2>conftest.er1
30287   ac_status=$?
30288   grep -v '^ *+' conftest.er1 >conftest.err
30289   rm -f conftest.er1
30290   cat conftest.err >&5
30291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292   (exit $ac_status); } &&
30293          { ac_try='test -z "$ac_cxx_werror_flag"
30294                          || test ! -s conftest.err'
30295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30296   (eval $ac_try) 2>&5
30297   ac_status=$?
30298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299   (exit $ac_status); }; } &&
30300          { ac_try='test -s conftest.$ac_objext'
30301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30302   (eval $ac_try) 2>&5
30303   ac_status=$?
30304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305   (exit $ac_status); }; }; then
30306   ac_cv_func_std_isinf_in_cmath=yes
30307 else
30308   echo "$as_me: failed program was:" >&5
30309 sed 's/^/| /' conftest.$ac_ext >&5
30310
30311 ac_cv_func_std_isinf_in_cmath=no
30312 fi
30313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30314   ac_ext=c
30315 ac_cpp='$CPP $CPPFLAGS'
30316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30319
30320 fi
30321 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30322 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30323
30324 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30325
30326 cat >>confdefs.h <<\_ACEOF
30327 #define HAVE_STD_ISINF_IN_CMATH 1
30328 _ACEOF
30329
30330 fi
30331
30332 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30333 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30334 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30335   echo $ECHO_N "(cached) $ECHO_C" >&6
30336 else
30337   ac_ext=cc
30338 ac_cpp='$CXXCPP $CPPFLAGS'
30339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30342
30343    cat >conftest.$ac_ext <<_ACEOF
30344 /* confdefs.h.  */
30345 _ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h.  */
30349 #include <ieeefp.h>
30350 int
30351 main ()
30352 {
30353 float f; finite(f);
30354   ;
30355   return 0;
30356 }
30357 _ACEOF
30358 rm -f conftest.$ac_objext
30359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30360   (eval $ac_compile) 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } &&
30367          { ac_try='test -z "$ac_cxx_werror_flag"
30368                          || test ! -s conftest.err'
30369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370   (eval $ac_try) 2>&5
30371   ac_status=$?
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); }; } &&
30374          { ac_try='test -s conftest.$ac_objext'
30375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30376   (eval $ac_try) 2>&5
30377   ac_status=$?
30378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379   (exit $ac_status); }; }; then
30380   ac_cv_func_finite_in_ieeefp_h=yes
30381 else
30382   echo "$as_me: failed program was:" >&5
30383 sed 's/^/| /' conftest.$ac_ext >&5
30384
30385 ac_cv_func_finite_in_ieeefp_h=no
30386 fi
30387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30388   ac_ext=c
30389 ac_cpp='$CPP $CPPFLAGS'
30390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30393
30394 fi
30395 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30396 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30397
30398 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30399
30400 cat >>confdefs.h <<\_ACEOF
30401 #define HAVE_FINITE_IN_IEEEFP_H 1
30402 _ACEOF
30403
30404 fi
30405
30406
30407
30408
30409
30410 for ac_header in stdlib.h unistd.h
30411 do
30412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30414   echo "$as_me:$LINENO: checking for $ac_header" >&5
30415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30417   echo $ECHO_N "(cached) $ECHO_C" >&6
30418 fi
30419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30421 else
30422   # Is the header compilable?
30423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30425 cat >conftest.$ac_ext <<_ACEOF
30426 /* confdefs.h.  */
30427 _ACEOF
30428 cat confdefs.h >>conftest.$ac_ext
30429 cat >>conftest.$ac_ext <<_ACEOF
30430 /* end confdefs.h.  */
30431 $ac_includes_default
30432 #include <$ac_header>
30433 _ACEOF
30434 rm -f conftest.$ac_objext
30435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30436   (eval $ac_compile) 2>conftest.er1
30437   ac_status=$?
30438   grep -v '^ *+' conftest.er1 >conftest.err
30439   rm -f conftest.er1
30440   cat conftest.err >&5
30441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442   (exit $ac_status); } &&
30443          { ac_try='test -z "$ac_c_werror_flag"
30444                          || test ! -s conftest.err'
30445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446   (eval $ac_try) 2>&5
30447   ac_status=$?
30448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449   (exit $ac_status); }; } &&
30450          { ac_try='test -s conftest.$ac_objext'
30451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452   (eval $ac_try) 2>&5
30453   ac_status=$?
30454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455   (exit $ac_status); }; }; then
30456   ac_header_compiler=yes
30457 else
30458   echo "$as_me: failed program was:" >&5
30459 sed 's/^/| /' conftest.$ac_ext >&5
30460
30461 ac_header_compiler=no
30462 fi
30463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30465 echo "${ECHO_T}$ac_header_compiler" >&6
30466
30467 # Is the header present?
30468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30470 cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 #include <$ac_header>
30477 _ACEOF
30478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } >/dev/null; then
30486   if test -s conftest.err; then
30487     ac_cpp_err=$ac_c_preproc_warn_flag
30488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30489   else
30490     ac_cpp_err=
30491   fi
30492 else
30493   ac_cpp_err=yes
30494 fi
30495 if test -z "$ac_cpp_err"; then
30496   ac_header_preproc=yes
30497 else
30498   echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501   ac_header_preproc=no
30502 fi
30503 rm -f conftest.err conftest.$ac_ext
30504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30505 echo "${ECHO_T}$ac_header_preproc" >&6
30506
30507 # So?  What about this header?
30508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30509   yes:no: )
30510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30514     ac_header_preproc=yes
30515     ;;
30516   no:yes:* )
30517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30529     (
30530       cat <<\_ASBOX
30531 ## ----------------------------------- ##
30532 ## Report this to llvmbugs@cs.uiuc.edu ##
30533 ## ----------------------------------- ##
30534 _ASBOX
30535     ) |
30536       sed "s/^/$as_me: WARNING:     /" >&2
30537     ;;
30538 esac
30539 echo "$as_me:$LINENO: checking for $ac_header" >&5
30540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30542   echo $ECHO_N "(cached) $ECHO_C" >&6
30543 else
30544   eval "$as_ac_Header=\$ac_header_preproc"
30545 fi
30546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30548
30549 fi
30550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30551   cat >>confdefs.h <<_ACEOF
30552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30553 _ACEOF
30554
30555 fi
30556
30557 done
30558
30559
30560 for ac_func in getpagesize
30561 do
30562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30563 echo "$as_me:$LINENO: checking for $ac_func" >&5
30564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30565 if eval "test \"\${$as_ac_var+set}\" = set"; then
30566   echo $ECHO_N "(cached) $ECHO_C" >&6
30567 else
30568   cat >conftest.$ac_ext <<_ACEOF
30569 /* confdefs.h.  */
30570 _ACEOF
30571 cat confdefs.h >>conftest.$ac_ext
30572 cat >>conftest.$ac_ext <<_ACEOF
30573 /* end confdefs.h.  */
30574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30576 #define $ac_func innocuous_$ac_func
30577
30578 /* System header to define __stub macros and hopefully few prototypes,
30579     which can conflict with char $ac_func (); below.
30580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30581     <limits.h> exists even on freestanding compilers.  */
30582
30583 #ifdef __STDC__
30584 # include <limits.h>
30585 #else
30586 # include <assert.h>
30587 #endif
30588
30589 #undef $ac_func
30590
30591 /* Override any gcc2 internal prototype to avoid an error.  */
30592 #ifdef __cplusplus
30593 extern "C"
30594 {
30595 #endif
30596 /* We use char because int might match the return type of a gcc2
30597    builtin and then its argument prototype would still apply.  */
30598 char $ac_func ();
30599 /* The GNU C library defines this for functions which it implements
30600     to always fail with ENOSYS.  Some functions are actually named
30601     something starting with __ and the normal name is an alias.  */
30602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30603 choke me
30604 #else
30605 char (*f) () = $ac_func;
30606 #endif
30607 #ifdef __cplusplus
30608 }
30609 #endif
30610
30611 int
30612 main ()
30613 {
30614 return f != $ac_func;
30615   ;
30616   return 0;
30617 }
30618 _ACEOF
30619 rm -f conftest.$ac_objext conftest$ac_exeext
30620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30621   (eval $ac_link) 2>conftest.er1
30622   ac_status=$?
30623   grep -v '^ *+' conftest.er1 >conftest.err
30624   rm -f conftest.er1
30625   cat conftest.err >&5
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); } &&
30628          { ac_try='test -z "$ac_c_werror_flag"
30629                          || test ! -s conftest.err'
30630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631   (eval $ac_try) 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; } &&
30635          { ac_try='test -s conftest$ac_exeext'
30636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30637   (eval $ac_try) 2>&5
30638   ac_status=$?
30639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30640   (exit $ac_status); }; }; then
30641   eval "$as_ac_var=yes"
30642 else
30643   echo "$as_me: failed program was:" >&5
30644 sed 's/^/| /' conftest.$ac_ext >&5
30645
30646 eval "$as_ac_var=no"
30647 fi
30648 rm -f conftest.err conftest.$ac_objext \
30649       conftest$ac_exeext conftest.$ac_ext
30650 fi
30651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30653 if test `eval echo '${'$as_ac_var'}'` = yes; then
30654   cat >>confdefs.h <<_ACEOF
30655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30656 _ACEOF
30657
30658 fi
30659 done
30660
30661 echo "$as_me:$LINENO: checking for working mmap" >&5
30662 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30664   echo $ECHO_N "(cached) $ECHO_C" >&6
30665 else
30666   if test "$cross_compiling" = yes; then
30667   ac_cv_func_mmap_fixed_mapped=no
30668 else
30669   cat >conftest.$ac_ext <<_ACEOF
30670 /* confdefs.h.  */
30671 _ACEOF
30672 cat confdefs.h >>conftest.$ac_ext
30673 cat >>conftest.$ac_ext <<_ACEOF
30674 /* end confdefs.h.  */
30675 $ac_includes_default
30676 /* malloc might have been renamed as rpl_malloc. */
30677 #undef malloc
30678
30679 /* Thanks to Mike Haertel and Jim Avera for this test.
30680    Here is a matrix of mmap possibilities:
30681         mmap private not fixed
30682         mmap private fixed at somewhere currently unmapped
30683         mmap private fixed at somewhere already mapped
30684         mmap shared not fixed
30685         mmap shared fixed at somewhere currently unmapped
30686         mmap shared fixed at somewhere already mapped
30687    For private mappings, we should verify that changes cannot be read()
30688    back from the file, nor mmap's back from the file at a different
30689    address.  (There have been systems where private was not correctly
30690    implemented like the infamous i386 svr4.0, and systems where the
30691    VM page cache was not coherent with the file system buffer cache
30692    like early versions of FreeBSD and possibly contemporary NetBSD.)
30693    For shared mappings, we should conversely verify that changes get
30694    propagated back to all the places they're supposed to be.
30695
30696    Grep wants private fixed already mapped.
30697    The main things grep needs to know about mmap are:
30698    * does it exist and is it safe to write into the mmap'd area
30699    * how to use it (BSD variants)  */
30700
30701 #include <fcntl.h>
30702 #include <sys/mman.h>
30703
30704 #if !STDC_HEADERS && !HAVE_STDLIB_H
30705 char *malloc ();
30706 #endif
30707
30708 /* This mess was copied from the GNU getpagesize.h.  */
30709 #if !HAVE_GETPAGESIZE
30710 /* Assume that all systems that can run configure have sys/param.h.  */
30711 # if !HAVE_SYS_PARAM_H
30712 #  define HAVE_SYS_PARAM_H 1
30713 # endif
30714
30715 # ifdef _SC_PAGESIZE
30716 #  define getpagesize() sysconf(_SC_PAGESIZE)
30717 # else /* no _SC_PAGESIZE */
30718 #  if HAVE_SYS_PARAM_H
30719 #   include <sys/param.h>
30720 #   ifdef EXEC_PAGESIZE
30721 #    define getpagesize() EXEC_PAGESIZE
30722 #   else /* no EXEC_PAGESIZE */
30723 #    ifdef NBPG
30724 #     define getpagesize() NBPG * CLSIZE
30725 #     ifndef CLSIZE
30726 #      define CLSIZE 1
30727 #     endif /* no CLSIZE */
30728 #    else /* no NBPG */
30729 #     ifdef NBPC
30730 #      define getpagesize() NBPC
30731 #     else /* no NBPC */
30732 #      ifdef PAGESIZE
30733 #       define getpagesize() PAGESIZE
30734 #      endif /* PAGESIZE */
30735 #     endif /* no NBPC */
30736 #    endif /* no NBPG */
30737 #   endif /* no EXEC_PAGESIZE */
30738 #  else /* no HAVE_SYS_PARAM_H */
30739 #   define getpagesize() 8192   /* punt totally */
30740 #  endif /* no HAVE_SYS_PARAM_H */
30741 # endif /* no _SC_PAGESIZE */
30742
30743 #endif /* no HAVE_GETPAGESIZE */
30744
30745 int
30746 main ()
30747 {
30748   char *data, *data2, *data3;
30749   int i, pagesize;
30750   int fd;
30751
30752   pagesize = getpagesize ();
30753
30754   /* First, make a file with some known garbage in it. */
30755   data = (char *) malloc (pagesize);
30756   if (!data)
30757     exit (1);
30758   for (i = 0; i < pagesize; ++i)
30759     *(data + i) = rand ();
30760   umask (0);
30761   fd = creat ("conftest.mmap", 0600);
30762   if (fd < 0)
30763     exit (1);
30764   if (write (fd, data, pagesize) != pagesize)
30765     exit (1);
30766   close (fd);
30767
30768   /* Next, try to mmap the file at a fixed address which already has
30769      something else allocated at it.  If we can, also make sure that
30770      we see the same garbage.  */
30771   fd = open ("conftest.mmap", O_RDWR);
30772   if (fd < 0)
30773     exit (1);
30774   data2 = (char *) malloc (2 * pagesize);
30775   if (!data2)
30776     exit (1);
30777   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30778   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30779                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30780     exit (1);
30781   for (i = 0; i < pagesize; ++i)
30782     if (*(data + i) != *(data2 + i))
30783       exit (1);
30784
30785   /* Finally, make sure that changes to the mapped area do not
30786      percolate back to the file as seen by read().  (This is a bug on
30787      some variants of i386 svr4.0.)  */
30788   for (i = 0; i < pagesize; ++i)
30789     *(data2 + i) = *(data2 + i) + 1;
30790   data3 = (char *) malloc (pagesize);
30791   if (!data3)
30792     exit (1);
30793   if (read (fd, data3, pagesize) != pagesize)
30794     exit (1);
30795   for (i = 0; i < pagesize; ++i)
30796     if (*(data + i) != *(data3 + i))
30797       exit (1);
30798   close (fd);
30799   exit (0);
30800 }
30801 _ACEOF
30802 rm -f conftest$ac_exeext
30803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30804   (eval $ac_link) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809   (eval $ac_try) 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); }; }; then
30813   ac_cv_func_mmap_fixed_mapped=yes
30814 else
30815   echo "$as_me: program exited with status $ac_status" >&5
30816 echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819 ( exit $ac_status )
30820 ac_cv_func_mmap_fixed_mapped=no
30821 fi
30822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30823 fi
30824 fi
30825 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30826 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30827 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30828
30829 cat >>confdefs.h <<\_ACEOF
30830 #define HAVE_MMAP 1
30831 _ACEOF
30832
30833 fi
30834 rm -f conftest.mmap
30835
30836 echo "$as_me:$LINENO: checking for mmap of files" >&5
30837 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30838 if test "${ac_cv_func_mmap_file+set}" = set; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841    ac_ext=c
30842 ac_cpp='$CPP $CPPFLAGS'
30843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30846
30847   if test "$cross_compiling" = yes; then
30848   ac_cv_func_mmap_file=no
30849 else
30850   cat >conftest.$ac_ext <<_ACEOF
30851
30852     /* confdefs.h.  */
30853 _ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h.  */
30857
30858 #include <sys/types.h>
30859 #include <sys/mman.h>
30860 #include <fcntl.h>
30861
30862 int
30863 main ()
30864 {
30865
30866   int fd;
30867   fd = creat ("foo",0777);
30868   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30869   unlink ("foo");
30870   return (fd != (int) MAP_FAILED);
30871   ;
30872   return 0;
30873 }
30874 _ACEOF
30875 rm -f conftest$ac_exeext
30876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877   (eval $ac_link) 2>&5
30878   ac_status=$?
30879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882   (eval $ac_try) 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; }; then
30886   ac_cv_func_mmap_file=yes
30887 else
30888   echo "$as_me: program exited with status $ac_status" >&5
30889 echo "$as_me: failed program was:" >&5
30890 sed 's/^/| /' conftest.$ac_ext >&5
30891
30892 ( exit $ac_status )
30893 ac_cv_func_mmap_file=no
30894 fi
30895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30896 fi
30897   ac_ext=c
30898 ac_cpp='$CPP $CPPFLAGS'
30899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30902
30903
30904 fi
30905 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30906 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30907 if test "$ac_cv_func_mmap_file" = yes; then
30908
30909 cat >>confdefs.h <<\_ACEOF
30910 #define HAVE_MMAP_FILE
30911 _ACEOF
30912
30913    MMAP_FILE=yes
30914
30915 fi
30916
30917 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30918 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30919 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30920   echo $ECHO_N "(cached) $ECHO_C" >&6
30921 else
30922   if test "$llvm_cv_os_type" = "Interix" ; then
30923    ac_cv_need_dev_zero_for_mmap=yes
30924  else
30925    ac_cv_need_dev_zero_for_mmap=no
30926  fi
30927
30928 fi
30929 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30930 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30931 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30932
30933 cat >>confdefs.h <<\_ACEOF
30934 #define NEED_DEV_ZERO_FOR_MMAP 1
30935 _ACEOF
30936
30937 fi
30938 echo "$as_me:$LINENO: checking for mprotect" >&5
30939 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30940 if test "${ac_cv_func_mprotect+set}" = set; then
30941   echo $ECHO_N "(cached) $ECHO_C" >&6
30942 else
30943   cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h.  */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h.  */
30949 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30951 #define mprotect innocuous_mprotect
30952
30953 /* System header to define __stub macros and hopefully few prototypes,
30954     which can conflict with char mprotect (); below.
30955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30956     <limits.h> exists even on freestanding compilers.  */
30957
30958 #ifdef __STDC__
30959 # include <limits.h>
30960 #else
30961 # include <assert.h>
30962 #endif
30963
30964 #undef mprotect
30965
30966 /* Override any gcc2 internal prototype to avoid an error.  */
30967 #ifdef __cplusplus
30968 extern "C"
30969 {
30970 #endif
30971 /* We use char because int might match the return type of a gcc2
30972    builtin and then its argument prototype would still apply.  */
30973 char mprotect ();
30974 /* The GNU C library defines this for functions which it implements
30975     to always fail with ENOSYS.  Some functions are actually named
30976     something starting with __ and the normal name is an alias.  */
30977 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30978 choke me
30979 #else
30980 char (*f) () = mprotect;
30981 #endif
30982 #ifdef __cplusplus
30983 }
30984 #endif
30985
30986 int
30987 main ()
30988 {
30989 return f != mprotect;
30990   ;
30991   return 0;
30992 }
30993 _ACEOF
30994 rm -f conftest.$ac_objext conftest$ac_exeext
30995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30996   (eval $ac_link) 2>conftest.er1
30997   ac_status=$?
30998   grep -v '^ *+' conftest.er1 >conftest.err
30999   rm -f conftest.er1
31000   cat conftest.err >&5
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); } &&
31003          { ac_try='test -z "$ac_c_werror_flag"
31004                          || test ! -s conftest.err'
31005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006   (eval $ac_try) 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; } &&
31010          { ac_try='test -s conftest$ac_exeext'
31011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012   (eval $ac_try) 2>&5
31013   ac_status=$?
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); }; }; then
31016   ac_cv_func_mprotect=yes
31017 else
31018   echo "$as_me: failed program was:" >&5
31019 sed 's/^/| /' conftest.$ac_ext >&5
31020
31021 ac_cv_func_mprotect=no
31022 fi
31023 rm -f conftest.err conftest.$ac_objext \
31024       conftest$ac_exeext conftest.$ac_ext
31025 fi
31026 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31027 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31028 if test $ac_cv_func_mprotect = yes; then
31029   :
31030 else
31031   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31032 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31033    { (exit 1); exit 1; }; }
31034 fi
31035
31036
31037 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31038 then
31039   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31040 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31041 fi
31042 if test "$ac_cv_func_mmap_file" = "no"
31043 then
31044   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31045 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31046 fi
31047
31048
31049 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31050 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31051 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31052   echo $ECHO_N "(cached) $ECHO_C" >&6
31053 else
31054   llvm_cv_llvmgcc_sanity="no"
31055 if test -x "$LLVMGCC" ; then
31056   cp /dev/null conftest.c
31057   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31058   if test $? -eq 0 ; then
31059     llvm_cv_llvmgcc_sanity="yes"
31060   fi
31061   rm conftest.c
31062 fi
31063 fi
31064 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31065 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31066
31067 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31068   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31069   LLVMCC1=$llvmcc1path
31070
31071   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31072   LLVMCC1PLUS=$llvmcc1pluspath
31073
31074   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31075   LLVMGCCDIR=$llvmgccdir
31076
31077   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31078   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31079   LLVMGCC_VERSION=$llvmgccversion
31080
31081   LLVMGCC_MAJVERS=$llvmgccmajvers
31082
31083 fi
31084
31085 SHLIBEXT=$libltdl_cv_shlibext
31086
31087
31088 # Translate the various configuration directories and other basic
31089 # information into substitutions that will end up in Makefile.config.in
31090 # that these configured values can be used by the makefiles
31091 if test "${prefix}" == "NONE" ; then
31092   prefix="/usr/local"
31093 fi
31094 eval LLVM_PREFIX="${prefix}";
31095 eval LLVM_BINDIR="${prefix}/bin";
31096 eval LLVM_LIBDIR="${prefix}/lib";
31097 eval LLVM_DATADIR="${prefix}/share/llvm";
31098 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31099 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31100 eval LLVM_INCLUDEDIR="${prefix}/include";
31101 eval LLVM_INFODIR="${prefix}/info";
31102 eval LLVM_MANDIR="${prefix}/man";
31103 LLVM_CONFIGTIME=`date`
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115 # Place the various directores into the config.h file as #defines so that we
31116 # can know about the installation paths within LLVM.
31117
31118 cat >>confdefs.h <<_ACEOF
31119 #define LLVM_PREFIX "$LLVM_PREFIX"
31120 _ACEOF
31121
31122
31123 cat >>confdefs.h <<_ACEOF
31124 #define LLVM_BINDIR "$LLVM_BINDIR"
31125 _ACEOF
31126
31127
31128 cat >>confdefs.h <<_ACEOF
31129 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31130 _ACEOF
31131
31132
31133 cat >>confdefs.h <<_ACEOF
31134 #define LLVM_DATADIR "$LLVM_DATADIR"
31135 _ACEOF
31136
31137
31138 cat >>confdefs.h <<_ACEOF
31139 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31140 _ACEOF
31141
31142
31143 cat >>confdefs.h <<_ACEOF
31144 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31145 _ACEOF
31146
31147
31148 cat >>confdefs.h <<_ACEOF
31149 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31150 _ACEOF
31151
31152
31153 cat >>confdefs.h <<_ACEOF
31154 #define LLVM_INFODIR "$LLVM_INFODIR"
31155 _ACEOF
31156
31157
31158 cat >>confdefs.h <<_ACEOF
31159 #define LLVM_MANDIR "$LLVM_MANDIR"
31160 _ACEOF
31161
31162
31163 cat >>confdefs.h <<_ACEOF
31164 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31165 _ACEOF
31166
31167
31168
31169           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31170
31171           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31172
31173           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31174
31175           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31176
31177           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31178
31179
31180           ac_config_files="$ac_config_files Makefile.config"
31181
31182
31183           ac_config_files="$ac_config_files docs/doxygen.cfg"
31184
31185
31186           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31187
31188
31189           ac_config_commands="$ac_config_commands setup"
31190
31191           ac_config_commands="$ac_config_commands Makefile"
31192
31193
31194           ac_config_commands="$ac_config_commands Makefile.common"
31195
31196
31197           ac_config_commands="$ac_config_commands examples/Makefile"
31198
31199
31200           ac_config_commands="$ac_config_commands lib/Makefile"
31201
31202
31203           ac_config_commands="$ac_config_commands runtime/Makefile"
31204
31205
31206           ac_config_commands="$ac_config_commands test/Makefile"
31207
31208
31209           ac_config_commands="$ac_config_commands test/Makefile.tests"
31210
31211
31212           ac_config_commands="$ac_config_commands tools/Makefile"
31213
31214
31215           ac_config_commands="$ac_config_commands utils/Makefile"
31216
31217
31218           ac_config_commands="$ac_config_commands projects/Makefile"
31219
31220
31221
31222 cat >confcache <<\_ACEOF
31223 # This file is a shell script that caches the results of configure
31224 # tests run on this system so they can be shared between configure
31225 # scripts and configure runs, see configure's option --config-cache.
31226 # It is not useful on other systems.  If it contains results you don't
31227 # want to keep, you may remove or edit it.
31228 #
31229 # config.status only pays attention to the cache file if you give it
31230 # the --recheck option to rerun configure.
31231 #
31232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31234 # following values.
31235
31236 _ACEOF
31237
31238 # The following way of writing the cache mishandles newlines in values,
31239 # but we know of no workaround that is simple, portable, and efficient.
31240 # So, don't put newlines in cache variables' values.
31241 # Ultrix sh set writes to stderr and can't be redirected directly,
31242 # and sets the high bit in the cache file unless we assign to the vars.
31243 {
31244   (set) 2>&1 |
31245     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31246     *ac_space=\ *)
31247       # `set' does not quote correctly, so add quotes (double-quote
31248       # substitution turns \\\\ into \\, and sed turns \\ into \).
31249       sed -n \
31250         "s/'/'\\\\''/g;
31251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31252       ;;
31253     *)
31254       # `set' quotes correctly as required by POSIX, so do not add quotes.
31255       sed -n \
31256         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31257       ;;
31258     esac;
31259 } |
31260   sed '
31261      t clear
31262      : clear
31263      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31264      t end
31265      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31266      : end' >>confcache
31267 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31268   if test -w $cache_file; then
31269     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31270     cat confcache >$cache_file
31271   else
31272     echo "not updating unwritable cache $cache_file"
31273   fi
31274 fi
31275 rm -f confcache
31276
31277 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31278 # Let make expand exec_prefix.
31279 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31280
31281 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31282 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31283 # trailing colons and then remove the whole line if VPATH becomes empty
31284 # (actually we leave an empty line to preserve line numbers).
31285 if test "x$srcdir" = x.; then
31286   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31287 s/:*\$(srcdir):*/:/;
31288 s/:*\${srcdir}:*/:/;
31289 s/:*@srcdir@:*/:/;
31290 s/^\([^=]*=[     ]*\):*/\1/;
31291 s/:*$//;
31292 s/^[^=]*=[       ]*$//;
31293 }'
31294 fi
31295
31296 DEFS=-DHAVE_CONFIG_H
31297
31298 ac_libobjs=
31299 ac_ltlibobjs=
31300 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31301   # 1. Remove the extension, and $U if already installed.
31302   ac_i=`echo "$ac_i" |
31303          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31304   # 2. Add them.
31305   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31306   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31307 done
31308 LIBOBJS=$ac_libobjs
31309
31310 LTLIBOBJS=$ac_ltlibobjs
31311
31312
31313 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31314   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31315 Usually this means the macro was only invoked conditionally." >&5
31316 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31317 Usually this means the macro was only invoked conditionally." >&2;}
31318    { (exit 1); exit 1; }; }
31319 fi
31320 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31321   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31322 Usually this means the macro was only invoked conditionally." >&5
31323 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31324 Usually this means the macro was only invoked conditionally." >&2;}
31325    { (exit 1); exit 1; }; }
31326 fi
31327
31328 : ${CONFIG_STATUS=./config.status}
31329 ac_clean_files_save=$ac_clean_files
31330 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31331 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31332 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31333 cat >$CONFIG_STATUS <<_ACEOF
31334 #! $SHELL
31335 # Generated by $as_me.
31336 # Run this file to recreate the current configuration.
31337 # Compiler output produced by configure, useful for debugging
31338 # configure, is in config.log if it exists.
31339
31340 debug=false
31341 ac_cs_recheck=false
31342 ac_cs_silent=false
31343 SHELL=\${CONFIG_SHELL-$SHELL}
31344 _ACEOF
31345
31346 cat >>$CONFIG_STATUS <<\_ACEOF
31347 ## --------------------- ##
31348 ## M4sh Initialization.  ##
31349 ## --------------------- ##
31350
31351 # Be Bourne compatible
31352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31353   emulate sh
31354   NULLCMD=:
31355   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31356   # is contrary to our usage.  Disable this feature.
31357   alias -g '${1+"$@"}'='"$@"'
31358 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31359   set -o posix
31360 fi
31361 DUALCASE=1; export DUALCASE # for MKS sh
31362
31363 # Support unset when possible.
31364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31365   as_unset=unset
31366 else
31367   as_unset=false
31368 fi
31369
31370
31371 # Work around bugs in pre-3.0 UWIN ksh.
31372 $as_unset ENV MAIL MAILPATH
31373 PS1='$ '
31374 PS2='> '
31375 PS4='+ '
31376
31377 # NLS nuisances.
31378 for as_var in \
31379   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31380   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31381   LC_TELEPHONE LC_TIME
31382 do
31383   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31384     eval $as_var=C; export $as_var
31385   else
31386     $as_unset $as_var
31387   fi
31388 done
31389
31390 # Required to use basename.
31391 if expr a : '\(a\)' >/dev/null 2>&1; then
31392   as_expr=expr
31393 else
31394   as_expr=false
31395 fi
31396
31397 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31398   as_basename=basename
31399 else
31400   as_basename=false
31401 fi
31402
31403
31404 # Name of the executable.
31405 as_me=`$as_basename "$0" ||
31406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31407          X"$0" : 'X\(//\)$' \| \
31408          X"$0" : 'X\(/\)$' \| \
31409          .     : '\(.\)' 2>/dev/null ||
31410 echo X/"$0" |
31411     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31412           /^X\/\(\/\/\)$/{ s//\1/; q; }
31413           /^X\/\(\/\).*/{ s//\1/; q; }
31414           s/.*/./; q'`
31415
31416
31417 # PATH needs CR, and LINENO needs CR and PATH.
31418 # Avoid depending upon Character Ranges.
31419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31422 as_cr_digits='0123456789'
31423 as_cr_alnum=$as_cr_Letters$as_cr_digits
31424
31425 # The user is always right.
31426 if test "${PATH_SEPARATOR+set}" != set; then
31427   echo "#! /bin/sh" >conf$$.sh
31428   echo  "exit 0"   >>conf$$.sh
31429   chmod +x conf$$.sh
31430   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31431     PATH_SEPARATOR=';'
31432   else
31433     PATH_SEPARATOR=:
31434   fi
31435   rm -f conf$$.sh
31436 fi
31437
31438
31439   as_lineno_1=$LINENO
31440   as_lineno_2=$LINENO
31441   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31442   test "x$as_lineno_1" != "x$as_lineno_2" &&
31443   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31444   # Find who we are.  Look in the path if we contain no path at all
31445   # relative or not.
31446   case $0 in
31447     *[\\/]* ) as_myself=$0 ;;
31448     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31449 for as_dir in $PATH
31450 do
31451   IFS=$as_save_IFS
31452   test -z "$as_dir" && as_dir=.
31453   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31454 done
31455
31456        ;;
31457   esac
31458   # We did not find ourselves, most probably we were run as `sh COMMAND'
31459   # in which case we are not to be found in the path.
31460   if test "x$as_myself" = x; then
31461     as_myself=$0
31462   fi
31463   if test ! -f "$as_myself"; then
31464     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31465 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31466    { (exit 1); exit 1; }; }
31467   fi
31468   case $CONFIG_SHELL in
31469   '')
31470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31471 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31472 do
31473   IFS=$as_save_IFS
31474   test -z "$as_dir" && as_dir=.
31475   for as_base in sh bash ksh sh5; do
31476          case $as_dir in
31477          /*)
31478            if ("$as_dir/$as_base" -c '
31479   as_lineno_1=$LINENO
31480   as_lineno_2=$LINENO
31481   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31482   test "x$as_lineno_1" != "x$as_lineno_2" &&
31483   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31484              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31485              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31486              CONFIG_SHELL=$as_dir/$as_base
31487              export CONFIG_SHELL
31488              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31489            fi;;
31490          esac
31491        done
31492 done
31493 ;;
31494   esac
31495
31496   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31497   # uniformly replaced by the line number.  The first 'sed' inserts a
31498   # line-number line before each line; the second 'sed' does the real
31499   # work.  The second script uses 'N' to pair each line-number line
31500   # with the numbered line, and appends trailing '-' during
31501   # substitution so that $LINENO is not a special case at line end.
31502   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31503   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31504   sed '=' <$as_myself |
31505     sed '
31506       N
31507       s,$,-,
31508       : loop
31509       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31510       t loop
31511       s,-$,,
31512       s,^['$as_cr_digits']*\n,,
31513     ' >$as_me.lineno &&
31514   chmod +x $as_me.lineno ||
31515     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31516 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31517    { (exit 1); exit 1; }; }
31518
31519   # Don't try to exec as it changes $[0], causing all sort of problems
31520   # (the dirname of $[0] is not the place where we might find the
31521   # original and so on.  Autoconf is especially sensible to this).
31522   . ./$as_me.lineno
31523   # Exit status is that of the last command.
31524   exit
31525 }
31526
31527
31528 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31529   *c*,-n*) ECHO_N= ECHO_C='
31530 ' ECHO_T='      ' ;;
31531   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31532   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31533 esac
31534
31535 if expr a : '\(a\)' >/dev/null 2>&1; then
31536   as_expr=expr
31537 else
31538   as_expr=false
31539 fi
31540
31541 rm -f conf$$ conf$$.exe conf$$.file
31542 echo >conf$$.file
31543 if ln -s conf$$.file conf$$ 2>/dev/null; then
31544   # We could just check for DJGPP; but this test a) works b) is more generic
31545   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31546   if test -f conf$$.exe; then
31547     # Don't use ln at all; we don't have any links
31548     as_ln_s='cp -p'
31549   else
31550     as_ln_s='ln -s'
31551   fi
31552 elif ln conf$$.file conf$$ 2>/dev/null; then
31553   as_ln_s=ln
31554 else
31555   as_ln_s='cp -p'
31556 fi
31557 rm -f conf$$ conf$$.exe conf$$.file
31558
31559 if mkdir -p . 2>/dev/null; then
31560   as_mkdir_p=:
31561 else
31562   test -d ./-p && rmdir ./-p
31563   as_mkdir_p=false
31564 fi
31565
31566 as_executable_p="test -f"
31567
31568 # Sed expression to map a string onto a valid CPP name.
31569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31570
31571 # Sed expression to map a string onto a valid variable name.
31572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31573
31574
31575 # IFS
31576 # We need space, tab and new line, in precisely that order.
31577 as_nl='
31578 '
31579 IFS="   $as_nl"
31580
31581 # CDPATH.
31582 $as_unset CDPATH
31583
31584 exec 6>&1
31585
31586 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31587 # report actual input values of CONFIG_FILES etc. instead of their
31588 # values after options handling.  Logging --version etc. is OK.
31589 exec 5>>config.log
31590 {
31591   echo
31592   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31593 ## Running $as_me. ##
31594 _ASBOX
31595 } >&5
31596 cat >&5 <<_CSEOF
31597
31598 This file was extended by llvm $as_me 1.8cvs, which was
31599 generated by GNU Autoconf 2.59.  Invocation command line was
31600
31601   CONFIG_FILES    = $CONFIG_FILES
31602   CONFIG_HEADERS  = $CONFIG_HEADERS
31603   CONFIG_LINKS    = $CONFIG_LINKS
31604   CONFIG_COMMANDS = $CONFIG_COMMANDS
31605   $ $0 $@
31606
31607 _CSEOF
31608 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31609 echo >&5
31610 _ACEOF
31611
31612 # Files that config.status was made for.
31613 if test -n "$ac_config_files"; then
31614   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31615 fi
31616
31617 if test -n "$ac_config_headers"; then
31618   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31619 fi
31620
31621 if test -n "$ac_config_links"; then
31622   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31623 fi
31624
31625 if test -n "$ac_config_commands"; then
31626   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31627 fi
31628
31629 cat >>$CONFIG_STATUS <<\_ACEOF
31630
31631 ac_cs_usage="\
31632 \`$as_me' instantiates files from templates according to the
31633 current configuration.
31634
31635 Usage: $0 [OPTIONS] [FILE]...
31636
31637   -h, --help       print this help, then exit
31638   -V, --version    print version number, then exit
31639   -q, --quiet      do not print progress messages
31640   -d, --debug      don't remove temporary files
31641       --recheck    update $as_me by reconfiguring in the same conditions
31642   --file=FILE[:TEMPLATE]
31643                    instantiate the configuration file FILE
31644   --header=FILE[:TEMPLATE]
31645                    instantiate the configuration header FILE
31646
31647 Configuration files:
31648 $config_files
31649
31650 Configuration headers:
31651 $config_headers
31652
31653 Configuration commands:
31654 $config_commands
31655
31656 Report bugs to <bug-autoconf@gnu.org>."
31657 _ACEOF
31658
31659 cat >>$CONFIG_STATUS <<_ACEOF
31660 ac_cs_version="\\
31661 llvm config.status 1.8cvs
31662 configured by $0, generated by GNU Autoconf 2.59,
31663   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31664
31665 Copyright (C) 2003 Free Software Foundation, Inc.
31666 This config.status script is free software; the Free Software Foundation
31667 gives unlimited permission to copy, distribute and modify it."
31668 srcdir=$srcdir
31669 INSTALL="$INSTALL"
31670 _ACEOF
31671
31672 cat >>$CONFIG_STATUS <<\_ACEOF
31673 # If no file are specified by the user, then we need to provide default
31674 # value.  By we need to know if files were specified by the user.
31675 ac_need_defaults=:
31676 while test $# != 0
31677 do
31678   case $1 in
31679   --*=*)
31680     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31681     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31682     ac_shift=:
31683     ;;
31684   -*)
31685     ac_option=$1
31686     ac_optarg=$2
31687     ac_shift=shift
31688     ;;
31689   *) # This is not an option, so the user has probably given explicit
31690      # arguments.
31691      ac_option=$1
31692      ac_need_defaults=false;;
31693   esac
31694
31695   case $ac_option in
31696   # Handling of the options.
31697 _ACEOF
31698 cat >>$CONFIG_STATUS <<\_ACEOF
31699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31700     ac_cs_recheck=: ;;
31701   --version | --vers* | -V )
31702     echo "$ac_cs_version"; exit 0 ;;
31703   --he | --h)
31704     # Conflict between --help and --header
31705     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31706 Try \`$0 --help' for more information." >&5
31707 echo "$as_me: error: ambiguous option: $1
31708 Try \`$0 --help' for more information." >&2;}
31709    { (exit 1); exit 1; }; };;
31710   --help | --hel | -h )
31711     echo "$ac_cs_usage"; exit 0 ;;
31712   --debug | --d* | -d )
31713     debug=: ;;
31714   --file | --fil | --fi | --f )
31715     $ac_shift
31716     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31717     ac_need_defaults=false;;
31718   --header | --heade | --head | --hea )
31719     $ac_shift
31720     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31721     ac_need_defaults=false;;
31722   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31723   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31724     ac_cs_silent=: ;;
31725
31726   # This is an error.
31727   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31728 Try \`$0 --help' for more information." >&5
31729 echo "$as_me: error: unrecognized option: $1
31730 Try \`$0 --help' for more information." >&2;}
31731    { (exit 1); exit 1; }; } ;;
31732
31733   *) ac_config_targets="$ac_config_targets $1" ;;
31734
31735   esac
31736   shift
31737 done
31738
31739 ac_configure_extra_args=
31740
31741 if $ac_cs_silent; then
31742   exec 6>/dev/null
31743   ac_configure_extra_args="$ac_configure_extra_args --silent"
31744 fi
31745
31746 _ACEOF
31747 cat >>$CONFIG_STATUS <<_ACEOF
31748 if \$ac_cs_recheck; then
31749   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31750   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31751 fi
31752
31753 _ACEOF
31754
31755 cat >>$CONFIG_STATUS <<_ACEOF
31756 #
31757 # INIT-COMMANDS section.
31758 #
31759
31760 llvm_src="${srcdir}"
31761
31762 _ACEOF
31763
31764
31765
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31767 for ac_config_target in $ac_config_targets
31768 do
31769   case "$ac_config_target" in
31770   # Handling of arguments.
31771   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31772   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31773   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31774   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31775   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31776   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31777   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31778   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31779   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31780   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31781   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31782   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31783   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31784   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31785   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31786   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31787   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31788   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31789   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31790   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31791 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31792    { (exit 1); exit 1; }; };;
31793   esac
31794 done
31795
31796 # If the user did not use the arguments to specify the items to instantiate,
31797 # then the envvar interface is used.  Set only those that are not.
31798 # We use the long form for the default assignment because of an extremely
31799 # bizarre bug on SunOS 4.1.3.
31800 if $ac_need_defaults; then
31801   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31802   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31803   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31804 fi
31805
31806 # Have a temporary directory for convenience.  Make it in the build tree
31807 # simply because there is no reason to put it here, and in addition,
31808 # creating and moving files from /tmp can sometimes cause problems.
31809 # Create a temporary directory, and hook for its removal unless debugging.
31810 $debug ||
31811 {
31812   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31813   trap '{ (exit 1); exit 1; }' 1 2 13 15
31814 }
31815
31816 # Create a (secure) tmp directory for tmp files.
31817
31818 {
31819   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31820   test -n "$tmp" && test -d "$tmp"
31821 }  ||
31822 {
31823   tmp=./confstat$$-$RANDOM
31824   (umask 077 && mkdir $tmp)
31825 } ||
31826 {
31827    echo "$me: cannot create a temporary directory in ." >&2
31828    { (exit 1); exit 1; }
31829 }
31830
31831 _ACEOF
31832
31833 cat >>$CONFIG_STATUS <<_ACEOF
31834
31835 #
31836 # CONFIG_FILES section.
31837 #
31838
31839 # No need to generate the scripts if there are no CONFIG_FILES.
31840 # This happens for instance when ./config.status config.h
31841 if test -n "\$CONFIG_FILES"; then
31842   # Protect against being on the right side of a sed subst in config.status.
31843   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31844    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31845 s,@SHELL@,$SHELL,;t t
31846 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31847 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31848 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31849 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31850 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31851 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31852 s,@exec_prefix@,$exec_prefix,;t t
31853 s,@prefix@,$prefix,;t t
31854 s,@program_transform_name@,$program_transform_name,;t t
31855 s,@bindir@,$bindir,;t t
31856 s,@sbindir@,$sbindir,;t t
31857 s,@libexecdir@,$libexecdir,;t t
31858 s,@datadir@,$datadir,;t t
31859 s,@sysconfdir@,$sysconfdir,;t t
31860 s,@sharedstatedir@,$sharedstatedir,;t t
31861 s,@localstatedir@,$localstatedir,;t t
31862 s,@libdir@,$libdir,;t t
31863 s,@includedir@,$includedir,;t t
31864 s,@oldincludedir@,$oldincludedir,;t t
31865 s,@infodir@,$infodir,;t t
31866 s,@mandir@,$mandir,;t t
31867 s,@build_alias@,$build_alias,;t t
31868 s,@host_alias@,$host_alias,;t t
31869 s,@target_alias@,$target_alias,;t t
31870 s,@DEFS@,$DEFS,;t t
31871 s,@ECHO_C@,$ECHO_C,;t t
31872 s,@ECHO_N@,$ECHO_N,;t t
31873 s,@ECHO_T@,$ECHO_T,;t t
31874 s,@LIBS@,$LIBS,;t t
31875 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31876 s,@subdirs@,$subdirs,;t t
31877 s,@build@,$build,;t t
31878 s,@build_cpu@,$build_cpu,;t t
31879 s,@build_vendor@,$build_vendor,;t t
31880 s,@build_os@,$build_os,;t t
31881 s,@host@,$host,;t t
31882 s,@host_cpu@,$host_cpu,;t t
31883 s,@host_vendor@,$host_vendor,;t t
31884 s,@host_os@,$host_os,;t t
31885 s,@target@,$target,;t t
31886 s,@target_cpu@,$target_cpu,;t t
31887 s,@target_vendor@,$target_vendor,;t t
31888 s,@target_os@,$target_os,;t t
31889 s,@OS@,$OS,;t t
31890 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31891 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31892 s,@ARCH@,$ARCH,;t t
31893 s,@ENDIAN@,$ENDIAN,;t t
31894 s,@CC@,$CC,;t t
31895 s,@CFLAGS@,$CFLAGS,;t t
31896 s,@LDFLAGS@,$LDFLAGS,;t t
31897 s,@CPPFLAGS@,$CPPFLAGS,;t t
31898 s,@ac_ct_CC@,$ac_ct_CC,;t t
31899 s,@EXEEXT@,$EXEEXT,;t t
31900 s,@OBJEXT@,$OBJEXT,;t t
31901 s,@CVSBUILD@,$CVSBUILD,;t t
31902 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31903 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31904 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31905 s,@JIT@,$JIT,;t t
31906 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31907 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31908 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31909 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31910 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
31911 s,@CPP@,$CPP,;t t
31912 s,@CXX@,$CXX,;t t
31913 s,@CXXFLAGS@,$CXXFLAGS,;t t
31914 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31915 s,@LEX@,$LEX,;t t
31916 s,@LEXLIB@,$LEXLIB,;t t
31917 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31918 s,@FLEX@,$FLEX,;t t
31919 s,@YACC@,$YACC,;t t
31920 s,@BISON@,$BISON,;t t
31921 s,@ifGNUmake@,$ifGNUmake,;t t
31922 s,@LN_S@,$LN_S,;t t
31923 s,@CMP@,$CMP,;t t
31924 s,@CP@,$CP,;t t
31925 s,@DATE@,$DATE,;t t
31926 s,@FIND@,$FIND,;t t
31927 s,@GREP@,$GREP,;t t
31928 s,@MKDIR@,$MKDIR,;t t
31929 s,@MV@,$MV,;t t
31930 s,@RANLIB@,$RANLIB,;t t
31931 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31932 s,@RM@,$RM,;t t
31933 s,@SED@,$SED,;t t
31934 s,@TAR@,$TAR,;t t
31935 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31936 s,@DOT@,$DOT,;t t
31937 s,@GV@,$GV,;t t
31938 s,@DOTTY@,$DOTTY,;t t
31939 s,@PERL@,$PERL,;t t
31940 s,@HAVE_PERL@,$HAVE_PERL,;t t
31941 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31942 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31943 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31944 s,@BZIP2@,$BZIP2,;t t
31945 s,@DOXYGEN@,$DOXYGEN,;t t
31946 s,@ETAGS@,$ETAGS,;t t
31947 s,@GROFF@,$GROFF,;t t
31948 s,@GZIP@,$GZIP,;t t
31949 s,@POD2HTML@,$POD2HTML,;t t
31950 s,@POD2MAN@,$POD2MAN,;t t
31951 s,@RUNTEST@,$RUNTEST,;t t
31952 s,@TCLSH@,$TCLSH,;t t
31953 s,@ZIP@,$ZIP,;t t
31954 s,@EGREP@,$EGREP,;t t
31955 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31956 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31957 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31958 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31959 s,@LIBADD_DL@,$LIBADD_DL,;t t
31960 s,@ECHO@,$ECHO,;t t
31961 s,@AR@,$AR,;t t
31962 s,@ac_ct_AR@,$ac_ct_AR,;t t
31963 s,@STRIP@,$STRIP,;t t
31964 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31965 s,@CXXCPP@,$CXXCPP,;t t
31966 s,@F77@,$F77,;t t
31967 s,@FFLAGS@,$FFLAGS,;t t
31968 s,@ac_ct_F77@,$ac_ct_F77,;t t
31969 s,@LIBTOOL@,$LIBTOOL,;t t
31970 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31971 s,@LLVMGCC@,$LLVMGCC,;t t
31972 s,@LLVMGXX@,$LLVMGXX,;t t
31973 s,@ALLOCA@,$ALLOCA,;t t
31974 s,@MMAP_FILE@,$MMAP_FILE,;t t
31975 s,@LLVMCC1@,$LLVMCC1,;t t
31976 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31977 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31978 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31979 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31980 s,@SHLIBEXT@,$SHLIBEXT,;t t
31981 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31982 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31983 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31984 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31985 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31986 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31987 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31988 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31989 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31990 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31991 s,@LIBOBJS@,$LIBOBJS,;t t
31992 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31993 CEOF
31994
31995 _ACEOF
31996
31997   cat >>$CONFIG_STATUS <<\_ACEOF
31998   # Split the substitutions into bite-sized pieces for seds with
31999   # small command number limits, like on Digital OSF/1 and HP-UX.
32000   ac_max_sed_lines=48
32001   ac_sed_frag=1 # Number of current file.
32002   ac_beg=1 # First line for current file.
32003   ac_end=$ac_max_sed_lines # Line after last line for current file.
32004   ac_more_lines=:
32005   ac_sed_cmds=
32006   while $ac_more_lines; do
32007     if test $ac_beg -gt 1; then
32008       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32009     else
32010       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32011     fi
32012     if test ! -s $tmp/subs.frag; then
32013       ac_more_lines=false
32014     else
32015       # The purpose of the label and of the branching condition is to
32016       # speed up the sed processing (if there are no `@' at all, there
32017       # is no need to browse any of the substitutions).
32018       # These are the two extra sed commands mentioned above.
32019       (echo ':t
32020   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32021       if test -z "$ac_sed_cmds"; then
32022         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32023       else
32024         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32025       fi
32026       ac_sed_frag=`expr $ac_sed_frag + 1`
32027       ac_beg=$ac_end
32028       ac_end=`expr $ac_end + $ac_max_sed_lines`
32029     fi
32030   done
32031   if test -z "$ac_sed_cmds"; then
32032     ac_sed_cmds=cat
32033   fi
32034 fi # test -n "$CONFIG_FILES"
32035
32036 _ACEOF
32037 cat >>$CONFIG_STATUS <<\_ACEOF
32038 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32039   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32040   case $ac_file in
32041   - | *:- | *:-:* ) # input from stdin
32042         cat >$tmp/stdin
32043         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32044         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32045   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32046         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32047   * )   ac_file_in=$ac_file.in ;;
32048   esac
32049
32050   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32051   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32053          X"$ac_file" : 'X\(//\)[^/]' \| \
32054          X"$ac_file" : 'X\(//\)$' \| \
32055          X"$ac_file" : 'X\(/\)' \| \
32056          .     : '\(.\)' 2>/dev/null ||
32057 echo X"$ac_file" |
32058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060           /^X\(\/\/\)$/{ s//\1/; q; }
32061           /^X\(\/\).*/{ s//\1/; q; }
32062           s/.*/./; q'`
32063   { if $as_mkdir_p; then
32064     mkdir -p "$ac_dir"
32065   else
32066     as_dir="$ac_dir"
32067     as_dirs=
32068     while test ! -d "$as_dir"; do
32069       as_dirs="$as_dir $as_dirs"
32070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32072          X"$as_dir" : 'X\(//\)[^/]' \| \
32073          X"$as_dir" : 'X\(//\)$' \| \
32074          X"$as_dir" : 'X\(/\)' \| \
32075          .     : '\(.\)' 2>/dev/null ||
32076 echo X"$as_dir" |
32077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079           /^X\(\/\/\)$/{ s//\1/; q; }
32080           /^X\(\/\).*/{ s//\1/; q; }
32081           s/.*/./; q'`
32082     done
32083     test ! -n "$as_dirs" || mkdir $as_dirs
32084   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086    { (exit 1); exit 1; }; }; }
32087
32088   ac_builddir=.
32089
32090 if test "$ac_dir" != .; then
32091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32092   # A "../" for each directory in $ac_dir_suffix.
32093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32094 else
32095   ac_dir_suffix= ac_top_builddir=
32096 fi
32097
32098 case $srcdir in
32099   .)  # No --srcdir option.  We are building in place.
32100     ac_srcdir=.
32101     if test -z "$ac_top_builddir"; then
32102        ac_top_srcdir=.
32103     else
32104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32105     fi ;;
32106   [\\/]* | ?:[\\/]* )  # Absolute path.
32107     ac_srcdir=$srcdir$ac_dir_suffix;
32108     ac_top_srcdir=$srcdir ;;
32109   *) # Relative path.
32110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32112 esac
32113
32114 # Do not use `cd foo && pwd` to compute absolute paths, because
32115 # the directories may not exist.
32116 case `pwd` in
32117 .) ac_abs_builddir="$ac_dir";;
32118 *)
32119   case "$ac_dir" in
32120   .) ac_abs_builddir=`pwd`;;
32121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32123   esac;;
32124 esac
32125 case $ac_abs_builddir in
32126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32127 *)
32128   case ${ac_top_builddir}. in
32129   .) ac_abs_top_builddir=$ac_abs_builddir;;
32130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32132   esac;;
32133 esac
32134 case $ac_abs_builddir in
32135 .) ac_abs_srcdir=$ac_srcdir;;
32136 *)
32137   case $ac_srcdir in
32138   .) ac_abs_srcdir=$ac_abs_builddir;;
32139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32141   esac;;
32142 esac
32143 case $ac_abs_builddir in
32144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32145 *)
32146   case $ac_top_srcdir in
32147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32150   esac;;
32151 esac
32152
32153
32154   case $INSTALL in
32155   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32156   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32157   esac
32158
32159   if test x"$ac_file" != x-; then
32160     { echo "$as_me:$LINENO: creating $ac_file" >&5
32161 echo "$as_me: creating $ac_file" >&6;}
32162     rm -f "$ac_file"
32163   fi
32164   # Let's still pretend it is `configure' which instantiates (i.e., don't
32165   # use $as_me), people would be surprised to read:
32166   #    /* config.h.  Generated by config.status.  */
32167   if test x"$ac_file" = x-; then
32168     configure_input=
32169   else
32170     configure_input="$ac_file.  "
32171   fi
32172   configure_input=$configure_input"Generated from `echo $ac_file_in |
32173                                      sed 's,.*/,,'` by configure."
32174
32175   # First look for the input files in the build tree, otherwise in the
32176   # src tree.
32177   ac_file_inputs=`IFS=:
32178     for f in $ac_file_in; do
32179       case $f in
32180       -) echo $tmp/stdin ;;
32181       [\\/$]*)
32182          # Absolute (can't be DOS-style, as IFS=:)
32183          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32184 echo "$as_me: error: cannot find input file: $f" >&2;}
32185    { (exit 1); exit 1; }; }
32186          echo "$f";;
32187       *) # Relative
32188          if test -f "$f"; then
32189            # Build tree
32190            echo "$f"
32191          elif test -f "$srcdir/$f"; then
32192            # Source tree
32193            echo "$srcdir/$f"
32194          else
32195            # /dev/null tree
32196            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32197 echo "$as_me: error: cannot find input file: $f" >&2;}
32198    { (exit 1); exit 1; }; }
32199          fi;;
32200       esac
32201     done` || { (exit 1); exit 1; }
32202 _ACEOF
32203 cat >>$CONFIG_STATUS <<_ACEOF
32204   sed "$ac_vpsub
32205 $extrasub
32206 _ACEOF
32207 cat >>$CONFIG_STATUS <<\_ACEOF
32208 :t
32209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32210 s,@configure_input@,$configure_input,;t t
32211 s,@srcdir@,$ac_srcdir,;t t
32212 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32213 s,@top_srcdir@,$ac_top_srcdir,;t t
32214 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32215 s,@builddir@,$ac_builddir,;t t
32216 s,@abs_builddir@,$ac_abs_builddir,;t t
32217 s,@top_builddir@,$ac_top_builddir,;t t
32218 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32219 s,@INSTALL@,$ac_INSTALL,;t t
32220 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32221   rm -f $tmp/stdin
32222   if test x"$ac_file" != x-; then
32223     mv $tmp/out $ac_file
32224   else
32225     cat $tmp/out
32226     rm -f $tmp/out
32227   fi
32228
32229 done
32230 _ACEOF
32231 cat >>$CONFIG_STATUS <<\_ACEOF
32232
32233 #
32234 # CONFIG_HEADER section.
32235 #
32236
32237 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32238 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32239 #
32240 # ac_d sets the value in "#define NAME VALUE" lines.
32241 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32242 ac_dB='[         ].*$,\1#\2'
32243 ac_dC=' '
32244 ac_dD=',;t'
32245 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32246 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32247 ac_uB='$,\1#\2define\3'
32248 ac_uC=' '
32249 ac_uD=',;t'
32250
32251 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32252   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32253   case $ac_file in
32254   - | *:- | *:-:* ) # input from stdin
32255         cat >$tmp/stdin
32256         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32258   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32260   * )   ac_file_in=$ac_file.in ;;
32261   esac
32262
32263   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32264 echo "$as_me: creating $ac_file" >&6;}
32265
32266   # First look for the input files in the build tree, otherwise in the
32267   # src tree.
32268   ac_file_inputs=`IFS=:
32269     for f in $ac_file_in; do
32270       case $f in
32271       -) echo $tmp/stdin ;;
32272       [\\/$]*)
32273          # Absolute (can't be DOS-style, as IFS=:)
32274          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32275 echo "$as_me: error: cannot find input file: $f" >&2;}
32276    { (exit 1); exit 1; }; }
32277          # Do quote $f, to prevent DOS paths from being IFS'd.
32278          echo "$f";;
32279       *) # Relative
32280          if test -f "$f"; then
32281            # Build tree
32282            echo "$f"
32283          elif test -f "$srcdir/$f"; then
32284            # Source tree
32285            echo "$srcdir/$f"
32286          else
32287            # /dev/null tree
32288            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32289 echo "$as_me: error: cannot find input file: $f" >&2;}
32290    { (exit 1); exit 1; }; }
32291          fi;;
32292       esac
32293     done` || { (exit 1); exit 1; }
32294   # Remove the trailing spaces.
32295   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32296
32297 _ACEOF
32298
32299 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32300 # `conftest.undefs', that substitutes the proper values into
32301 # config.h.in to produce config.h.  The first handles `#define'
32302 # templates, and the second `#undef' templates.
32303 # And first: Protect against being on the right side of a sed subst in
32304 # config.status.  Protect against being in an unquoted here document
32305 # in config.status.
32306 rm -f conftest.defines conftest.undefs
32307 # Using a here document instead of a string reduces the quoting nightmare.
32308 # Putting comments in sed scripts is not portable.
32309 #
32310 # `end' is used to avoid that the second main sed command (meant for
32311 # 0-ary CPP macros) applies to n-ary macro definitions.
32312 # See the Autoconf documentation for `clear'.
32313 cat >confdef2sed.sed <<\_ACEOF
32314 s/[\\&,]/\\&/g
32315 s,[\\$`],\\&,g
32316 t clear
32317 : clear
32318 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32319 t end
32320 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32321 : end
32322 _ACEOF
32323 # If some macros were called several times there might be several times
32324 # the same #defines, which is useless.  Nevertheless, we may not want to
32325 # sort them, since we want the *last* AC-DEFINE to be honored.
32326 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32327 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32328 rm -f confdef2sed.sed
32329
32330 # This sed command replaces #undef with comments.  This is necessary, for
32331 # example, in the case of _POSIX_SOURCE, which is predefined and required
32332 # on some systems where configure will not decide to define it.
32333 cat >>conftest.undefs <<\_ACEOF
32334 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32335 _ACEOF
32336
32337 # Break up conftest.defines because some shells have a limit on the size
32338 # of here documents, and old seds have small limits too (100 cmds).
32339 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32340 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32341 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32342 echo '  :' >>$CONFIG_STATUS
32343 rm -f conftest.tail
32344 while grep . conftest.defines >/dev/null
32345 do
32346   # Write a limited-size here document to $tmp/defines.sed.
32347   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32348   # Speed up: don't consider the non `#define' lines.
32349   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32350   # Work around the forget-to-reset-the-flag bug.
32351   echo 't clr' >>$CONFIG_STATUS
32352   echo ': clr' >>$CONFIG_STATUS
32353   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32354   echo 'CEOF
32355   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32356   rm -f $tmp/in
32357   mv $tmp/out $tmp/in
32358 ' >>$CONFIG_STATUS
32359   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32360   rm -f conftest.defines
32361   mv conftest.tail conftest.defines
32362 done
32363 rm -f conftest.defines
32364 echo '  fi # grep' >>$CONFIG_STATUS
32365 echo >>$CONFIG_STATUS
32366
32367 # Break up conftest.undefs because some shells have a limit on the size
32368 # of here documents, and old seds have small limits too (100 cmds).
32369 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32370 rm -f conftest.tail
32371 while grep . conftest.undefs >/dev/null
32372 do
32373   # Write a limited-size here document to $tmp/undefs.sed.
32374   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32375   # Speed up: don't consider the non `#undef'
32376   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32377   # Work around the forget-to-reset-the-flag bug.
32378   echo 't clr' >>$CONFIG_STATUS
32379   echo ': clr' >>$CONFIG_STATUS
32380   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32381   echo 'CEOF
32382   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32383   rm -f $tmp/in
32384   mv $tmp/out $tmp/in
32385 ' >>$CONFIG_STATUS
32386   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32387   rm -f conftest.undefs
32388   mv conftest.tail conftest.undefs
32389 done
32390 rm -f conftest.undefs
32391
32392 cat >>$CONFIG_STATUS <<\_ACEOF
32393   # Let's still pretend it is `configure' which instantiates (i.e., don't
32394   # use $as_me), people would be surprised to read:
32395   #    /* config.h.  Generated by config.status.  */
32396   if test x"$ac_file" = x-; then
32397     echo "/* Generated by configure.  */" >$tmp/config.h
32398   else
32399     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32400   fi
32401   cat $tmp/in >>$tmp/config.h
32402   rm -f $tmp/in
32403   if test x"$ac_file" != x-; then
32404     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32405       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32406 echo "$as_me: $ac_file is unchanged" >&6;}
32407     else
32408       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32409 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32410          X"$ac_file" : 'X\(//\)[^/]' \| \
32411          X"$ac_file" : 'X\(//\)$' \| \
32412          X"$ac_file" : 'X\(/\)' \| \
32413          .     : '\(.\)' 2>/dev/null ||
32414 echo X"$ac_file" |
32415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32416           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32417           /^X\(\/\/\)$/{ s//\1/; q; }
32418           /^X\(\/\).*/{ s//\1/; q; }
32419           s/.*/./; q'`
32420       { if $as_mkdir_p; then
32421     mkdir -p "$ac_dir"
32422   else
32423     as_dir="$ac_dir"
32424     as_dirs=
32425     while test ! -d "$as_dir"; do
32426       as_dirs="$as_dir $as_dirs"
32427       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32428 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32429          X"$as_dir" : 'X\(//\)[^/]' \| \
32430          X"$as_dir" : 'X\(//\)$' \| \
32431          X"$as_dir" : 'X\(/\)' \| \
32432          .     : '\(.\)' 2>/dev/null ||
32433 echo X"$as_dir" |
32434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32435           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32436           /^X\(\/\/\)$/{ s//\1/; q; }
32437           /^X\(\/\).*/{ s//\1/; q; }
32438           s/.*/./; q'`
32439     done
32440     test ! -n "$as_dirs" || mkdir $as_dirs
32441   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32442 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32443    { (exit 1); exit 1; }; }; }
32444
32445       rm -f $ac_file
32446       mv $tmp/config.h $ac_file
32447     fi
32448   else
32449     cat $tmp/config.h
32450     rm -f $tmp/config.h
32451   fi
32452 done
32453 _ACEOF
32454 cat >>$CONFIG_STATUS <<\_ACEOF
32455
32456 #
32457 # CONFIG_COMMANDS section.
32458 #
32459 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32460   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32461   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32462   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32463 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32464          X"$ac_dest" : 'X\(//\)[^/]' \| \
32465          X"$ac_dest" : 'X\(//\)$' \| \
32466          X"$ac_dest" : 'X\(/\)' \| \
32467          .     : '\(.\)' 2>/dev/null ||
32468 echo X"$ac_dest" |
32469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32471           /^X\(\/\/\)$/{ s//\1/; q; }
32472           /^X\(\/\).*/{ s//\1/; q; }
32473           s/.*/./; q'`
32474   { if $as_mkdir_p; then
32475     mkdir -p "$ac_dir"
32476   else
32477     as_dir="$ac_dir"
32478     as_dirs=
32479     while test ! -d "$as_dir"; do
32480       as_dirs="$as_dir $as_dirs"
32481       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32483          X"$as_dir" : 'X\(//\)[^/]' \| \
32484          X"$as_dir" : 'X\(//\)$' \| \
32485          X"$as_dir" : 'X\(/\)' \| \
32486          .     : '\(.\)' 2>/dev/null ||
32487 echo X"$as_dir" |
32488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32490           /^X\(\/\/\)$/{ s//\1/; q; }
32491           /^X\(\/\).*/{ s//\1/; q; }
32492           s/.*/./; q'`
32493     done
32494     test ! -n "$as_dirs" || mkdir $as_dirs
32495   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32497    { (exit 1); exit 1; }; }; }
32498
32499   ac_builddir=.
32500
32501 if test "$ac_dir" != .; then
32502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32503   # A "../" for each directory in $ac_dir_suffix.
32504   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32505 else
32506   ac_dir_suffix= ac_top_builddir=
32507 fi
32508
32509 case $srcdir in
32510   .)  # No --srcdir option.  We are building in place.
32511     ac_srcdir=.
32512     if test -z "$ac_top_builddir"; then
32513        ac_top_srcdir=.
32514     else
32515        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32516     fi ;;
32517   [\\/]* | ?:[\\/]* )  # Absolute path.
32518     ac_srcdir=$srcdir$ac_dir_suffix;
32519     ac_top_srcdir=$srcdir ;;
32520   *) # Relative path.
32521     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32522     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32523 esac
32524
32525 # Do not use `cd foo && pwd` to compute absolute paths, because
32526 # the directories may not exist.
32527 case `pwd` in
32528 .) ac_abs_builddir="$ac_dir";;
32529 *)
32530   case "$ac_dir" in
32531   .) ac_abs_builddir=`pwd`;;
32532   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32533   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32534   esac;;
32535 esac
32536 case $ac_abs_builddir in
32537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32538 *)
32539   case ${ac_top_builddir}. in
32540   .) ac_abs_top_builddir=$ac_abs_builddir;;
32541   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32542   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32543   esac;;
32544 esac
32545 case $ac_abs_builddir in
32546 .) ac_abs_srcdir=$ac_srcdir;;
32547 *)
32548   case $ac_srcdir in
32549   .) ac_abs_srcdir=$ac_abs_builddir;;
32550   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32551   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32552   esac;;
32553 esac
32554 case $ac_abs_builddir in
32555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32556 *)
32557   case $ac_top_srcdir in
32558   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32559   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32560   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32561   esac;;
32562 esac
32563
32564
32565   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32566 echo "$as_me: executing $ac_dest commands" >&6;}
32567   case $ac_dest in
32568     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32569    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32570     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32571    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32572     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32573    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32574     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32575    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32576     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32577    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32578     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32579    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32580     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32581    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32582     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32583    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32584     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32585    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32586     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32587    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32588   esac
32589 done
32590 _ACEOF
32591
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32593
32594 { (exit 0); exit 0; }
32595 _ACEOF
32596 chmod +x $CONFIG_STATUS
32597 ac_clean_files=$ac_clean_files_save
32598
32599
32600 # configure is writing to config.log, and then calls config.status.
32601 # config.status does its own redirection, appending to config.log.
32602 # Unfortunately, on DOS this fails, as config.log is still kept open
32603 # by configure, so config.status won't be able to write to it; its
32604 # output is simply discarded.  So we exec the FD to /dev/null,
32605 # effectively closing config.log, so it can be properly (re)opened and
32606 # appended to by config.status.  When coming back to configure, we
32607 # need to make the FD available again.
32608 if test "$no_create" != yes; then
32609   ac_cs_success=:
32610   ac_config_status_args=
32611   test "$silent" = yes &&
32612     ac_config_status_args="$ac_config_status_args --quiet"
32613   exec 5>/dev/null
32614   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32615   exec 5>>config.log
32616   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32617   # would make configure fail if this is the last instruction.
32618   $ac_cs_success || { (exit 1); exit 1; }
32619 fi
32620
32621 #
32622 # CONFIG_SUBDIRS section.
32623 #
32624 if test "$no_recursion" != yes; then
32625
32626   # Remove --cache-file and --srcdir arguments so they do not pile up.
32627   ac_sub_configure_args=
32628   ac_prev=
32629   for ac_arg in $ac_configure_args; do
32630     if test -n "$ac_prev"; then
32631       ac_prev=
32632       continue
32633     fi
32634     case $ac_arg in
32635     -cache-file | --cache-file | --cache-fil | --cache-fi \
32636     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32637       ac_prev=cache_file ;;
32638     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32639     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32640     | --c=*)
32641       ;;
32642     --config-cache | -C)
32643       ;;
32644     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32645       ac_prev=srcdir ;;
32646     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32647       ;;
32648     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32649       ac_prev=prefix ;;
32650     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32651       ;;
32652     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32653     esac
32654   done
32655
32656   # Always prepend --prefix to ensure using the same prefix
32657   # in subdir configurations.
32658   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32659
32660   ac_popdir=`pwd`
32661   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32662
32663     # Do not complain, so a configure script can configure whichever
32664     # parts of a large source tree are present.
32665     test -d $srcdir/$ac_dir || continue
32666
32667     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32668 echo "$as_me: configuring in $ac_dir" >&6;}
32669     { if $as_mkdir_p; then
32670     mkdir -p "$ac_dir"
32671   else
32672     as_dir="$ac_dir"
32673     as_dirs=
32674     while test ! -d "$as_dir"; do
32675       as_dirs="$as_dir $as_dirs"
32676       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32678          X"$as_dir" : 'X\(//\)[^/]' \| \
32679          X"$as_dir" : 'X\(//\)$' \| \
32680          X"$as_dir" : 'X\(/\)' \| \
32681          .     : '\(.\)' 2>/dev/null ||
32682 echo X"$as_dir" |
32683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32685           /^X\(\/\/\)$/{ s//\1/; q; }
32686           /^X\(\/\).*/{ s//\1/; q; }
32687           s/.*/./; q'`
32688     done
32689     test ! -n "$as_dirs" || mkdir $as_dirs
32690   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32691 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32692    { (exit 1); exit 1; }; }; }
32693
32694     ac_builddir=.
32695
32696 if test "$ac_dir" != .; then
32697   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32698   # A "../" for each directory in $ac_dir_suffix.
32699   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32700 else
32701   ac_dir_suffix= ac_top_builddir=
32702 fi
32703
32704 case $srcdir in
32705   .)  # No --srcdir option.  We are building in place.
32706     ac_srcdir=.
32707     if test -z "$ac_top_builddir"; then
32708        ac_top_srcdir=.
32709     else
32710        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32711     fi ;;
32712   [\\/]* | ?:[\\/]* )  # Absolute path.
32713     ac_srcdir=$srcdir$ac_dir_suffix;
32714     ac_top_srcdir=$srcdir ;;
32715   *) # Relative path.
32716     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32717     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32718 esac
32719
32720 # Do not use `cd foo && pwd` to compute absolute paths, because
32721 # the directories may not exist.
32722 case `pwd` in
32723 .) ac_abs_builddir="$ac_dir";;
32724 *)
32725   case "$ac_dir" in
32726   .) ac_abs_builddir=`pwd`;;
32727   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32728   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32729   esac;;
32730 esac
32731 case $ac_abs_builddir in
32732 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32733 *)
32734   case ${ac_top_builddir}. in
32735   .) ac_abs_top_builddir=$ac_abs_builddir;;
32736   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32737   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32738   esac;;
32739 esac
32740 case $ac_abs_builddir in
32741 .) ac_abs_srcdir=$ac_srcdir;;
32742 *)
32743   case $ac_srcdir in
32744   .) ac_abs_srcdir=$ac_abs_builddir;;
32745   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32746   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32747   esac;;
32748 esac
32749 case $ac_abs_builddir in
32750 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32751 *)
32752   case $ac_top_srcdir in
32753   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32754   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32755   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32756   esac;;
32757 esac
32758
32759
32760     cd $ac_dir
32761
32762     # Check for guested configure; otherwise get Cygnus style configure.
32763     if test -f $ac_srcdir/configure.gnu; then
32764       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32765     elif test -f $ac_srcdir/configure; then
32766       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32767     elif test -f $ac_srcdir/configure.in; then
32768       ac_sub_configure=$ac_configure
32769     else
32770       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32771 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32772       ac_sub_configure=
32773     fi
32774
32775     # The recursion is here.
32776     if test -n "$ac_sub_configure"; then
32777       # Make the cache file name correct relative to the subdirectory.
32778       case $cache_file in
32779       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32780       *) # Relative path.
32781         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32782       esac
32783
32784       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32785 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32786       # The eval makes quoting arguments work.
32787       eval $ac_sub_configure $ac_sub_configure_args \
32788            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32789         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32790 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32791    { (exit 1); exit 1; }; }
32792     fi
32793
32794     cd $ac_popdir
32795   done
32796 fi
32797
32798
32799 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32800  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32801 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32802  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32803 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32804  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32805 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32806  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32807 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32808  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32809 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32810 fi