Added the privbracket project to the list of projects to auto-configure.
[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 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-tclinclude       directory where tcl headers are
1061   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1062   --with-pic              try to use only PIC/non-PIC objects [default=use
1063                           both]
1064   --with-tags[=TAGS]
1065                           include additional configurations [automatic]
1066
1067 Some influential environment variables:
1068   CC          C compiler command
1069   CFLAGS      C compiler flags
1070   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071               nonstandard directory <lib dir>
1072   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073               headers in a nonstandard directory <include dir>
1074   CPP         C preprocessor
1075   CXX         C++ compiler command
1076   CXXFLAGS    C++ compiler flags
1077   CXXCPP      C++ preprocessor
1078   F77         Fortran 77 compiler command
1079   FFLAGS      Fortran 77 compiler flags
1080
1081 Use these variables to override the choices made by `configure' or to help
1082 it to find libraries and programs with nonstandard names/locations.
1083
1084 Report bugs to <llvmbugs@cs.uiuc.edu>.
1085 _ACEOF
1086 fi
1087
1088 if test "$ac_init_help" = "recursive"; then
1089   # If there are subdirs, report their specific --help.
1090   ac_popdir=`pwd`
1091   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092     test -d $ac_dir || continue
1093     ac_builddir=.
1094
1095 if test "$ac_dir" != .; then
1096   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097   # A "../" for each directory in $ac_dir_suffix.
1098   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 else
1100   ac_dir_suffix= ac_top_builddir=
1101 fi
1102
1103 case $srcdir in
1104   .)  # No --srcdir option.  We are building in place.
1105     ac_srcdir=.
1106     if test -z "$ac_top_builddir"; then
1107        ac_top_srcdir=.
1108     else
1109        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110     fi ;;
1111   [\\/]* | ?:[\\/]* )  # Absolute path.
1112     ac_srcdir=$srcdir$ac_dir_suffix;
1113     ac_top_srcdir=$srcdir ;;
1114   *) # Relative path.
1115     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117 esac
1118
1119 # Do not use `cd foo && pwd` to compute absolute paths, because
1120 # the directories may not exist.
1121 case `pwd` in
1122 .) ac_abs_builddir="$ac_dir";;
1123 *)
1124   case "$ac_dir" in
1125   .) ac_abs_builddir=`pwd`;;
1126   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1127   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1128   esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *)
1133   case ${ac_top_builddir}. in
1134   .) ac_abs_top_builddir=$ac_abs_builddir;;
1135   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1136   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1137   esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_srcdir=$ac_srcdir;;
1141 *)
1142   case $ac_srcdir in
1143   .) ac_abs_srcdir=$ac_abs_builddir;;
1144   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1145   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1146   esac;;
1147 esac
1148 case $ac_abs_builddir in
1149 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *)
1151   case $ac_top_srcdir in
1152   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1154   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1155   esac;;
1156 esac
1157
1158     cd $ac_dir
1159     # Check for guested configure; otherwise get Cygnus style configure.
1160     if test -f $ac_srcdir/configure.gnu; then
1161       echo
1162       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1163     elif test -f $ac_srcdir/configure; then
1164       echo
1165       $SHELL $ac_srcdir/configure  --help=recursive
1166     elif test -f $ac_srcdir/configure.ac ||
1167            test -f $ac_srcdir/configure.in; then
1168       echo
1169       $ac_configure --help
1170     else
1171       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1172     fi
1173     cd $ac_popdir
1174   done
1175 fi
1176
1177 test -n "$ac_init_help" && exit 0
1178 if $ac_init_version; then
1179   cat <<\_ACEOF
1180 llvm configure 1.8cvs
1181 generated by GNU Autoconf 2.59
1182
1183 Copyright (C) 2003 Free Software Foundation, Inc.
1184 This configure script is free software; the Free Software Foundation
1185 gives unlimited permission to copy, distribute and modify it.
1186
1187 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1188 _ACEOF
1189   exit 0
1190 fi
1191 exec 5>config.log
1192 cat >&5 <<_ACEOF
1193 This file contains any messages produced by compilers while
1194 running configure, to aid debugging if configure makes a mistake.
1195
1196 It was created by llvm $as_me 1.8cvs, which was
1197 generated by GNU Autoconf 2.59.  Invocation command line was
1198
1199   $ $0 $@
1200
1201 _ACEOF
1202 {
1203 cat <<_ASUNAME
1204 ## --------- ##
1205 ## Platform. ##
1206 ## --------- ##
1207
1208 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1216
1217 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1218 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1219 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1221 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1222 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1223 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1224
1225 _ASUNAME
1226
1227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 for as_dir in $PATH
1229 do
1230   IFS=$as_save_IFS
1231   test -z "$as_dir" && as_dir=.
1232   echo "PATH: $as_dir"
1233 done
1234
1235 } >&5
1236
1237 cat >&5 <<_ACEOF
1238
1239
1240 ## ----------- ##
1241 ## Core tests. ##
1242 ## ----------- ##
1243
1244 _ACEOF
1245
1246
1247 # Keep a trace of the command line.
1248 # Strip out --no-create and --no-recursion so they do not pile up.
1249 # Strip out --silent because we don't want to record it for future runs.
1250 # Also quote any args containing shell meta-characters.
1251 # Make two passes to allow for proper duplicate-argument suppression.
1252 ac_configure_args=
1253 ac_configure_args0=
1254 ac_configure_args1=
1255 ac_sep=
1256 ac_must_keep_next=false
1257 for ac_pass in 1 2
1258 do
1259   for ac_arg
1260   do
1261     case $ac_arg in
1262     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264     | -silent | --silent | --silen | --sile | --sil)
1265       continue ;;
1266     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268     esac
1269     case $ac_pass in
1270     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271     2)
1272       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273       if test $ac_must_keep_next = true; then
1274         ac_must_keep_next=false # Got value, back to normal.
1275       else
1276         case $ac_arg in
1277           *=* | --config-cache | -C | -disable-* | --disable-* \
1278           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280           | -with-* | --with-* | -without-* | --without-* | --x)
1281             case "$ac_configure_args0 " in
1282               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283             esac
1284             ;;
1285           -* ) ac_must_keep_next=true ;;
1286         esac
1287       fi
1288       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289       # Get rid of the leading space.
1290       ac_sep=" "
1291       ;;
1292     esac
1293   done
1294 done
1295 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297
1298 # When interrupted or exit'd, cleanup temporary files, and complete
1299 # config.log.  We remove comments because anyway the quotes in there
1300 # would cause problems or look ugly.
1301 # WARNING: Be sure not to use single quotes in there, as some shells,
1302 # such as our DU 5.0 friend, will then `close' the trap.
1303 trap 'exit_status=$?
1304   # Save into config.log some information that might help in debugging.
1305   {
1306     echo
1307
1308     cat <<\_ASBOX
1309 ## ---------------- ##
1310 ## Cache variables. ##
1311 ## ---------------- ##
1312 _ASBOX
1313     echo
1314     # The following way of writing the cache mishandles newlines in values,
1315 {
1316   (set) 2>&1 |
1317     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318     *ac_space=\ *)
1319       sed -n \
1320         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322       ;;
1323     *)
1324       sed -n \
1325         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326       ;;
1327     esac;
1328 }
1329     echo
1330
1331     cat <<\_ASBOX
1332 ## ----------------- ##
1333 ## Output variables. ##
1334 ## ----------------- ##
1335 _ASBOX
1336     echo
1337     for ac_var in $ac_subst_vars
1338     do
1339       eval ac_val=$`echo $ac_var`
1340       echo "$ac_var='"'"'$ac_val'"'"'"
1341     done | sort
1342     echo
1343
1344     if test -n "$ac_subst_files"; then
1345       cat <<\_ASBOX
1346 ## ------------- ##
1347 ## Output files. ##
1348 ## ------------- ##
1349 _ASBOX
1350       echo
1351       for ac_var in $ac_subst_files
1352       do
1353         eval ac_val=$`echo $ac_var`
1354         echo "$ac_var='"'"'$ac_val'"'"'"
1355       done | sort
1356       echo
1357     fi
1358
1359     if test -s confdefs.h; then
1360       cat <<\_ASBOX
1361 ## ----------- ##
1362 ## confdefs.h. ##
1363 ## ----------- ##
1364 _ASBOX
1365       echo
1366       sed "/^$/d" confdefs.h | sort
1367       echo
1368     fi
1369     test "$ac_signal" != 0 &&
1370       echo "$as_me: caught signal $ac_signal"
1371     echo "$as_me: exit $exit_status"
1372   } >&5
1373   rm -f core *.core &&
1374   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375     exit $exit_status
1376      ' 0
1377 for ac_signal in 1 2 13 15; do
1378   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 done
1380 ac_signal=0
1381
1382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1383 rm -rf conftest* confdefs.h
1384 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385 echo >confdefs.h
1386
1387 # Predefined preprocessor variables.
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 _ACEOF
1412
1413
1414 # Let the site file select an alternate cache file if it wants to.
1415 # Prefer explicitly selected file to automatically selected ones.
1416 if test -z "$CONFIG_SITE"; then
1417   if test "x$prefix" != xNONE; then
1418     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419   else
1420     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421   fi
1422 fi
1423 for ac_site_file in $CONFIG_SITE; do
1424   if test -r "$ac_site_file"; then
1425     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426 echo "$as_me: loading site script $ac_site_file" >&6;}
1427     sed 's/^/| /' "$ac_site_file" >&5
1428     . "$ac_site_file"
1429   fi
1430 done
1431
1432 if test -r "$cache_file"; then
1433   # Some versions of bash will fail to source /dev/null (special
1434   # files actually), so we avoid doing that.
1435   if test -f "$cache_file"; then
1436     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437 echo "$as_me: loading cache $cache_file" >&6;}
1438     case $cache_file in
1439       [\\/]* | ?:[\\/]* ) . $cache_file;;
1440       *)                      . ./$cache_file;;
1441     esac
1442   fi
1443 else
1444   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445 echo "$as_me: creating cache $cache_file" >&6;}
1446   >$cache_file
1447 fi
1448
1449 # Check that the precious variables saved in the cache have kept the same
1450 # value.
1451 ac_cache_corrupted=false
1452 for ac_var in `(set) 2>&1 |
1453                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1454   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455   eval ac_new_set=\$ac_env_${ac_var}_set
1456   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457   eval ac_new_val="\$ac_env_${ac_var}_value"
1458   case $ac_old_set,$ac_new_set in
1459     set,)
1460       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462       ac_cache_corrupted=: ;;
1463     ,set)
1464       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466       ac_cache_corrupted=: ;;
1467     ,);;
1468     *)
1469       if test "x$ac_old_val" != "x$ac_new_val"; then
1470         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1471 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1472         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1473 echo "$as_me:   former value:  $ac_old_val" >&2;}
1474         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1475 echo "$as_me:   current value: $ac_new_val" >&2;}
1476         ac_cache_corrupted=:
1477       fi;;
1478   esac
1479   # Pass precious variables to config.status.
1480   if test "$ac_new_set" = set; then
1481     case $ac_new_val in
1482     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484     *) ac_arg=$ac_var=$ac_new_val ;;
1485     esac
1486     case " $ac_configure_args " in
1487       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1488       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489     esac
1490   fi
1491 done
1492 if $ac_cache_corrupted; then
1493   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497    { (exit 1); exit 1; }; }
1498 fi
1499
1500 ac_ext=c
1501 ac_cpp='$CPP $CPPFLAGS'
1502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1534
1535
1536
1537
1538
1539
1540
1541 ac_aux_dir=
1542 for ac_dir in autoconf $srcdir/autoconf; do
1543   if test -f $ac_dir/install-sh; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/install-sh -c"
1546     break
1547   elif test -f $ac_dir/install.sh; then
1548     ac_aux_dir=$ac_dir
1549     ac_install_sh="$ac_aux_dir/install.sh -c"
1550     break
1551   elif test -f $ac_dir/shtool; then
1552     ac_aux_dir=$ac_dir
1553     ac_install_sh="$ac_aux_dir/shtool install -c"
1554     break
1555   fi
1556 done
1557 if test -z "$ac_aux_dir"; then
1558   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1559 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1560    { (exit 1); exit 1; }; }
1561 fi
1562 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1563 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1564 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565
1566
1567 if test ${srcdir} != "." ; then
1568   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1569     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1570 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1571    { (exit 1); exit 1; }; }
1572   fi
1573 fi
1574
1575 for i in `ls ${srcdir}/projects`
1576 do
1577   if test -d ${srcdir}/projects/${i} ; then
1578     case ${i} in
1579       "CVS") ;;
1580       "sample")
1581
1582 subdirs="$subdirs projects/sample"
1583     ;;
1584       "Stacker")
1585
1586 subdirs="$subdirs projects/Stacker"
1587    ;;
1588       "privbracket")
1589
1590 subdirs="$subdirs projects/privbracket"
1591  ;;
1592       "llvm-test")
1593
1594 subdirs="$subdirs projects/llvm-test"
1595  ;;
1596       "llvm-reopt")
1597
1598 subdirs="$subdirs projects/llvm-reopt"
1599 ;;
1600       "llvm-gcc")
1601
1602 subdirs="$subdirs projects/llvm-gcc"
1603   ;;
1604       "llvm-java")
1605
1606 subdirs="$subdirs projects/llvm-java"
1607  ;;
1608       "llvm-tv")
1609
1610 subdirs="$subdirs projects/llvm-tv"
1611    ;;
1612       "llvm-poolalloc")
1613
1614 subdirs="$subdirs projects/llvm-poolalloc"
1615  ;;
1616       "llvm-kernel")
1617
1618 subdirs="$subdirs projects/llvm-kernel"
1619  ;;
1620       *)
1621         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1622 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1623         ;;
1624     esac
1625   fi
1626 done
1627
1628
1629 # Make sure we can run config.sub.
1630 $ac_config_sub sun4 >/dev/null 2>&1 ||
1631   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633    { (exit 1); exit 1; }; }
1634
1635 echo "$as_me:$LINENO: checking build system type" >&5
1636 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637 if test "${ac_cv_build+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   ac_cv_build_alias=$build_alias
1641 test -z "$ac_cv_build_alias" &&
1642   ac_cv_build_alias=`$ac_config_guess`
1643 test -z "$ac_cv_build_alias" &&
1644   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646    { (exit 1); exit 1; }; }
1647 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650    { (exit 1); exit 1; }; }
1651
1652 fi
1653 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654 echo "${ECHO_T}$ac_cv_build" >&6
1655 build=$ac_cv_build
1656 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661 echo "$as_me:$LINENO: checking host system type" >&5
1662 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1663 if test "${ac_cv_host+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   ac_cv_host_alias=$host_alias
1667 test -z "$ac_cv_host_alias" &&
1668   ac_cv_host_alias=$ac_cv_build_alias
1669 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1670   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1671 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1672    { (exit 1); exit 1; }; }
1673
1674 fi
1675 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1676 echo "${ECHO_T}$ac_cv_host" >&6
1677 host=$ac_cv_host
1678 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683 echo "$as_me:$LINENO: checking target system type" >&5
1684 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1685 if test "${ac_cv_target+set}" = set; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   ac_cv_target_alias=$target_alias
1689 test "x$ac_cv_target_alias" = "x" &&
1690   ac_cv_target_alias=$ac_cv_host_alias
1691 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1692   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1693 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1694    { (exit 1); exit 1; }; }
1695
1696 fi
1697 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1698 echo "${ECHO_T}$ac_cv_target" >&6
1699 target=$ac_cv_target
1700 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703
1704
1705 # The aliases save the names the user supplied, while $host etc.
1706 # will get canonicalized.
1707 test -n "$target_alias" &&
1708   test "$program_prefix$program_suffix$program_transform_name" = \
1709     NONENONEs,x,x, &&
1710   program_prefix=${target_alias}-
1711
1712 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1713 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1714 if test "${llvm_cv_os_type+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   case $build in
1718   *-*-aix*)
1719     llvm_cv_os_type="AIX"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-cygwin*)
1722     llvm_cv_os_type="Cygwin"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-darwin*)
1725     llvm_cv_os_type="Darwin"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-freebsd*)
1728     llvm_cv_os_type="FreeBSD"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-openbsd*)
1731     llvm_cv_os_type="OpenBSD"
1732     llvm_cv_platform_type="Unix" ;;
1733   *-*-hpux*)
1734     llvm_cv_os_type="HP-UX"
1735     llvm_cv_platform_type="Unix" ;;
1736   *-*-interix*)
1737     llvm_cv_os_type="Interix"
1738     llvm_cv_platform_type="Unix" ;;
1739   *-*-linux*)
1740     llvm_cv_os_type="Linux"
1741     llvm_cv_platform_type="Unix" ;;
1742   *-*-solaris*)
1743     llvm_cv_os_type="SunOS"
1744     llvm_cv_platform_type="Unix" ;;
1745   *-*-win32*)
1746     llvm_cv_os_type="Win32"
1747     llvm_cv_platform_type="Win32" ;;
1748   *-*-mingw*)
1749     llvm_cv_os_type="MingW"
1750     llvm_cv_platform_type="Win32" ;;
1751   *)
1752     llvm_cv_os_type="Unknown"
1753     llvm_cv_platform_type="Unknown" ;;
1754 esac
1755 fi
1756 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1757 echo "${ECHO_T}$llvm_cv_os_type" >&6
1758
1759 if test "$llvm_cv_os_type" = "Unknown" ; then
1760   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1761 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1762    { (exit 1); exit 1; }; }
1763 fi
1764
1765 OS=$llvm_cv_os_type
1766
1767
1768 case $llvm_cv_platform_type in
1769   Unix)
1770
1771 cat >>confdefs.h <<\_ACEOF
1772 #define LLVM_ON_UNIX 1
1773 _ACEOF
1774
1775     LLVM_ON_UNIX=1
1776
1777     LLVM_ON_WIN32=0
1778
1779     ;;
1780   Win32)
1781
1782 cat >>confdefs.h <<\_ACEOF
1783 #define LLVM_ON_WIN32 1
1784 _ACEOF
1785
1786     LLVM_ON_UNIX=0
1787
1788     LLVM_ON_WIN32=1
1789
1790     ;;
1791 esac
1792
1793 echo "$as_me:$LINENO: checking target architecture" >&5
1794 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1795 if test "${llvm_cv_target_arch+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   case $target in
1799   i?86-*)                 llvm_cv_target_arch="x86" ;;
1800   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1801   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1802   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1803   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1804   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1805   *)                      llvm_cv_target_arch="Unknown" ;;
1806 esac
1807 fi
1808 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1809 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1810
1811 if test "$llvm_cv_target_arch" = "Unknown" ; then
1812   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1813 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1814 fi
1815
1816 ARCH=$llvm_cv_target_arch
1817
1818
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824 if test -n "$ac_tool_prefix"; then
1825   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1826 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_CC+set}" = set; then
1830   echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832   if test -n "$CC"; then
1833   ac_cv_prog_CC="$CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838   IFS=$as_save_IFS
1839   test -z "$as_dir" && as_dir=.
1840   for ac_exec_ext in '' $ac_executable_extensions; do
1841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844     break 2
1845   fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 CC=$ac_cv_prog_CC
1852 if test -n "$CC"; then
1853   echo "$as_me:$LINENO: result: $CC" >&5
1854 echo "${ECHO_T}$CC" >&6
1855 else
1856   echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 fi
1861 if test -z "$ac_cv_prog_CC"; then
1862   ac_ct_CC=$CC
1863   # Extract the first word of "gcc", so it can be a program name with args.
1864 set dummy gcc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$ac_ct_CC"; then
1871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_ac_ct_CC="gcc"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898   CC=$ac_ct_CC
1899 else
1900   CC="$ac_cv_prog_CC"
1901 fi
1902
1903 if test -z "$CC"; then
1904   if test -n "$ac_tool_prefix"; then
1905   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}cc; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_CC+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$CC"; then
1913   ac_cv_prog_CC="$CC" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_CC="${ac_tool_prefix}cc"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 CC=$ac_cv_prog_CC
1932 if test -n "$CC"; then
1933   echo "$as_me:$LINENO: result: $CC" >&5
1934 echo "${ECHO_T}$CC" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 fi
1941 if test -z "$ac_cv_prog_CC"; then
1942   ac_ct_CC=$CC
1943   # Extract the first word of "cc", so it can be a program name with args.
1944 set dummy cc; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_CC"; then
1951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_CC="cc"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978   CC=$ac_ct_CC
1979 else
1980   CC="$ac_cv_prog_CC"
1981 fi
1982
1983 fi
1984 if test -z "$CC"; then
1985   # Extract the first word of "cc", so it can be a program name with args.
1986 set dummy cc; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$CC"; then
1993   ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995   ac_prog_rejected=no
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2004        ac_prog_rejected=yes
2005        continue
2006      fi
2007     ac_cv_prog_CC="cc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013
2014 if test $ac_prog_rejected = yes; then
2015   # We found a bogon in the path, so make sure we never use it.
2016   set dummy $ac_cv_prog_CC
2017   shift
2018   if test $# != 0; then
2019     # We chose a different compiler from the bogus one.
2020     # However, it has the same basename, so the bogon will be chosen
2021     # first if we set CC to just the basename; use the full file name.
2022     shift
2023     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024   fi
2025 fi
2026 fi
2027 fi
2028 CC=$ac_cv_prog_CC
2029 if test -n "$CC"; then
2030   echo "$as_me:$LINENO: result: $CC" >&5
2031 echo "${ECHO_T}$CC" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$CC"; then
2039   if test -n "$ac_tool_prefix"; then
2040   for ac_prog in cl
2041   do
2042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2043 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2044 echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   if test -n "$CC"; then
2050   ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061     break 2
2062   fi
2063 done
2064 done
2065
2066 fi
2067 fi
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070   echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077     test -n "$CC" && break
2078   done
2079 fi
2080 if test -z "$CC"; then
2081   ac_ct_CC=$CC
2082   for ac_prog in cl
2083 do
2084   # Extract the first word of "$ac_prog", so it can be a program name with args.
2085 set dummy $ac_prog; ac_word=$2
2086 echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test -n "$ac_ct_CC"; then
2092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101     ac_cv_prog_ac_ct_CC="$ac_prog"
2102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107
2108 fi
2109 fi
2110 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111 if test -n "$ac_ct_CC"; then
2112   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113 echo "${ECHO_T}$ac_ct_CC" >&6
2114 else
2115   echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6
2117 fi
2118
2119   test -n "$ac_ct_CC" && break
2120 done
2121
2122   CC=$ac_ct_CC
2123 fi
2124
2125 fi
2126
2127
2128 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&5
2130 echo "$as_me: error: no acceptable C compiler found in \$PATH
2131 See \`config.log' for more details." >&2;}
2132    { (exit 1); exit 1; }; }
2133
2134 # Provide some information about the compiler.
2135 echo "$as_me:$LINENO:" \
2136      "checking for C compiler version" >&5
2137 ac_compiler=`set X $ac_compile; echo $2`
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2139   (eval $ac_compiler --version </dev/null >&5) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2144   (eval $ac_compiler -v </dev/null >&5) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2149   (eval $ac_compiler -V </dev/null >&5) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }
2153
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 ac_clean_files_save=$ac_clean_files
2170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2171 # Try to create an executable without -o first, disregard a.out.
2172 # It will help us diagnose broken compilers, and finding out an intuition
2173 # of exeext.
2174 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2177 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2178   (eval $ac_link_default) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; then
2182   # Find the output, starting from the most likely.  This scheme is
2183 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184 # resort.
2185
2186 # Be careful to initialize this variable, since it used to be cached.
2187 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2188 ac_cv_exeext=
2189 # b.out is created by i960 compilers.
2190 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2191 do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2195         ;;
2196     conftest.$ac_ext )
2197         # This is the source file.
2198         ;;
2199     [ab].out )
2200         # We found the default executable, but exeext='' is most
2201         # certainly right.
2202         break;;
2203     *.* )
2204         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205         # FIXME: I believe we export ac_cv_exeext for Libtool,
2206         # but it would be cool to find out if it's true.  Does anybody
2207         # maintain Libtool? --akim.
2208         export ac_cv_exeext
2209         break;;
2210     * )
2211         break;;
2212   esac
2213 done
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: C compiler cannot create executables
2221 See \`config.log' for more details." >&2;}
2222    { (exit 77); exit 77; }; }
2223 fi
2224
2225 ac_exeext=$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_file" >&5
2227 echo "${ECHO_T}$ac_file" >&6
2228
2229 # Check the compiler produces executables we can run.  If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2232 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2233 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2234 # If not cross compiling, check that we can run a simple program.
2235 if test "$cross_compiling" != yes; then
2236   if { ac_try='./$ac_file'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2266 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6
2268
2269 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2272   (eval $ac_link) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; then
2276   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2277 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2278 # work properly (i.e., refer to `conftest.exe'), while it won't with
2279 # `rm'.
2280 for ac_file in conftest.exe conftest conftest.*; do
2281   test -f "$ac_file" || continue
2282   case $ac_file in
2283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2284     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285           export ac_cv_exeext
2286           break;;
2287     * ) break;;
2288   esac
2289 done
2290 else
2291   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&5
2293 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&2;}
2295    { (exit 1); exit 1; }; }
2296 fi
2297
2298 rm -f conftest$ac_cv_exeext
2299 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2300 echo "${ECHO_T}$ac_cv_exeext" >&6
2301
2302 rm -f conftest.$ac_ext
2303 EXEEXT=$ac_cv_exeext
2304 ac_exeext=$EXEEXT
2305 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2306 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2307 if test "${ac_cv_objext+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316
2317 int
2318 main ()
2319 {
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 rm -f conftest.o conftest.obj
2326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2327   (eval $ac_compile) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; then
2331   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2332   case $ac_file in
2333     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2334     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2335        break;;
2336   esac
2337 done
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346    { (exit 1); exit 1; }; }
2347 fi
2348
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350 fi
2351 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6
2353 OBJEXT=$ac_cv_objext
2354 ac_objext=$OBJEXT
2355 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366
2367 int
2368 main ()
2369 {
2370 #ifndef __GNUC__
2371        choke me
2372 #endif
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380   (eval $ac_compile) 2>conftest.er1
2381   ac_status=$?
2382   grep -v '^ *+' conftest.er1 >conftest.err
2383   rm -f conftest.er1
2384   cat conftest.err >&5
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); } &&
2387          { ac_try='test -z "$ac_c_werror_flag"
2388                          || test ! -s conftest.err'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; } &&
2394          { ac_try='test -s conftest.$ac_objext'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_compiler_gnu=no
2406 fi
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409
2410 fi
2411 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2413 GCC=`test $ac_compiler_gnu = yes && echo yes`
2414 ac_test_CFLAGS=${CFLAGS+set}
2415 ac_save_CFLAGS=$CFLAGS
2416 CFLAGS="-g"
2417 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 int
2430 main ()
2431 {
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439   (eval $ac_compile) 2>conftest.er1
2440   ac_status=$?
2441   grep -v '^ *+' conftest.er1 >conftest.err
2442   rm -f conftest.er1
2443   cat conftest.err >&5
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -z "$ac_c_werror_flag"
2447                          || test ! -s conftest.err'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; } &&
2453          { ac_try='test -s conftest.$ac_objext'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459   ac_cv_prog_cc_g=yes
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_cv_prog_cc_g=no
2465 fi
2466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2467 fi
2468 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2469 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2470 if test "$ac_test_CFLAGS" = set; then
2471   CFLAGS=$ac_save_CFLAGS
2472 elif test $ac_cv_prog_cc_g = yes; then
2473   if test "$GCC" = yes; then
2474     CFLAGS="-g -O2"
2475   else
2476     CFLAGS="-g"
2477   fi
2478 else
2479   if test "$GCC" = yes; then
2480     CFLAGS="-O2"
2481   else
2482     CFLAGS=
2483   fi
2484 fi
2485 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2486 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2487 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   ac_cv_prog_cc_stdc=no
2491 ac_save_CC=$CC
2492 cat >conftest.$ac_ext <<_ACEOF
2493 /* confdefs.h.  */
2494 _ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h.  */
2498 #include <stdarg.h>
2499 #include <stdio.h>
2500 #include <sys/types.h>
2501 #include <sys/stat.h>
2502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2503 struct buf { int x; };
2504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2505 static char *e (p, i)
2506      char **p;
2507      int i;
2508 {
2509   return p[i];
2510 }
2511 static char *f (char * (*g) (char **, int), char **p, ...)
2512 {
2513   char *s;
2514   va_list v;
2515   va_start (v,p);
2516   s = g (p, va_arg (v,int));
2517   va_end (v);
2518   return s;
2519 }
2520
2521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2522    function prototypes and stuff, but not '\xHH' hex character constants.
2523    These don't provoke an error unfortunately, instead are silently treated
2524    as 'x'.  The following induces an error, until -std1 is added to get
2525    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2526    array size at least.  It's necessary to write '\x00'==0 to get something
2527    that's true only with -std1.  */
2528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2529
2530 int test (int i, double x);
2531 struct s1 {int (*f) (int a);};
2532 struct s2 {int (*f) (double a);};
2533 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 int argc;
2535 char **argv;
2536 int
2537 main ()
2538 {
2539 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 # Don't try gcc -ansi; that turns off useful extensions and
2545 # breaks some systems' header files.
2546 # AIX                   -qlanglvl=ansi
2547 # Ultrix and OSF/1      -std1
2548 # HP-UX 10.20 and later -Ae
2549 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2550 # SVR4                  -Xc -D__EXTENSIONS__
2551 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2552 do
2553   CC="$ac_save_CC $ac_arg"
2554   rm -f conftest.$ac_objext
2555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556   (eval $ac_compile) 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } &&
2563          { ac_try='test -z "$ac_c_werror_flag"
2564                          || test ! -s conftest.err'
2565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566   (eval $ac_try) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; }; then
2576   ac_cv_prog_cc_stdc=$ac_arg
2577 break
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582 fi
2583 rm -f conftest.err conftest.$ac_objext
2584 done
2585 rm -f conftest.$ac_ext conftest.$ac_objext
2586 CC=$ac_save_CC
2587
2588 fi
2589
2590 case "x$ac_cv_prog_cc_stdc" in
2591   x|xno)
2592     echo "$as_me:$LINENO: result: none needed" >&5
2593 echo "${ECHO_T}none needed" >&6 ;;
2594   *)
2595     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2597     CC="$CC $ac_cv_prog_cc_stdc" ;;
2598 esac
2599
2600 # Some people use a C++ compiler to compile C.  Since we use `exit',
2601 # in C++ we need to declare it.  In case someone uses the same compiler
2602 # for both compiling C and C++ we need to have the C++ compiler decide
2603 # the declaration of exit, since it's the most demanding environment.
2604 cat >conftest.$ac_ext <<_ACEOF
2605 #ifndef __cplusplus
2606   choke me
2607 #endif
2608 _ACEOF
2609 rm -f conftest.$ac_objext
2610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2611   (eval $ac_compile) 2>conftest.er1
2612   ac_status=$?
2613   grep -v '^ *+' conftest.er1 >conftest.err
2614   rm -f conftest.er1
2615   cat conftest.err >&5
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); } &&
2618          { ac_try='test -z "$ac_c_werror_flag"
2619                          || test ! -s conftest.err'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631   for ac_declaration in \
2632    '' \
2633    'extern "C" void std::exit (int) throw (); using std::exit;' \
2634    'extern "C" void std::exit (int); using std::exit;' \
2635    'extern "C" void exit (int) throw ();' \
2636    'extern "C" void exit (int);' \
2637    'void exit (int);'
2638 do
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645 $ac_declaration
2646 #include <stdlib.h>
2647 int
2648 main ()
2649 {
2650 exit (42);
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   :
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 continue
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691 $ac_declaration
2692 int
2693 main ()
2694 {
2695 exit (42);
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702   (eval $ac_compile) 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } &&
2709          { ac_try='test -z "$ac_c_werror_flag"
2710                          || test ! -s conftest.err'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   break
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727 fi
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729 done
2730 rm -f conftest*
2731 if test -n "$ac_declaration"; then
2732   echo '#ifdef __cplusplus' >>confdefs.h
2733   echo $ac_declaration      >>confdefs.h
2734   echo '#endif'             >>confdefs.h
2735 fi
2736
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 fi
2742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2751 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2752 if test "${ac_cv_c_bigendian+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   # See if sys/param.h defines the BYTE_ORDER macro.
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h.  */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h.  */
2762 #include <sys/types.h>
2763 #include <sys/param.h>
2764
2765 int
2766 main ()
2767 {
2768 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2769  bogus endian macros
2770 #endif
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_c_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   # It does; now see whether it defined to BIG_ENDIAN or not.
2799 cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805 #include <sys/types.h>
2806 #include <sys/param.h>
2807
2808 int
2809 main ()
2810 {
2811 #if BYTE_ORDER != BIG_ENDIAN
2812  not big endian
2813 #endif
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 rm -f conftest.$ac_objext
2820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2821   (eval $ac_compile) 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } &&
2828          { ac_try='test -z "$ac_c_werror_flag"
2829                          || test ! -s conftest.err'
2830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831   (eval $ac_try) 2>&5
2832   ac_status=$?
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); }; } &&
2835          { ac_try='test -s conftest.$ac_objext'
2836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); }; }; then
2841   ac_cv_c_bigendian=yes
2842 else
2843   echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2845
2846 ac_cv_c_bigendian=no
2847 fi
2848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 # It does not; compile a test program.
2854 if test "$cross_compiling" = yes; then
2855   # try to guess the endianness by grepping values into an object file
2856   ac_cv_c_bigendian=unknown
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2864 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2865 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2866 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2867 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2868 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2869 int
2870 main ()
2871 {
2872  _ascii (); _ebcdic ();
2873   ;
2874   return 0;
2875 }
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879   (eval $ac_compile) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } &&
2886          { ac_try='test -z "$ac_c_werror_flag"
2887                          || test ! -s conftest.err'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; } &&
2893          { ac_try='test -s conftest.$ac_objext'
2894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2900   ac_cv_c_bigendian=yes
2901 fi
2902 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2903   if test "$ac_cv_c_bigendian" = unknown; then
2904     ac_cv_c_bigendian=no
2905   else
2906     # finding both strings is unlikely to happen, but who knows?
2907     ac_cv_c_bigendian=unknown
2908   fi
2909 fi
2910 else
2911   echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 fi
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 else
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 int
2924 main ()
2925 {
2926   /* Are we little or big endian?  From Harbison&Steele.  */
2927   union
2928   {
2929     long l;
2930     char c[sizeof (long)];
2931   } u;
2932   u.l = 1;
2933   exit (u.c[sizeof (long) - 1] == 1);
2934 }
2935 _ACEOF
2936 rm -f conftest$ac_exeext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938   (eval $ac_link) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   ac_cv_c_bigendian=no
2948 else
2949   echo "$as_me: program exited with status $ac_status" >&5
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 ( exit $ac_status )
2954 ac_cv_c_bigendian=yes
2955 fi
2956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2957 fi
2958 fi
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 fi
2961 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2962 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2963 case $ac_cv_c_bigendian in
2964   yes)
2965     ENDIAN=big
2966  ;;
2967   no)
2968     ENDIAN=little
2969  ;;
2970   *)
2971     { { echo "$as_me:$LINENO: error: unknown endianness
2972 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2973 echo "$as_me: error: unknown endianness
2974 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2975    { (exit 1); exit 1; }; } ;;
2976 esac
2977
2978
2979 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2980   cvsbuild="yes"
2981   optimize="no"
2982   CVSBUILD=CVSBUILD=1
2983
2984 else
2985   cvsbuild="no"
2986   optimize="yes"
2987 fi
2988
2989
2990 # Check whether --enable-optimized or --disable-optimized was given.
2991 if test "${enable_optimized+set}" = set; then
2992   enableval="$enable_optimized"
2993
2994 else
2995   enableval=$optimize
2996 fi;
2997 if test ${enableval} = "no" ; then
2998   ENABLE_OPTIMIZED=
2999
3000 else
3001   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3002
3003 fi
3004
3005 # Check whether --enable-assertions or --disable-assertions was given.
3006 if test "${enable_assertions+set}" = set; then
3007   enableval="$enable_assertions"
3008
3009 else
3010   enableval="yes"
3011 fi;
3012 if test ${enableval} = "yes" ; then
3013   DISABLE_ASSERTIONS=
3014
3015 else
3016   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3017
3018 fi
3019
3020 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3021 if test "${enable_debug_runtime+set}" = set; then
3022   enableval="$enable_debug_runtime"
3023
3024 else
3025   enableval=no
3026 fi;
3027 if test ${enableval} = "no" ; then
3028   DEBUG_RUNTIME=
3029
3030 else
3031   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3032
3033 fi
3034
3035 # Check whether --enable-jit or --disable-jit was given.
3036 if test "${enable_jit+set}" = set; then
3037   enableval="$enable_jit"
3038
3039 else
3040   enableval=default
3041 fi;
3042 if test ${enableval} = "no"
3043 then
3044   JIT=
3045
3046 else
3047   case "$llvm_cv_target_arch" in
3048     x86)     TARGET_HAS_JIT=1
3049  ;;
3050     Sparc)   TARGET_HAS_JIT=1
3051  ;;
3052     PowerPC) TARGET_HAS_JIT=1
3053  ;;
3054     x86_64)  TARGET_HAS_JIT=0
3055  ;;
3056     Alpha)   TARGET_HAS_JIT=1
3057  ;;
3058     IA64)    TARGET_HAS_JIT=0
3059  ;;
3060     *)       TARGET_HAS_JIT=0
3061  ;;
3062   esac
3063 fi
3064
3065 # Check whether --enable-doxygen or --disable-doxygen was given.
3066 if test "${enable_doxygen+set}" = set; then
3067   enableval="$enable_doxygen"
3068
3069 else
3070   enableval=default
3071 fi;
3072 case "$enableval" in
3073   yes) ENABLE_DOXYGEN=1
3074  ;;
3075   no)  ENABLE_DOXYGEN=0
3076  ;;
3077   default) ENABLE_DOXYGEN=0
3078  ;;
3079   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3080 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3081    { (exit 1); exit 1; }; } ;;
3082 esac
3083
3084 # Check whether --enable-threads or --disable-threads was given.
3085 if test "${enable_threads+set}" = set; then
3086   enableval="$enable_threads"
3087
3088 else
3089   enableval=yes
3090 fi;
3091 case "$enableval" in
3092   yes) ENABLE_THREADS=1
3093  ;;
3094   no)  ENABLE_THREADS=0
3095  ;;
3096   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3097 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3098    { (exit 1); exit 1; }; } ;;
3099 esac
3100
3101 cat >>confdefs.h <<_ACEOF
3102 #define ENABLE_THREADS $ENABLE_THREADS
3103 _ACEOF
3104
3105
3106 TARGETS_TO_BUILD=""
3107 # Check whether --enable-targets or --disable-targets was given.
3108 if test "${enable_targets+set}" = set; then
3109   enableval="$enable_targets"
3110
3111 else
3112   enableval=all
3113 fi;
3114 case "$enableval" in
3115   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3116   host-only)
3117     case "$llvm_cv_target_arch" in
3118       x86)     TARGETS_TO_BUILD="X86" ;;
3119       x86_64)  TARGETS_TO_BUILD="X86" ;;
3120       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3121       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3122       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3123       IA64)    TARGETS_TO_BUILD="IA64" ;;
3124       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3125 echo "$as_me: error: Can not set target to build" >&2;}
3126    { (exit 1); exit 1; }; } ;;
3127     esac
3128     ;;
3129   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3130       case "$a_target" in
3131         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3132         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3133         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3134         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3135         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3136         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3137         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3138 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3139    { (exit 1); exit 1; }; } ;;
3140       esac
3141   done
3142   ;;
3143 esac
3144 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3145 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3146
3147
3148
3149 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3150 if test "${with_llvmgccdir+set}" = set; then
3151   withval="$with_llvmgccdir"
3152
3153 else
3154   withval=default
3155 fi;
3156 case "$withval" in
3157   default) WITH_LLVMGCCDIR=default ;;
3158   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3159   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3160 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3161    { (exit 1); exit 1; }; } ;;
3162 esac
3163
3164
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3172 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3173 # On Suns, sometimes $CPP names a directory.
3174 if test -n "$CPP" && test -d "$CPP"; then
3175   CPP=
3176 fi
3177 if test -z "$CPP"; then
3178   if test "${ac_cv_prog_CPP+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181       # Double quotes because CPP needs to be expanded
3182     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3183     do
3184       ac_preproc_ok=false
3185 for ac_c_preproc_warn_flag in '' yes
3186 do
3187   # Use a header file that comes with gcc, so configuring glibc
3188   # with a fresh cross-compiler works.
3189   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190   # <limits.h> exists even on freestanding compilers.
3191   # On the NeXT, cc -E runs the code through the compiler's parser,
3192   # not just through cpp. "Syntax error" is here to catch this case.
3193   cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199 #ifdef __STDC__
3200 # include <limits.h>
3201 #else
3202 # include <assert.h>
3203 #endif
3204                      Syntax error
3205 _ACEOF
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } >/dev/null; then
3214   if test -s conftest.err; then
3215     ac_cpp_err=$ac_c_preproc_warn_flag
3216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3217   else
3218     ac_cpp_err=
3219   fi
3220 else
3221   ac_cpp_err=yes
3222 fi
3223 if test -z "$ac_cpp_err"; then
3224   :
3225 else
3226   echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229   # Broken: fails on valid input.
3230 continue
3231 fi
3232 rm -f conftest.err conftest.$ac_ext
3233
3234   # OK, works on sane cases.  Now check whether non-existent headers
3235   # can be detected and how.
3236   cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h.  */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h.  */
3242 #include <ac_nonexistent.h>
3243 _ACEOF
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } >/dev/null; then
3252   if test -s conftest.err; then
3253     ac_cpp_err=$ac_c_preproc_warn_flag
3254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3255   else
3256     ac_cpp_err=
3257   fi
3258 else
3259   ac_cpp_err=yes
3260 fi
3261 if test -z "$ac_cpp_err"; then
3262   # Broken: success on invalid input.
3263 continue
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268   # Passes both tests.
3269 ac_preproc_ok=:
3270 break
3271 fi
3272 rm -f conftest.err conftest.$ac_ext
3273
3274 done
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.$ac_ext
3277 if $ac_preproc_ok; then
3278   break
3279 fi
3280
3281     done
3282     ac_cv_prog_CPP=$CPP
3283
3284 fi
3285   CPP=$ac_cv_prog_CPP
3286 else
3287   ac_cv_prog_CPP=$CPP
3288 fi
3289 echo "$as_me:$LINENO: result: $CPP" >&5
3290 echo "${ECHO_T}$CPP" >&6
3291 ac_preproc_ok=false
3292 for ac_c_preproc_warn_flag in '' yes
3293 do
3294   # Use a header file that comes with gcc, so configuring glibc
3295   # with a fresh cross-compiler works.
3296   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3297   # <limits.h> exists even on freestanding compilers.
3298   # On the NeXT, cc -E runs the code through the compiler's parser,
3299   # not just through cpp. "Syntax error" is here to catch this case.
3300   cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h.  */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h.  */
3306 #ifdef __STDC__
3307 # include <limits.h>
3308 #else
3309 # include <assert.h>
3310 #endif
3311                      Syntax error
3312 _ACEOF
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } >/dev/null; then
3321   if test -s conftest.err; then
3322     ac_cpp_err=$ac_c_preproc_warn_flag
3323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324   else
3325     ac_cpp_err=
3326   fi
3327 else
3328   ac_cpp_err=yes
3329 fi
3330 if test -z "$ac_cpp_err"; then
3331   :
3332 else
3333   echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336   # Broken: fails on valid input.
3337 continue
3338 fi
3339 rm -f conftest.err conftest.$ac_ext
3340
3341   # OK, works on sane cases.  Now check whether non-existent headers
3342   # can be detected and how.
3343   cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h.  */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h.  */
3349 #include <ac_nonexistent.h>
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } >/dev/null; then
3359   if test -s conftest.err; then
3360     ac_cpp_err=$ac_c_preproc_warn_flag
3361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362   else
3363     ac_cpp_err=
3364   fi
3365 else
3366   ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369   # Broken: success on invalid input.
3370 continue
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375   # Passes both tests.
3376 ac_preproc_ok=:
3377 break
3378 fi
3379 rm -f conftest.err conftest.$ac_ext
3380
3381 done
3382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3383 rm -f conftest.err conftest.$ac_ext
3384 if $ac_preproc_ok; then
3385   :
3386 else
3387   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3388 See \`config.log' for more details." >&5
3389 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3390 See \`config.log' for more details." >&2;}
3391    { (exit 1); exit 1; }; }
3392 fi
3393
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 if test -n "$ac_tool_prefix"; then
3406   for ac_prog in gcc
3407   do
3408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423   for ac_exec_ext in '' $ac_executable_extensions; do
3424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430 done
3431
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436   echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443     test -n "$CC" && break
3444   done
3445 fi
3446 if test -z "$CC"; then
3447   ac_ct_CC=$CC
3448   for ac_prog in gcc
3449 do
3450   # Extract the first word of "$ac_prog", so it can be a program name with args.
3451 set dummy $ac_prog; ac_word=$2
3452 echo "$as_me:$LINENO: checking for $ac_word" >&5
3453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3455   echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457   if test -n "$ac_ct_CC"; then
3458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465   for ac_exec_ext in '' $ac_executable_extensions; do
3466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467     ac_cv_prog_ac_ct_CC="$ac_prog"
3468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472 done
3473
3474 fi
3475 fi
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3479 echo "${ECHO_T}$ac_ct_CC" >&6
3480 else
3481   echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3483 fi
3484
3485   test -n "$ac_ct_CC" && break
3486 done
3487
3488   CC=$ac_ct_CC
3489 fi
3490
3491
3492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3493 See \`config.log' for more details." >&5
3494 echo "$as_me: error: no acceptable C compiler found in \$PATH
3495 See \`config.log' for more details." >&2;}
3496    { (exit 1); exit 1; }; }
3497
3498 # Provide some information about the compiler.
3499 echo "$as_me:$LINENO:" \
3500      "checking for C compiler version" >&5
3501 ac_compiler=`set X $ac_compile; echo $2`
3502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3503   (eval $ac_compiler --version </dev/null >&5) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); }
3507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3508   (eval $ac_compiler -v </dev/null >&5) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }
3512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3513   (eval $ac_compiler -V </dev/null >&5) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }
3517
3518 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3519 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3520 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3521   echo $ECHO_N "(cached) $ECHO_C" >&6
3522 else
3523   cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3529
3530 int
3531 main ()
3532 {
3533 #ifndef __GNUC__
3534        choke me
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543   (eval $ac_compile) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_c_werror_flag"
3551                          || test ! -s conftest.err'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; } &&
3557          { ac_try='test -s conftest.$ac_objext'
3558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_compiler_gnu=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 ac_compiler_gnu=no
3569 fi
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3572
3573 fi
3574 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3575 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3576 GCC=`test $ac_compiler_gnu = yes && echo yes`
3577 ac_test_CFLAGS=${CFLAGS+set}
3578 ac_save_CFLAGS=$CFLAGS
3579 CFLAGS="-g"
3580 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3581 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3582 if test "${ac_cv_prog_cc_g+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.$ac_objext
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602   (eval $ac_compile) 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } &&
3609          { ac_try='test -z "$ac_c_werror_flag"
3610                          || test ! -s conftest.err'
3611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612   (eval $ac_try) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); }; } &&
3616          { ac_try='test -s conftest.$ac_objext'
3617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618   (eval $ac_try) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; }; then
3622   ac_cv_prog_cc_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 ac_cv_prog_cc_g=no
3628 fi
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3633 if test "$ac_test_CFLAGS" = set; then
3634   CFLAGS=$ac_save_CFLAGS
3635 elif test $ac_cv_prog_cc_g = yes; then
3636   if test "$GCC" = yes; then
3637     CFLAGS="-g -O2"
3638   else
3639     CFLAGS="-g"
3640   fi
3641 else
3642   if test "$GCC" = yes; then
3643     CFLAGS="-O2"
3644   else
3645     CFLAGS=
3646   fi
3647 fi
3648 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3649 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3650 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3651   echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653   ac_cv_prog_cc_stdc=no
3654 ac_save_CC=$CC
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #include <stdarg.h>
3662 #include <stdio.h>
3663 #include <sys/types.h>
3664 #include <sys/stat.h>
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3669      char **p;
3670      int i;
3671 {
3672   return p[i];
3673 }
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3675 {
3676   char *s;
3677   va_list v;
3678   va_start (v,p);
3679   s = g (p, va_arg (v,int));
3680   va_end (v);
3681   return s;
3682 }
3683
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3685    function prototypes and stuff, but not '\xHH' hex character constants.
3686    These don't provoke an error unfortunately, instead are silently treated
3687    as 'x'.  The following induces an error, until -std1 is added to get
3688    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3689    array size at least.  It's necessary to write '\x00'==0 to get something
3690    that's true only with -std1.  */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3692
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3699 int
3700 main ()
3701 {
3702 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 # Don't try gcc -ansi; that turns off useful extensions and
3708 # breaks some systems' header files.
3709 # AIX                   -qlanglvl=ansi
3710 # Ultrix and OSF/1      -std1
3711 # HP-UX 10.20 and later -Ae
3712 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3713 # SVR4                  -Xc -D__EXTENSIONS__
3714 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715 do
3716   CC="$ac_save_CC $ac_arg"
3717   rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719   (eval $ac_compile) 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } &&
3726          { ac_try='test -z "$ac_c_werror_flag"
3727                          || test ! -s conftest.err'
3728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729   (eval $ac_try) 2>&5
3730   ac_status=$?
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); }; } &&
3733          { ac_try='test -s conftest.$ac_objext'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; }; then
3739   ac_cv_prog_cc_stdc=$ac_arg
3740 break
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745 fi
3746 rm -f conftest.err conftest.$ac_objext
3747 done
3748 rm -f conftest.$ac_ext conftest.$ac_objext
3749 CC=$ac_save_CC
3750
3751 fi
3752
3753 case "x$ac_cv_prog_cc_stdc" in
3754   x|xno)
3755     echo "$as_me:$LINENO: result: none needed" >&5
3756 echo "${ECHO_T}none needed" >&6 ;;
3757   *)
3758     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3759 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3760     CC="$CC $ac_cv_prog_cc_stdc" ;;
3761 esac
3762
3763 # Some people use a C++ compiler to compile C.  Since we use `exit',
3764 # in C++ we need to declare it.  In case someone uses the same compiler
3765 # for both compiling C and C++ we need to have the C++ compiler decide
3766 # the declaration of exit, since it's the most demanding environment.
3767 cat >conftest.$ac_ext <<_ACEOF
3768 #ifndef __cplusplus
3769   choke me
3770 #endif
3771 _ACEOF
3772 rm -f conftest.$ac_objext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774   (eval $ac_compile) 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -z "$ac_c_werror_flag"
3782                          || test ! -s conftest.err'
3783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784   (eval $ac_try) 2>&5
3785   ac_status=$?
3786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787   (exit $ac_status); }; } &&
3788          { ac_try='test -s conftest.$ac_objext'
3789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790   (eval $ac_try) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }; }; then
3794   for ac_declaration in \
3795    '' \
3796    'extern "C" void std::exit (int) throw (); using std::exit;' \
3797    'extern "C" void std::exit (int); using std::exit;' \
3798    'extern "C" void exit (int) throw ();' \
3799    'extern "C" void exit (int);' \
3800    'void exit (int);'
3801 do
3802   cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 $ac_declaration
3809 #include <stdlib.h>
3810 int
3811 main ()
3812 {
3813 exit (42);
3814   ;
3815   return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820   (eval $ac_compile) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } &&
3827          { ac_try='test -z "$ac_c_werror_flag"
3828                          || test ! -s conftest.err'
3829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830   (eval $ac_try) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; } &&
3834          { ac_try='test -s conftest.$ac_objext'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   :
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 continue
3846 fi
3847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848   cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854 $ac_declaration
3855 int
3856 main ()
3857 {
3858 exit (42);
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865   (eval $ac_compile) 2>conftest.er1
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
3869   cat conftest.err >&5
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } &&
3872          { ac_try='test -z "$ac_c_werror_flag"
3873                          || test ! -s conftest.err'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; } &&
3879          { ac_try='test -s conftest.$ac_objext'
3880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881   (eval $ac_try) 2>&5
3882   ac_status=$?
3883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884   (exit $ac_status); }; }; then
3885   break
3886 else
3887   echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 fi
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3892 done
3893 rm -f conftest*
3894 if test -n "$ac_declaration"; then
3895   echo '#ifdef __cplusplus' >>confdefs.h
3896   echo $ac_declaration      >>confdefs.h
3897   echo '#endif'             >>confdefs.h
3898 fi
3899
3900 else
3901   echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 fi
3905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912 ac_ext=cc
3913 ac_cpp='$CXXCPP $CPPFLAGS'
3914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3917 if test -n "$ac_tool_prefix"; then
3918   for ac_prog in $CCC g++
3919   do
3920     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_CXX+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$CXX"; then
3928   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 CXX=$ac_cv_prog_CXX
3947 if test -n "$CXX"; then
3948   echo "$as_me:$LINENO: result: $CXX" >&5
3949 echo "${ECHO_T}$CXX" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955     test -n "$CXX" && break
3956   done
3957 fi
3958 if test -z "$CXX"; then
3959   ac_ct_CXX=$CXX
3960   for ac_prog in $CCC g++
3961 do
3962   # Extract the first word of "$ac_prog", so it can be a program name with args.
3963 set dummy $ac_prog; ac_word=$2
3964 echo "$as_me:$LINENO: checking for $ac_word" >&5
3965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3967   echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969   if test -n "$ac_ct_CXX"; then
3970   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_exec_ext in '' $ac_executable_extensions; do
3978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979     ac_cv_prog_ac_ct_CXX="$ac_prog"
3980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984 done
3985
3986 fi
3987 fi
3988 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3989 if test -n "$ac_ct_CXX"; then
3990   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3991 echo "${ECHO_T}$ac_ct_CXX" >&6
3992 else
3993   echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3995 fi
3996
3997   test -n "$ac_ct_CXX" && break
3998 done
3999 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4000
4001   CXX=$ac_ct_CXX
4002 fi
4003
4004
4005 # Provide some information about the compiler.
4006 echo "$as_me:$LINENO:" \
4007      "checking for C++ compiler version" >&5
4008 ac_compiler=`set X $ac_compile; echo $2`
4009 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4010   (eval $ac_compiler --version </dev/null >&5) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }
4014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4015   (eval $ac_compiler -v </dev/null >&5) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }
4019 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4020   (eval $ac_compiler -V </dev/null >&5) 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }
4024
4025 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4026 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4027 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040 #ifndef __GNUC__
4041        choke me
4042 #endif
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050   (eval $ac_compile) 2>conftest.er1
4051   ac_status=$?
4052   grep -v '^ *+' conftest.er1 >conftest.err
4053   rm -f conftest.er1
4054   cat conftest.err >&5
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); } &&
4057          { ac_try='test -z "$ac_cxx_werror_flag"
4058                          || test ! -s conftest.err'
4059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060   (eval $ac_try) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); }; } &&
4064          { ac_try='test -s conftest.$ac_objext'
4065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066   (eval $ac_try) 2>&5
4067   ac_status=$?
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); }; }; then
4070   ac_compiler_gnu=yes
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 ac_compiler_gnu=no
4076 fi
4077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4079
4080 fi
4081 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4083 GXX=`test $ac_compiler_gnu = yes && echo yes`
4084 ac_test_CXXFLAGS=${CXXFLAGS+set}
4085 ac_save_CXXFLAGS=$CXXFLAGS
4086 CXXFLAGS="-g"
4087 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4088 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4089 if test "${ac_cv_prog_cxx_g+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109   (eval $ac_compile) 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -z "$ac_cxx_werror_flag"
4117                          || test ! -s conftest.err'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; } &&
4123          { ac_try='test -s conftest.$ac_objext'
4124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125   (eval $ac_try) 2>&5
4126   ac_status=$?
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); }; }; then
4129   ac_cv_prog_cxx_g=yes
4130 else
4131   echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ac_cv_prog_cxx_g=no
4135 fi
4136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137 fi
4138 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4139 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4140 if test "$ac_test_CXXFLAGS" = set; then
4141   CXXFLAGS=$ac_save_CXXFLAGS
4142 elif test $ac_cv_prog_cxx_g = yes; then
4143   if test "$GXX" = yes; then
4144     CXXFLAGS="-g -O2"
4145   else
4146     CXXFLAGS="-g"
4147   fi
4148 else
4149   if test "$GXX" = yes; then
4150     CXXFLAGS="-O2"
4151   else
4152     CXXFLAGS=
4153   fi
4154 fi
4155 for ac_declaration in \
4156    '' \
4157    'extern "C" void std::exit (int) throw (); using std::exit;' \
4158    'extern "C" void std::exit (int); using std::exit;' \
4159    'extern "C" void exit (int) throw ();' \
4160    'extern "C" void exit (int);' \
4161    'void exit (int);'
4162 do
4163   cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h.  */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h.  */
4169 $ac_declaration
4170 #include <stdlib.h>
4171 int
4172 main ()
4173 {
4174 exit (42);
4175   ;
4176   return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181   (eval $ac_compile) 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } &&
4188          { ac_try='test -z "$ac_cxx_werror_flag"
4189                          || test ! -s conftest.err'
4190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191   (eval $ac_try) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; } &&
4195          { ac_try='test -s conftest.$ac_objext'
4196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197   (eval $ac_try) 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   :
4202 else
4203   echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 continue
4207 fi
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 $ac_declaration
4216 int
4217 main ()
4218 {
4219 exit (42);
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226   (eval $ac_compile) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_cxx_werror_flag"
4234                          || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   break
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 fi
4252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4253 done
4254 rm -f conftest*
4255 if test -n "$ac_declaration"; then
4256   echo '#ifdef __cplusplus' >>confdefs.h
4257   echo $ac_declaration      >>confdefs.h
4258   echo '#endif'             >>confdefs.h
4259 fi
4260
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266
4267 echo "$as_me:$LINENO: checking " >&5
4268 echo $ECHO_N "checking ... $ECHO_C" >&6
4269 if test "${ac_cv_has_flex+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   for ac_prog in flex lex
4273 do
4274   # Extract the first word of "$ac_prog", so it can be a program name with args.
4275 set dummy $ac_prog; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_LEX+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$LEX"; then
4282   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_LEX="$ac_prog"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298 fi
4299 fi
4300 LEX=$ac_cv_prog_LEX
4301 if test -n "$LEX"; then
4302   echo "$as_me:$LINENO: result: $LEX" >&5
4303 echo "${ECHO_T}$LEX" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   test -n "$LEX" && break
4310 done
4311 test -n "$LEX" || LEX=":"
4312
4313 if test -z "$LEXLIB"
4314 then
4315   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4316 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4317 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   ac_check_lib_save_LIBS=$LIBS
4321 LIBS="-lfl  $LIBS"
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h.  */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h.  */
4328
4329 /* Override any gcc2 internal prototype to avoid an error.  */
4330 #ifdef __cplusplus
4331 extern "C"
4332 #endif
4333 /* We use char because int might match the return type of a gcc2
4334    builtin and then its argument prototype would still apply.  */
4335 char yywrap ();
4336 int
4337 main ()
4338 {
4339 yywrap ();
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346   (eval $ac_link) 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag"
4354                          || test ! -s conftest.err'
4355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356   (eval $ac_try) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); }; } &&
4360          { ac_try='test -s conftest$ac_exeext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_lib_fl_yywrap=yes
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 ac_cv_lib_fl_yywrap=no
4372 fi
4373 rm -f conftest.err conftest.$ac_objext \
4374       conftest$ac_exeext conftest.$ac_ext
4375 LIBS=$ac_check_lib_save_LIBS
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4378 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4379 if test $ac_cv_lib_fl_yywrap = yes; then
4380   LEXLIB="-lfl"
4381 else
4382   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4383 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4384 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   ac_check_lib_save_LIBS=$LIBS
4388 LIBS="-ll  $LIBS"
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395
4396 /* Override any gcc2 internal prototype to avoid an error.  */
4397 #ifdef __cplusplus
4398 extern "C"
4399 #endif
4400 /* We use char because int might match the return type of a gcc2
4401    builtin and then its argument prototype would still apply.  */
4402 char yywrap ();
4403 int
4404 main ()
4405 {
4406 yywrap ();
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413   (eval $ac_link) 2>conftest.er1
4414   ac_status=$?
4415   grep -v '^ *+' conftest.er1 >conftest.err
4416   rm -f conftest.er1
4417   cat conftest.err >&5
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); } &&
4420          { ac_try='test -z "$ac_c_werror_flag"
4421                          || test ! -s conftest.err'
4422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423   (eval $ac_try) 2>&5
4424   ac_status=$?
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); }; } &&
4427          { ac_try='test -s conftest$ac_exeext'
4428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429   (eval $ac_try) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_lib_l_yywrap=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438 ac_cv_lib_l_yywrap=no
4439 fi
4440 rm -f conftest.err conftest.$ac_objext \
4441       conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4443 fi
4444 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4445 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4446 if test $ac_cv_lib_l_yywrap = yes; then
4447   LEXLIB="-ll"
4448 fi
4449
4450 fi
4451
4452 fi
4453
4454 if test "x$LEX" != "x:"; then
4455   echo "$as_me:$LINENO: checking lex output file root" >&5
4456 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4457 if test "${ac_cv_prog_lex_root+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   # The minimal lex program is just a single line: %%.  But some broken lexes
4461 # (Solaris, I think it was) want two %% lines, so accommodate them.
4462 cat >conftest.l <<_ACEOF
4463 %%
4464 %%
4465 _ACEOF
4466 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4467   (eval $LEX conftest.l) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }
4471 if test -f lex.yy.c; then
4472   ac_cv_prog_lex_root=lex.yy
4473 elif test -f lexyy.c; then
4474   ac_cv_prog_lex_root=lexyy
4475 else
4476   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4477 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4478    { (exit 1); exit 1; }; }
4479 fi
4480 fi
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4482 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4483 rm -f conftest.l
4484 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4485
4486 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4487 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4488 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   # POSIX says lex can declare yytext either as a pointer or an array; the
4492 # default is implementation-dependent. Figure out which it is, since
4493 # not all implementations provide the %pointer and %array declarations.
4494 ac_cv_prog_lex_yytext_pointer=no
4495 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4496 ac_save_LIBS=$LIBS
4497 LIBS="$LIBS $LEXLIB"
4498 cat >conftest.$ac_ext <<_ACEOF
4499 `cat $LEX_OUTPUT_ROOT.c`
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503   (eval $ac_link) 2>conftest.er1
4504   ac_status=$?
4505   grep -v '^ *+' conftest.er1 >conftest.err
4506   rm -f conftest.er1
4507   cat conftest.err >&5
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } &&
4510          { ac_try='test -z "$ac_c_werror_flag"
4511                          || test ! -s conftest.err'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; } &&
4517          { ac_try='test -s conftest$ac_exeext'
4518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519   (eval $ac_try) 2>&5
4520   ac_status=$?
4521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522   (exit $ac_status); }; }; then
4523   ac_cv_prog_lex_yytext_pointer=yes
4524 else
4525   echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 fi
4529 rm -f conftest.err conftest.$ac_objext \
4530       conftest$ac_exeext conftest.$ac_ext
4531 LIBS=$ac_save_LIBS
4532 rm -f "${LEX_OUTPUT_ROOT}.c"
4533
4534 fi
4535 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4536 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4537 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4538
4539 cat >>confdefs.h <<\_ACEOF
4540 #define YYTEXT_POINTER 1
4541 _ACEOF
4542
4543 fi
4544
4545 fi
4546
4547 fi
4548 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4549 echo "${ECHO_T}$ac_cv_has_flex" >&6
4550 if test "$LEX" != "flex"; then
4551   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4552 echo "$as_me: error: flex not found but required" >&2;}
4553    { (exit 1); exit 1; }; }
4554 else
4555   FLEX=flex
4556
4557 fi
4558
4559 echo "$as_me:$LINENO: checking " >&5
4560 echo $ECHO_N "checking ... $ECHO_C" >&6
4561 if test "${llvm_cv_has_bison+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   for ac_prog in 'bison -y' byacc
4565 do
4566   # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_prog_YACC+set}" = set; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   if test -n "$YACC"; then
4574   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581   for ac_exec_ext in '' $ac_executable_extensions; do
4582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583     ac_cv_prog_YACC="$ac_prog"
4584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585     break 2
4586   fi
4587 done
4588 done
4589
4590 fi
4591 fi
4592 YACC=$ac_cv_prog_YACC
4593 if test -n "$YACC"; then
4594   echo "$as_me:$LINENO: result: $YACC" >&5
4595 echo "${ECHO_T}$YACC" >&6
4596 else
4597   echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6
4599 fi
4600
4601   test -n "$YACC" && break
4602 done
4603 test -n "$YACC" || YACC="yacc"
4604
4605 fi
4606 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4607 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4608 if test "$YACC" != "bison -y"; then
4609   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4610 echo "$as_me: error: bison not found but required" >&2;}
4611    { (exit 1); exit 1; }; }
4612 else
4613   BISON=bison
4614
4615 fi
4616
4617 echo "$as_me:$LINENO: checking for GNU make" >&5
4618 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4619 if test "${llvm_cv_gnu_make_command+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   llvm_cv_gnu_make_command=''
4623  for a in "$MAKE" make gmake gnumake ; do
4624   if test -z "$a" ; then continue ; fi ;
4625   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4626   then
4627    llvm_cv_gnu_make_command=$a ;
4628    break;
4629   fi
4630  done
4631 fi
4632 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4633 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4634  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4635    ifGNUmake='' ;
4636  else
4637    ifGNUmake='#' ;
4638    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4639 echo "${ECHO_T}\"Not found\"" >&6;
4640  fi
4641
4642
4643 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4645 LN_S=$as_ln_s
4646 if test "$LN_S" = "ln -s"; then
4647   echo "$as_me:$LINENO: result: yes" >&5
4648 echo "${ECHO_T}yes" >&6
4649 else
4650   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4651 echo "${ECHO_T}no, using $LN_S" >&6
4652 fi
4653
4654 # Extract the first word of "cmp", so it can be a program name with args.
4655 set dummy cmp; ac_word=$2
4656 echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658 if test "${ac_cv_path_CMP+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   case $CMP in
4662   [\\/]* | ?:[\\/]*)
4663   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4664   ;;
4665   *)
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679
4680   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4681   ;;
4682 esac
4683 fi
4684 CMP=$ac_cv_path_CMP
4685
4686 if test -n "$CMP"; then
4687   echo "$as_me:$LINENO: result: $CMP" >&5
4688 echo "${ECHO_T}$CMP" >&6
4689 else
4690   echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 fi
4693
4694 # Extract the first word of "cp", so it can be a program name with args.
4695 set dummy cp; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_path_CP+set}" = set; then
4699   echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701   case $CP in
4702   [\\/]* | ?:[\\/]*)
4703   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4704   ;;
4705   *)
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4721   ;;
4722 esac
4723 fi
4724 CP=$ac_cv_path_CP
4725
4726 if test -n "$CP"; then
4727   echo "$as_me:$LINENO: result: $CP" >&5
4728 echo "${ECHO_T}$CP" >&6
4729 else
4730   echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4732 fi
4733
4734 # Extract the first word of "date", so it can be a program name with args.
4735 set dummy date; ac_word=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_DATE+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $DATE in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759
4760   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4761   ;;
4762 esac
4763 fi
4764 DATE=$ac_cv_path_DATE
4765
4766 if test -n "$DATE"; then
4767   echo "$as_me:$LINENO: result: $DATE" >&5
4768 echo "${ECHO_T}$DATE" >&6
4769 else
4770   echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6
4772 fi
4773
4774 # Extract the first word of "find", so it can be a program name with args.
4775 set dummy find; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_FIND+set}" = set; then
4779   echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781   case $FIND in
4782   [\\/]* | ?:[\\/]*)
4783   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4784   ;;
4785   *)
4786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791   for ac_exec_ext in '' $ac_executable_extensions; do
4792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796   fi
4797 done
4798 done
4799
4800   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4801   ;;
4802 esac
4803 fi
4804 FIND=$ac_cv_path_FIND
4805
4806 if test -n "$FIND"; then
4807   echo "$as_me:$LINENO: result: $FIND" >&5
4808 echo "${ECHO_T}$FIND" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814 # Extract the first word of "grep", so it can be a program name with args.
4815 set dummy grep; ac_word=$2
4816 echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818 if test "${ac_cv_path_GREP+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   case $GREP in
4822   [\\/]* | ?:[\\/]*)
4823   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4824   ;;
4825   *)
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839
4840   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4841   ;;
4842 esac
4843 fi
4844 GREP=$ac_cv_path_GREP
4845
4846 if test -n "$GREP"; then
4847   echo "$as_me:$LINENO: result: $GREP" >&5
4848 echo "${ECHO_T}$GREP" >&6
4849 else
4850   echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4852 fi
4853
4854 # Extract the first word of "mkdir", so it can be a program name with args.
4855 set dummy mkdir; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_path_MKDIR+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   case $MKDIR in
4862   [\\/]* | ?:[\\/]*)
4863   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4864   ;;
4865   *)
4866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879
4880   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4881   ;;
4882 esac
4883 fi
4884 MKDIR=$ac_cv_path_MKDIR
4885
4886 if test -n "$MKDIR"; then
4887   echo "$as_me:$LINENO: result: $MKDIR" >&5
4888 echo "${ECHO_T}$MKDIR" >&6
4889 else
4890   echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4892 fi
4893
4894 # Extract the first word of "mv", so it can be a program name with args.
4895 set dummy mv; ac_word=$2
4896 echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4898 if test "${ac_cv_path_MV+set}" = set; then
4899   echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901   case $MV in
4902   [\\/]* | ?:[\\/]*)
4903   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4904   ;;
4905   *)
4906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919
4920   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4921   ;;
4922 esac
4923 fi
4924 MV=$ac_cv_path_MV
4925
4926 if test -n "$MV"; then
4927   echo "$as_me:$LINENO: result: $MV" >&5
4928 echo "${ECHO_T}$MV" >&6
4929 else
4930   echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4932 fi
4933
4934 if test -n "$ac_tool_prefix"; then
4935   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4937 echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4939 if test "${ac_cv_prog_RANLIB+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   if test -n "$RANLIB"; then
4943   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950   for ac_exec_ext in '' $ac_executable_extensions; do
4951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958
4959 fi
4960 fi
4961 RANLIB=$ac_cv_prog_RANLIB
4962 if test -n "$RANLIB"; then
4963   echo "$as_me:$LINENO: result: $RANLIB" >&5
4964 echo "${ECHO_T}$RANLIB" >&6
4965 else
4966   echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4968 fi
4969
4970 fi
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972   ac_ct_RANLIB=$RANLIB
4973   # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib; ac_word=$2
4975 echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   if test -n "$ac_ct_RANLIB"; then
4981   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986   IFS=$as_save_IFS
4987   test -z "$as_dir" && as_dir=.
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4990     ac_cv_prog_ac_ct_RANLIB="ranlib"
4991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992     break 2
4993   fi
4994 done
4995 done
4996
4997   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4998 fi
4999 fi
5000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5004 else
5005   echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5007 fi
5008
5009   RANLIB=$ac_ct_RANLIB
5010 else
5011   RANLIB="$ac_cv_prog_RANLIB"
5012 fi
5013
5014 # Extract the first word of "rm", so it can be a program name with args.
5015 set dummy rm; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_path_RM+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   case $RM in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039
5040   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5041   ;;
5042 esac
5043 fi
5044 RM=$ac_cv_path_RM
5045
5046 if test -n "$RM"; then
5047   echo "$as_me:$LINENO: result: $RM" >&5
5048 echo "${ECHO_T}$RM" >&6
5049 else
5050   echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5052 fi
5053
5054 # Extract the first word of "sed", so it can be a program name with args.
5055 set dummy sed; ac_word=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_path_SED+set}" = set; then
5059   echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061   case $SED in
5062   [\\/]* | ?:[\\/]*)
5063   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5064   ;;
5065   *)
5066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079
5080   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5081   ;;
5082 esac
5083 fi
5084 SED=$ac_cv_path_SED
5085
5086 if test -n "$SED"; then
5087   echo "$as_me:$LINENO: result: $SED" >&5
5088 echo "${ECHO_T}$SED" >&6
5089 else
5090   echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6
5092 fi
5093
5094 # Extract the first word of "tar", so it can be a program name with args.
5095 set dummy tar; ac_word=$2
5096 echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098 if test "${ac_cv_path_TAR+set}" = set; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   case $TAR in
5102   [\\/]* | ?:[\\/]*)
5103   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5104   ;;
5105   *)
5106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111   for ac_exec_ext in '' $ac_executable_extensions; do
5112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118 done
5119
5120   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5121   ;;
5122 esac
5123 fi
5124 TAR=$ac_cv_path_TAR
5125
5126 if test -n "$TAR"; then
5127   echo "$as_me:$LINENO: result: $TAR" >&5
5128 echo "${ECHO_T}$TAR" >&6
5129 else
5130   echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6
5132 fi
5133
5134
5135 # Extract the first word of "Graphviz", so it can be a program name with args.
5136 set dummy Graphviz; ac_word=$2
5137 echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   case $GRAPHVIZ in
5143   [\\/]* | ?:[\\/]*)
5144   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5145   ;;
5146   *)
5147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160
5161   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5162   ;;
5163 esac
5164 fi
5165 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5166
5167 if test -n "$GRAPHVIZ"; then
5168   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5169 echo "${ECHO_T}$GRAPHVIZ" >&6
5170 else
5171   echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5173 fi
5174
5175 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5176
5177 cat >>confdefs.h <<\_ACEOF
5178 #define HAVE_GRAPHVIZ 1
5179 _ACEOF
5180
5181     if test "$llvm_cv_os_type" == "MingW" ; then
5182     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5183   fi
5184
5185 cat >>confdefs.h <<_ACEOF
5186 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5187 _ACEOF
5188
5189 fi
5190 # Extract the first word of "dot", so it can be a program name with args.
5191 set dummy dot; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_path_DOT+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $DOT in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207   for ac_exec_ext in '' $ac_executable_extensions; do
5208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214 done
5215
5216   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5217   ;;
5218 esac
5219 fi
5220 DOT=$ac_cv_path_DOT
5221
5222 if test -n "$DOT"; then
5223   echo "$as_me:$LINENO: result: $DOT" >&5
5224 echo "${ECHO_T}$DOT" >&6
5225 else
5226   echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5228 fi
5229
5230 if test "$DOT" != "echo dot" ; then
5231
5232 cat >>confdefs.h <<\_ACEOF
5233 #define HAVE_DOT 1
5234 _ACEOF
5235
5236     if test "$llvm_cv_os_type" == "MingW" ; then
5237     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5238   fi
5239
5240 cat >>confdefs.h <<_ACEOF
5241 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5242 _ACEOF
5243
5244 fi
5245 for ac_prog in gv gsview32
5246 do
5247   # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_path_GV+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   case $GV in
5255   [\\/]* | ?:[\\/]*)
5256   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5257   ;;
5258   *)
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272
5273   ;;
5274 esac
5275 fi
5276 GV=$ac_cv_path_GV
5277
5278 if test -n "$GV"; then
5279   echo "$as_me:$LINENO: result: $GV" >&5
5280 echo "${ECHO_T}$GV" >&6
5281 else
5282   echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 fi
5285
5286   test -n "$GV" && break
5287 done
5288 test -n "$GV" || GV="echo gv"
5289
5290 if test "$GV" != "echo gv" ; then
5291
5292 cat >>confdefs.h <<\_ACEOF
5293 #define HAVE_GV 1
5294 _ACEOF
5295
5296     if test "$llvm_cv_os_type" == "MingW" ; then
5297     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5298   fi
5299
5300 cat >>confdefs.h <<_ACEOF
5301 #define LLVM_PATH_GV "$GV${EXEEXT}"
5302 _ACEOF
5303
5304 fi
5305 # Extract the first word of "dotty", so it can be a program name with args.
5306 set dummy dotty; ac_word=$2
5307 echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309 if test "${ac_cv_path_DOTTY+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   case $DOTTY in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322   for ac_exec_ext in '' $ac_executable_extensions; do
5323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329 done
5330
5331   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5332   ;;
5333 esac
5334 fi
5335 DOTTY=$ac_cv_path_DOTTY
5336
5337 if test -n "$DOTTY"; then
5338   echo "$as_me:$LINENO: result: $DOTTY" >&5
5339 echo "${ECHO_T}$DOTTY" >&6
5340 else
5341   echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6
5343 fi
5344
5345 if test "$DOTTY" != "echo dotty" ; then
5346
5347 cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_DOTTY 1
5349 _ACEOF
5350
5351     if test "$llvm_cv_os_type" == "MingW" ; then
5352     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5353   fi
5354
5355 cat >>confdefs.h <<_ACEOF
5356 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5357 _ACEOF
5358
5359 fi
5360
5361
5362 # Extract the first word of "perl", so it can be a program name with args.
5363 set dummy perl; ac_word=$2
5364 echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366 if test "${ac_cv_path_PERL+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   case $PERL in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379   for ac_exec_ext in '' $ac_executable_extensions; do
5380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386 done
5387
5388   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5389   ;;
5390 esac
5391 fi
5392 PERL=$ac_cv_path_PERL
5393
5394 if test -n "$PERL"; then
5395   echo "$as_me:$LINENO: result: $PERL" >&5
5396 echo "${ECHO_T}$PERL" >&6
5397 else
5398   echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6
5400 fi
5401
5402 if test "$PERL" != "none"; then
5403   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5404 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5405   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5406     echo "$as_me:$LINENO: result: yes" >&5
5407 echo "${ECHO_T}yes" >&6
5408   else
5409     PERL=none
5410     echo "$as_me:$LINENO: result: not found" >&5
5411 echo "${ECHO_T}not found" >&6
5412   fi
5413 fi
5414
5415
5416 if test x"$PERL" = xnone; then
5417    HAVE_PERL=0
5418
5419 else
5420    HAVE_PERL=1
5421
5422 fi
5423
5424 # Find a good install program.  We prefer a C program (faster),
5425 # so one script is as good as another.  But avoid the broken or
5426 # incompatible versions:
5427 # SysV /etc/install, /usr/sbin/install
5428 # SunOS /usr/etc/install
5429 # IRIX /sbin/install
5430 # AIX /bin/install
5431 # AmigaOS /C/install, which installs bootblocks on floppy discs
5432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5435 # OS/2's system install, which has a completely different semantic
5436 # ./install, which can be erroneously created by make from ./install.sh.
5437 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5438 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5439 if test -z "$INSTALL"; then
5440 if test "${ac_cv_path_install+set}" = set; then
5441   echo $ECHO_N "(cached) $ECHO_C" >&6
5442 else
5443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448   # Account for people who put trailing slashes in PATH elements.
5449 case $as_dir/ in
5450   ./ | .// | /cC/* | \
5451   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5452   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5453   /usr/ucb/* ) ;;
5454   *)
5455     # OSF1 and SCO ODT 3.0 have their own names for install.
5456     # Don't use installbsd from OSF since it installs stuff as root
5457     # by default.
5458     for ac_prog in ginstall scoinst install; do
5459       for ac_exec_ext in '' $ac_executable_extensions; do
5460         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5461           if test $ac_prog = install &&
5462             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5463             # AIX install.  It has an incompatible calling convention.
5464             :
5465           elif test $ac_prog = install &&
5466             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5467             # program-specific install script used by HP pwplus--don't use.
5468             :
5469           else
5470             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5471             break 3
5472           fi
5473         fi
5474       done
5475     done
5476     ;;
5477 esac
5478 done
5479
5480
5481 fi
5482   if test "${ac_cv_path_install+set}" = set; then
5483     INSTALL=$ac_cv_path_install
5484   else
5485     # As a last resort, use the slow shell script.  We don't cache a
5486     # path for INSTALL within a source directory, because that will
5487     # break other packages using the cache if that directory is
5488     # removed, or if the path is relative.
5489     INSTALL=$ac_install_sh
5490   fi
5491 fi
5492 echo "$as_me:$LINENO: result: $INSTALL" >&5
5493 echo "${ECHO_T}$INSTALL" >&6
5494
5495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5496 # It thinks the first close brace ends the variable substitution.
5497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5498
5499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5500
5501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5502
5503
5504 # Extract the first word of "bzip2", so it can be a program name with args.
5505 set dummy bzip2; ac_word=$2
5506 echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5508 if test "${ac_cv_path_BZIP2+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   case $BZIP2 in
5512   [\\/]* | ?:[\\/]*)
5513   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5514   ;;
5515   *)
5516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519   IFS=$as_save_IFS
5520   test -z "$as_dir" && as_dir=.
5521   for ac_exec_ext in '' $ac_executable_extensions; do
5522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525     break 2
5526   fi
5527 done
5528 done
5529
5530   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5531   ;;
5532 esac
5533 fi
5534 BZIP2=$ac_cv_path_BZIP2
5535
5536 if test -n "$BZIP2"; then
5537   echo "$as_me:$LINENO: result: $BZIP2" >&5
5538 echo "${ECHO_T}$BZIP2" >&6
5539 else
5540   echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6
5542 fi
5543
5544 # Extract the first word of "doxygen", so it can be a program name with args.
5545 set dummy doxygen; ac_word=$2
5546 echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   case $DOXYGEN in
5552   [\\/]* | ?:[\\/]*)
5553   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5554   ;;
5555   *)
5556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569
5570   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5571   ;;
5572 esac
5573 fi
5574 DOXYGEN=$ac_cv_path_DOXYGEN
5575
5576 if test -n "$DOXYGEN"; then
5577   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5578 echo "${ECHO_T}$DOXYGEN" >&6
5579 else
5580   echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5582 fi
5583
5584 # Extract the first word of "etags", so it can be a program name with args.
5585 set dummy etags; ac_word=$2
5586 echo "$as_me:$LINENO: checking for $ac_word" >&5
5587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588 if test "${ac_cv_path_ETAGS+set}" = set; then
5589   echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591   case $ETAGS in
5592   [\\/]* | ?:[\\/]*)
5593   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5594   ;;
5595   *)
5596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601   for ac_exec_ext in '' $ac_executable_extensions; do
5602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608 done
5609
5610   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5611   ;;
5612 esac
5613 fi
5614 ETAGS=$ac_cv_path_ETAGS
5615
5616 if test -n "$ETAGS"; then
5617   echo "$as_me:$LINENO: result: $ETAGS" >&5
5618 echo "${ECHO_T}$ETAGS" >&6
5619 else
5620   echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5622 fi
5623
5624 # Extract the first word of "groff", so it can be a program name with args.
5625 set dummy groff; ac_word=$2
5626 echo "$as_me:$LINENO: checking for $ac_word" >&5
5627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628 if test "${ac_cv_path_GROFF+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   case $GROFF in
5632   [\\/]* | ?:[\\/]*)
5633   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5634   ;;
5635   *)
5636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641   for ac_exec_ext in '' $ac_executable_extensions; do
5642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648 done
5649
5650   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5651   ;;
5652 esac
5653 fi
5654 GROFF=$ac_cv_path_GROFF
5655
5656 if test -n "$GROFF"; then
5657   echo "$as_me:$LINENO: result: $GROFF" >&5
5658 echo "${ECHO_T}$GROFF" >&6
5659 else
5660   echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6
5662 fi
5663
5664 # Extract the first word of "gzip", so it can be a program name with args.
5665 set dummy gzip; ac_word=$2
5666 echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5668 if test "${ac_cv_path_GZIP+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   case $GZIP in
5672   [\\/]* | ?:[\\/]*)
5673   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5674   ;;
5675   *)
5676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689
5690   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5691   ;;
5692 esac
5693 fi
5694 GZIP=$ac_cv_path_GZIP
5695
5696 if test -n "$GZIP"; then
5697   echo "$as_me:$LINENO: result: $GZIP" >&5
5698 echo "${ECHO_T}$GZIP" >&6
5699 else
5700   echo "$as_me:$LINENO: result: no" >&5
5701 echo "${ECHO_T}no" >&6
5702 fi
5703
5704 # Extract the first word of "pod2html", so it can be a program name with args.
5705 set dummy pod2html; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_path_POD2HTML+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   case $POD2HTML in
5712   [\\/]* | ?:[\\/]*)
5713   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5714   ;;
5715   *)
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729
5730   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5731   ;;
5732 esac
5733 fi
5734 POD2HTML=$ac_cv_path_POD2HTML
5735
5736 if test -n "$POD2HTML"; then
5737   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5738 echo "${ECHO_T}$POD2HTML" >&6
5739 else
5740   echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744 # Extract the first word of "pod2man", so it can be a program name with args.
5745 set dummy pod2man; ac_word=$2
5746 echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748 if test "${ac_cv_path_POD2MAN+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   case $POD2MAN in
5752   [\\/]* | ?:[\\/]*)
5753   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5754   ;;
5755   *)
5756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_exec_ext in '' $ac_executable_extensions; do
5762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768 done
5769
5770   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5771   ;;
5772 esac
5773 fi
5774 POD2MAN=$ac_cv_path_POD2MAN
5775
5776 if test -n "$POD2MAN"; then
5777   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5778 echo "${ECHO_T}$POD2MAN" >&6
5779 else
5780   echo "$as_me:$LINENO: result: no" >&5
5781 echo "${ECHO_T}no" >&6
5782 fi
5783
5784 # Extract the first word of "runtest", so it can be a program name with args.
5785 set dummy runtest; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_path_RUNTEST+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   case $RUNTEST in
5792   [\\/]* | ?:[\\/]*)
5793   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5794   ;;
5795   *)
5796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801   for ac_exec_ext in '' $ac_executable_extensions; do
5802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808 done
5809
5810   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
5811   ;;
5812 esac
5813 fi
5814 RUNTEST=$ac_cv_path_RUNTEST
5815
5816 if test -n "$RUNTEST"; then
5817   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5818 echo "${ECHO_T}$RUNTEST" >&6
5819 else
5820   echo "$as_me:$LINENO: result: no" >&5
5821 echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825 no_itcl=true
5826 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5827 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5828
5829 # Check whether --with-tclinclude or --without-tclinclude was given.
5830 if test "${with_tclinclude+set}" = set; then
5831   withval="$with_tclinclude"
5832   with_tclinclude=${withval}
5833 else
5834   with_tclinclude=''
5835 fi;
5836 if test "${ac_cv_path_tclsh+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839
5840 if test x"${with_tclinclude}" != x ; then
5841   if test -f ${with_tclinclude}/tclsh ; then
5842     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5843   elif test -f ${with_tclinclude}/src/tclsh ; then
5844     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5845   else
5846     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5847 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5848    { (exit 1); exit 1; }; }
5849   fi
5850 fi
5851
5852 if test x"${ac_cv_path_tclsh}" = x ; then
5853   echo "$as_me:$LINENO: result: none" >&5
5854 echo "${ECHO_T}none" >&6
5855   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
5856 do
5857   # Extract the first word of "$ac_prog", so it can be a program name with args.
5858 set dummy $ac_prog; ac_word=$2
5859 echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5861 if test "${ac_cv_path_TCLSH+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   case $TCLSH in
5865   [\\/]* | ?:[\\/]*)
5866   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5867   ;;
5868   *)
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874   for ac_exec_ext in '' $ac_executable_extensions; do
5875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881 done
5882
5883   ;;
5884 esac
5885 fi
5886 TCLSH=$ac_cv_path_TCLSH
5887
5888 if test -n "$TCLSH"; then
5889   echo "$as_me:$LINENO: result: $TCLSH" >&5
5890 echo "${ECHO_T}$TCLSH" >&6
5891 else
5892   echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896   test -n "$TCLSH" && break
5897 done
5898
5899   if test x"${TCLSH}" = x ; then
5900     ac_cv_path_tclsh='';
5901   else
5902     ac_cv_path_tclsh="${TCLSH}";
5903   fi
5904 else
5905   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5906 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5907   TCLSH="${ac_cv_path_tclsh}"
5908
5909 fi
5910
5911 fi
5912
5913 # Extract the first word of "zip", so it can be a program name with args.
5914 set dummy zip; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_path_ZIP+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   case $ZIP in
5921   [\\/]* | ?:[\\/]*)
5922   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5923   ;;
5924   *)
5925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938
5939   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
5940   ;;
5941 esac
5942 fi
5943 ZIP=$ac_cv_path_ZIP
5944
5945 if test -n "$ZIP"; then
5946   echo "$as_me:$LINENO: result: $ZIP" >&5
5947 echo "${ECHO_T}$ZIP" >&6
5948 else
5949   echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951 fi
5952
5953
5954 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5955 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5956 if test "${llvm_cv_link_use_r+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959    ac_ext=c
5960 ac_cpp='$CPP $CPPFLAGS'
5961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5964
5965   oldcflags="$CFLAGS"
5966   CFLAGS="$CFLAGS -Wl,-R."
5967   cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973
5974 int
5975 main ()
5976 {
5977 int main() { return 0; }
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984   (eval $ac_link) 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -z "$ac_c_werror_flag"
5992                          || test ! -s conftest.err'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest$ac_exeext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   llvm_cv_link_use_r=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 llvm_cv_link_use_r=no
6010 fi
6011 rm -f conftest.err conftest.$ac_objext \
6012       conftest$ac_exeext conftest.$ac_ext
6013   CFLAGS="$oldcflags"
6014   ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020
6021 fi
6022 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6023 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6024 if test "$llvm_cv_link_use_r" = yes ; then
6025
6026 cat >>confdefs.h <<\_ACEOF
6027 #define HAVE_LINK_R 1
6028 _ACEOF
6029
6030   fi
6031
6032
6033
6034
6035 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6036 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6037 if test "${ac_cv_c_const+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046
6047 int
6048 main ()
6049 {
6050 /* FIXME: Include the comments suggested by Paul. */
6051 #ifndef __cplusplus
6052   /* Ultrix mips cc rejects this.  */
6053   typedef int charset[2];
6054   const charset x;
6055   /* SunOS 4.1.1 cc rejects this.  */
6056   char const *const *ccp;
6057   char **p;
6058   /* NEC SVR4.0.2 mips cc rejects this.  */
6059   struct point {int x, y;};
6060   static struct point const zero = {0,0};
6061   /* AIX XL C 1.02.0.0 rejects this.
6062      It does not let you subtract one const X* pointer from another in
6063      an arm of an if-expression whose if-part is not a constant
6064      expression */
6065   const char *g = "string";
6066   ccp = &g + (g ? g-g : 0);
6067   /* HPUX 7.0 cc rejects these. */
6068   ++ccp;
6069   p = (char**) ccp;
6070   ccp = (char const *const *) p;
6071   { /* SCO 3.2v4 cc rejects this.  */
6072     char *t;
6073     char const *s = 0 ? (char *) 0 : (char const *) 0;
6074
6075     *t++ = 0;
6076   }
6077   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6078     int x[] = {25, 17};
6079     const int *foo = &x[0];
6080     ++foo;
6081   }
6082   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6083     typedef const int *iptr;
6084     iptr p = 0;
6085     ++p;
6086   }
6087   { /* AIX XL C 1.02.0.0 rejects this saying
6088        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6089     struct s { int j; const int *ap[3]; };
6090     struct s *b; b->j = 5;
6091   }
6092   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6093     const int foo = 10;
6094   }
6095 #endif
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103   (eval $ac_compile) 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } &&
6110          { ac_try='test -z "$ac_c_werror_flag"
6111                          || test ! -s conftest.err'
6112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113   (eval $ac_try) 2>&5
6114   ac_status=$?
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); }; } &&
6117          { ac_try='test -s conftest.$ac_objext'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   ac_cv_c_const=yes
6124 else
6125   echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128 ac_cv_c_const=no
6129 fi
6130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6131 fi
6132 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6133 echo "${ECHO_T}$ac_cv_c_const" >&6
6134 if test $ac_cv_c_const = no; then
6135
6136 cat >>confdefs.h <<\_ACEOF
6137 #define const
6138 _ACEOF
6139
6140 fi
6141
6142
6143 echo "$as_me:$LINENO: checking for egrep" >&5
6144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6145 if test "${ac_cv_prog_egrep+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6149     then ac_cv_prog_egrep='grep -E'
6150     else ac_cv_prog_egrep='egrep'
6151     fi
6152 fi
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6155  EGREP=$ac_cv_prog_egrep
6156
6157
6158 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6159 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6160 if test "${ac_cv_header_stdc+set}" = set; then
6161   echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <stdlib.h>
6170 #include <stdarg.h>
6171 #include <string.h>
6172 #include <float.h>
6173
6174 int
6175 main ()
6176 {
6177
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6184   (eval $ac_compile) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag"
6192                          || test ! -s conftest.err'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; } &&
6198          { ac_try='test -s conftest.$ac_objext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_header_stdc=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_header_stdc=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6212
6213 if test $ac_cv_header_stdc = yes; then
6214   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6215   cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h.  */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h.  */
6221 #include <string.h>
6222
6223 _ACEOF
6224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6225   $EGREP "memchr" >/dev/null 2>&1; then
6226   :
6227 else
6228   ac_cv_header_stdc=no
6229 fi
6230 rm -f conftest*
6231
6232 fi
6233
6234 if test $ac_cv_header_stdc = yes; then
6235   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6236   cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 #include <stdlib.h>
6243
6244 _ACEOF
6245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6246   $EGREP "free" >/dev/null 2>&1; then
6247   :
6248 else
6249   ac_cv_header_stdc=no
6250 fi
6251 rm -f conftest*
6252
6253 fi
6254
6255 if test $ac_cv_header_stdc = yes; then
6256   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6257   if test "$cross_compiling" = yes; then
6258   :
6259 else
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 #include <ctype.h>
6267 #if ((' ' & 0x0FF) == 0x020)
6268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6270 #else
6271 # define ISLOWER(c) \
6272                    (('a' <= (c) && (c) <= 'i') \
6273                      || ('j' <= (c) && (c) <= 'r') \
6274                      || ('s' <= (c) && (c) <= 'z'))
6275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6276 #endif
6277
6278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6279 int
6280 main ()
6281 {
6282   int i;
6283   for (i = 0; i < 256; i++)
6284     if (XOR (islower (i), ISLOWER (i))
6285         || toupper (i) != TOUPPER (i))
6286       exit(2);
6287   exit (0);
6288 }
6289 _ACEOF
6290 rm -f conftest$ac_exeext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6292   (eval $ac_link) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   :
6302 else
6303   echo "$as_me: program exited with status $ac_status" >&5
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ( exit $ac_status )
6308 ac_cv_header_stdc=no
6309 fi
6310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6311 fi
6312 fi
6313 fi
6314 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6315 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6316 if test $ac_cv_header_stdc = yes; then
6317
6318 cat >>confdefs.h <<\_ACEOF
6319 #define STDC_HEADERS 1
6320 _ACEOF
6321
6322 fi
6323
6324
6325
6326
6327
6328
6329 ac_header_dirent=no
6330 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6331   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6332 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6333 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6335   echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337   cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h.  */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h.  */
6343 #include <sys/types.h>
6344 #include <$ac_hdr>
6345
6346 int
6347 main ()
6348 {
6349 if ((DIR *) 0)
6350 return 0;
6351   ;
6352   return 0;
6353 }
6354 _ACEOF
6355 rm -f conftest.$ac_objext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6357   (eval $ac_compile) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -z "$ac_c_werror_flag"
6365                          || test ! -s conftest.err'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; } &&
6371          { ac_try='test -s conftest.$ac_objext'
6372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373   (eval $ac_try) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; }; then
6377   eval "$as_ac_Header=yes"
6378 else
6379   echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 eval "$as_ac_Header=no"
6383 fi
6384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6385 fi
6386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389   cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6391 _ACEOF
6392
6393 ac_header_dirent=$ac_hdr; break
6394 fi
6395
6396 done
6397 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6398 if test $ac_header_dirent = dirent.h; then
6399   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6401 if test "${ac_cv_search_opendir+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   ac_func_search_save_LIBS=$LIBS
6405 ac_cv_search_opendir=no
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412
6413 /* Override any gcc2 internal prototype to avoid an error.  */
6414 #ifdef __cplusplus
6415 extern "C"
6416 #endif
6417 /* We use char because int might match the return type of a gcc2
6418    builtin and then its argument prototype would still apply.  */
6419 char opendir ();
6420 int
6421 main ()
6422 {
6423 opendir ();
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430   (eval $ac_link) 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } &&
6437          { ac_try='test -z "$ac_c_werror_flag"
6438                          || test ! -s conftest.err'
6439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440   (eval $ac_try) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); }; } &&
6444          { ac_try='test -s conftest$ac_exeext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   ac_cv_search_opendir="none required"
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 fi
6456 rm -f conftest.err conftest.$ac_objext \
6457       conftest$ac_exeext conftest.$ac_ext
6458 if test "$ac_cv_search_opendir" = no; then
6459   for ac_lib in dir; do
6460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6461     cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 /* Override any gcc2 internal prototype to avoid an error.  */
6469 #ifdef __cplusplus
6470 extern "C"
6471 #endif
6472 /* We use char because int might match the return type of a gcc2
6473    builtin and then its argument prototype would still apply.  */
6474 char opendir ();
6475 int
6476 main ()
6477 {
6478 opendir ();
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext conftest$ac_exeext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6485   (eval $ac_link) 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag"
6493                          || test ! -s conftest.err'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; } &&
6499          { ac_try='test -s conftest$ac_exeext'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; }; then
6505   ac_cv_search_opendir="-l$ac_lib"
6506 break
6507 else
6508   echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 fi
6512 rm -f conftest.err conftest.$ac_objext \
6513       conftest$ac_exeext conftest.$ac_ext
6514   done
6515 fi
6516 LIBS=$ac_func_search_save_LIBS
6517 fi
6518 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6519 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6520 if test "$ac_cv_search_opendir" != no; then
6521   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6522
6523 fi
6524
6525 else
6526   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6528 if test "${ac_cv_search_opendir+set}" = set; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   ac_func_search_save_LIBS=$LIBS
6532 ac_cv_search_opendir=no
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539
6540 /* Override any gcc2 internal prototype to avoid an error.  */
6541 #ifdef __cplusplus
6542 extern "C"
6543 #endif
6544 /* We use char because int might match the return type of a gcc2
6545    builtin and then its argument prototype would still apply.  */
6546 char opendir ();
6547 int
6548 main ()
6549 {
6550 opendir ();
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557   (eval $ac_link) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest$ac_exeext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_cv_search_opendir="none required"
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 fi
6583 rm -f conftest.err conftest.$ac_objext \
6584       conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_search_opendir" = no; then
6586   for ac_lib in x; do
6587     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6588     cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h.  */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h.  */
6594
6595 /* Override any gcc2 internal prototype to avoid an error.  */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600    builtin and then its argument prototype would still apply.  */
6601 char opendir ();
6602 int
6603 main ()
6604 {
6605 opendir ();
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612   (eval $ac_link) 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } &&
6619          { ac_try='test -z "$ac_c_werror_flag"
6620                          || test ! -s conftest.err'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; } &&
6626          { ac_try='test -s conftest$ac_exeext'
6627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628   (eval $ac_try) 2>&5
6629   ac_status=$?
6630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631   (exit $ac_status); }; }; then
6632   ac_cv_search_opendir="-l$ac_lib"
6633 break
6634 else
6635   echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6637
6638 fi
6639 rm -f conftest.err conftest.$ac_objext \
6640       conftest$ac_exeext conftest.$ac_ext
6641   done
6642 fi
6643 LIBS=$ac_func_search_save_LIBS
6644 fi
6645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6646 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6647 if test "$ac_cv_search_opendir" != no; then
6648   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6649
6650 fi
6651
6652 fi
6653
6654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6665                   inttypes.h stdint.h unistd.h
6666 do
6667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6668 echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679 $ac_includes_default
6680
6681 #include <$ac_header>
6682 _ACEOF
6683 rm -f conftest.$ac_objext
6684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6685   (eval $ac_compile) 2>conftest.er1
6686   ac_status=$?
6687   grep -v '^ *+' conftest.er1 >conftest.err
6688   rm -f conftest.er1
6689   cat conftest.err >&5
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } &&
6692          { ac_try='test -z "$ac_c_werror_flag"
6693                          || test ! -s conftest.err'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; } &&
6699          { ac_try='test -s conftest.$ac_objext'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; }; then
6705   eval "$as_ac_Header=yes"
6706 else
6707   echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 eval "$as_ac_Header=no"
6711 fi
6712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6717   cat >>confdefs.h <<_ACEOF
6718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6719 _ACEOF
6720
6721 fi
6722
6723 done
6724
6725
6726
6727 for ac_header in dlfcn.h
6728 do
6729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6731   echo "$as_me:$LINENO: checking for $ac_header" >&5
6732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 fi
6736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6738 else
6739   # Is the header compilable?
6740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6743 /* confdefs.h.  */
6744 _ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h.  */
6748 $ac_includes_default
6749 #include <$ac_header>
6750 _ACEOF
6751 rm -f conftest.$ac_objext
6752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6753   (eval $ac_compile) 2>conftest.er1
6754   ac_status=$?
6755   grep -v '^ *+' conftest.er1 >conftest.err
6756   rm -f conftest.er1
6757   cat conftest.err >&5
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); } &&
6760          { ac_try='test -z "$ac_c_werror_flag"
6761                          || test ! -s conftest.err'
6762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763   (eval $ac_try) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; } &&
6767          { ac_try='test -s conftest.$ac_objext'
6768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769   (eval $ac_try) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; }; then
6773   ac_header_compiler=yes
6774 else
6775   echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6777
6778 ac_header_compiler=no
6779 fi
6780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6782 echo "${ECHO_T}$ac_header_compiler" >&6
6783
6784 # Is the header present?
6785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <$ac_header>
6794 _ACEOF
6795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6797   ac_status=$?
6798   grep -v '^ *+' conftest.er1 >conftest.err
6799   rm -f conftest.er1
6800   cat conftest.err >&5
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); } >/dev/null; then
6803   if test -s conftest.err; then
6804     ac_cpp_err=$ac_c_preproc_warn_flag
6805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6806   else
6807     ac_cpp_err=
6808   fi
6809 else
6810   ac_cpp_err=yes
6811 fi
6812 if test -z "$ac_cpp_err"; then
6813   ac_header_preproc=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818   ac_header_preproc=no
6819 fi
6820 rm -f conftest.err conftest.$ac_ext
6821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6822 echo "${ECHO_T}$ac_header_preproc" >&6
6823
6824 # So?  What about this header?
6825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6826   yes:no: )
6827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6831     ac_header_preproc=yes
6832     ;;
6833   no:yes:* )
6834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6846     (
6847       cat <<\_ASBOX
6848 ## ----------------------------------- ##
6849 ## Report this to llvmbugs@cs.uiuc.edu ##
6850 ## ----------------------------------- ##
6851 _ASBOX
6852     ) |
6853       sed "s/^/$as_me: WARNING:     /" >&2
6854     ;;
6855 esac
6856 echo "$as_me:$LINENO: checking for $ac_header" >&5
6857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   eval "$as_ac_Header=\$ac_header_preproc"
6862 fi
6863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865
6866 fi
6867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6868   cat >>confdefs.h <<_ACEOF
6869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870 _ACEOF
6871
6872 fi
6873
6874 done
6875
6876 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6877 if test "${enable_ltdl_install+set}" = set; then
6878   enableval="$enable_ltdl_install"
6879
6880 fi;
6881
6882
6883
6884 if test x"${enable_ltdl_install-no}" != xno; then
6885   INSTALL_LTDL_TRUE=
6886   INSTALL_LTDL_FALSE='#'
6887 else
6888   INSTALL_LTDL_TRUE='#'
6889   INSTALL_LTDL_FALSE=
6890 fi
6891
6892
6893
6894 if test x"${enable_ltdl_convenience-no}" != xno; then
6895   CONVENIENCE_LTDL_TRUE=
6896   CONVENIENCE_LTDL_FALSE='#'
6897 else
6898   CONVENIENCE_LTDL_TRUE='#'
6899   CONVENIENCE_LTDL_FALSE=
6900 fi
6901
6902
6903 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6904 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6905 library_names_spec=
6906 libname_spec='lib$name'
6907 soname_spec=
6908 shrext_cmds=".so"
6909 postinstall_cmds=
6910 postuninstall_cmds=
6911 finish_cmds=
6912 finish_eval=
6913 shlibpath_var=
6914 shlibpath_overrides_runpath=unknown
6915 version_type=none
6916 dynamic_linker="$host_os ld.so"
6917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6918 if test "$GCC" = yes; then
6919   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6920   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6921     # if the path contains ";" then we assume it to be the separator
6922     # otherwise default to the standard path separator (i.e. ":") - it is
6923     # assumed that no part of a normal pathname contains ";" but that should
6924     # okay in the real world where ";" in dirpaths is itself problematic.
6925     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6926   else
6927     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6928   fi
6929 else
6930   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6931 fi
6932 need_lib_prefix=unknown
6933 hardcode_into_libs=no
6934
6935 # when you set need_version to no, make sure it does not cause -set_version
6936 # flags to be left without arguments
6937 need_version=unknown
6938
6939 case $host_os in
6940 aix3*)
6941   version_type=linux
6942   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6943   shlibpath_var=LIBPATH
6944
6945   # AIX 3 has no versioning support, so we append a major version to the name.
6946   soname_spec='${libname}${release}${shared_ext}$major'
6947   ;;
6948
6949 aix4* | aix5*)
6950   version_type=linux
6951   need_lib_prefix=no
6952   need_version=no
6953   hardcode_into_libs=yes
6954   if test "$host_cpu" = ia64; then
6955     # AIX 5 supports IA64
6956     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6957     shlibpath_var=LD_LIBRARY_PATH
6958   else
6959     # With GCC up to 2.95.x, collect2 would create an import file
6960     # for dependence libraries.  The import file would start with
6961     # the line `#! .'.  This would cause the generated library to
6962     # depend on `.', always an invalid library.  This was fixed in
6963     # development snapshots of GCC prior to 3.0.
6964     case $host_os in
6965       aix4 | aix4.[01] | aix4.[01].*)
6966       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6967            echo ' yes '
6968            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6969         :
6970       else
6971         can_build_shared=no
6972       fi
6973       ;;
6974     esac
6975     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6976     # soname into executable. Probably we can add versioning support to
6977     # collect2, so additional links can be useful in future.
6978     if test "$aix_use_runtimelinking" = yes; then
6979       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6980       # instead of lib<name>.a to let people know that these are not
6981       # typical AIX shared libraries.
6982       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6983     else
6984       # We preserve .a as extension for shared libraries through AIX4.2
6985       # and later when we are not doing run time linking.
6986       library_names_spec='${libname}${release}.a $libname.a'
6987       soname_spec='${libname}${release}${shared_ext}$major'
6988     fi
6989     shlibpath_var=LIBPATH
6990   fi
6991   ;;
6992
6993 amigaos*)
6994   library_names_spec='$libname.ixlibrary $libname.a'
6995   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6996   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'
6997   ;;
6998
6999 beos*)
7000   library_names_spec='${libname}${shared_ext}'
7001   dynamic_linker="$host_os ld.so"
7002   shlibpath_var=LIBRARY_PATH
7003   ;;
7004
7005 bsdi[45]*)
7006   version_type=linux
7007   need_version=no
7008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7009   soname_spec='${libname}${release}${shared_ext}$major'
7010   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7011   shlibpath_var=LD_LIBRARY_PATH
7012   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7013   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7014   # the default ld.so.conf also contains /usr/contrib/lib and
7015   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7016   # libtool to hard-code these into programs
7017   ;;
7018
7019 cygwin* | mingw* | pw32*)
7020   version_type=windows
7021   shrext_cmds=".dll"
7022   need_version=no
7023   need_lib_prefix=no
7024
7025   case $GCC,$host_os in
7026   yes,cygwin* | yes,mingw* | yes,pw32*)
7027     library_names_spec='$libname.dll.a'
7028     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7029     postinstall_cmds='base_file=`basename \${file}`~
7030       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7031       dldir=$destdir/`dirname \$dlpath`~
7032       test -d \$dldir || mkdir -p \$dldir~
7033       $install_prog $dir/$dlname \$dldir/$dlname'
7034     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7035       dlpath=$dir/\$dldll~
7036        $rm \$dlpath'
7037     shlibpath_overrides_runpath=yes
7038
7039     case $host_os in
7040     cygwin*)
7041       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7042       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7043       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7044       ;;
7045     mingw*)
7046       # MinGW DLLs use traditional 'lib' prefix
7047       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7048       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7049       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7050         # It is most probably a Windows format PATH printed by
7051         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7052         # path with ; separators, and with drive letters. We can handle the
7053         # drive letters (cygwin fileutils understands them), so leave them,
7054         # especially as we might pass files found there to a mingw objdump,
7055         # which wouldn't understand a cygwinified path. Ahh.
7056         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7057       else
7058         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7059       fi
7060       ;;
7061     pw32*)
7062       # pw32 DLLs use 'pw' prefix rather than 'lib'
7063       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7064       ;;
7065     esac
7066     ;;
7067
7068   *)
7069     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7070     ;;
7071   esac
7072   dynamic_linker='Win32 ld.exe'
7073   # FIXME: first we should search . and the directory the executable is in
7074   shlibpath_var=PATH
7075   ;;
7076
7077 darwin* | rhapsody*)
7078   dynamic_linker="$host_os dyld"
7079   version_type=darwin
7080   need_lib_prefix=no
7081   need_version=no
7082   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7083   soname_spec='${libname}${release}${major}$shared_ext'
7084   shlibpath_overrides_runpath=yes
7085   shlibpath_var=DYLD_LIBRARY_PATH
7086   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7087   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7088   if test "$GCC" = yes; then
7089     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"`
7090   else
7091     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7092   fi
7093   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7094   ;;
7095
7096 dgux*)
7097   version_type=linux
7098   need_lib_prefix=no
7099   need_version=no
7100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7101   soname_spec='${libname}${release}${shared_ext}$major'
7102   shlibpath_var=LD_LIBRARY_PATH
7103   ;;
7104
7105 freebsd1*)
7106   dynamic_linker=no
7107   ;;
7108
7109 kfreebsd*-gnu)
7110   version_type=linux
7111   need_lib_prefix=no
7112   need_version=no
7113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7114   soname_spec='${libname}${release}${shared_ext}$major'
7115   shlibpath_var=LD_LIBRARY_PATH
7116   shlibpath_overrides_runpath=no
7117   hardcode_into_libs=yes
7118   dynamic_linker='GNU ld.so'
7119   ;;
7120
7121 freebsd*)
7122   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7123   version_type=freebsd-$objformat
7124   case $version_type in
7125     freebsd-elf*)
7126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7127       need_version=no
7128       need_lib_prefix=no
7129       ;;
7130     freebsd-*)
7131       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7132       need_version=yes
7133       ;;
7134   esac
7135   shlibpath_var=LD_LIBRARY_PATH
7136   case $host_os in
7137   freebsd2*)
7138     shlibpath_overrides_runpath=yes
7139     ;;
7140   freebsd3.01* | freebsdelf3.01*)
7141     shlibpath_overrides_runpath=yes
7142     hardcode_into_libs=yes
7143     ;;
7144   *) # from 3.2 on
7145     shlibpath_overrides_runpath=no
7146     hardcode_into_libs=yes
7147     ;;
7148   esac
7149   ;;
7150
7151 gnu*)
7152   version_type=linux
7153   need_lib_prefix=no
7154   need_version=no
7155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7156   soname_spec='${libname}${release}${shared_ext}$major'
7157   shlibpath_var=LD_LIBRARY_PATH
7158   hardcode_into_libs=yes
7159   ;;
7160
7161 hpux9* | hpux10* | hpux11*)
7162   # Give a soname corresponding to the major version so that dld.sl refuses to
7163   # link against other versions.
7164   version_type=sunos
7165   need_lib_prefix=no
7166   need_version=no
7167   case "$host_cpu" in
7168   ia64*)
7169     shrext_cmds='.so'
7170     hardcode_into_libs=yes
7171     dynamic_linker="$host_os dld.so"
7172     shlibpath_var=LD_LIBRARY_PATH
7173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7175     soname_spec='${libname}${release}${shared_ext}$major'
7176     if test "X$HPUX_IA64_MODE" = X32; then
7177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7178     else
7179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7180     fi
7181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7182     ;;
7183    hppa*64*)
7184      shrext_cmds='.sl'
7185      hardcode_into_libs=yes
7186      dynamic_linker="$host_os dld.sl"
7187      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7188      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7189      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7190      soname_spec='${libname}${release}${shared_ext}$major'
7191      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7192      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7193      ;;
7194    *)
7195     shrext_cmds='.sl'
7196     dynamic_linker="$host_os dld.sl"
7197     shlibpath_var=SHLIB_PATH
7198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200     soname_spec='${libname}${release}${shared_ext}$major'
7201     ;;
7202   esac
7203   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7204   postinstall_cmds='chmod 555 $lib'
7205   ;;
7206
7207 irix5* | irix6* | nonstopux*)
7208   case $host_os in
7209     nonstopux*) version_type=nonstopux ;;
7210     *)
7211         if test "$lt_cv_prog_gnu_ld" = yes; then
7212                 version_type=linux
7213         else
7214                 version_type=irix
7215         fi ;;
7216   esac
7217   need_lib_prefix=no
7218   need_version=no
7219   soname_spec='${libname}${release}${shared_ext}$major'
7220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7221   case $host_os in
7222   irix5* | nonstopux*)
7223     libsuff= shlibsuff=
7224     ;;
7225   *)
7226     case $LD in # libtool.m4 will add one of these switches to LD
7227     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7228       libsuff= shlibsuff= libmagic=32-bit;;
7229     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7230       libsuff=32 shlibsuff=N32 libmagic=N32;;
7231     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7232       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7233     *) libsuff= shlibsuff= libmagic=never-match;;
7234     esac
7235     ;;
7236   esac
7237   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7238   shlibpath_overrides_runpath=no
7239   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7240   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7241   hardcode_into_libs=yes
7242   ;;
7243
7244 # No shared lib support for Linux oldld, aout, or coff.
7245 linux*oldld* | linux*aout* | linux*coff*)
7246   dynamic_linker=no
7247   ;;
7248
7249 # This must be Linux ELF.
7250 linux*)
7251   version_type=linux
7252   need_lib_prefix=no
7253   need_version=no
7254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255   soname_spec='${libname}${release}${shared_ext}$major'
7256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7257   shlibpath_var=LD_LIBRARY_PATH
7258   shlibpath_overrides_runpath=no
7259   # This implies no fast_install, which is unacceptable.
7260   # Some rework will be needed to allow for fast_install
7261   # before this can be enabled.
7262   hardcode_into_libs=yes
7263
7264   # Append ld.so.conf contents to the search path
7265   if test -f /etc/ld.so.conf; then
7266     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7267     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7268   fi
7269
7270   # We used to test for /lib/ld.so.1 and disable shared libraries on
7271   # powerpc, because MkLinux only supported shared libraries with the
7272   # GNU dynamic linker.  Since this was broken with cross compilers,
7273   # most powerpc-linux boxes support dynamic linking these days and
7274   # people can always --disable-shared, the test was removed, and we
7275   # assume the GNU/Linux dynamic linker is in use.
7276   dynamic_linker='GNU/Linux ld.so'
7277   ;;
7278
7279 knetbsd*-gnu)
7280   version_type=linux
7281   need_lib_prefix=no
7282   need_version=no
7283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7284   soname_spec='${libname}${release}${shared_ext}$major'
7285   shlibpath_var=LD_LIBRARY_PATH
7286   shlibpath_overrides_runpath=no
7287   hardcode_into_libs=yes
7288   dynamic_linker='GNU ld.so'
7289   ;;
7290
7291 netbsd*)
7292   version_type=sunos
7293   need_lib_prefix=no
7294   need_version=no
7295   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7298     dynamic_linker='NetBSD (a.out) ld.so'
7299   else
7300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7301     soname_spec='${libname}${release}${shared_ext}$major'
7302     dynamic_linker='NetBSD ld.elf_so'
7303   fi
7304   shlibpath_var=LD_LIBRARY_PATH
7305   shlibpath_overrides_runpath=yes
7306   hardcode_into_libs=yes
7307   ;;
7308
7309 newsos6)
7310   version_type=linux
7311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312   shlibpath_var=LD_LIBRARY_PATH
7313   shlibpath_overrides_runpath=yes
7314   ;;
7315
7316 nto-qnx*)
7317   version_type=linux
7318   need_lib_prefix=no
7319   need_version=no
7320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7321   soname_spec='${libname}${release}${shared_ext}$major'
7322   shlibpath_var=LD_LIBRARY_PATH
7323   shlibpath_overrides_runpath=yes
7324   ;;
7325
7326 openbsd*)
7327   version_type=sunos
7328   need_lib_prefix=no
7329   need_version=no
7330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7331   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7332   shlibpath_var=LD_LIBRARY_PATH
7333   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7334     case $host_os in
7335       openbsd2.[89] | openbsd2.[89].*)
7336         shlibpath_overrides_runpath=no
7337         ;;
7338       *)
7339         shlibpath_overrides_runpath=yes
7340         ;;
7341       esac
7342   else
7343     shlibpath_overrides_runpath=yes
7344   fi
7345   ;;
7346
7347 os2*)
7348   libname_spec='$name'
7349   shrext_cmds=".dll"
7350   need_lib_prefix=no
7351   library_names_spec='$libname${shared_ext} $libname.a'
7352   dynamic_linker='OS/2 ld.exe'
7353   shlibpath_var=LIBPATH
7354   ;;
7355
7356 osf3* | osf4* | osf5*)
7357   version_type=osf
7358   need_lib_prefix=no
7359   need_version=no
7360   soname_spec='${libname}${release}${shared_ext}$major'
7361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7362   shlibpath_var=LD_LIBRARY_PATH
7363   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7364   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7365   ;;
7366
7367 sco3.2v5*)
7368   version_type=osf
7369   soname_spec='${libname}${release}${shared_ext}$major'
7370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7371   shlibpath_var=LD_LIBRARY_PATH
7372   ;;
7373
7374 solaris*)
7375   version_type=linux
7376   need_lib_prefix=no
7377   need_version=no
7378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7379   soname_spec='${libname}${release}${shared_ext}$major'
7380   shlibpath_var=LD_LIBRARY_PATH
7381   shlibpath_overrides_runpath=yes
7382   hardcode_into_libs=yes
7383   # ldd complains unless libraries are executable
7384   postinstall_cmds='chmod +x $lib'
7385   ;;
7386
7387 sunos4*)
7388   version_type=sunos
7389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7390   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7391   shlibpath_var=LD_LIBRARY_PATH
7392   shlibpath_overrides_runpath=yes
7393   if test "$with_gnu_ld" = yes; then
7394     need_lib_prefix=no
7395   fi
7396   need_version=yes
7397   ;;
7398
7399 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7400   version_type=linux
7401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7402   soname_spec='${libname}${release}${shared_ext}$major'
7403   shlibpath_var=LD_LIBRARY_PATH
7404   case $host_vendor in
7405     sni)
7406       shlibpath_overrides_runpath=no
7407       need_lib_prefix=no
7408       export_dynamic_flag_spec='${wl}-Blargedynsym'
7409       runpath_var=LD_RUN_PATH
7410       ;;
7411     siemens)
7412       need_lib_prefix=no
7413       ;;
7414     motorola)
7415       need_lib_prefix=no
7416       need_version=no
7417       shlibpath_overrides_runpath=no
7418       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7419       ;;
7420   esac
7421   ;;
7422
7423 sysv4*MP*)
7424   if test -d /usr/nec ;then
7425     version_type=linux
7426     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7427     soname_spec='$libname${shared_ext}.$major'
7428     shlibpath_var=LD_LIBRARY_PATH
7429   fi
7430   ;;
7431
7432 uts4*)
7433   version_type=linux
7434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435   soname_spec='${libname}${release}${shared_ext}$major'
7436   shlibpath_var=LD_LIBRARY_PATH
7437   ;;
7438
7439 *)
7440   dynamic_linker=no
7441   ;;
7442 esac
7443 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7444 echo "${ECHO_T}$dynamic_linker" >&6
7445 test "$dynamic_linker" = no && can_build_shared=no
7446
7447
7448 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7449 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7450 if test "${libltdl_cv_shlibext+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453
7454 module=yes
7455 eval libltdl_cv_shlibext=$shrext_cmds
7456
7457 fi
7458 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7459 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7460 if test -n "$libltdl_cv_shlibext"; then
7461
7462 cat >>confdefs.h <<_ACEOF
7463 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7464 _ACEOF
7465
7466 fi
7467
7468
7469 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7470 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7471 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474   libltdl_cv_shlibpath_var="$shlibpath_var"
7475 fi
7476 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7477 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7478 if test -n "$libltdl_cv_shlibpath_var"; then
7479
7480 cat >>confdefs.h <<_ACEOF
7481 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7482 _ACEOF
7483
7484 fi
7485
7486
7487 echo "$as_me:$LINENO: checking for the default library search path" >&5
7488 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7489 if test "${libltdl_cv_sys_search_path+set}" = set; then
7490   echo $ECHO_N "(cached) $ECHO_C" >&6
7491 else
7492   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7493 fi
7494 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7495 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7496 if test -n "$libltdl_cv_sys_search_path"; then
7497   sys_search_path=
7498   for dir in $libltdl_cv_sys_search_path; do
7499     if test -z "$sys_search_path"; then
7500       sys_search_path="$dir"
7501     else
7502       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7503     fi
7504   done
7505
7506 cat >>confdefs.h <<_ACEOF
7507 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7508 _ACEOF
7509
7510 fi
7511
7512 echo "$as_me:$LINENO: checking for objdir" >&5
7513 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7514 if test "${libltdl_cv_objdir+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   libltdl_cv_objdir="$objdir"
7518   if test -n "$objdir"; then
7519     :
7520   else
7521     rm -f .libs 2>/dev/null
7522     mkdir .libs 2>/dev/null
7523     if test -d .libs; then
7524       libltdl_cv_objdir=.libs
7525     else
7526       # MS-DOS does not allow filenames that begin with a dot.
7527       libltdl_cv_objdir=_libs
7528     fi
7529   rmdir .libs 2>/dev/null
7530   fi
7531
7532 fi
7533 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7534 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7535
7536 cat >>confdefs.h <<_ACEOF
7537 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7538 _ACEOF
7539
7540
7541 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7542 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7543 if test "${lt_cv_path_NM+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546   if test -n "$NM"; then
7547   # Let the user override the test.
7548   lt_cv_path_NM="$NM"
7549 else
7550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7552     IFS="$lt_save_ifs"
7553     test -z "$ac_dir" && ac_dir=.
7554     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7555     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7556       # Check to see if the nm accepts a BSD-compat flag.
7557       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7558       #   nm: unknown option "B" ignored
7559       # Tru64's nm complains that /dev/null is an invalid object file
7560       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7561       */dev/null* | *'Invalid file or object type'*)
7562         lt_cv_path_NM="$tmp_nm -B"
7563         break
7564         ;;
7565       *)
7566         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7567         */dev/null*)
7568           lt_cv_path_NM="$tmp_nm -p"
7569           break
7570           ;;
7571         *)
7572           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7573           continue # so that we can try to find one that supports BSD flags
7574           ;;
7575         esac
7576       esac
7577     fi
7578   done
7579   IFS="$lt_save_ifs"
7580   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7581 fi
7582 fi
7583 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7584 echo "${ECHO_T}$lt_cv_path_NM" >&6
7585 NM="$lt_cv_path_NM"
7586
7587
7588
7589
7590
7591 # Check for command to grab the raw symbol name followed by C symbol from nm.
7592 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7593 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7594 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597
7598 # These are sane defaults that work on at least a few old systems.
7599 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7600
7601 # Character class describing NM global symbol codes.
7602 symcode='[BCDEGRST]'
7603
7604 # Regexp to match symbols that can be accessed directly from C.
7605 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7606
7607 # Transform the above into a raw symbol and a C symbol.
7608 symxfrm='\1 \2\3 \3'
7609
7610 # Transform an extracted symbol line into a proper C declaration
7611 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7612
7613 # Transform an extracted symbol line into symbol name and symbol address
7614 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'"
7615
7616 # Define system-specific variables.
7617 case $host_os in
7618 aix*)
7619   symcode='[BCDT]'
7620   ;;
7621 cygwin* | mingw* | pw32*)
7622   symcode='[ABCDGISTW]'
7623   ;;
7624 hpux*) # Its linker distinguishes data from code symbols
7625   if test "$host_cpu" = ia64; then
7626     symcode='[ABCDEGRST]'
7627   fi
7628   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7629   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'"
7630   ;;
7631 linux*)
7632   if test "$host_cpu" = ia64; then
7633     symcode='[ABCDGIRSTW]'
7634     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7635     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'"
7636   fi
7637   ;;
7638 irix* | nonstopux*)
7639   symcode='[BCDEGRST]'
7640   ;;
7641 osf*)
7642   symcode='[BCDEGQRST]'
7643   ;;
7644 solaris* | sysv5*)
7645   symcode='[BDRT]'
7646   ;;
7647 sysv4)
7648   symcode='[DFNSTU]'
7649   ;;
7650 esac
7651
7652 # Handle CRLF in mingw tool chain
7653 opt_cr=
7654 case $build_os in
7655 mingw*)
7656   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7657   ;;
7658 esac
7659
7660 # If we're using GNU nm, then use its standard symbol codes.
7661 case `$NM -V 2>&1` in
7662 *GNU* | *'with BFD'*)
7663   symcode='[ABCDGIRSTW]' ;;
7664 esac
7665
7666 # Try without a prefix undercore, then with it.
7667 for ac_symprfx in "" "_"; do
7668
7669   # Write the raw and C identifiers.
7670   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7671
7672   # Check to see that the pipe works correctly.
7673   pipe_works=no
7674
7675   rm -f conftest*
7676   cat > conftest.$ac_ext <<EOF
7677 #ifdef __cplusplus
7678 extern "C" {
7679 #endif
7680 char nm_test_var;
7681 void nm_test_func(){}
7682 #ifdef __cplusplus
7683 }
7684 #endif
7685 int main(){nm_test_var='a';nm_test_func();return(0);}
7686 EOF
7687
7688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>&5
7690   ac_status=$?
7691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); }; then
7693     # Now try to grab the symbols.
7694     nlist=conftest.nm
7695     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } && test -s "$nlist"; then
7700       # Try sorting and uniquifying the output.
7701       if sort "$nlist" | uniq > "$nlist"T; then
7702         mv -f "$nlist"T "$nlist"
7703       else
7704         rm -f "$nlist"T
7705       fi
7706
7707       # Make sure that we snagged all the symbols we need.
7708       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710           cat <<EOF > conftest.$ac_ext
7711 #ifdef __cplusplus
7712 extern "C" {
7713 #endif
7714
7715 EOF
7716           # Now generate the symbol file.
7717           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7718
7719           cat <<EOF >> conftest.$ac_ext
7720 #if defined (__STDC__) && __STDC__
7721 # define lt_ptr_t void *
7722 #else
7723 # define lt_ptr_t char *
7724 # define const
7725 #endif
7726
7727 /* The mapping between symbol names and symbols. */
7728 const struct {
7729   const char *name;
7730   lt_ptr_t address;
7731 }
7732 lt_preloaded_symbols[] =
7733 {
7734 EOF
7735           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736           cat <<\EOF >> conftest.$ac_ext
7737   {0, (lt_ptr_t) 0}
7738 };
7739
7740 #ifdef __cplusplus
7741 }
7742 #endif
7743 EOF
7744           # Now try linking the two files.
7745           mv conftest.$ac_objext conftstm.$ac_objext
7746           lt_save_LIBS="$LIBS"
7747           lt_save_CFLAGS="$CFLAGS"
7748           LIBS="conftstm.$ac_objext"
7749           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751   (eval $ac_link) 2>&5
7752   ac_status=$?
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7755             pipe_works=yes
7756           fi
7757           LIBS="$lt_save_LIBS"
7758           CFLAGS="$lt_save_CFLAGS"
7759         else
7760           echo "cannot find nm_test_func in $nlist" >&5
7761         fi
7762       else
7763         echo "cannot find nm_test_var in $nlist" >&5
7764       fi
7765     else
7766       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767     fi
7768   else
7769     echo "$progname: failed program was:" >&5
7770     cat conftest.$ac_ext >&5
7771   fi
7772   rm -f conftest* conftst*
7773
7774   # Do not use the global_symbol_pipe unless it works.
7775   if test "$pipe_works" = yes; then
7776     break
7777   else
7778     lt_cv_sys_global_symbol_pipe=
7779   fi
7780 done
7781
7782 fi
7783
7784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785   lt_cv_sys_global_symbol_to_cdecl=
7786 fi
7787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788   echo "$as_me:$LINENO: result: failed" >&5
7789 echo "${ECHO_T}failed" >&6
7790 else
7791   echo "$as_me:$LINENO: result: ok" >&5
7792 echo "${ECHO_T}ok" >&6
7793 fi
7794
7795
7796 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7797 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7798 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7802     libltdl_cv_preloaded_symbols=yes
7803   else
7804     libltdl_cv_preloaded_symbols=no
7805   fi
7806
7807 fi
7808 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7809 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7810 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_PRELOADED_SYMBOLS 1
7814 _ACEOF
7815
7816 fi
7817
7818 LIBADD_DL=
7819
7820 ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825
7826
7827 echo "$as_me:$LINENO: checking for shl_load" >&5
7828 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7829 if test "${ac_cv_func_shl_load+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h.  */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h.  */
7838 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7840 #define shl_load innocuous_shl_load
7841
7842 /* System header to define __stub macros and hopefully few prototypes,
7843     which can conflict with char shl_load (); below.
7844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7845     <limits.h> exists even on freestanding compilers.  */
7846
7847 #ifdef __STDC__
7848 # include <limits.h>
7849 #else
7850 # include <assert.h>
7851 #endif
7852
7853 #undef shl_load
7854
7855 /* Override any gcc2 internal prototype to avoid an error.  */
7856 #ifdef __cplusplus
7857 extern "C"
7858 {
7859 #endif
7860 /* We use char because int might match the return type of a gcc2
7861    builtin and then its argument prototype would still apply.  */
7862 char shl_load ();
7863 /* The GNU C library defines this for functions which it implements
7864     to always fail with ENOSYS.  Some functions are actually named
7865     something starting with __ and the normal name is an alias.  */
7866 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7867 choke me
7868 #else
7869 char (*f) () = shl_load;
7870 #endif
7871 #ifdef __cplusplus
7872 }
7873 #endif
7874
7875 int
7876 main ()
7877 {
7878 return f != shl_load;
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885   (eval $ac_link) 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -z "$ac_c_werror_flag"
7893                          || test ! -s conftest.err'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; } &&
7899          { ac_try='test -s conftest$ac_exeext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   ac_cv_func_shl_load=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_cv_func_shl_load=no
7911 fi
7912 rm -f conftest.err conftest.$ac_objext \
7913       conftest$ac_exeext conftest.$ac_ext
7914 fi
7915 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7916 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7917 if test $ac_cv_func_shl_load = yes; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_SHL_LOAD 1
7921 _ACEOF
7922
7923 else
7924   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7925 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7926 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   ac_check_lib_save_LIBS=$LIBS
7930 LIBS="-ldld  $LIBS"
7931 cat >conftest.$ac_ext <<_ACEOF
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937
7938 /* Override any gcc2 internal prototype to avoid an error.  */
7939 #ifdef __cplusplus
7940 extern "C"
7941 #endif
7942 /* We use char because int might match the return type of a gcc2
7943    builtin and then its argument prototype would still apply.  */
7944 char shl_load ();
7945 int
7946 main ()
7947 {
7948 shl_load ();
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955   (eval $ac_link) 2>conftest.er1
7956   ac_status=$?
7957   grep -v '^ *+' conftest.er1 >conftest.err
7958   rm -f conftest.er1
7959   cat conftest.err >&5
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } &&
7962          { ac_try='test -z "$ac_c_werror_flag"
7963                          || test ! -s conftest.err'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; } &&
7969          { ac_try='test -s conftest$ac_exeext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   ac_cv_lib_dld_shl_load=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ac_cv_lib_dld_shl_load=no
7981 fi
7982 rm -f conftest.err conftest.$ac_objext \
7983       conftest$ac_exeext conftest.$ac_ext
7984 LIBS=$ac_check_lib_save_LIBS
7985 fi
7986 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7987 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7988 if test $ac_cv_lib_dld_shl_load = yes; then
7989
7990 cat >>confdefs.h <<\_ACEOF
7991 #define HAVE_SHL_LOAD 1
7992 _ACEOF
7993
7994         LIBADD_DL="$LIBADD_DL -ldld"
7995 else
7996   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7997 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7998 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-ldl  $LIBS"
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009
8010 /* Override any gcc2 internal prototype to avoid an error.  */
8011 #ifdef __cplusplus
8012 extern "C"
8013 #endif
8014 /* We use char because int might match the return type of a gcc2
8015    builtin and then its argument prototype would still apply.  */
8016 char dlopen ();
8017 int
8018 main ()
8019 {
8020 dlopen ();
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8027   (eval $ac_link) 2>conftest.er1
8028   ac_status=$?
8029   grep -v '^ *+' conftest.er1 >conftest.err
8030   rm -f conftest.er1
8031   cat conftest.err >&5
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -z "$ac_c_werror_flag"
8035                          || test ! -s conftest.err'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; } &&
8041          { ac_try='test -s conftest$ac_exeext'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; }; then
8047   ac_cv_lib_dl_dlopen=yes
8048 else
8049   echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_cv_lib_dl_dlopen=no
8053 fi
8054 rm -f conftest.err conftest.$ac_objext \
8055       conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8057 fi
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8059 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8060 if test $ac_cv_lib_dl_dlopen = yes; then
8061
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_LIBDL 1
8064 _ACEOF
8065
8066                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8067 else
8068   cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074 #if HAVE_DLFCN_H
8075 #  include <dlfcn.h>
8076 #endif
8077
8078 int
8079 main ()
8080 {
8081 dlopen(0, 0);
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8088   (eval $ac_link) 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -z "$ac_c_werror_flag"
8096                          || test ! -s conftest.err'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; } &&
8102          { ac_try='test -s conftest$ac_exeext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108
8109 cat >>confdefs.h <<\_ACEOF
8110 #define HAVE_LIBDL 1
8111 _ACEOF
8112  libltdl_cv_func_dlopen="yes"
8113 else
8114   echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8116
8117 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8118 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8120   echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122   ac_check_lib_save_LIBS=$LIBS
8123 LIBS="-lsvld  $LIBS"
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h.  */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h.  */
8130
8131 /* Override any gcc2 internal prototype to avoid an error.  */
8132 #ifdef __cplusplus
8133 extern "C"
8134 #endif
8135 /* We use char because int might match the return type of a gcc2
8136    builtin and then its argument prototype would still apply.  */
8137 char dlopen ();
8138 int
8139 main ()
8140 {
8141 dlopen ();
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148   (eval $ac_link) 2>conftest.er1
8149   ac_status=$?
8150   grep -v '^ *+' conftest.er1 >conftest.err
8151   rm -f conftest.er1
8152   cat conftest.err >&5
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); } &&
8155          { ac_try='test -z "$ac_c_werror_flag"
8156                          || test ! -s conftest.err'
8157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158   (eval $ac_try) 2>&5
8159   ac_status=$?
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); }; } &&
8162          { ac_try='test -s conftest$ac_exeext'
8163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164   (eval $ac_try) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); }; }; then
8168   ac_cv_lib_svld_dlopen=yes
8169 else
8170   echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_cv_lib_svld_dlopen=no
8174 fi
8175 rm -f conftest.err conftest.$ac_objext \
8176       conftest$ac_exeext conftest.$ac_ext
8177 LIBS=$ac_check_lib_save_LIBS
8178 fi
8179 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8180 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8181 if test $ac_cv_lib_svld_dlopen = yes; then
8182
8183 cat >>confdefs.h <<\_ACEOF
8184 #define HAVE_LIBDL 1
8185 _ACEOF
8186
8187                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8188 else
8189   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8192   echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194   ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-ldld  $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 /* confdefs.h.  */
8198 _ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h.  */
8202
8203 /* Override any gcc2 internal prototype to avoid an error.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 /* We use char because int might match the return type of a gcc2
8208    builtin and then its argument prototype would still apply.  */
8209 char dld_link ();
8210 int
8211 main ()
8212 {
8213 dld_link ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8220   (eval $ac_link) 2>conftest.er1
8221   ac_status=$?
8222   grep -v '^ *+' conftest.er1 >conftest.err
8223   rm -f conftest.er1
8224   cat conftest.err >&5
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } &&
8227          { ac_try='test -z "$ac_c_werror_flag"
8228                          || test ! -s conftest.err'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; } &&
8234          { ac_try='test -s conftest$ac_exeext'
8235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236   (eval $ac_try) 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   ac_cv_lib_dld_dld_link=yes
8241 else
8242   echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.$ac_ext >&5
8244
8245 ac_cv_lib_dld_dld_link=no
8246 fi
8247 rm -f conftest.err conftest.$ac_objext \
8248       conftest$ac_exeext conftest.$ac_ext
8249 LIBS=$ac_check_lib_save_LIBS
8250 fi
8251 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8252 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8253 if test $ac_cv_lib_dld_dld_link = yes; then
8254
8255 cat >>confdefs.h <<\_ACEOF
8256 #define HAVE_DLD 1
8257 _ACEOF
8258
8259                 LIBADD_DL="$LIBADD_DL -ldld"
8260 else
8261   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8262 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8263 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8274 #define _dyld_func_lookup innocuous__dyld_func_lookup
8275
8276 /* System header to define __stub macros and hopefully few prototypes,
8277     which can conflict with char _dyld_func_lookup (); below.
8278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279     <limits.h> exists even on freestanding compilers.  */
8280
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8286
8287 #undef _dyld_func_lookup
8288
8289 /* Override any gcc2 internal prototype to avoid an error.  */
8290 #ifdef __cplusplus
8291 extern "C"
8292 {
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char _dyld_func_lookup ();
8297 /* The GNU C library defines this for functions which it implements
8298     to always fail with ENOSYS.  Some functions are actually named
8299     something starting with __ and the normal name is an alias.  */
8300 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8301 choke me
8302 #else
8303 char (*f) () = _dyld_func_lookup;
8304 #endif
8305 #ifdef __cplusplus
8306 }
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 return f != _dyld_func_lookup;
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319   (eval $ac_link) 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -z "$ac_c_werror_flag"
8327                          || test ! -s conftest.err'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest$ac_exeext'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; }; then
8339   ac_cv_func__dyld_func_lookup=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_func__dyld_func_lookup=no
8345 fi
8346 rm -f conftest.err conftest.$ac_objext \
8347       conftest$ac_exeext conftest.$ac_ext
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8350 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8351 if test $ac_cv_func__dyld_func_lookup = yes; then
8352
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_DYLD 1
8355 _ACEOF
8356
8357 fi
8358
8359
8360 fi
8361
8362
8363 fi
8364
8365
8366 fi
8367 rm -f conftest.err conftest.$ac_objext \
8368       conftest$ac_exeext conftest.$ac_ext
8369
8370 fi
8371
8372
8373 fi
8374
8375
8376 fi
8377
8378
8379 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8380 then
8381   lt_save_LIBS="$LIBS"
8382   LIBS="$LIBS $LIBADD_DL"
8383
8384 for ac_func in dlerror
8385 do
8386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8387 echo "$as_me:$LINENO: checking for $ac_func" >&5
8388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8389 if eval "test \"\${$as_ac_var+set}\" = set"; then
8390   echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392   cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h.  */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h.  */
8398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8400 #define $ac_func innocuous_$ac_func
8401
8402 /* System header to define __stub macros and hopefully few prototypes,
8403     which can conflict with char $ac_func (); below.
8404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8405     <limits.h> exists even on freestanding compilers.  */
8406
8407 #ifdef __STDC__
8408 # include <limits.h>
8409 #else
8410 # include <assert.h>
8411 #endif
8412
8413 #undef $ac_func
8414
8415 /* Override any gcc2 internal prototype to avoid an error.  */
8416 #ifdef __cplusplus
8417 extern "C"
8418 {
8419 #endif
8420 /* We use char because int might match the return type of a gcc2
8421    builtin and then its argument prototype would still apply.  */
8422 char $ac_func ();
8423 /* The GNU C library defines this for functions which it implements
8424     to always fail with ENOSYS.  Some functions are actually named
8425     something starting with __ and the normal name is an alias.  */
8426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8427 choke me
8428 #else
8429 char (*f) () = $ac_func;
8430 #endif
8431 #ifdef __cplusplus
8432 }
8433 #endif
8434
8435 int
8436 main ()
8437 {
8438 return f != $ac_func;
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445   (eval $ac_link) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"
8453                          || test ! -s conftest.err'
8454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455   (eval $ac_try) 2>&5
8456   ac_status=$?
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); }; } &&
8459          { ac_try='test -s conftest$ac_exeext'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; }; then
8465   eval "$as_ac_var=yes"
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 eval "$as_ac_var=no"
8471 fi
8472 rm -f conftest.err conftest.$ac_objext \
8473       conftest$ac_exeext conftest.$ac_ext
8474 fi
8475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8477 if test `eval echo '${'$as_ac_var'}'` = yes; then
8478   cat >>confdefs.h <<_ACEOF
8479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8480 _ACEOF
8481
8482 fi
8483 done
8484
8485   LIBS="$lt_save_LIBS"
8486 fi
8487 ac_ext=c
8488 ac_cpp='$CPP $CPPFLAGS'
8489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492
8493
8494
8495 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8496 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8497 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   ac_cv_sys_symbol_underscore=no
8501   cat > conftest.$ac_ext <<EOF
8502 void nm_test_func(){}
8503 int main(){nm_test_func;return 0;}
8504 EOF
8505   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506   (eval $ac_compile) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; then
8510     # Now try to grab the symbols.
8511     ac_nlist=conftest.nm
8512     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8513   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } && test -s "$ac_nlist"; then
8517       # See whether the symbols have a leading underscore.
8518       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8519         ac_cv_sys_symbol_underscore=yes
8520       else
8521         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8522           :
8523         else
8524           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8525         fi
8526       fi
8527     else
8528       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8529     fi
8530   else
8531     echo "configure: failed program was:" >&5
8532     cat conftest.c >&5
8533   fi
8534   rm -rf conftest*
8535
8536 fi
8537 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8538 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8539
8540
8541 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8542   if test x"$libltdl_cv_func_dlopen" = xyes ||
8543      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8544         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8545 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8546 if test "${libltdl_cv_need_uscore+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   libltdl_cv_need_uscore=unknown
8550           save_LIBS="$LIBS"
8551           LIBS="$LIBS $LIBADD_DL"
8552           if test "$cross_compiling" = yes; then :
8553   libltdl_cv_need_uscore=cross
8554 else
8555   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8556   lt_status=$lt_dlunknown
8557   cat > conftest.$ac_ext <<EOF
8558 #line 8558 "configure"
8559 #include "confdefs.h"
8560
8561 #if HAVE_DLFCN_H
8562 #include <dlfcn.h>
8563 #endif
8564
8565 #include <stdio.h>
8566
8567 #ifdef RTLD_GLOBAL
8568 #  define LT_DLGLOBAL           RTLD_GLOBAL
8569 #else
8570 #  ifdef DL_GLOBAL
8571 #    define LT_DLGLOBAL         DL_GLOBAL
8572 #  else
8573 #    define LT_DLGLOBAL         0
8574 #  endif
8575 #endif
8576
8577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8578    find out it does not work in some platform. */
8579 #ifndef LT_DLLAZY_OR_NOW
8580 #  ifdef RTLD_LAZY
8581 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8582 #  else
8583 #    ifdef DL_LAZY
8584 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8585 #    else
8586 #      ifdef RTLD_NOW
8587 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8588 #      else
8589 #        ifdef DL_NOW
8590 #          define LT_DLLAZY_OR_NOW      DL_NOW
8591 #        else
8592 #          define LT_DLLAZY_OR_NOW      0
8593 #        endif
8594 #      endif
8595 #    endif
8596 #  endif
8597 #endif
8598
8599 #ifdef __cplusplus
8600 extern "C" void exit (int);
8601 #endif
8602
8603 void fnord() { int i=42;}
8604 int main ()
8605 {
8606   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8607   int status = $lt_dlunknown;
8608
8609   if (self)
8610     {
8611       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8612       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8613       /* dlclose (self); */
8614     }
8615
8616     exit (status);
8617 }
8618 EOF
8619   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620   (eval $ac_link) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8624     (./conftest; exit; ) 2>/dev/null
8625     lt_status=$?
8626     case x$lt_status in
8627       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8628       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8629       x$lt_unknown|x*)  ;;
8630     esac
8631   else :
8632     # compilation failed
8633
8634   fi
8635 fi
8636 rm -fr conftest*
8637
8638           LIBS="$save_LIBS"
8639
8640 fi
8641 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8642 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8643   fi
8644 fi
8645
8646 if test x"$libltdl_cv_need_uscore" = xyes; then
8647
8648 cat >>confdefs.h <<\_ACEOF
8649 #define NEED_USCORE 1
8650 _ACEOF
8651
8652 fi
8653
8654
8655 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8656 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8657 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   # PORTME does your system automatically load deplibs for dlopen?
8661   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8662   # For now, we just catch OSes we know something about -- in the
8663   # future, we'll try test this programmatically.
8664   libltdl_cv_sys_dlopen_deplibs=unknown
8665   case "$host_os" in
8666   aix3*|aix4.1.*|aix4.2.*)
8667     # Unknown whether this is true for these versions of AIX, but
8668     # we want this `case' here to explicitly catch those versions.
8669     libltdl_cv_sys_dlopen_deplibs=unknown
8670     ;;
8671   aix[45]*)
8672     libltdl_cv_sys_dlopen_deplibs=yes
8673     ;;
8674   darwin*)
8675     # Assuming the user has installed a libdl from somewhere, this is true
8676     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8677     libltdl_cv_sys_dlopen_deplibs=yes
8678     ;;
8679   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8680     # GNU and its variants, using gnu ld.so (Glibc)
8681     libltdl_cv_sys_dlopen_deplibs=yes
8682     ;;
8683   hpux10*|hpux11*)
8684     libltdl_cv_sys_dlopen_deplibs=yes
8685     ;;
8686   irix[12345]*|irix6.[01]*)
8687     # Catch all versions of IRIX before 6.2, and indicate that we don't
8688     # know how it worked for any of those versions.
8689     libltdl_cv_sys_dlopen_deplibs=unknown
8690     ;;
8691   irix*)
8692     # The case above catches anything before 6.2, and it's known that
8693     # at 6.2 and later dlopen does load deplibs.
8694     libltdl_cv_sys_dlopen_deplibs=yes
8695     ;;
8696   netbsd*)
8697     libltdl_cv_sys_dlopen_deplibs=yes
8698     ;;
8699   openbsd*)
8700     libltdl_cv_sys_dlopen_deplibs=yes
8701     ;;
8702   osf[1234]*)
8703     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8704     # it did *not* use an RPATH in a shared library to find objects the
8705     # library depends on, so we explictly say `no'.
8706     libltdl_cv_sys_dlopen_deplibs=no
8707     ;;
8708   osf5.0|osf5.0a|osf5.1)
8709     # dlopen *does* load deplibs and with the right loader patch applied
8710     # it even uses RPATH in a shared library to search for shared objects
8711     # that the library depends on, but there's no easy way to know if that
8712     # patch is installed.  Since this is the case, all we can really
8713     # say is unknown -- it depends on the patch being installed.  If
8714     # it is, this changes to `yes'.  Without it, it would be `no'.
8715     libltdl_cv_sys_dlopen_deplibs=unknown
8716     ;;
8717   osf*)
8718     # the two cases above should catch all versions of osf <= 5.1.  Read
8719     # the comments above for what we know about them.
8720     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8721     # is used to find them so we can finally say `yes'.
8722     libltdl_cv_sys_dlopen_deplibs=yes
8723     ;;
8724   solaris*)
8725     libltdl_cv_sys_dlopen_deplibs=yes
8726     ;;
8727   esac
8728
8729 fi
8730 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8731 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8732 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8733
8734 cat >>confdefs.h <<\_ACEOF
8735 #define LTDL_DLOPEN_DEPLIBS 1
8736 _ACEOF
8737
8738 fi
8739
8740
8741 for ac_header in argz.h
8742 do
8743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745   echo "$as_me:$LINENO: checking for $ac_header" >&5
8746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748   echo $ECHO_N "(cached) $ECHO_C" >&6
8749 fi
8750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752 else
8753   # Is the header compilable?
8754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h.  */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h.  */
8762 $ac_includes_default
8763 #include <$ac_header>
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767   (eval $ac_compile) 2>conftest.er1
8768   ac_status=$?
8769   grep -v '^ *+' conftest.er1 >conftest.err
8770   rm -f conftest.er1
8771   cat conftest.err >&5
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } &&
8774          { ac_try='test -z "$ac_c_werror_flag"
8775                          || test ! -s conftest.err'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; } &&
8781          { ac_try='test -s conftest.$ac_objext'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_header_compiler=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 ac_header_compiler=no
8793 fi
8794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8796 echo "${ECHO_T}$ac_header_compiler" >&6
8797
8798 # Is the header present?
8799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 #include <$ac_header>
8808 _ACEOF
8809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8811   ac_status=$?
8812   grep -v '^ *+' conftest.er1 >conftest.err
8813   rm -f conftest.er1
8814   cat conftest.err >&5
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); } >/dev/null; then
8817   if test -s conftest.err; then
8818     ac_cpp_err=$ac_c_preproc_warn_flag
8819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8820   else
8821     ac_cpp_err=
8822   fi
8823 else
8824   ac_cpp_err=yes
8825 fi
8826 if test -z "$ac_cpp_err"; then
8827   ac_header_preproc=yes
8828 else
8829   echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8831
8832   ac_header_preproc=no
8833 fi
8834 rm -f conftest.err conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8836 echo "${ECHO_T}$ac_header_preproc" >&6
8837
8838 # So?  What about this header?
8839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8840   yes:no: )
8841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8845     ac_header_preproc=yes
8846     ;;
8847   no:yes:* )
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8860     (
8861       cat <<\_ASBOX
8862 ## ----------------------------------- ##
8863 ## Report this to llvmbugs@cs.uiuc.edu ##
8864 ## ----------------------------------- ##
8865 _ASBOX
8866     ) |
8867       sed "s/^/$as_me: WARNING:     /" >&2
8868     ;;
8869 esac
8870 echo "$as_me:$LINENO: checking for $ac_header" >&5
8871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875   eval "$as_ac_Header=\$ac_header_preproc"
8876 fi
8877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8879
8880 fi
8881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8882   cat >>confdefs.h <<_ACEOF
8883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885
8886 fi
8887
8888 done
8889
8890
8891 echo "$as_me:$LINENO: checking for error_t" >&5
8892 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8893 if test "${ac_cv_type_error_t+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902 #if HAVE_ARGZ_H
8903 #  include <argz.h>
8904 #endif
8905
8906 int
8907 main ()
8908 {
8909 if ((error_t *) 0)
8910   return 0;
8911 if (sizeof (error_t))
8912   return 0;
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919   (eval $ac_compile) 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag"
8927                          || test ! -s conftest.err'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; } &&
8933          { ac_try='test -s conftest.$ac_objext'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; }; then
8939   ac_cv_type_error_t=yes
8940 else
8941   echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ac_cv_type_error_t=no
8945 fi
8946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8949 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8950 if test $ac_cv_type_error_t = yes; then
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_ERROR_T 1
8954 _ACEOF
8955
8956
8957 else
8958
8959 cat >>confdefs.h <<\_ACEOF
8960 #define error_t int
8961 _ACEOF
8962
8963 fi
8964
8965
8966
8967
8968
8969
8970
8971 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8972 do
8973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8974 echo "$as_me:$LINENO: checking for $ac_func" >&5
8975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8976 if eval "test \"\${$as_ac_var+set}\" = set"; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8987 #define $ac_func innocuous_$ac_func
8988
8989 /* System header to define __stub macros and hopefully few prototypes,
8990     which can conflict with char $ac_func (); below.
8991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992     <limits.h> exists even on freestanding compilers.  */
8993
8994 #ifdef __STDC__
8995 # include <limits.h>
8996 #else
8997 # include <assert.h>
8998 #endif
8999
9000 #undef $ac_func
9001
9002 /* Override any gcc2 internal prototype to avoid an error.  */
9003 #ifdef __cplusplus
9004 extern "C"
9005 {
9006 #endif
9007 /* We use char because int might match the return type of a gcc2
9008    builtin and then its argument prototype would still apply.  */
9009 char $ac_func ();
9010 /* The GNU C library defines this for functions which it implements
9011     to always fail with ENOSYS.  Some functions are actually named
9012     something starting with __ and the normal name is an alias.  */
9013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9014 choke me
9015 #else
9016 char (*f) () = $ac_func;
9017 #endif
9018 #ifdef __cplusplus
9019 }
9020 #endif
9021
9022 int
9023 main ()
9024 {
9025 return f != $ac_func;
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>conftest.er1
9033   ac_status=$?
9034   grep -v '^ *+' conftest.er1 >conftest.err
9035   rm -f conftest.er1
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -z "$ac_c_werror_flag"
9040                          || test ! -s conftest.err'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; }; then
9052   eval "$as_ac_var=yes"
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 eval "$as_ac_var=no"
9058 fi
9059 rm -f conftest.err conftest.$ac_objext \
9060       conftest$ac_exeext conftest.$ac_ext
9061 fi
9062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9064 if test `eval echo '${'$as_ac_var'}'` = yes; then
9065   cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9067 _ACEOF
9068
9069 fi
9070 done
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9100                   stdio.h unistd.h
9101 do
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104   echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 fi
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111 else
9112   # Is the header compilable?
9113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h.  */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h.  */
9121 $ac_includes_default
9122 #include <$ac_header>
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126   (eval $ac_compile) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"
9134                          || test ! -s conftest.err'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; } &&
9140          { ac_try='test -s conftest.$ac_objext'
9141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142   (eval $ac_try) 2>&5
9143   ac_status=$?
9144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145   (exit $ac_status); }; }; then
9146   ac_header_compiler=yes
9147 else
9148   echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 ac_header_compiler=no
9152 fi
9153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155 echo "${ECHO_T}$ac_header_compiler" >&6
9156
9157 # Is the header present?
9158 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166 #include <$ac_header>
9167 _ACEOF
9168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } >/dev/null; then
9176   if test -s conftest.err; then
9177     ac_cpp_err=$ac_c_preproc_warn_flag
9178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9179   else
9180     ac_cpp_err=
9181   fi
9182 else
9183   ac_cpp_err=yes
9184 fi
9185 if test -z "$ac_cpp_err"; then
9186   ac_header_preproc=yes
9187 else
9188   echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9190
9191   ac_header_preproc=no
9192 fi
9193 rm -f conftest.err conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195 echo "${ECHO_T}$ac_header_preproc" >&6
9196
9197 # So?  What about this header?
9198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9199   yes:no: )
9200     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9204     ac_header_preproc=yes
9205     ;;
9206   no:yes:* )
9207     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9209     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9210 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9211     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9213     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9214 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9217     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9219     (
9220       cat <<\_ASBOX
9221 ## ----------------------------------- ##
9222 ## Report this to llvmbugs@cs.uiuc.edu ##
9223 ## ----------------------------------- ##
9224 _ASBOX
9225     ) |
9226       sed "s/^/$as_me: WARNING:     /" >&2
9227     ;;
9228 esac
9229 echo "$as_me:$LINENO: checking for $ac_header" >&5
9230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   eval "$as_ac_Header=\$ac_header_preproc"
9235 fi
9236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9238
9239 fi
9240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9241   cat >>confdefs.h <<_ACEOF
9242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9243 _ACEOF
9244
9245 fi
9246
9247 done
9248
9249
9250
9251
9252
9253 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9254 do
9255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9257   echo "$as_me:$LINENO: checking for $ac_header" >&5
9258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 fi
9262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9264 else
9265   # Is the header compilable?
9266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9268 cat >conftest.$ac_ext <<_ACEOF
9269 /* confdefs.h.  */
9270 _ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h.  */
9274 $ac_includes_default
9275 #include <$ac_header>
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9279   (eval $ac_compile) 2>conftest.er1
9280   ac_status=$?
9281   grep -v '^ *+' conftest.er1 >conftest.err
9282   rm -f conftest.er1
9283   cat conftest.err >&5
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); } &&
9286          { ac_try='test -z "$ac_c_werror_flag"
9287                          || test ! -s conftest.err'
9288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289   (eval $ac_try) 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; } &&
9293          { ac_try='test -s conftest.$ac_objext'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; }; then
9299   ac_header_compiler=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_header_compiler=no
9305 fi
9306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9308 echo "${ECHO_T}$ac_header_compiler" >&6
9309
9310 # Is the header present?
9311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319 #include <$ac_header>
9320 _ACEOF
9321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } >/dev/null; then
9329   if test -s conftest.err; then
9330     ac_cpp_err=$ac_c_preproc_warn_flag
9331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9332   else
9333     ac_cpp_err=
9334   fi
9335 else
9336   ac_cpp_err=yes
9337 fi
9338 if test -z "$ac_cpp_err"; then
9339   ac_header_preproc=yes
9340 else
9341   echo "$as_me: failed program was:" >&5
9342 sed 's/^/| /' conftest.$ac_ext >&5
9343
9344   ac_header_preproc=no
9345 fi
9346 rm -f conftest.err conftest.$ac_ext
9347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9348 echo "${ECHO_T}$ac_header_preproc" >&6
9349
9350 # So?  What about this header?
9351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9352   yes:no: )
9353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9357     ac_header_preproc=yes
9358     ;;
9359   no:yes:* )
9360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372     (
9373       cat <<\_ASBOX
9374 ## ----------------------------------- ##
9375 ## Report this to llvmbugs@cs.uiuc.edu ##
9376 ## ----------------------------------- ##
9377 _ASBOX
9378     ) |
9379       sed "s/^/$as_me: WARNING:     /" >&2
9380     ;;
9381 esac
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   eval "$as_ac_Header=\$ac_header_preproc"
9388 fi
9389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9391
9392 fi
9393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9394   cat >>confdefs.h <<_ACEOF
9395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 _ACEOF
9397
9398 fi
9399
9400 done
9401
9402
9403
9404 for ac_header in string.h strings.h
9405 do
9406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9408   echo "$as_me:$LINENO: checking for $ac_header" >&5
9409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 fi
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9415 else
9416   # Is the header compilable?
9417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 $ac_includes_default
9426 #include <$ac_header>
9427 _ACEOF
9428 rm -f conftest.$ac_objext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430   (eval $ac_compile) 2>conftest.er1
9431   ac_status=$?
9432   grep -v '^ *+' conftest.er1 >conftest.err
9433   rm -f conftest.er1
9434   cat conftest.err >&5
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); } &&
9437          { ac_try='test -z "$ac_c_werror_flag"
9438                          || test ! -s conftest.err'
9439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440   (eval $ac_try) 2>&5
9441   ac_status=$?
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   (exit $ac_status); }; } &&
9444          { ac_try='test -s conftest.$ac_objext'
9445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446   (eval $ac_try) 2>&5
9447   ac_status=$?
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); }; }; then
9450   ac_header_compiler=yes
9451 else
9452   echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9454
9455 ac_header_compiler=no
9456 fi
9457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9459 echo "${ECHO_T}$ac_header_compiler" >&6
9460
9461 # Is the header present?
9462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h.  */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h.  */
9470 #include <$ac_header>
9471 _ACEOF
9472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9473   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } >/dev/null; then
9480   if test -s conftest.err; then
9481     ac_cpp_err=$ac_c_preproc_warn_flag
9482     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9483   else
9484     ac_cpp_err=
9485   fi
9486 else
9487   ac_cpp_err=yes
9488 fi
9489 if test -z "$ac_cpp_err"; then
9490   ac_header_preproc=yes
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495   ac_header_preproc=no
9496 fi
9497 rm -f conftest.err conftest.$ac_ext
9498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9499 echo "${ECHO_T}$ac_header_preproc" >&6
9500
9501 # So?  What about this header?
9502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9503   yes:no: )
9504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9508     ac_header_preproc=yes
9509     ;;
9510   no:yes:* )
9511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9523     (
9524       cat <<\_ASBOX
9525 ## ----------------------------------- ##
9526 ## Report this to llvmbugs@cs.uiuc.edu ##
9527 ## ----------------------------------- ##
9528 _ASBOX
9529     ) |
9530       sed "s/^/$as_me: WARNING:     /" >&2
9531     ;;
9532 esac
9533 echo "$as_me:$LINENO: checking for $ac_header" >&5
9534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   eval "$as_ac_Header=\$ac_header_preproc"
9539 fi
9540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9542
9543 fi
9544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9545   cat >>confdefs.h <<_ACEOF
9546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9547 _ACEOF
9548  break
9549 fi
9550
9551 done
9552
9553
9554
9555
9556 for ac_func in strchr index
9557 do
9558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9559 echo "$as_me:$LINENO: checking for $ac_func" >&5
9560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9561 if eval "test \"\${$as_ac_var+set}\" = set"; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9572 #define $ac_func innocuous_$ac_func
9573
9574 /* System header to define __stub macros and hopefully few prototypes,
9575     which can conflict with char $ac_func (); below.
9576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9577     <limits.h> exists even on freestanding compilers.  */
9578
9579 #ifdef __STDC__
9580 # include <limits.h>
9581 #else
9582 # include <assert.h>
9583 #endif
9584
9585 #undef $ac_func
9586
9587 /* Override any gcc2 internal prototype to avoid an error.  */
9588 #ifdef __cplusplus
9589 extern "C"
9590 {
9591 #endif
9592 /* We use char because int might match the return type of a gcc2
9593    builtin and then its argument prototype would still apply.  */
9594 char $ac_func ();
9595 /* The GNU C library defines this for functions which it implements
9596     to always fail with ENOSYS.  Some functions are actually named
9597     something starting with __ and the normal name is an alias.  */
9598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9599 choke me
9600 #else
9601 char (*f) () = $ac_func;
9602 #endif
9603 #ifdef __cplusplus
9604 }
9605 #endif
9606
9607 int
9608 main ()
9609 {
9610 return f != $ac_func;
9611   ;
9612   return 0;
9613 }
9614 _ACEOF
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9617   (eval $ac_link) 2>conftest.er1
9618   ac_status=$?
9619   grep -v '^ *+' conftest.er1 >conftest.err
9620   rm -f conftest.er1
9621   cat conftest.err >&5
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); } &&
9624          { ac_try='test -z "$ac_c_werror_flag"
9625                          || test ! -s conftest.err'
9626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627   (eval $ac_try) 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; } &&
9631          { ac_try='test -s conftest$ac_exeext'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; }; then
9637   eval "$as_ac_var=yes"
9638 else
9639   echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9641
9642 eval "$as_ac_var=no"
9643 fi
9644 rm -f conftest.err conftest.$ac_objext \
9645       conftest$ac_exeext conftest.$ac_ext
9646 fi
9647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9649 if test `eval echo '${'$as_ac_var'}'` = yes; then
9650   cat >>confdefs.h <<_ACEOF
9651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9652 _ACEOF
9653  break
9654 fi
9655 done
9656
9657
9658
9659 for ac_func in strrchr rindex
9660 do
9661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9662 echo "$as_me:$LINENO: checking for $ac_func" >&5
9663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9664 if eval "test \"\${$as_ac_var+set}\" = set"; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667   cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h.  */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h.  */
9673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9675 #define $ac_func innocuous_$ac_func
9676
9677 /* System header to define __stub macros and hopefully few prototypes,
9678     which can conflict with char $ac_func (); below.
9679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9680     <limits.h> exists even on freestanding compilers.  */
9681
9682 #ifdef __STDC__
9683 # include <limits.h>
9684 #else
9685 # include <assert.h>
9686 #endif
9687
9688 #undef $ac_func
9689
9690 /* Override any gcc2 internal prototype to avoid an error.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 {
9694 #endif
9695 /* We use char because int might match the return type of a gcc2
9696    builtin and then its argument prototype would still apply.  */
9697 char $ac_func ();
9698 /* The GNU C library defines this for functions which it implements
9699     to always fail with ENOSYS.  Some functions are actually named
9700     something starting with __ and the normal name is an alias.  */
9701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9702 choke me
9703 #else
9704 char (*f) () = $ac_func;
9705 #endif
9706 #ifdef __cplusplus
9707 }
9708 #endif
9709
9710 int
9711 main ()
9712 {
9713 return f != $ac_func;
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720   (eval $ac_link) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   eval "$as_ac_var=yes"
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 eval "$as_ac_var=no"
9746 fi
9747 rm -f conftest.err conftest.$ac_objext \
9748       conftest$ac_exeext conftest.$ac_ext
9749 fi
9750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9752 if test `eval echo '${'$as_ac_var'}'` = yes; then
9753   cat >>confdefs.h <<_ACEOF
9754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9755 _ACEOF
9756  break
9757 fi
9758 done
9759
9760
9761
9762 for ac_func in memcpy bcopy
9763 do
9764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9765 echo "$as_me:$LINENO: checking for $ac_func" >&5
9766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9767 if eval "test \"\${$as_ac_var+set}\" = set"; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h.  */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h.  */
9776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9778 #define $ac_func innocuous_$ac_func
9779
9780 /* System header to define __stub macros and hopefully few prototypes,
9781     which can conflict with char $ac_func (); below.
9782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9783     <limits.h> exists even on freestanding compilers.  */
9784
9785 #ifdef __STDC__
9786 # include <limits.h>
9787 #else
9788 # include <assert.h>
9789 #endif
9790
9791 #undef $ac_func
9792
9793 /* Override any gcc2 internal prototype to avoid an error.  */
9794 #ifdef __cplusplus
9795 extern "C"
9796 {
9797 #endif
9798 /* We use char because int might match the return type of a gcc2
9799    builtin and then its argument prototype would still apply.  */
9800 char $ac_func ();
9801 /* The GNU C library defines this for functions which it implements
9802     to always fail with ENOSYS.  Some functions are actually named
9803     something starting with __ and the normal name is an alias.  */
9804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9805 choke me
9806 #else
9807 char (*f) () = $ac_func;
9808 #endif
9809 #ifdef __cplusplus
9810 }
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 return f != $ac_func;
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823   (eval $ac_link) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -z "$ac_c_werror_flag"
9831                          || test ! -s conftest.err'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest$ac_exeext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   eval "$as_ac_var=yes"
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 eval "$as_ac_var=no"
9849 fi
9850 rm -f conftest.err conftest.$ac_objext \
9851       conftest$ac_exeext conftest.$ac_ext
9852 fi
9853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9855 if test `eval echo '${'$as_ac_var'}'` = yes; then
9856   cat >>confdefs.h <<_ACEOF
9857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9858 _ACEOF
9859  break
9860 fi
9861 done
9862
9863
9864
9865 for ac_func in memmove strcmp
9866 do
9867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 echo "$as_me:$LINENO: checking for $ac_func" >&5
9869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9870 if eval "test \"\${$as_ac_var+set}\" = set"; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9881 #define $ac_func innocuous_$ac_func
9882
9883 /* System header to define __stub macros and hopefully few prototypes,
9884     which can conflict with char $ac_func (); below.
9885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886     <limits.h> exists even on freestanding compilers.  */
9887
9888 #ifdef __STDC__
9889 # include <limits.h>
9890 #else
9891 # include <assert.h>
9892 #endif
9893
9894 #undef $ac_func
9895
9896 /* Override any gcc2 internal prototype to avoid an error.  */
9897 #ifdef __cplusplus
9898 extern "C"
9899 {
9900 #endif
9901 /* We use char because int might match the return type of a gcc2
9902    builtin and then its argument prototype would still apply.  */
9903 char $ac_func ();
9904 /* The GNU C library defines this for functions which it implements
9905     to always fail with ENOSYS.  Some functions are actually named
9906     something starting with __ and the normal name is an alias.  */
9907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908 choke me
9909 #else
9910 char (*f) () = $ac_func;
9911 #endif
9912 #ifdef __cplusplus
9913 }
9914 #endif
9915
9916 int
9917 main ()
9918 {
9919 return f != $ac_func;
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926   (eval $ac_link) 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } &&
9933          { ac_try='test -z "$ac_c_werror_flag"
9934                          || test ! -s conftest.err'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; } &&
9940          { ac_try='test -s conftest$ac_exeext'
9941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942   (eval $ac_try) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); }; }; then
9946   eval "$as_ac_var=yes"
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 eval "$as_ac_var=no"
9952 fi
9953 rm -f conftest.err conftest.$ac_objext \
9954       conftest$ac_exeext conftest.$ac_ext
9955 fi
9956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9957 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9958 if test `eval echo '${'$as_ac_var'}'` = yes; then
9959   cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9961 _ACEOF
9962
9963 fi
9964 done
9965
9966
9967
9968
9969 for ac_func in closedir opendir readdir
9970 do
9971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9972 echo "$as_me:$LINENO: checking for $ac_func" >&5
9973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9974 if eval "test \"\${$as_ac_var+set}\" = set"; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977   cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9985 #define $ac_func innocuous_$ac_func
9986
9987 /* System header to define __stub macros and hopefully few prototypes,
9988     which can conflict with char $ac_func (); below.
9989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9990     <limits.h> exists even on freestanding compilers.  */
9991
9992 #ifdef __STDC__
9993 # include <limits.h>
9994 #else
9995 # include <assert.h>
9996 #endif
9997
9998 #undef $ac_func
9999
10000 /* Override any gcc2 internal prototype to avoid an error.  */
10001 #ifdef __cplusplus
10002 extern "C"
10003 {
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006    builtin and then its argument prototype would still apply.  */
10007 char $ac_func ();
10008 /* The GNU C library defines this for functions which it implements
10009     to always fail with ENOSYS.  Some functions are actually named
10010     something starting with __ and the normal name is an alias.  */
10011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10012 choke me
10013 #else
10014 char (*f) () = $ac_func;
10015 #endif
10016 #ifdef __cplusplus
10017 }
10018 #endif
10019
10020 int
10021 main ()
10022 {
10023 return f != $ac_func;
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030   (eval $ac_link) 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } &&
10037          { ac_try='test -z "$ac_c_werror_flag"
10038                          || test ! -s conftest.err'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; } &&
10044          { ac_try='test -s conftest$ac_exeext'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   eval "$as_ac_var=yes"
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 eval "$as_ac_var=no"
10056 fi
10057 rm -f conftest.err conftest.$ac_objext \
10058       conftest$ac_exeext conftest.$ac_ext
10059 fi
10060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063   cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 fi
10068 done
10069
10070
10071 # Check whether --enable-shared or --disable-shared was given.
10072 if test "${enable_shared+set}" = set; then
10073   enableval="$enable_shared"
10074   p=${PACKAGE-default}
10075     case $enableval in
10076     yes) enable_shared=yes ;;
10077     no) enable_shared=no ;;
10078     *)
10079       enable_shared=no
10080       # Look at the argument we got.  We use all the common list separators.
10081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10082       for pkg in $enableval; do
10083         IFS="$lt_save_ifs"
10084         if test "X$pkg" = "X$p"; then
10085           enable_shared=yes
10086         fi
10087       done
10088       IFS="$lt_save_ifs"
10089       ;;
10090     esac
10091 else
10092   enable_shared=yes
10093 fi;
10094
10095 # Check whether --enable-static or --disable-static was given.
10096 if test "${enable_static+set}" = set; then
10097   enableval="$enable_static"
10098   p=${PACKAGE-default}
10099     case $enableval in
10100     yes) enable_static=yes ;;
10101     no) enable_static=no ;;
10102     *)
10103      enable_static=no
10104       # Look at the argument we got.  We use all the common list separators.
10105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10106       for pkg in $enableval; do
10107         IFS="$lt_save_ifs"
10108         if test "X$pkg" = "X$p"; then
10109           enable_static=yes
10110         fi
10111       done
10112       IFS="$lt_save_ifs"
10113       ;;
10114     esac
10115 else
10116   enable_static=yes
10117 fi;
10118
10119 # Check whether --enable-fast-install or --disable-fast-install was given.
10120 if test "${enable_fast_install+set}" = set; then
10121   enableval="$enable_fast_install"
10122   p=${PACKAGE-default}
10123     case $enableval in
10124     yes) enable_fast_install=yes ;;
10125     no) enable_fast_install=no ;;
10126     *)
10127       enable_fast_install=no
10128       # Look at the argument we got.  We use all the common list separators.
10129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10130       for pkg in $enableval; do
10131         IFS="$lt_save_ifs"
10132         if test "X$pkg" = "X$p"; then
10133           enable_fast_install=yes
10134         fi
10135       done
10136       IFS="$lt_save_ifs"
10137       ;;
10138     esac
10139 else
10140   enable_fast_install=yes
10141 fi;
10142
10143 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10144 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10145 if test "${lt_cv_path_SED+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   # Loop through the user's path and test for sed and gsed.
10149 # Then use that list of sed's as ones to test for truncation.
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10152 do
10153   IFS=$as_save_IFS
10154   test -z "$as_dir" && as_dir=.
10155   for lt_ac_prog in sed gsed; do
10156     for ac_exec_ext in '' $ac_executable_extensions; do
10157       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10158         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10159       fi
10160     done
10161   done
10162 done
10163 lt_ac_max=0
10164 lt_ac_count=0
10165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10166 # along with /bin/sed that truncates output.
10167 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10168   test ! -f $lt_ac_sed && break
10169   cat /dev/null > conftest.in
10170   lt_ac_count=0
10171   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10172   # Check for GNU sed and select it if it is found.
10173   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10174     lt_cv_path_SED=$lt_ac_sed
10175     break
10176   fi
10177   while true; do
10178     cat conftest.in conftest.in >conftest.tmp
10179     mv conftest.tmp conftest.in
10180     cp conftest.in conftest.nl
10181     echo >>conftest.nl
10182     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10183     cmp -s conftest.out conftest.nl || break
10184     # 10000 chars as input seems more than enough
10185     test $lt_ac_count -gt 10 && break
10186     lt_ac_count=`expr $lt_ac_count + 1`
10187     if test $lt_ac_count -gt $lt_ac_max; then
10188       lt_ac_max=$lt_ac_count
10189       lt_cv_path_SED=$lt_ac_sed
10190     fi
10191   done
10192 done
10193
10194 fi
10195
10196 SED=$lt_cv_path_SED
10197 echo "$as_me:$LINENO: result: $SED" >&5
10198 echo "${ECHO_T}$SED" >&6
10199
10200
10201 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10202 if test "${with_gnu_ld+set}" = set; then
10203   withval="$with_gnu_ld"
10204   test "$withval" = no || with_gnu_ld=yes
10205 else
10206   with_gnu_ld=no
10207 fi;
10208 ac_prog=ld
10209 if test "$GCC" = yes; then
10210   # Check if gcc -print-prog-name=ld gives a path.
10211   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10212 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10213   case $host in
10214   *-*-mingw*)
10215     # gcc leaves a trailing carriage return which upsets mingw
10216     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10217   *)
10218     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10219   esac
10220   case $ac_prog in
10221     # Accept absolute paths.
10222     [\\/]* | ?:[\\/]*)
10223       re_direlt='/[^/][^/]*/\.\./'
10224       # Canonicalize the pathname of ld
10225       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10226       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10227         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10228       done
10229       test -z "$LD" && LD="$ac_prog"
10230       ;;
10231   "")
10232     # If it fails, then pretend we aren't using GCC.
10233     ac_prog=ld
10234     ;;
10235   *)
10236     # If it is relative, then search for the first ld in PATH.
10237     with_gnu_ld=unknown
10238     ;;
10239   esac
10240 elif test "$with_gnu_ld" = yes; then
10241   echo "$as_me:$LINENO: checking for GNU ld" >&5
10242 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10243 else
10244   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10245 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10246 fi
10247 if test "${lt_cv_path_LD+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   if test -z "$LD"; then
10251   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10252   for ac_dir in $PATH; do
10253     IFS="$lt_save_ifs"
10254     test -z "$ac_dir" && ac_dir=.
10255     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10256       lt_cv_path_LD="$ac_dir/$ac_prog"
10257       # Check to see if the program is GNU ld.  I'd rather use --version,
10258       # but apparently some GNU ld's only accept -v.
10259       # Break only if it was the GNU/non-GNU ld that we prefer.
10260       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10261       *GNU* | *'with BFD'*)
10262         test "$with_gnu_ld" != no && break
10263         ;;
10264       *)
10265         test "$with_gnu_ld" != yes && break
10266         ;;
10267       esac
10268     fi
10269   done
10270   IFS="$lt_save_ifs"
10271 else
10272   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10273 fi
10274 fi
10275
10276 LD="$lt_cv_path_LD"
10277 if test -n "$LD"; then
10278   echo "$as_me:$LINENO: result: $LD" >&5
10279 echo "${ECHO_T}$LD" >&6
10280 else
10281   echo "$as_me:$LINENO: result: no" >&5
10282 echo "${ECHO_T}no" >&6
10283 fi
10284 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10285 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10286    { (exit 1); exit 1; }; }
10287 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10288 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10289 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10290   echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10293 case `$LD -v 2>&1 </dev/null` in
10294 *GNU* | *'with BFD'*)
10295   lt_cv_prog_gnu_ld=yes
10296   ;;
10297 *)
10298   lt_cv_prog_gnu_ld=no
10299   ;;
10300 esac
10301 fi
10302 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10303 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10304 with_gnu_ld=$lt_cv_prog_gnu_ld
10305
10306
10307 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10308 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10309 if test "${lt_cv_ld_reload_flag+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   lt_cv_ld_reload_flag='-r'
10313 fi
10314 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10315 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10316 reload_flag=$lt_cv_ld_reload_flag
10317 case $reload_flag in
10318 "" | " "*) ;;
10319 *) reload_flag=" $reload_flag" ;;
10320 esac
10321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10322 case $host_os in
10323   darwin*)
10324     if test "$GCC" = yes; then
10325       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10326     else
10327       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10328     fi
10329     ;;
10330 esac
10331
10332 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10333 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10334 if test "${lt_cv_deplibs_check_method+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   lt_cv_file_magic_cmd='$MAGIC_CMD'
10338 lt_cv_file_magic_test_file=
10339 lt_cv_deplibs_check_method='unknown'
10340 # Need to set the preceding variable on all platforms that support
10341 # interlibrary dependencies.
10342 # 'none' -- dependencies not supported.
10343 # `unknown' -- same as none, but documents that we really don't know.
10344 # 'pass_all' -- all dependencies passed with no checks.
10345 # 'test_compile' -- check by making test program.
10346 # 'file_magic [[regex]]' -- check by looking for files in library path
10347 # which responds to the $file_magic_cmd with a given extended regex.
10348 # If you have `file' or equivalent on your system and you're not sure
10349 # whether `pass_all' will *always* work, you probably want this one.
10350
10351 case $host_os in
10352 aix4* | aix5*)
10353   lt_cv_deplibs_check_method=pass_all
10354   ;;
10355
10356 beos*)
10357   lt_cv_deplibs_check_method=pass_all
10358   ;;
10359
10360 bsdi[45]*)
10361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10362   lt_cv_file_magic_cmd='/usr/bin/file -L'
10363   lt_cv_file_magic_test_file=/shlib/libc.so
10364   ;;
10365
10366 cygwin*)
10367   # func_win32_libid is a shell function defined in ltmain.sh
10368   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10369   lt_cv_file_magic_cmd='func_win32_libid'
10370   ;;
10371
10372 mingw* | pw32*)
10373   # Base MSYS/MinGW do not provide the 'file' command needed by
10374   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10375   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10376   lt_cv_file_magic_cmd='$OBJDUMP -f'
10377   ;;
10378
10379 darwin* | rhapsody*)
10380   lt_cv_deplibs_check_method=pass_all
10381   ;;
10382
10383 freebsd* | kfreebsd*-gnu)
10384   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10385     case $host_cpu in
10386     i*86 )
10387       # Not sure whether the presence of OpenBSD here was a mistake.
10388       # Let's accept both of them until this is cleared up.
10389       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10390       lt_cv_file_magic_cmd=/usr/bin/file
10391       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10392       ;;
10393     esac
10394   else
10395     lt_cv_deplibs_check_method=pass_all
10396   fi
10397   ;;
10398
10399 gnu*)
10400   lt_cv_deplibs_check_method=pass_all
10401   ;;
10402
10403 hpux10.20* | hpux11*)
10404   lt_cv_file_magic_cmd=/usr/bin/file
10405   case "$host_cpu" in
10406   ia64*)
10407     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10408     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10409     ;;
10410   hppa*64*)
10411     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]'
10412     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10413     ;;
10414   *)
10415     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10416     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10417     ;;
10418   esac
10419   ;;
10420
10421 irix5* | irix6* | nonstopux*)
10422   case $LD in
10423   *-32|*"-32 ") libmagic=32-bit;;
10424   *-n32|*"-n32 ") libmagic=N32;;
10425   *-64|*"-64 ") libmagic=64-bit;;
10426   *) libmagic=never-match;;
10427   esac
10428   lt_cv_deplibs_check_method=pass_all
10429   ;;
10430
10431 # This must be Linux ELF.
10432 linux*)
10433   lt_cv_deplibs_check_method=pass_all
10434   ;;
10435
10436 netbsd*)
10437   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10439   else
10440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10441   fi
10442   ;;
10443
10444 newos6*)
10445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10446   lt_cv_file_magic_cmd=/usr/bin/file
10447   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10448   ;;
10449
10450 nto-qnx*)
10451   lt_cv_deplibs_check_method=unknown
10452   ;;
10453
10454 openbsd*)
10455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10457   else
10458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10459   fi
10460   ;;
10461
10462 osf3* | osf4* | osf5*)
10463   lt_cv_deplibs_check_method=pass_all
10464   ;;
10465
10466 sco3.2v5*)
10467   lt_cv_deplibs_check_method=pass_all
10468   ;;
10469
10470 solaris*)
10471   lt_cv_deplibs_check_method=pass_all
10472   ;;
10473
10474 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10475   case $host_vendor in
10476   motorola)
10477     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]'
10478     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10479     ;;
10480   ncr)
10481     lt_cv_deplibs_check_method=pass_all
10482     ;;
10483   sequent)
10484     lt_cv_file_magic_cmd='/bin/file'
10485     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10486     ;;
10487   sni)
10488     lt_cv_file_magic_cmd='/bin/file'
10489     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10490     lt_cv_file_magic_test_file=/lib/libc.so
10491     ;;
10492   siemens)
10493     lt_cv_deplibs_check_method=pass_all
10494     ;;
10495   esac
10496   ;;
10497
10498 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10499   lt_cv_deplibs_check_method=pass_all
10500   ;;
10501 esac
10502
10503 fi
10504 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10505 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10506 file_magic_cmd=$lt_cv_file_magic_cmd
10507 deplibs_check_method=$lt_cv_deplibs_check_method
10508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10509
10510
10511
10512 # If no C compiler was specified, use CC.
10513 LTCC=${LTCC-"$CC"}
10514
10515 # Allow CC to be a program name with arguments.
10516 compiler=$CC
10517
10518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10519 if test "${enable_libtool_lock+set}" = set; then
10520   enableval="$enable_libtool_lock"
10521
10522 fi;
10523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10524
10525 # Some flags need to be propagated to the compiler or linker for good
10526 # libtool support.
10527 case $host in
10528 ia64-*-hpux*)
10529   # Find out which ABI we are using.
10530   echo 'int i;' > conftest.$ac_ext
10531   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532   (eval $ac_compile) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); }; then
10536     case `/usr/bin/file conftest.$ac_objext` in
10537     *ELF-32*)
10538       HPUX_IA64_MODE="32"
10539       ;;
10540     *ELF-64*)
10541       HPUX_IA64_MODE="64"
10542       ;;
10543     esac
10544   fi
10545   rm -rf conftest*
10546   ;;
10547 *-*-irix6*)
10548   # Find out which ABI we are using.
10549   echo '#line 10549 "configure"' > conftest.$ac_ext
10550   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551   (eval $ac_compile) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; then
10555    if test "$lt_cv_prog_gnu_ld" = yes; then
10556     case `/usr/bin/file conftest.$ac_objext` in
10557     *32-bit*)
10558       LD="${LD-ld} -melf32bsmip"
10559       ;;
10560     *N32*)
10561       LD="${LD-ld} -melf32bmipn32"
10562       ;;
10563     *64-bit*)
10564       LD="${LD-ld} -melf64bmip"
10565       ;;
10566     esac
10567    else
10568     case `/usr/bin/file conftest.$ac_objext` in
10569     *32-bit*)
10570       LD="${LD-ld} -32"
10571       ;;
10572     *N32*)
10573       LD="${LD-ld} -n32"
10574       ;;
10575     *64-bit*)
10576       LD="${LD-ld} -64"
10577       ;;
10578     esac
10579    fi
10580   fi
10581   rm -rf conftest*
10582   ;;
10583
10584 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10585   # Find out which ABI we are using.
10586   echo 'int i;' > conftest.$ac_ext
10587   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10588   (eval $ac_compile) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; then
10592     case "`/usr/bin/file conftest.o`" in
10593     *32-bit*)
10594       case $host in
10595         x86_64-*linux*)
10596           LD="${LD-ld} -m elf_i386"
10597           ;;
10598         ppc64-*linux*|powerpc64-*linux*)
10599           LD="${LD-ld} -m elf32ppclinux"
10600           ;;
10601         s390x-*linux*)
10602           LD="${LD-ld} -m elf_s390"
10603           ;;
10604         sparc64-*linux*)
10605           LD="${LD-ld} -m elf32_sparc"
10606           ;;
10607       esac
10608       ;;
10609     *64-bit*)
10610       case $host in
10611         x86_64-*linux*)
10612           LD="${LD-ld} -m elf_x86_64"
10613           ;;
10614         ppc*-*linux*|powerpc*-*linux*)
10615           LD="${LD-ld} -m elf64ppc"
10616           ;;
10617         s390*-*linux*)
10618           LD="${LD-ld} -m elf64_s390"
10619           ;;
10620         sparc*-*linux*)
10621           LD="${LD-ld} -m elf64_sparc"
10622           ;;
10623       esac
10624       ;;
10625     esac
10626   fi
10627   rm -rf conftest*
10628   ;;
10629
10630 *-*-sco3.2v5*)
10631   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10632   SAVE_CFLAGS="$CFLAGS"
10633   CFLAGS="$CFLAGS -belf"
10634   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10635 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10636 if test "${lt_cv_cc_needs_belf+set}" = set; then
10637   echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639   ac_ext=c
10640 ac_cpp='$CPP $CPPFLAGS'
10641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10644
10645      cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655   (eval $ac_link) 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } &&
10662          { ac_try='test -z "$ac_c_werror_flag"
10663                          || test ! -s conftest.err'
10664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665   (eval $ac_try) 2>&5
10666   ac_status=$?
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); }; } &&
10669          { ac_try='test -s conftest$ac_exeext'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; }; then
10675   lt_cv_cc_needs_belf=yes
10676 else
10677   echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 lt_cv_cc_needs_belf=no
10681 fi
10682 rm -f conftest.err conftest.$ac_objext \
10683       conftest$ac_exeext conftest.$ac_ext
10684      ac_ext=c
10685 ac_cpp='$CPP $CPPFLAGS'
10686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10689
10690 fi
10691 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10692 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10693   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10694     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10695     CFLAGS="$SAVE_CFLAGS"
10696   fi
10697   ;;
10698
10699 esac
10700
10701 need_locks="$enable_libtool_lock"
10702
10703
10704
10705
10706 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10707     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10708     (test "X$CXX" != "Xg++"))) ; then
10709   ac_ext=cc
10710 ac_cpp='$CXXCPP $CPPFLAGS'
10711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10714 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10715 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10716 if test -z "$CXXCPP"; then
10717   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10718   echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720       # Double quotes because CXXCPP needs to be expanded
10721     for CXXCPP in "$CXX -E" "/lib/cpp"
10722     do
10723       ac_preproc_ok=false
10724 for ac_cxx_preproc_warn_flag in '' yes
10725 do
10726   # Use a header file that comes with gcc, so configuring glibc
10727   # with a fresh cross-compiler works.
10728   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729   # <limits.h> exists even on freestanding compilers.
10730   # On the NeXT, cc -E runs the code through the compiler's parser,
10731   # not just through cpp. "Syntax error" is here to catch this case.
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 #ifdef __STDC__
10739 # include <limits.h>
10740 #else
10741 # include <assert.h>
10742 #endif
10743                      Syntax error
10744 _ACEOF
10745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } >/dev/null; then
10753   if test -s conftest.err; then
10754     ac_cpp_err=$ac_cxx_preproc_warn_flag
10755     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10756   else
10757     ac_cpp_err=
10758   fi
10759 else
10760   ac_cpp_err=yes
10761 fi
10762 if test -z "$ac_cpp_err"; then
10763   :
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768   # Broken: fails on valid input.
10769 continue
10770 fi
10771 rm -f conftest.err conftest.$ac_ext
10772
10773   # OK, works on sane cases.  Now check whether non-existent headers
10774   # can be detected and how.
10775   cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 #include <ac_nonexistent.h>
10782 _ACEOF
10783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } >/dev/null; then
10791   if test -s conftest.err; then
10792     ac_cpp_err=$ac_cxx_preproc_warn_flag
10793     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10794   else
10795     ac_cpp_err=
10796   fi
10797 else
10798   ac_cpp_err=yes
10799 fi
10800 if test -z "$ac_cpp_err"; then
10801   # Broken: success on invalid input.
10802 continue
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807   # Passes both tests.
10808 ac_preproc_ok=:
10809 break
10810 fi
10811 rm -f conftest.err conftest.$ac_ext
10812
10813 done
10814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10815 rm -f conftest.err conftest.$ac_ext
10816 if $ac_preproc_ok; then
10817   break
10818 fi
10819
10820     done
10821     ac_cv_prog_CXXCPP=$CXXCPP
10822
10823 fi
10824   CXXCPP=$ac_cv_prog_CXXCPP
10825 else
10826   ac_cv_prog_CXXCPP=$CXXCPP
10827 fi
10828 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10829 echo "${ECHO_T}$CXXCPP" >&6
10830 ac_preproc_ok=false
10831 for ac_cxx_preproc_warn_flag in '' yes
10832 do
10833   # Use a header file that comes with gcc, so configuring glibc
10834   # with a fresh cross-compiler works.
10835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836   # <limits.h> exists even on freestanding compilers.
10837   # On the NeXT, cc -E runs the code through the compiler's parser,
10838   # not just through cpp. "Syntax error" is here to catch this case.
10839   cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845 #ifdef __STDC__
10846 # include <limits.h>
10847 #else
10848 # include <assert.h>
10849 #endif
10850                      Syntax error
10851 _ACEOF
10852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10853   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } >/dev/null; then
10860   if test -s conftest.err; then
10861     ac_cpp_err=$ac_cxx_preproc_warn_flag
10862     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10863   else
10864     ac_cpp_err=
10865   fi
10866 else
10867   ac_cpp_err=yes
10868 fi
10869 if test -z "$ac_cpp_err"; then
10870   :
10871 else
10872   echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875   # Broken: fails on valid input.
10876 continue
10877 fi
10878 rm -f conftest.err conftest.$ac_ext
10879
10880   # OK, works on sane cases.  Now check whether non-existent headers
10881   # can be detected and how.
10882   cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 #include <ac_nonexistent.h>
10889 _ACEOF
10890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } >/dev/null; then
10898   if test -s conftest.err; then
10899     ac_cpp_err=$ac_cxx_preproc_warn_flag
10900     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10901   else
10902     ac_cpp_err=
10903   fi
10904 else
10905   ac_cpp_err=yes
10906 fi
10907 if test -z "$ac_cpp_err"; then
10908   # Broken: success on invalid input.
10909 continue
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914   # Passes both tests.
10915 ac_preproc_ok=:
10916 break
10917 fi
10918 rm -f conftest.err conftest.$ac_ext
10919
10920 done
10921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10922 rm -f conftest.err conftest.$ac_ext
10923 if $ac_preproc_ok; then
10924   :
10925 else
10926   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10927 See \`config.log' for more details." >&5
10928 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10929 See \`config.log' for more details." >&2;}
10930    { (exit 1); exit 1; }; }
10931 fi
10932
10933 ac_ext=cc
10934 ac_cpp='$CXXCPP $CPPFLAGS'
10935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938
10939 fi
10940
10941
10942 ac_ext=f
10943 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10944 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10946 if test -n "$ac_tool_prefix"; then
10947   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10948   do
10949     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10950 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10951 echo "$as_me:$LINENO: checking for $ac_word" >&5
10952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10953 if test "${ac_cv_prog_F77+set}" = set; then
10954   echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10956   if test -n "$F77"; then
10957   ac_cv_prog_F77="$F77" # Let the user override the test.
10958 else
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10961 do
10962   IFS=$as_save_IFS
10963   test -z "$as_dir" && as_dir=.
10964   for ac_exec_ext in '' $ac_executable_extensions; do
10965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10966     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968     break 2
10969   fi
10970 done
10971 done
10972
10973 fi
10974 fi
10975 F77=$ac_cv_prog_F77
10976 if test -n "$F77"; then
10977   echo "$as_me:$LINENO: result: $F77" >&5
10978 echo "${ECHO_T}$F77" >&6
10979 else
10980   echo "$as_me:$LINENO: result: no" >&5
10981 echo "${ECHO_T}no" >&6
10982 fi
10983
10984     test -n "$F77" && break
10985   done
10986 fi
10987 if test -z "$F77"; then
10988   ac_ct_F77=$F77
10989   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10990 do
10991   # Extract the first word of "$ac_prog", so it can be a program name with args.
10992 set dummy $ac_prog; ac_word=$2
10993 echo "$as_me:$LINENO: checking for $ac_word" >&5
10994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10995 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10996   echo $ECHO_N "(cached) $ECHO_C" >&6
10997 else
10998   if test -n "$ac_ct_F77"; then
10999   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004   IFS=$as_save_IFS
11005   test -z "$as_dir" && as_dir=.
11006   for ac_exec_ext in '' $ac_executable_extensions; do
11007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008     ac_cv_prog_ac_ct_F77="$ac_prog"
11009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010     break 2
11011   fi
11012 done
11013 done
11014
11015 fi
11016 fi
11017 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11018 if test -n "$ac_ct_F77"; then
11019   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11020 echo "${ECHO_T}$ac_ct_F77" >&6
11021 else
11022   echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6
11024 fi
11025
11026   test -n "$ac_ct_F77" && break
11027 done
11028
11029   F77=$ac_ct_F77
11030 fi
11031
11032
11033 # Provide some information about the compiler.
11034 echo "$as_me:11034:" \
11035      "checking for Fortran 77 compiler version" >&5
11036 ac_compiler=`set X $ac_compile; echo $2`
11037 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11038   (eval $ac_compiler --version </dev/null >&5) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }
11042 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11043   (eval $ac_compiler -v </dev/null >&5) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }
11047 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11048   (eval $ac_compiler -V </dev/null >&5) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }
11052 rm -f a.out
11053
11054 # If we don't use `.F' as extension, the preprocessor is not run on the
11055 # input file.  (Note that this only needs to work for GNU compilers.)
11056 ac_save_ext=$ac_ext
11057 ac_ext=F
11058 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11059 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11060 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063   cat >conftest.$ac_ext <<_ACEOF
11064       program main
11065 #ifndef __GNUC__
11066        choke me
11067 #endif
11068
11069       end
11070 _ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073   (eval $ac_compile) 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -z "$ac_f77_werror_flag"
11081                          || test ! -s conftest.err'
11082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083   (eval $ac_try) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; } &&
11087          { ac_try='test -s conftest.$ac_objext'
11088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089   (eval $ac_try) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; }; then
11093   ac_compiler_gnu=yes
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 ac_compiler_gnu=no
11099 fi
11100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11101 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11102
11103 fi
11104 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11105 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11106 ac_ext=$ac_save_ext
11107 ac_test_FFLAGS=${FFLAGS+set}
11108 ac_save_FFLAGS=$FFLAGS
11109 FFLAGS=
11110 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11111 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11112 if test "${ac_cv_prog_f77_g+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   FFLAGS=-g
11116 cat >conftest.$ac_ext <<_ACEOF
11117       program main
11118
11119       end
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123   (eval $ac_compile) 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_f77_werror_flag"
11131                          || test ! -s conftest.err'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; } &&
11137          { ac_try='test -s conftest.$ac_objext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_cv_prog_f77_g=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_prog_f77_g=no
11149 fi
11150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11151
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11154 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11155 if test "$ac_test_FFLAGS" = set; then
11156   FFLAGS=$ac_save_FFLAGS
11157 elif test $ac_cv_prog_f77_g = yes; then
11158   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11159     FFLAGS="-g -O2"
11160   else
11161     FFLAGS="-g"
11162   fi
11163 else
11164   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11165     FFLAGS="-O2"
11166   else
11167     FFLAGS=
11168   fi
11169 fi
11170
11171 G77=`test $ac_compiler_gnu = yes && echo yes`
11172 ac_ext=c
11173 ac_cpp='$CPP $CPPFLAGS'
11174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177
11178
11179
11180 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11181
11182 # find the maximum length of command line arguments
11183 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11184 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11185 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188     i=0
11189   teststring="ABCD"
11190
11191   case $build_os in
11192   msdosdjgpp*)
11193     # On DJGPP, this test can blow up pretty badly due to problems in libc
11194     # (any single argument exceeding 2000 bytes causes a buffer overrun
11195     # during glob expansion).  Even if it were fixed, the result of this
11196     # check would be larger than it should be.
11197     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11198     ;;
11199
11200   gnu*)
11201     # Under GNU Hurd, this test is not required because there is
11202     # no limit to the length of command line arguments.
11203     # Libtool will interpret -1 as no limit whatsoever
11204     lt_cv_sys_max_cmd_len=-1;
11205     ;;
11206
11207   cygwin* | mingw*)
11208     # On Win9x/ME, this test blows up -- it succeeds, but takes
11209     # about 5 minutes as the teststring grows exponentially.
11210     # Worse, since 9x/ME are not pre-emptively multitasking,
11211     # you end up with a "frozen" computer, even though with patience
11212     # the test eventually succeeds (with a max line length of 256k).
11213     # Instead, let's just punt: use the minimum linelength reported by
11214     # all of the supported platforms: 8192 (on NT/2K/XP).
11215     lt_cv_sys_max_cmd_len=8192;
11216     ;;
11217
11218   amigaos*)
11219     # On AmigaOS with pdksh, this test takes hours, literally.
11220     # So we just punt and use a minimum line length of 8192.
11221     lt_cv_sys_max_cmd_len=8192;
11222     ;;
11223
11224   netbsd* | freebsd* | openbsd* | darwin* )
11225     # This has been around since 386BSD, at least.  Likely further.
11226     if test -x /sbin/sysctl; then
11227       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11228     elif test -x /usr/sbin/sysctl; then
11229       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11230     else
11231       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11232     fi
11233     # And add a safety zone
11234     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11235     ;;
11236
11237  *)
11238     # If test is not a shell built-in, we'll probably end up computing a
11239     # maximum length that is only half of the actual maximum length, but
11240     # we can't tell.
11241     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11242     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11243                = "XX$teststring") >/dev/null 2>&1 &&
11244             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11245             lt_cv_sys_max_cmd_len=$new_result &&
11246             test $i != 17 # 1/2 MB should be enough
11247     do
11248       i=`expr $i + 1`
11249       teststring=$teststring$teststring
11250     done
11251     teststring=
11252     # Add a significant safety factor because C++ compilers can tack on massive
11253     # amounts of additional arguments before passing them to the linker.
11254     # It appears as though 1/2 is a usable value.
11255     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11256     ;;
11257   esac
11258
11259 fi
11260
11261 if test -n $lt_cv_sys_max_cmd_len ; then
11262   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11263 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11264 else
11265   echo "$as_me:$LINENO: result: none" >&5
11266 echo "${ECHO_T}none" >&6
11267 fi
11268
11269
11270
11271
11272 # Check for command to grab the raw symbol name followed by C symbol from nm.
11273 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11274 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11275 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278
11279 # These are sane defaults that work on at least a few old systems.
11280 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11281
11282 # Character class describing NM global symbol codes.
11283 symcode='[BCDEGRST]'
11284
11285 # Regexp to match symbols that can be accessed directly from C.
11286 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11287
11288 # Transform the above into a raw symbol and a C symbol.
11289 symxfrm='\1 \2\3 \3'
11290
11291 # Transform an extracted symbol line into a proper C declaration
11292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11293
11294 # Transform an extracted symbol line into symbol name and symbol address
11295 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'"
11296
11297 # Define system-specific variables.
11298 case $host_os in
11299 aix*)
11300   symcode='[BCDT]'
11301   ;;
11302 cygwin* | mingw* | pw32*)
11303   symcode='[ABCDGISTW]'
11304   ;;
11305 hpux*) # Its linker distinguishes data from code symbols
11306   if test "$host_cpu" = ia64; then
11307     symcode='[ABCDEGRST]'
11308   fi
11309   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11310   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'"
11311   ;;
11312 linux*)
11313   if test "$host_cpu" = ia64; then
11314     symcode='[ABCDGIRSTW]'
11315     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11316     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'"
11317   fi
11318   ;;
11319 irix* | nonstopux*)
11320   symcode='[BCDEGRST]'
11321   ;;
11322 osf*)
11323   symcode='[BCDEGQRST]'
11324   ;;
11325 solaris* | sysv5*)
11326   symcode='[BDRT]'
11327   ;;
11328 sysv4)
11329   symcode='[DFNSTU]'
11330   ;;
11331 esac
11332
11333 # Handle CRLF in mingw tool chain
11334 opt_cr=
11335 case $build_os in
11336 mingw*)
11337   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11338   ;;
11339 esac
11340
11341 # If we're using GNU nm, then use its standard symbol codes.
11342 case `$NM -V 2>&1` in
11343 *GNU* | *'with BFD'*)
11344   symcode='[ABCDGIRSTW]' ;;
11345 esac
11346
11347 # Try without a prefix undercore, then with it.
11348 for ac_symprfx in "" "_"; do
11349
11350   # Write the raw and C identifiers.
11351   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11352
11353   # Check to see that the pipe works correctly.
11354   pipe_works=no
11355
11356   rm -f conftest*
11357   cat > conftest.$ac_ext <<EOF
11358 #ifdef __cplusplus
11359 extern "C" {
11360 #endif
11361 char nm_test_var;
11362 void nm_test_func(){}
11363 #ifdef __cplusplus
11364 }
11365 #endif
11366 int main(){nm_test_var='a';nm_test_func();return(0);}
11367 EOF
11368
11369   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370   (eval $ac_compile) 2>&5
11371   ac_status=$?
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); }; then
11374     # Now try to grab the symbols.
11375     nlist=conftest.nm
11376     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11377   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } && test -s "$nlist"; then
11381       # Try sorting and uniquifying the output.
11382       if sort "$nlist" | uniq > "$nlist"T; then
11383         mv -f "$nlist"T "$nlist"
11384       else
11385         rm -f "$nlist"T
11386       fi
11387
11388       # Make sure that we snagged all the symbols we need.
11389       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11390         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11391           cat <<EOF > conftest.$ac_ext
11392 #ifdef __cplusplus
11393 extern "C" {
11394 #endif
11395
11396 EOF
11397           # Now generate the symbol file.
11398           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11399
11400           cat <<EOF >> conftest.$ac_ext
11401 #if defined (__STDC__) && __STDC__
11402 # define lt_ptr_t void *
11403 #else
11404 # define lt_ptr_t char *
11405 # define const
11406 #endif
11407
11408 /* The mapping between symbol names and symbols. */
11409 const struct {
11410   const char *name;
11411   lt_ptr_t address;
11412 }
11413 lt_preloaded_symbols[] =
11414 {
11415 EOF
11416           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11417           cat <<\EOF >> conftest.$ac_ext
11418   {0, (lt_ptr_t) 0}
11419 };
11420
11421 #ifdef __cplusplus
11422 }
11423 #endif
11424 EOF
11425           # Now try linking the two files.
11426           mv conftest.$ac_objext conftstm.$ac_objext
11427           lt_save_LIBS="$LIBS"
11428           lt_save_CFLAGS="$CFLAGS"
11429           LIBS="conftstm.$ac_objext"
11430           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11431           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432   (eval $ac_link) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11436             pipe_works=yes
11437           fi
11438           LIBS="$lt_save_LIBS"
11439           CFLAGS="$lt_save_CFLAGS"
11440         else
11441           echo "cannot find nm_test_func in $nlist" >&5
11442         fi
11443       else
11444         echo "cannot find nm_test_var in $nlist" >&5
11445       fi
11446     else
11447       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11448     fi
11449   else
11450     echo "$progname: failed program was:" >&5
11451     cat conftest.$ac_ext >&5
11452   fi
11453   rm -f conftest* conftst*
11454
11455   # Do not use the global_symbol_pipe unless it works.
11456   if test "$pipe_works" = yes; then
11457     break
11458   else
11459     lt_cv_sys_global_symbol_pipe=
11460   fi
11461 done
11462
11463 fi
11464
11465 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11466   lt_cv_sys_global_symbol_to_cdecl=
11467 fi
11468 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11469   echo "$as_me:$LINENO: result: failed" >&5
11470 echo "${ECHO_T}failed" >&6
11471 else
11472   echo "$as_me:$LINENO: result: ok" >&5
11473 echo "${ECHO_T}ok" >&6
11474 fi
11475
11476 echo "$as_me:$LINENO: checking for objdir" >&5
11477 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11478 if test "${lt_cv_objdir+set}" = set; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   rm -f .libs 2>/dev/null
11482 mkdir .libs 2>/dev/null
11483 if test -d .libs; then
11484   lt_cv_objdir=.libs
11485 else
11486   # MS-DOS does not allow filenames that begin with a dot.
11487   lt_cv_objdir=_libs
11488 fi
11489 rmdir .libs 2>/dev/null
11490 fi
11491 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11492 echo "${ECHO_T}$lt_cv_objdir" >&6
11493 objdir=$lt_cv_objdir
11494
11495
11496
11497
11498
11499 case $host_os in
11500 aix3*)
11501   # AIX sometimes has problems with the GCC collect2 program.  For some
11502   # reason, if we set the COLLECT_NAMES environment variable, the problems
11503   # vanish in a puff of smoke.
11504   if test "X${COLLECT_NAMES+set}" != Xset; then
11505     COLLECT_NAMES=
11506     export COLLECT_NAMES
11507   fi
11508   ;;
11509 esac
11510
11511 # Sed substitution that helps us do robust quoting.  It backslashifies
11512 # metacharacters that are still active within double-quoted strings.
11513 Xsed='sed -e s/^X//'
11514 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11515
11516 # Same as above, but do not quote variable references.
11517 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11518
11519 # Sed substitution to delay expansion of an escaped shell variable in a
11520 # double_quote_subst'ed string.
11521 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11522
11523 # Sed substitution to avoid accidental globbing in evaled expressions
11524 no_glob_subst='s/\*/\\\*/g'
11525
11526 # Constants:
11527 rm="rm -f"
11528
11529 # Global variables:
11530 default_ofile=mklib
11531 can_build_shared=yes
11532
11533 # All known linkers require a `.a' archive for static linking (except M$VC,
11534 # which needs '.lib').
11535 libext=a
11536 ltmain="$ac_aux_dir/ltmain.sh"
11537 ofile="$default_ofile"
11538 with_gnu_ld="$lt_cv_prog_gnu_ld"
11539
11540 if test -n "$ac_tool_prefix"; then
11541   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11542 set dummy ${ac_tool_prefix}ar; ac_word=$2
11543 echo "$as_me:$LINENO: checking for $ac_word" >&5
11544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11545 if test "${ac_cv_prog_AR+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   if test -n "$AR"; then
11549   ac_cv_prog_AR="$AR" # Let the user override the test.
11550 else
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11553 do
11554   IFS=$as_save_IFS
11555   test -z "$as_dir" && as_dir=.
11556   for ac_exec_ext in '' $ac_executable_extensions; do
11557   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11558     ac_cv_prog_AR="${ac_tool_prefix}ar"
11559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560     break 2
11561   fi
11562 done
11563 done
11564
11565 fi
11566 fi
11567 AR=$ac_cv_prog_AR
11568 if test -n "$AR"; then
11569   echo "$as_me:$LINENO: result: $AR" >&5
11570 echo "${ECHO_T}$AR" >&6
11571 else
11572   echo "$as_me:$LINENO: result: no" >&5
11573 echo "${ECHO_T}no" >&6
11574 fi
11575
11576 fi
11577 if test -z "$ac_cv_prog_AR"; then
11578   ac_ct_AR=$AR
11579   # Extract the first word of "ar", so it can be a program name with args.
11580 set dummy ar; ac_word=$2
11581 echo "$as_me:$LINENO: checking for $ac_word" >&5
11582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11583 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   if test -n "$ac_ct_AR"; then
11587   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11588 else
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11591 do
11592   IFS=$as_save_IFS
11593   test -z "$as_dir" && as_dir=.
11594   for ac_exec_ext in '' $ac_executable_extensions; do
11595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596     ac_cv_prog_ac_ct_AR="ar"
11597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11598     break 2
11599   fi
11600 done
11601 done
11602
11603   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11604 fi
11605 fi
11606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11607 if test -n "$ac_ct_AR"; then
11608   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11609 echo "${ECHO_T}$ac_ct_AR" >&6
11610 else
11611   echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6
11613 fi
11614
11615   AR=$ac_ct_AR
11616 else
11617   AR="$ac_cv_prog_AR"
11618 fi
11619
11620 if test -n "$ac_tool_prefix"; then
11621   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11623 echo "$as_me:$LINENO: checking for $ac_word" >&5
11624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11625 if test "${ac_cv_prog_RANLIB+set}" = set; then
11626   echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628   if test -n "$RANLIB"; then
11629   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634   IFS=$as_save_IFS
11635   test -z "$as_dir" && as_dir=.
11636   for ac_exec_ext in '' $ac_executable_extensions; do
11637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11638     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11640     break 2
11641   fi
11642 done
11643 done
11644
11645 fi
11646 fi
11647 RANLIB=$ac_cv_prog_RANLIB
11648 if test -n "$RANLIB"; then
11649   echo "$as_me:$LINENO: result: $RANLIB" >&5
11650 echo "${ECHO_T}$RANLIB" >&6
11651 else
11652   echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11654 fi
11655
11656 fi
11657 if test -z "$ac_cv_prog_RANLIB"; then
11658   ac_ct_RANLIB=$RANLIB
11659   # Extract the first word of "ranlib", so it can be a program name with args.
11660 set dummy ranlib; ac_word=$2
11661 echo "$as_me:$LINENO: checking for $ac_word" >&5
11662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11663 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11664   echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666   if test -n "$ac_ct_RANLIB"; then
11667   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11668 else
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11671 do
11672   IFS=$as_save_IFS
11673   test -z "$as_dir" && as_dir=.
11674   for ac_exec_ext in '' $ac_executable_extensions; do
11675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676     ac_cv_prog_ac_ct_RANLIB="ranlib"
11677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11678     break 2
11679   fi
11680 done
11681 done
11682
11683   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11684 fi
11685 fi
11686 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11687 if test -n "$ac_ct_RANLIB"; then
11688   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11689 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11690 else
11691   echo "$as_me:$LINENO: result: no" >&5
11692 echo "${ECHO_T}no" >&6
11693 fi
11694
11695   RANLIB=$ac_ct_RANLIB
11696 else
11697   RANLIB="$ac_cv_prog_RANLIB"
11698 fi
11699
11700 if test -n "$ac_tool_prefix"; then
11701   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11702 set dummy ${ac_tool_prefix}strip; ac_word=$2
11703 echo "$as_me:$LINENO: checking for $ac_word" >&5
11704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11705 if test "${ac_cv_prog_STRIP+set}" = set; then
11706   echo $ECHO_N "(cached) $ECHO_C" >&6
11707 else
11708   if test -n "$STRIP"; then
11709   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11710 else
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11713 do
11714   IFS=$as_save_IFS
11715   test -z "$as_dir" && as_dir=.
11716   for ac_exec_ext in '' $ac_executable_extensions; do
11717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11718     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11720     break 2
11721   fi
11722 done
11723 done
11724
11725 fi
11726 fi
11727 STRIP=$ac_cv_prog_STRIP
11728 if test -n "$STRIP"; then
11729   echo "$as_me:$LINENO: result: $STRIP" >&5
11730 echo "${ECHO_T}$STRIP" >&6
11731 else
11732   echo "$as_me:$LINENO: result: no" >&5
11733 echo "${ECHO_T}no" >&6
11734 fi
11735
11736 fi
11737 if test -z "$ac_cv_prog_STRIP"; then
11738   ac_ct_STRIP=$STRIP
11739   # Extract the first word of "strip", so it can be a program name with args.
11740 set dummy strip; ac_word=$2
11741 echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   if test -n "$ac_ct_STRIP"; then
11747   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754   for ac_exec_ext in '' $ac_executable_extensions; do
11755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756     ac_cv_prog_ac_ct_STRIP="strip"
11757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761 done
11762
11763   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11764 fi
11765 fi
11766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11767 if test -n "$ac_ct_STRIP"; then
11768   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11769 echo "${ECHO_T}$ac_ct_STRIP" >&6
11770 else
11771   echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6
11773 fi
11774
11775   STRIP=$ac_ct_STRIP
11776 else
11777   STRIP="$ac_cv_prog_STRIP"
11778 fi
11779
11780
11781 old_CC="$CC"
11782 old_CFLAGS="$CFLAGS"
11783
11784 # Set sane defaults for various variables
11785 test -z "$AR" && AR=ar
11786 test -z "$AR_FLAGS" && AR_FLAGS=cru
11787 test -z "$AS" && AS=as
11788 test -z "$CC" && CC=cc
11789 test -z "$LTCC" && LTCC=$CC
11790 test -z "$DLLTOOL" && DLLTOOL=dlltool
11791 test -z "$LD" && LD=ld
11792 test -z "$LN_S" && LN_S="ln -s"
11793 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11794 test -z "$NM" && NM=nm
11795 test -z "$SED" && SED=sed
11796 test -z "$OBJDUMP" && OBJDUMP=objdump
11797 test -z "$RANLIB" && RANLIB=:
11798 test -z "$STRIP" && STRIP=:
11799 test -z "$ac_objext" && ac_objext=o
11800
11801 # Determine commands to create old-style static archives.
11802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11803 old_postinstall_cmds='chmod 644 $oldlib'
11804 old_postuninstall_cmds=
11805
11806 if test -n "$RANLIB"; then
11807   case $host_os in
11808   openbsd*)
11809     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11810     ;;
11811   *)
11812     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11813     ;;
11814   esac
11815   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11816 fi
11817
11818 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11819
11820 # Only perform the check for file, if the check method requires it
11821 case $deplibs_check_method in
11822 file_magic*)
11823   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11824     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11825 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11826 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   case $MAGIC_CMD in
11830 [\\/*] |  ?:[\\/]*)
11831   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11832   ;;
11833 *)
11834   lt_save_MAGIC_CMD="$MAGIC_CMD"
11835   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11836   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11837   for ac_dir in $ac_dummy; do
11838     IFS="$lt_save_ifs"
11839     test -z "$ac_dir" && ac_dir=.
11840     if test -f $ac_dir/${ac_tool_prefix}file; then
11841       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11842       if test -n "$file_magic_test_file"; then
11843         case $deplibs_check_method in
11844         "file_magic "*)
11845           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11846           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11847           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11848             $EGREP "$file_magic_regex" > /dev/null; then
11849             :
11850           else
11851             cat <<EOF 1>&2
11852
11853 *** Warning: the command libtool uses to detect shared libraries,
11854 *** $file_magic_cmd, produces output that libtool cannot recognize.
11855 *** The result is that libtool may fail to recognize shared libraries
11856 *** as such.  This will affect the creation of libtool libraries that
11857 *** depend on shared libraries, but programs linked with such libtool
11858 *** libraries will work regardless of this problem.  Nevertheless, you
11859 *** may want to report the problem to your system manager and/or to
11860 *** bug-libtool@gnu.org
11861
11862 EOF
11863           fi ;;
11864         esac
11865       fi
11866       break
11867     fi
11868   done
11869   IFS="$lt_save_ifs"
11870   MAGIC_CMD="$lt_save_MAGIC_CMD"
11871   ;;
11872 esac
11873 fi
11874
11875 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11876 if test -n "$MAGIC_CMD"; then
11877   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11878 echo "${ECHO_T}$MAGIC_CMD" >&6
11879 else
11880   echo "$as_me:$LINENO: result: no" >&5
11881 echo "${ECHO_T}no" >&6
11882 fi
11883
11884 if test -z "$lt_cv_path_MAGIC_CMD"; then
11885   if test -n "$ac_tool_prefix"; then
11886     echo "$as_me:$LINENO: checking for file" >&5
11887 echo $ECHO_N "checking for file... $ECHO_C" >&6
11888 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11889   echo $ECHO_N "(cached) $ECHO_C" >&6
11890 else
11891   case $MAGIC_CMD in
11892 [\\/*] |  ?:[\\/]*)
11893   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11894   ;;
11895 *)
11896   lt_save_MAGIC_CMD="$MAGIC_CMD"
11897   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11898   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11899   for ac_dir in $ac_dummy; do
11900     IFS="$lt_save_ifs"
11901     test -z "$ac_dir" && ac_dir=.
11902     if test -f $ac_dir/file; then
11903       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11904       if test -n "$file_magic_test_file"; then
11905         case $deplibs_check_method in
11906         "file_magic "*)
11907           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11908           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11909           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11910             $EGREP "$file_magic_regex" > /dev/null; then
11911             :
11912           else
11913             cat <<EOF 1>&2
11914
11915 *** Warning: the command libtool uses to detect shared libraries,
11916 *** $file_magic_cmd, produces output that libtool cannot recognize.
11917 *** The result is that libtool may fail to recognize shared libraries
11918 *** as such.  This will affect the creation of libtool libraries that
11919 *** depend on shared libraries, but programs linked with such libtool
11920 *** libraries will work regardless of this problem.  Nevertheless, you
11921 *** may want to report the problem to your system manager and/or to
11922 *** bug-libtool@gnu.org
11923
11924 EOF
11925           fi ;;
11926         esac
11927       fi
11928       break
11929     fi
11930   done
11931   IFS="$lt_save_ifs"
11932   MAGIC_CMD="$lt_save_MAGIC_CMD"
11933   ;;
11934 esac
11935 fi
11936
11937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11938 if test -n "$MAGIC_CMD"; then
11939   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11940 echo "${ECHO_T}$MAGIC_CMD" >&6
11941 else
11942   echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11944 fi
11945
11946   else
11947     MAGIC_CMD=:
11948   fi
11949 fi
11950
11951   fi
11952   ;;
11953 esac
11954
11955 enable_dlopen=yes
11956 enable_win32_dll=no
11957
11958 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11959 if test "${enable_libtool_lock+set}" = set; then
11960   enableval="$enable_libtool_lock"
11961
11962 fi;
11963 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11964
11965
11966 # Check whether --with-pic or --without-pic was given.
11967 if test "${with_pic+set}" = set; then
11968   withval="$with_pic"
11969   pic_mode="$withval"
11970 else
11971   pic_mode=default
11972 fi;
11973 test -z "$pic_mode" && pic_mode=default
11974
11975 # Use C for the default configuration in the libtool script
11976 tagname=
11977 lt_save_CC="$CC"
11978 ac_ext=c
11979 ac_cpp='$CPP $CPPFLAGS'
11980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11983
11984
11985 # Source file extension for C test sources.
11986 ac_ext=c
11987
11988 # Object file extension for compiled C test sources.
11989 objext=o
11990 objext=$objext
11991
11992 # Code to be used in simple compile tests
11993 lt_simple_compile_test_code="int some_variable = 0;\n"
11994
11995 # Code to be used in simple link tests
11996 lt_simple_link_test_code='int main(){return(0);}\n'
11997
11998
11999 # If no C compiler was specified, use CC.
12000 LTCC=${LTCC-"$CC"}
12001
12002 # Allow CC to be a program name with arguments.
12003 compiler=$CC
12004
12005
12006 #
12007 # Check for any special shared library compilation flags.
12008 #
12009 lt_prog_cc_shlib=
12010 if test "$GCC" = no; then
12011   case $host_os in
12012   sco3.2v5*)
12013     lt_prog_cc_shlib='-belf'
12014     ;;
12015   esac
12016 fi
12017 if test -n "$lt_prog_cc_shlib"; then
12018   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12019 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12020   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12021   else
12022     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12023 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12024     lt_cv_prog_cc_can_build_shared=no
12025   fi
12026 fi
12027
12028
12029 #
12030 # Check to make sure the static flag actually works.
12031 #
12032 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12033 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12034 if test "${lt_prog_compiler_static_works+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   lt_prog_compiler_static_works=no
12038    save_LDFLAGS="$LDFLAGS"
12039    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12040    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12041    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12042      # The compiler can only warn and ignore the option if not recognized
12043      # So say no if there are warnings
12044      if test -s conftest.err; then
12045        # Append any errors to the config.log.
12046        cat conftest.err 1>&5
12047      else
12048        lt_prog_compiler_static_works=yes
12049      fi
12050    fi
12051    $rm conftest*
12052    LDFLAGS="$save_LDFLAGS"
12053
12054 fi
12055 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12056 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12057
12058 if test x"$lt_prog_compiler_static_works" = xyes; then
12059     :
12060 else
12061     lt_prog_compiler_static=
12062 fi
12063
12064
12065
12066
12067 lt_prog_compiler_no_builtin_flag=
12068
12069 if test "$GCC" = yes; then
12070   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12071
12072
12073 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12074 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12075 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   lt_cv_prog_compiler_rtti_exceptions=no
12079   ac_outfile=conftest.$ac_objext
12080    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12081    lt_compiler_flag="-fno-rtti -fno-exceptions"
12082    # Insert the option either (1) after the last *FLAGS variable, or
12083    # (2) before a word containing "conftest.", or (3) at the end.
12084    # Note that $ac_compile itself does not contain backslashes and begins
12085    # with a dollar sign (not a hyphen), so the echo should work correctly.
12086    # The option is referenced via a variable to avoid confusing sed.
12087    lt_compile=`echo "$ac_compile" | $SED \
12088    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12090    -e 's:$: $lt_compiler_flag:'`
12091    (eval echo "\"\$as_me:12091: $lt_compile\"" >&5)
12092    (eval "$lt_compile" 2>conftest.err)
12093    ac_status=$?
12094    cat conftest.err >&5
12095    echo "$as_me:12095: \$? = $ac_status" >&5
12096    if (exit $ac_status) && test -s "$ac_outfile"; then
12097      # The compiler can only warn and ignore the option if not recognized
12098      # So say no if there are warnings
12099      if test ! -s conftest.err; then
12100        lt_cv_prog_compiler_rtti_exceptions=yes
12101      fi
12102    fi
12103    $rm conftest*
12104
12105 fi
12106 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12107 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12108
12109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12110     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12111 else
12112     :
12113 fi
12114
12115 fi
12116
12117 lt_prog_compiler_wl=
12118 lt_prog_compiler_pic=
12119 lt_prog_compiler_static=
12120
12121 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12123
12124   if test "$GCC" = yes; then
12125     lt_prog_compiler_wl='-Wl,'
12126     lt_prog_compiler_static='-static'
12127
12128     case $host_os in
12129       aix*)
12130       # All AIX code is PIC.
12131       if test "$host_cpu" = ia64; then
12132         # AIX 5 now supports IA64 processor
12133         lt_prog_compiler_static='-Bstatic'
12134       fi
12135       ;;
12136
12137     amigaos*)
12138       # FIXME: we need at least 68020 code to build shared libraries, but
12139       # adding the `-m68020' flag to GCC prevents building anything better,
12140       # like `-m68040'.
12141       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12142       ;;
12143
12144     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12145       # PIC is the default for these OSes.
12146       ;;
12147
12148     mingw* | pw32* | os2*)
12149       # This hack is so that the source file can tell whether it is being
12150       # built for inclusion in a dll (and should export symbols for example).
12151       lt_prog_compiler_pic='-DDLL_EXPORT'
12152       ;;
12153
12154     darwin* | rhapsody*)
12155       # PIC is the default on this platform
12156       # Common symbols not allowed in MH_DYLIB files
12157       lt_prog_compiler_pic='-fno-common'
12158       ;;
12159
12160     msdosdjgpp*)
12161       # Just because we use GCC doesn't mean we suddenly get shared libraries
12162       # on systems that don't support them.
12163       lt_prog_compiler_can_build_shared=no
12164       enable_shared=no
12165       ;;
12166
12167     sysv4*MP*)
12168       if test -d /usr/nec; then
12169         lt_prog_compiler_pic=-Kconform_pic
12170       fi
12171       ;;
12172
12173     hpux*)
12174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12175       # not for PA HP-UX.
12176       case "$host_cpu" in
12177       hppa*64*|ia64*)
12178         # +Z the default
12179         ;;
12180       *)
12181         lt_prog_compiler_pic='-fPIC'
12182         ;;
12183       esac
12184       ;;
12185
12186     *)
12187       lt_prog_compiler_pic='-fPIC'
12188       ;;
12189     esac
12190   else
12191     # PORTME Check for flag to pass linker flags through the system compiler.
12192     case $host_os in
12193     aix*)
12194       lt_prog_compiler_wl='-Wl,'
12195       if test "$host_cpu" = ia64; then
12196         # AIX 5 now supports IA64 processor
12197         lt_prog_compiler_static='-Bstatic'
12198       else
12199         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12200       fi
12201       ;;
12202       darwin*)
12203         # PIC is the default on this platform
12204         # Common symbols not allowed in MH_DYLIB files
12205        case "$cc_basename" in
12206          xlc*)
12207          lt_prog_compiler_pic='-qnocommon'
12208          lt_prog_compiler_wl='-Wl,'
12209          ;;
12210        esac
12211        ;;
12212
12213     mingw* | pw32* | os2*)
12214       # This hack is so that the source file can tell whether it is being
12215       # built for inclusion in a dll (and should export symbols for example).
12216       lt_prog_compiler_pic='-DDLL_EXPORT'
12217       ;;
12218
12219     hpux9* | hpux10* | hpux11*)
12220       lt_prog_compiler_wl='-Wl,'
12221       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12222       # not for PA HP-UX.
12223       case "$host_cpu" in
12224       hppa*64*|ia64*)
12225         # +Z the default
12226         ;;
12227       *)
12228         lt_prog_compiler_pic='+Z'
12229         ;;
12230       esac
12231       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12232       lt_prog_compiler_static='${wl}-a ${wl}archive'
12233       ;;
12234
12235     irix5* | irix6* | nonstopux*)
12236       lt_prog_compiler_wl='-Wl,'
12237       # PIC (with -KPIC) is the default.
12238       lt_prog_compiler_static='-non_shared'
12239       ;;
12240
12241     newsos6)
12242       lt_prog_compiler_pic='-KPIC'
12243       lt_prog_compiler_static='-Bstatic'
12244       ;;
12245
12246     linux*)
12247       case $CC in
12248       icc* | ecc*)
12249         lt_prog_compiler_wl='-Wl,'
12250         lt_prog_compiler_pic='-KPIC'
12251         lt_prog_compiler_static='-static'
12252         ;;
12253       ccc*)
12254         lt_prog_compiler_wl='-Wl,'
12255         # All Alpha code is PIC.
12256         lt_prog_compiler_static='-non_shared'
12257         ;;
12258       esac
12259       ;;
12260
12261     osf3* | osf4* | osf5*)
12262       lt_prog_compiler_wl='-Wl,'
12263       # All OSF/1 code is PIC.
12264       lt_prog_compiler_static='-non_shared'
12265       ;;
12266
12267     sco3.2v5*)
12268       lt_prog_compiler_pic='-Kpic'
12269       lt_prog_compiler_static='-dn'
12270       ;;
12271
12272     solaris*)
12273       lt_prog_compiler_wl='-Wl,'
12274       lt_prog_compiler_pic='-KPIC'
12275       lt_prog_compiler_static='-Bstatic'
12276       ;;
12277
12278     sunos4*)
12279       lt_prog_compiler_wl='-Qoption ld '
12280       lt_prog_compiler_pic='-PIC'
12281       lt_prog_compiler_static='-Bstatic'
12282       ;;
12283
12284     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12285       lt_prog_compiler_wl='-Wl,'
12286       lt_prog_compiler_pic='-KPIC'
12287       lt_prog_compiler_static='-Bstatic'
12288       ;;
12289
12290     sysv4*MP*)
12291       if test -d /usr/nec ;then
12292         lt_prog_compiler_pic='-Kconform_pic'
12293         lt_prog_compiler_static='-Bstatic'
12294       fi
12295       ;;
12296
12297     uts4*)
12298       lt_prog_compiler_pic='-pic'
12299       lt_prog_compiler_static='-Bstatic'
12300       ;;
12301
12302     *)
12303       lt_prog_compiler_can_build_shared=no
12304       ;;
12305     esac
12306   fi
12307
12308 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12309 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12310
12311 #
12312 # Check to make sure the PIC flag actually works.
12313 #
12314 if test -n "$lt_prog_compiler_pic"; then
12315
12316 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12317 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12318 if test "${lt_prog_compiler_pic_works+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   lt_prog_compiler_pic_works=no
12322   ac_outfile=conftest.$ac_objext
12323    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12324    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12325    # Insert the option either (1) after the last *FLAGS variable, or
12326    # (2) before a word containing "conftest.", or (3) at the end.
12327    # Note that $ac_compile itself does not contain backslashes and begins
12328    # with a dollar sign (not a hyphen), so the echo should work correctly.
12329    # The option is referenced via a variable to avoid confusing sed.
12330    lt_compile=`echo "$ac_compile" | $SED \
12331    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333    -e 's:$: $lt_compiler_flag:'`
12334    (eval echo "\"\$as_me:12334: $lt_compile\"" >&5)
12335    (eval "$lt_compile" 2>conftest.err)
12336    ac_status=$?
12337    cat conftest.err >&5
12338    echo "$as_me:12338: \$? = $ac_status" >&5
12339    if (exit $ac_status) && test -s "$ac_outfile"; then
12340      # The compiler can only warn and ignore the option if not recognized
12341      # So say no if there are warnings
12342      if test ! -s conftest.err; then
12343        lt_prog_compiler_pic_works=yes
12344      fi
12345    fi
12346    $rm conftest*
12347
12348 fi
12349 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12350 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12351
12352 if test x"$lt_prog_compiler_pic_works" = xyes; then
12353     case $lt_prog_compiler_pic in
12354      "" | " "*) ;;
12355      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12356      esac
12357 else
12358     lt_prog_compiler_pic=
12359      lt_prog_compiler_can_build_shared=no
12360 fi
12361
12362 fi
12363 case "$host_os" in
12364   # For platforms which do not support PIC, -DPIC is meaningless:
12365   *djgpp*)
12366     lt_prog_compiler_pic=
12367     ;;
12368   *)
12369     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12370     ;;
12371 esac
12372
12373 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12375 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   lt_cv_prog_compiler_c_o=no
12379    $rm -r conftest 2>/dev/null
12380    mkdir conftest
12381    cd conftest
12382    mkdir out
12383    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12384
12385    lt_compiler_flag="-o out/conftest2.$ac_objext"
12386    # Insert the option either (1) after the last *FLAGS variable, or
12387    # (2) before a word containing "conftest.", or (3) at the end.
12388    # Note that $ac_compile itself does not contain backslashes and begins
12389    # with a dollar sign (not a hyphen), so the echo should work correctly.
12390    lt_compile=`echo "$ac_compile" | $SED \
12391    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12393    -e 's:$: $lt_compiler_flag:'`
12394    (eval echo "\"\$as_me:12394: $lt_compile\"" >&5)
12395    (eval "$lt_compile" 2>out/conftest.err)
12396    ac_status=$?
12397    cat out/conftest.err >&5
12398    echo "$as_me:12398: \$? = $ac_status" >&5
12399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12400    then
12401      # The compiler can only warn and ignore the option if not recognized
12402      # So say no if there are warnings
12403      if test ! -s out/conftest.err; then
12404        lt_cv_prog_compiler_c_o=yes
12405      fi
12406    fi
12407    chmod u+w .
12408    $rm conftest*
12409    # SGI C++ compiler will create directory out/ii_files/ for
12410    # template instantiation
12411    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12412    $rm out/* && rmdir out
12413    cd ..
12414    rmdir conftest
12415    $rm conftest*
12416
12417 fi
12418 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12419 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12420
12421
12422 hard_links="nottested"
12423 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12424   # do not overwrite the value of need_locks provided by the user
12425   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12426 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12427   hard_links=yes
12428   $rm conftest*
12429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12430   touch conftest.a
12431   ln conftest.a conftest.b 2>&5 || hard_links=no
12432   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12433   echo "$as_me:$LINENO: result: $hard_links" >&5
12434 echo "${ECHO_T}$hard_links" >&6
12435   if test "$hard_links" = no; then
12436     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12437 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12438     need_locks=warn
12439   fi
12440 else
12441   need_locks=no
12442 fi
12443
12444 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12445 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12446
12447   runpath_var=
12448   allow_undefined_flag=
12449   enable_shared_with_static_runtimes=no
12450   archive_cmds=
12451   archive_expsym_cmds=
12452   old_archive_From_new_cmds=
12453   old_archive_from_expsyms_cmds=
12454   export_dynamic_flag_spec=
12455   whole_archive_flag_spec=
12456   thread_safe_flag_spec=
12457   hardcode_libdir_flag_spec=
12458   hardcode_libdir_flag_spec_ld=
12459   hardcode_libdir_separator=
12460   hardcode_direct=no
12461   hardcode_minus_L=no
12462   hardcode_shlibpath_var=unsupported
12463   link_all_deplibs=unknown
12464   hardcode_automatic=no
12465   module_cmds=
12466   module_expsym_cmds=
12467   always_export_symbols=no
12468   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12469   # include_expsyms should be a list of space-separated symbols to be *always*
12470   # included in the symbol list
12471   include_expsyms=
12472   # exclude_expsyms can be an extended regexp of symbols to exclude
12473   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12474   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12475   # as well as any symbol that contains `d'.
12476   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12477   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12478   # platforms (ab)use it in PIC code, but their linkers get confused if
12479   # the symbol is explicitly referenced.  Since portable code cannot
12480   # rely on this symbol name, it's probably fine to never include it in
12481   # preloaded symbol tables.
12482   extract_expsyms_cmds=
12483
12484   case $host_os in
12485   cygwin* | mingw* | pw32*)
12486     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12487     # When not using gcc, we currently assume that we are using
12488     # Microsoft Visual C++.
12489     if test "$GCC" != yes; then
12490       with_gnu_ld=no
12491     fi
12492     ;;
12493   openbsd*)
12494     with_gnu_ld=no
12495     ;;
12496   esac
12497
12498   ld_shlibs=yes
12499   if test "$with_gnu_ld" = yes; then
12500     # If archive_cmds runs LD, not CC, wlarc should be empty
12501     wlarc='${wl}'
12502
12503     # See if GNU ld supports shared libraries.
12504     case $host_os in
12505     aix3* | aix4* | aix5*)
12506       # On AIX/PPC, the GNU linker is very broken
12507       if test "$host_cpu" != ia64; then
12508         ld_shlibs=no
12509         cat <<EOF 1>&2
12510
12511 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12512 *** to be unable to reliably create shared libraries on AIX.
12513 *** Therefore, libtool is disabling shared libraries support.  If you
12514 *** really care for shared libraries, you may want to modify your PATH
12515 *** so that a non-GNU linker is found, and then restart.
12516
12517 EOF
12518       fi
12519       ;;
12520
12521     amigaos*)
12522       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)'
12523       hardcode_libdir_flag_spec='-L$libdir'
12524       hardcode_minus_L=yes
12525
12526       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12527       # that the semantics of dynamic libraries on AmigaOS, at least up
12528       # to version 4, is to share data among multiple programs linked
12529       # with the same dynamic library.  Since this doesn't match the
12530       # behavior of shared libraries on other platforms, we can't use
12531       # them.
12532       ld_shlibs=no
12533       ;;
12534
12535     beos*)
12536       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12537         allow_undefined_flag=unsupported
12538         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12539         # support --undefined.  This deserves some investigation.  FIXME
12540         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12541       else
12542         ld_shlibs=no
12543       fi
12544       ;;
12545
12546     cygwin* | mingw* | pw32*)
12547       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12548       # as there is no search path for DLLs.
12549       hardcode_libdir_flag_spec='-L$libdir'
12550       allow_undefined_flag=unsupported
12551       always_export_symbols=no
12552       enable_shared_with_static_runtimes=yes
12553       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12554
12555       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12556         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12557         # If the export-symbols file already is a .def file (1st line
12558         # is EXPORTS), use it as is; otherwise, prepend...
12559         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12560           cp $export_symbols $output_objdir/$soname.def;
12561         else
12562           echo EXPORTS > $output_objdir/$soname.def;
12563           cat $export_symbols >> $output_objdir/$soname.def;
12564         fi~
12565         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12566       else
12567         ld_shlibs=no
12568       fi
12569       ;;
12570
12571     netbsd*)
12572       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12573         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12574         wlarc=
12575       else
12576         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12577         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12578       fi
12579       ;;
12580
12581     solaris* | sysv5*)
12582       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12583         ld_shlibs=no
12584         cat <<EOF 1>&2
12585
12586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12587 *** create shared libraries on Solaris systems.  Therefore, libtool
12588 *** is disabling shared libraries support.  We urge you to upgrade GNU
12589 *** binutils to release 2.9.1 or newer.  Another option is to modify
12590 *** your PATH or compiler configuration so that the native linker is
12591 *** used, and then restart.
12592
12593 EOF
12594       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12595         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12596         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12597       else
12598         ld_shlibs=no
12599       fi
12600       ;;
12601
12602     sunos4*)
12603       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12604       wlarc=
12605       hardcode_direct=yes
12606       hardcode_shlibpath_var=no
12607       ;;
12608
12609   linux*)
12610     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12611         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612         archive_cmds="$tmp_archive_cmds"
12613       supports_anon_versioning=no
12614       case `$LD -v 2>/dev/null` in
12615         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12616         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12617         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12618         *\ 2.11.*) ;; # other 2.11 versions
12619         *) supports_anon_versioning=yes ;;
12620       esac
12621       if test $supports_anon_versioning = yes; then
12622         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12624 $echo "local: *; };" >> $output_objdir/$libname.ver~
12625         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12626       else
12627         archive_expsym_cmds="$tmp_archive_cmds"
12628       fi
12629     else
12630       ld_shlibs=no
12631     fi
12632     ;;
12633
12634     *)
12635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12637         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12638       else
12639         ld_shlibs=no
12640       fi
12641       ;;
12642     esac
12643
12644     if test "$ld_shlibs" = yes; then
12645       runpath_var=LD_RUN_PATH
12646       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12647       export_dynamic_flag_spec='${wl}--export-dynamic'
12648       # ancient GNU ld didn't support --whole-archive et. al.
12649       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12650         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12651       else
12652         whole_archive_flag_spec=
12653       fi
12654     fi
12655   else
12656     # PORTME fill in a description of your system's linker (not GNU ld)
12657     case $host_os in
12658     aix3*)
12659       allow_undefined_flag=unsupported
12660       always_export_symbols=yes
12661       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'
12662       # Note: this linker hardcodes the directories in LIBPATH if there
12663       # are no directories specified by -L.
12664       hardcode_minus_L=yes
12665       if test "$GCC" = yes && test -z "$link_static_flag"; then
12666         # Neither direct hardcoding nor static linking is supported with a
12667         # broken collect2.
12668         hardcode_direct=unsupported
12669       fi
12670       ;;
12671
12672     aix4* | aix5*)
12673       if test "$host_cpu" = ia64; then
12674         # On IA64, the linker does run time linking by default, so we don't
12675         # have to do anything special.
12676         aix_use_runtimelinking=no
12677         exp_sym_flag='-Bexport'
12678         no_entry_flag=""
12679       else
12680         # If we're using GNU nm, then we don't want the "-C" option.
12681         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12682         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12683           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'
12684         else
12685           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'
12686         fi
12687         aix_use_runtimelinking=no
12688
12689         # Test if we are trying to use run time linking or normal
12690         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12691         # need to do runtime linking.
12692         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12693           for ld_flag in $LDFLAGS; do
12694           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12695             aix_use_runtimelinking=yes
12696             break
12697           fi
12698           done
12699         esac
12700
12701         exp_sym_flag='-bexport'
12702         no_entry_flag='-bnoentry'
12703       fi
12704
12705       # When large executables or shared objects are built, AIX ld can
12706       # have problems creating the table of contents.  If linking a library
12707       # or program results in "error TOC overflow" add -mminimal-toc to
12708       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12709       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12710
12711       archive_cmds=''
12712       hardcode_direct=yes
12713       hardcode_libdir_separator=':'
12714       link_all_deplibs=yes
12715
12716       if test "$GCC" = yes; then
12717         case $host_os in aix4.012|aix4.012.*)
12718         # We only want to do this on AIX 4.2 and lower, the check
12719         # below for broken collect2 doesn't work under 4.3+
12720           collect2name=`${CC} -print-prog-name=collect2`
12721           if test -f "$collect2name" && \
12722            strings "$collect2name" | grep resolve_lib_name >/dev/null
12723           then
12724           # We have reworked collect2
12725           hardcode_direct=yes
12726           else
12727           # We have old collect2
12728           hardcode_direct=unsupported
12729           # It fails to find uninstalled libraries when the uninstalled
12730           # path is not listed in the libpath.  Setting hardcode_minus_L
12731           # to unsupported forces relinking
12732           hardcode_minus_L=yes
12733           hardcode_libdir_flag_spec='-L$libdir'
12734           hardcode_libdir_separator=
12735           fi
12736         esac
12737         shared_flag='-shared'
12738       else
12739         # not using gcc
12740         if test "$host_cpu" = ia64; then
12741         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12742         # chokes on -Wl,-G. The following line is correct:
12743           shared_flag='-G'
12744         else
12745         if test "$aix_use_runtimelinking" = yes; then
12746             shared_flag='${wl}-G'
12747           else
12748             shared_flag='${wl}-bM:SRE'
12749         fi
12750         fi
12751       fi
12752
12753       # It seems that -bexpall does not export symbols beginning with
12754       # underscore (_), so it is better to generate a list of symbols to export.
12755       always_export_symbols=yes
12756       if test "$aix_use_runtimelinking" = yes; then
12757         # Warning - without using the other runtime loading flags (-brtl),
12758         # -berok will link without error, but may produce a broken library.
12759         allow_undefined_flag='-berok'
12760        # Determine the default libpath from the value encoded in an empty executable.
12761        cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767
12768 int
12769 main ()
12770 {
12771
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12778   (eval $ac_link) 2>conftest.er1
12779   ac_status=$?
12780   grep -v '^ *+' conftest.er1 >conftest.err
12781   rm -f conftest.er1
12782   cat conftest.err >&5
12783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784   (exit $ac_status); } &&
12785          { ac_try='test -z "$ac_c_werror_flag"
12786                          || test ! -s conftest.err'
12787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788   (eval $ac_try) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); }; } &&
12792          { ac_try='test -s conftest$ac_exeext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798
12799 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12800 }'`
12801 # Check for a 64-bit object if we didn't find anything.
12802 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; }
12803 }'`; fi
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 fi
12809 rm -f conftest.err conftest.$ac_objext \
12810       conftest$ac_exeext conftest.$ac_ext
12811 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12812
12813        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12814         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"
12815        else
12816         if test "$host_cpu" = ia64; then
12817           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12818           allow_undefined_flag="-z nodefs"
12819           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"
12820         else
12821          # Determine the default libpath from the value encoded in an empty executable.
12822          cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h.  */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h.  */
12828
12829 int
12830 main ()
12831 {
12832
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -z "$ac_c_werror_flag"
12847                          || test ! -s conftest.err'
12848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849   (eval $ac_try) 2>&5
12850   ac_status=$?
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); }; } &&
12853          { ac_try='test -s conftest$ac_exeext'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859
12860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12861 }'`
12862 # Check for a 64-bit object if we didn't find anything.
12863 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; }
12864 }'`; fi
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 fi
12870 rm -f conftest.err conftest.$ac_objext \
12871       conftest$ac_exeext conftest.$ac_ext
12872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12873
12874          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12875           # Warning - without using the other run time loading flags,
12876           # -berok will link without error, but may produce a broken library.
12877           no_undefined_flag=' ${wl}-bernotok'
12878           allow_undefined_flag=' ${wl}-berok'
12879           # -bexpall does not export symbols beginning with underscore (_)
12880           always_export_symbols=yes
12881           # Exported symbols can be pulled into shared objects from archives
12882           whole_archive_flag_spec=' '
12883           archive_cmds_need_lc=yes
12884           # This is similar to how AIX traditionally builds it's shared libraries.
12885           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'
12886         fi
12887       fi
12888       ;;
12889
12890     amigaos*)
12891       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)'
12892       hardcode_libdir_flag_spec='-L$libdir'
12893       hardcode_minus_L=yes
12894       # see comment about different semantics on the GNU ld section
12895       ld_shlibs=no
12896       ;;
12897
12898     bsdi[45]*)
12899       export_dynamic_flag_spec=-rdynamic
12900       ;;
12901
12902     cygwin* | mingw* | pw32*)
12903       # When not using gcc, we currently assume that we are using
12904       # Microsoft Visual C++.
12905       # hardcode_libdir_flag_spec is actually meaningless, as there is
12906       # no search path for DLLs.
12907       hardcode_libdir_flag_spec=' '
12908       allow_undefined_flag=unsupported
12909       # Tell ltmain to make .lib files, not .a files.
12910       libext=lib
12911       # Tell ltmain to make .dll files, not .so files.
12912       shrext_cmds=".dll"
12913       # FIXME: Setting linknames here is a bad hack.
12914       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12915       # The linker will automatically build a .lib file if we build a DLL.
12916       old_archive_From_new_cmds='true'
12917       # FIXME: Should let the user specify the lib program.
12918       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12919       fix_srcfile_path='`cygpath -w "$srcfile"`'
12920       enable_shared_with_static_runtimes=yes
12921       ;;
12922
12923     darwin* | rhapsody*)
12924       case "$host_os" in
12925         rhapsody* | darwin1.[012])
12926          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12927          ;;
12928        *) # Darwin 1.3 on
12929          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12930            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12931          else
12932            case ${MACOSX_DEPLOYMENT_TARGET} in
12933              10.[012])
12934                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12935                ;;
12936              10.*)
12937                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12938                ;;
12939            esac
12940          fi
12941          ;;
12942       esac
12943       archive_cmds_need_lc=no
12944       hardcode_direct=no
12945       hardcode_automatic=yes
12946       hardcode_shlibpath_var=unsupported
12947       whole_archive_flag_spec=''
12948       link_all_deplibs=yes
12949     if test "$GCC" = yes ; then
12950         output_verbose_link_cmd='echo'
12951         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12952       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12953       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12954       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}'
12955       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}'
12956     else
12957       case "$cc_basename" in
12958         xlc*)
12959          output_verbose_link_cmd='echo'
12960          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12961          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12962           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12963          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}'
12964           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}'
12965           ;;
12966        *)
12967          ld_shlibs=no
12968           ;;
12969       esac
12970     fi
12971       ;;
12972
12973     dgux*)
12974       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12975       hardcode_libdir_flag_spec='-L$libdir'
12976       hardcode_shlibpath_var=no
12977       ;;
12978
12979     freebsd1*)
12980       ld_shlibs=no
12981       ;;
12982
12983     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12984     # support.  Future versions do this automatically, but an explicit c++rt0.o
12985     # does not break anything, and helps significantly (at the cost of a little
12986     # extra space).
12987     freebsd2.2*)
12988       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12989       hardcode_libdir_flag_spec='-R$libdir'
12990       hardcode_direct=yes
12991       hardcode_shlibpath_var=no
12992       ;;
12993
12994     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12995     freebsd2*)
12996       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12997       hardcode_direct=yes
12998       hardcode_minus_L=yes
12999       hardcode_shlibpath_var=no
13000       ;;
13001
13002     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13003     freebsd* | kfreebsd*-gnu)
13004       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13005       hardcode_libdir_flag_spec='-R$libdir'
13006       hardcode_direct=yes
13007       hardcode_shlibpath_var=no
13008       ;;
13009
13010     hpux9*)
13011       if test "$GCC" = yes; then
13012         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'
13013       else
13014         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'
13015       fi
13016       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13017       hardcode_libdir_separator=:
13018       hardcode_direct=yes
13019
13020       # hardcode_minus_L: Not really in the search PATH,
13021       # but as the default location of the library.
13022       hardcode_minus_L=yes
13023       export_dynamic_flag_spec='${wl}-E'
13024       ;;
13025
13026     hpux10* | hpux11*)
13027       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13028         case "$host_cpu" in
13029         hppa*64*|ia64*)
13030           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13031           ;;
13032         *)
13033           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13034           ;;
13035         esac
13036       else
13037         case "$host_cpu" in
13038         hppa*64*|ia64*)
13039           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13040           ;;
13041         *)
13042           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13043           ;;
13044         esac
13045       fi
13046       if test "$with_gnu_ld" = no; then
13047         case "$host_cpu" in
13048         hppa*64*)
13049           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13050           hardcode_libdir_flag_spec_ld='+b $libdir'
13051           hardcode_libdir_separator=:
13052           hardcode_direct=no
13053           hardcode_shlibpath_var=no
13054           ;;
13055         ia64*)
13056           hardcode_libdir_flag_spec='-L$libdir'
13057           hardcode_direct=no
13058           hardcode_shlibpath_var=no
13059
13060           # hardcode_minus_L: Not really in the search PATH,
13061           # but as the default location of the library.
13062           hardcode_minus_L=yes
13063           ;;
13064         *)
13065           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13066           hardcode_libdir_separator=:
13067           hardcode_direct=yes
13068           export_dynamic_flag_spec='${wl}-E'
13069
13070           # hardcode_minus_L: Not really in the search PATH,
13071           # but as the default location of the library.
13072           hardcode_minus_L=yes
13073           ;;
13074         esac
13075       fi
13076       ;;
13077
13078     irix5* | irix6* | nonstopux*)
13079       if test "$GCC" = yes; then
13080         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'
13081       else
13082         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'
13083         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13084       fi
13085       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13086       hardcode_libdir_separator=:
13087       link_all_deplibs=yes
13088       ;;
13089
13090     netbsd*)
13091       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13092         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13093       else
13094         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13095       fi
13096       hardcode_libdir_flag_spec='-R$libdir'
13097       hardcode_direct=yes
13098       hardcode_shlibpath_var=no
13099       ;;
13100
13101     newsos6)
13102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13103       hardcode_direct=yes
13104       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13105       hardcode_libdir_separator=:
13106       hardcode_shlibpath_var=no
13107       ;;
13108
13109     openbsd*)
13110       hardcode_direct=yes
13111       hardcode_shlibpath_var=no
13112       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13113         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13114         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13115         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13116         export_dynamic_flag_spec='${wl}-E'
13117       else
13118        case $host_os in
13119          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13120            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13121            hardcode_libdir_flag_spec='-R$libdir'
13122            ;;
13123          *)
13124            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13125            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13126            ;;
13127        esac
13128       fi
13129       ;;
13130
13131     os2*)
13132       hardcode_libdir_flag_spec='-L$libdir'
13133       hardcode_minus_L=yes
13134       allow_undefined_flag=unsupported
13135       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'
13136       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13137       ;;
13138
13139     osf3*)
13140       if test "$GCC" = yes; then
13141         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13142         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'
13143       else
13144         allow_undefined_flag=' -expect_unresolved \*'
13145         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'
13146       fi
13147       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13148       hardcode_libdir_separator=:
13149       ;;
13150
13151     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13152       if test "$GCC" = yes; then
13153         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13154         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'
13155         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13156       else
13157         allow_undefined_flag=' -expect_unresolved \*'
13158         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'
13159         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13160         $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'
13161
13162         # Both c and cxx compiler support -rpath directly
13163         hardcode_libdir_flag_spec='-rpath $libdir'
13164       fi
13165       hardcode_libdir_separator=:
13166       ;;
13167
13168     sco3.2v5*)
13169       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170       hardcode_shlibpath_var=no
13171       export_dynamic_flag_spec='${wl}-Bexport'
13172       runpath_var=LD_RUN_PATH
13173       hardcode_runpath_var=yes
13174       ;;
13175
13176     solaris*)
13177       no_undefined_flag=' -z text'
13178       if test "$GCC" = yes; then
13179         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13180         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13181           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13182       else
13183         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13186       fi
13187       hardcode_libdir_flag_spec='-R$libdir'
13188       hardcode_shlibpath_var=no
13189       case $host_os in
13190       solaris2.[0-5] | solaris2.[0-5].*) ;;
13191       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13192         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13193       esac
13194       link_all_deplibs=yes
13195       ;;
13196
13197     sunos4*)
13198       if test "x$host_vendor" = xsequent; then
13199         # Use $CC to link under sequent, because it throws in some extra .o
13200         # files that make .init and .fini sections work.
13201         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13202       else
13203         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13204       fi
13205       hardcode_libdir_flag_spec='-L$libdir'
13206       hardcode_direct=yes
13207       hardcode_minus_L=yes
13208       hardcode_shlibpath_var=no
13209       ;;
13210
13211     sysv4)
13212       case $host_vendor in
13213         sni)
13214           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13215           hardcode_direct=yes # is this really true???
13216         ;;
13217         siemens)
13218           ## LD is ld it makes a PLAMLIB
13219           ## CC just makes a GrossModule.
13220           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13221           reload_cmds='$CC -r -o $output$reload_objs'
13222           hardcode_direct=no
13223         ;;
13224         motorola)
13225           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13226           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13227         ;;
13228       esac
13229       runpath_var='LD_RUN_PATH'
13230       hardcode_shlibpath_var=no
13231       ;;
13232
13233     sysv4.3*)
13234       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13235       hardcode_shlibpath_var=no
13236       export_dynamic_flag_spec='-Bexport'
13237       ;;
13238
13239     sysv4*MP*)
13240       if test -d /usr/nec; then
13241         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13242         hardcode_shlibpath_var=no
13243         runpath_var=LD_RUN_PATH
13244         hardcode_runpath_var=yes
13245         ld_shlibs=yes
13246       fi
13247       ;;
13248
13249     sysv4.2uw2*)
13250       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13251       hardcode_direct=yes
13252       hardcode_minus_L=no
13253       hardcode_shlibpath_var=no
13254       hardcode_runpath_var=yes
13255       runpath_var=LD_RUN_PATH
13256       ;;
13257
13258    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13259       no_undefined_flag='${wl}-z ${wl}text'
13260       if test "$GCC" = yes; then
13261         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13262       else
13263         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13264       fi
13265       runpath_var='LD_RUN_PATH'
13266       hardcode_shlibpath_var=no
13267       ;;
13268
13269     sysv5*)
13270       no_undefined_flag=' -z text'
13271       # $CC -shared without GNU ld will not create a library from C++
13272       # object files and a static libstdc++, better avoid it by now
13273       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13274       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13275                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13276       hardcode_libdir_flag_spec=
13277       hardcode_shlibpath_var=no
13278       runpath_var='LD_RUN_PATH'
13279       ;;
13280
13281     uts4*)
13282       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283       hardcode_libdir_flag_spec='-L$libdir'
13284       hardcode_shlibpath_var=no
13285       ;;
13286
13287     *)
13288       ld_shlibs=no
13289       ;;
13290     esac
13291   fi
13292
13293 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13294 echo "${ECHO_T}$ld_shlibs" >&6
13295 test "$ld_shlibs" = no && can_build_shared=no
13296
13297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13298 if test "$GCC" = yes; then
13299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13300 fi
13301
13302 #
13303 # Do we need to explicitly link libc?
13304 #
13305 case "x$archive_cmds_need_lc" in
13306 x|xyes)
13307   # Assume -lc should be added
13308   archive_cmds_need_lc=yes
13309
13310   if test "$enable_shared" = yes && test "$GCC" = yes; then
13311     case $archive_cmds in
13312     *'~'*)
13313       # FIXME: we may have to deal with multi-command sequences.
13314       ;;
13315     '$CC '*)
13316       # Test whether the compiler implicitly links with -lc since on some
13317       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13318       # to ld, don't add -lc before -lgcc.
13319       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13321       $rm conftest*
13322       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13323
13324       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325   (eval $ac_compile) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } 2>conftest.err; then
13329         soname=conftest
13330         lib=conftest
13331         libobjs=conftest.$ac_objext
13332         deplibs=
13333         wl=$lt_prog_compiler_wl
13334         compiler_flags=-v
13335         linker_flags=-v
13336         verstring=
13337         output_objdir=.
13338         libname=conftest
13339         lt_save_allow_undefined_flag=$allow_undefined_flag
13340         allow_undefined_flag=
13341         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13342   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13343   ac_status=$?
13344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }
13346         then
13347           archive_cmds_need_lc=no
13348         else
13349           archive_cmds_need_lc=yes
13350         fi
13351         allow_undefined_flag=$lt_save_allow_undefined_flag
13352       else
13353         cat conftest.err 1>&5
13354       fi
13355       $rm conftest*
13356       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13357 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13358       ;;
13359     esac
13360   fi
13361   ;;
13362 esac
13363
13364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13366 library_names_spec=
13367 libname_spec='lib$name'
13368 soname_spec=
13369 shrext_cmds=".so"
13370 postinstall_cmds=
13371 postuninstall_cmds=
13372 finish_cmds=
13373 finish_eval=
13374 shlibpath_var=
13375 shlibpath_overrides_runpath=unknown
13376 version_type=none
13377 dynamic_linker="$host_os ld.so"
13378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13379 if test "$GCC" = yes; then
13380   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13381   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13382     # if the path contains ";" then we assume it to be the separator
13383     # otherwise default to the standard path separator (i.e. ":") - it is
13384     # assumed that no part of a normal pathname contains ";" but that should
13385     # okay in the real world where ";" in dirpaths is itself problematic.
13386     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13387   else
13388     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13389   fi
13390 else
13391   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13392 fi
13393 need_lib_prefix=unknown
13394 hardcode_into_libs=no
13395
13396 # when you set need_version to no, make sure it does not cause -set_version
13397 # flags to be left without arguments
13398 need_version=unknown
13399
13400 case $host_os in
13401 aix3*)
13402   version_type=linux
13403   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13404   shlibpath_var=LIBPATH
13405
13406   # AIX 3 has no versioning support, so we append a major version to the name.
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   ;;
13409
13410 aix4* | aix5*)
13411   version_type=linux
13412   need_lib_prefix=no
13413   need_version=no
13414   hardcode_into_libs=yes
13415   if test "$host_cpu" = ia64; then
13416     # AIX 5 supports IA64
13417     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13418     shlibpath_var=LD_LIBRARY_PATH
13419   else
13420     # With GCC up to 2.95.x, collect2 would create an import file
13421     # for dependence libraries.  The import file would start with
13422     # the line `#! .'.  This would cause the generated library to
13423     # depend on `.', always an invalid library.  This was fixed in
13424     # development snapshots of GCC prior to 3.0.
13425     case $host_os in
13426       aix4 | aix4.[01] | aix4.[01].*)
13427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13428            echo ' yes '
13429            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13430         :
13431       else
13432         can_build_shared=no
13433       fi
13434       ;;
13435     esac
13436     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13437     # soname into executable. Probably we can add versioning support to
13438     # collect2, so additional links can be useful in future.
13439     if test "$aix_use_runtimelinking" = yes; then
13440       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13441       # instead of lib<name>.a to let people know that these are not
13442       # typical AIX shared libraries.
13443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13444     else
13445       # We preserve .a as extension for shared libraries through AIX4.2
13446       # and later when we are not doing run time linking.
13447       library_names_spec='${libname}${release}.a $libname.a'
13448       soname_spec='${libname}${release}${shared_ext}$major'
13449     fi
13450     shlibpath_var=LIBPATH
13451   fi
13452   ;;
13453
13454 amigaos*)
13455   library_names_spec='$libname.ixlibrary $libname.a'
13456   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13457   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'
13458   ;;
13459
13460 beos*)
13461   library_names_spec='${libname}${shared_ext}'
13462   dynamic_linker="$host_os ld.so"
13463   shlibpath_var=LIBRARY_PATH
13464   ;;
13465
13466 bsdi[45]*)
13467   version_type=linux
13468   need_version=no
13469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470   soname_spec='${libname}${release}${shared_ext}$major'
13471   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13472   shlibpath_var=LD_LIBRARY_PATH
13473   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13474   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13475   # the default ld.so.conf also contains /usr/contrib/lib and
13476   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13477   # libtool to hard-code these into programs
13478   ;;
13479
13480 cygwin* | mingw* | pw32*)
13481   version_type=windows
13482   shrext_cmds=".dll"
13483   need_version=no
13484   need_lib_prefix=no
13485
13486   case $GCC,$host_os in
13487   yes,cygwin* | yes,mingw* | yes,pw32*)
13488     library_names_spec='$libname.dll.a'
13489     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13490     postinstall_cmds='base_file=`basename \${file}`~
13491       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13492       dldir=$destdir/`dirname \$dlpath`~
13493       test -d \$dldir || mkdir -p \$dldir~
13494       $install_prog $dir/$dlname \$dldir/$dlname'
13495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13496       dlpath=$dir/\$dldll~
13497        $rm \$dlpath'
13498     shlibpath_overrides_runpath=yes
13499
13500     case $host_os in
13501     cygwin*)
13502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13505       ;;
13506     mingw*)
13507       # MinGW DLLs use traditional 'lib' prefix
13508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13509       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13510       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13511         # It is most probably a Windows format PATH printed by
13512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13513         # path with ; separators, and with drive letters. We can handle the
13514         # drive letters (cygwin fileutils understands them), so leave them,
13515         # especially as we might pass files found there to a mingw objdump,
13516         # which wouldn't understand a cygwinified path. Ahh.
13517         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13518       else
13519         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13520       fi
13521       ;;
13522     pw32*)
13523       # pw32 DLLs use 'pw' prefix rather than 'lib'
13524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13525       ;;
13526     esac
13527     ;;
13528
13529   *)
13530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13531     ;;
13532   esac
13533   dynamic_linker='Win32 ld.exe'
13534   # FIXME: first we should search . and the directory the executable is in
13535   shlibpath_var=PATH
13536   ;;
13537
13538 darwin* | rhapsody*)
13539   dynamic_linker="$host_os dyld"
13540   version_type=darwin
13541   need_lib_prefix=no
13542   need_version=no
13543   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13544   soname_spec='${libname}${release}${major}$shared_ext'
13545   shlibpath_overrides_runpath=yes
13546   shlibpath_var=DYLD_LIBRARY_PATH
13547   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13548   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13549   if test "$GCC" = yes; then
13550     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"`
13551   else
13552     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13553   fi
13554   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13555   ;;
13556
13557 dgux*)
13558   version_type=linux
13559   need_lib_prefix=no
13560   need_version=no
13561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13562   soname_spec='${libname}${release}${shared_ext}$major'
13563   shlibpath_var=LD_LIBRARY_PATH
13564   ;;
13565
13566 freebsd1*)
13567   dynamic_linker=no
13568   ;;
13569
13570 kfreebsd*-gnu)
13571   version_type=linux
13572   need_lib_prefix=no
13573   need_version=no
13574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13575   soname_spec='${libname}${release}${shared_ext}$major'
13576   shlibpath_var=LD_LIBRARY_PATH
13577   shlibpath_overrides_runpath=no
13578   hardcode_into_libs=yes
13579   dynamic_linker='GNU ld.so'
13580   ;;
13581
13582 freebsd*)
13583   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13584   version_type=freebsd-$objformat
13585   case $version_type in
13586     freebsd-elf*)
13587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13588       need_version=no
13589       need_lib_prefix=no
13590       ;;
13591     freebsd-*)
13592       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13593       need_version=yes
13594       ;;
13595   esac
13596   shlibpath_var=LD_LIBRARY_PATH
13597   case $host_os in
13598   freebsd2*)
13599     shlibpath_overrides_runpath=yes
13600     ;;
13601   freebsd3.01* | freebsdelf3.01*)
13602     shlibpath_overrides_runpath=yes
13603     hardcode_into_libs=yes
13604     ;;
13605   *) # from 3.2 on
13606     shlibpath_overrides_runpath=no
13607     hardcode_into_libs=yes
13608     ;;
13609   esac
13610   ;;
13611
13612 gnu*)
13613   version_type=linux
13614   need_lib_prefix=no
13615   need_version=no
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   shlibpath_var=LD_LIBRARY_PATH
13619   hardcode_into_libs=yes
13620   ;;
13621
13622 hpux9* | hpux10* | hpux11*)
13623   # Give a soname corresponding to the major version so that dld.sl refuses to
13624   # link against other versions.
13625   version_type=sunos
13626   need_lib_prefix=no
13627   need_version=no
13628   case "$host_cpu" in
13629   ia64*)
13630     shrext_cmds='.so'
13631     hardcode_into_libs=yes
13632     dynamic_linker="$host_os dld.so"
13633     shlibpath_var=LD_LIBRARY_PATH
13634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636     soname_spec='${libname}${release}${shared_ext}$major'
13637     if test "X$HPUX_IA64_MODE" = X32; then
13638       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13639     else
13640       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13641     fi
13642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13643     ;;
13644    hppa*64*)
13645      shrext_cmds='.sl'
13646      hardcode_into_libs=yes
13647      dynamic_linker="$host_os dld.sl"
13648      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13649      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13651      soname_spec='${libname}${release}${shared_ext}$major'
13652      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13653      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13654      ;;
13655    *)
13656     shrext_cmds='.sl'
13657     dynamic_linker="$host_os dld.sl"
13658     shlibpath_var=SHLIB_PATH
13659     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661     soname_spec='${libname}${release}${shared_ext}$major'
13662     ;;
13663   esac
13664   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13665   postinstall_cmds='chmod 555 $lib'
13666   ;;
13667
13668 irix5* | irix6* | nonstopux*)
13669   case $host_os in
13670     nonstopux*) version_type=nonstopux ;;
13671     *)
13672         if test "$lt_cv_prog_gnu_ld" = yes; then
13673                 version_type=linux
13674         else
13675                 version_type=irix
13676         fi ;;
13677   esac
13678   need_lib_prefix=no
13679   need_version=no
13680   soname_spec='${libname}${release}${shared_ext}$major'
13681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13682   case $host_os in
13683   irix5* | nonstopux*)
13684     libsuff= shlibsuff=
13685     ;;
13686   *)
13687     case $LD in # libtool.m4 will add one of these switches to LD
13688     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13689       libsuff= shlibsuff= libmagic=32-bit;;
13690     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13691       libsuff=32 shlibsuff=N32 libmagic=N32;;
13692     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13693       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13694     *) libsuff= shlibsuff= libmagic=never-match;;
13695     esac
13696     ;;
13697   esac
13698   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13699   shlibpath_overrides_runpath=no
13700   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13701   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13702   hardcode_into_libs=yes
13703   ;;
13704
13705 # No shared lib support for Linux oldld, aout, or coff.
13706 linux*oldld* | linux*aout* | linux*coff*)
13707   dynamic_linker=no
13708   ;;
13709
13710 # This must be Linux ELF.
13711 linux*)
13712   version_type=linux
13713   need_lib_prefix=no
13714   need_version=no
13715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716   soname_spec='${libname}${release}${shared_ext}$major'
13717   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13718   shlibpath_var=LD_LIBRARY_PATH
13719   shlibpath_overrides_runpath=no
13720   # This implies no fast_install, which is unacceptable.
13721   # Some rework will be needed to allow for fast_install
13722   # before this can be enabled.
13723   hardcode_into_libs=yes
13724
13725   # Append ld.so.conf contents to the search path
13726   if test -f /etc/ld.so.conf; then
13727     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13728     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13729   fi
13730
13731   # We used to test for /lib/ld.so.1 and disable shared libraries on
13732   # powerpc, because MkLinux only supported shared libraries with the
13733   # GNU dynamic linker.  Since this was broken with cross compilers,
13734   # most powerpc-linux boxes support dynamic linking these days and
13735   # people can always --disable-shared, the test was removed, and we
13736   # assume the GNU/Linux dynamic linker is in use.
13737   dynamic_linker='GNU/Linux ld.so'
13738   ;;
13739
13740 knetbsd*-gnu)
13741   version_type=linux
13742   need_lib_prefix=no
13743   need_version=no
13744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13745   soname_spec='${libname}${release}${shared_ext}$major'
13746   shlibpath_var=LD_LIBRARY_PATH
13747   shlibpath_overrides_runpath=no
13748   hardcode_into_libs=yes
13749   dynamic_linker='GNU ld.so'
13750   ;;
13751
13752 netbsd*)
13753   version_type=sunos
13754   need_lib_prefix=no
13755   need_version=no
13756   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13758     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13759     dynamic_linker='NetBSD (a.out) ld.so'
13760   else
13761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13762     soname_spec='${libname}${release}${shared_ext}$major'
13763     dynamic_linker='NetBSD ld.elf_so'
13764   fi
13765   shlibpath_var=LD_LIBRARY_PATH
13766   shlibpath_overrides_runpath=yes
13767   hardcode_into_libs=yes
13768   ;;
13769
13770 newsos6)
13771   version_type=linux
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773   shlibpath_var=LD_LIBRARY_PATH
13774   shlibpath_overrides_runpath=yes
13775   ;;
13776
13777 nto-qnx*)
13778   version_type=linux
13779   need_lib_prefix=no
13780   need_version=no
13781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782   soname_spec='${libname}${release}${shared_ext}$major'
13783   shlibpath_var=LD_LIBRARY_PATH
13784   shlibpath_overrides_runpath=yes
13785   ;;
13786
13787 openbsd*)
13788   version_type=sunos
13789   need_lib_prefix=no
13790   need_version=no
13791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13792   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13793   shlibpath_var=LD_LIBRARY_PATH
13794   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13795     case $host_os in
13796       openbsd2.[89] | openbsd2.[89].*)
13797         shlibpath_overrides_runpath=no
13798         ;;
13799       *)
13800         shlibpath_overrides_runpath=yes
13801         ;;
13802       esac
13803   else
13804     shlibpath_overrides_runpath=yes
13805   fi
13806   ;;
13807
13808 os2*)
13809   libname_spec='$name'
13810   shrext_cmds=".dll"
13811   need_lib_prefix=no
13812   library_names_spec='$libname${shared_ext} $libname.a'
13813   dynamic_linker='OS/2 ld.exe'
13814   shlibpath_var=LIBPATH
13815   ;;
13816
13817 osf3* | osf4* | osf5*)
13818   version_type=osf
13819   need_lib_prefix=no
13820   need_version=no
13821   soname_spec='${libname}${release}${shared_ext}$major'
13822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823   shlibpath_var=LD_LIBRARY_PATH
13824   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13825   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13826   ;;
13827
13828 sco3.2v5*)
13829   version_type=osf
13830   soname_spec='${libname}${release}${shared_ext}$major'
13831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13832   shlibpath_var=LD_LIBRARY_PATH
13833   ;;
13834
13835 solaris*)
13836   version_type=linux
13837   need_lib_prefix=no
13838   need_version=no
13839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840   soname_spec='${libname}${release}${shared_ext}$major'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   shlibpath_overrides_runpath=yes
13843   hardcode_into_libs=yes
13844   # ldd complains unless libraries are executable
13845   postinstall_cmds='chmod +x $lib'
13846   ;;
13847
13848 sunos4*)
13849   version_type=sunos
13850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13851   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13852   shlibpath_var=LD_LIBRARY_PATH
13853   shlibpath_overrides_runpath=yes
13854   if test "$with_gnu_ld" = yes; then
13855     need_lib_prefix=no
13856   fi
13857   need_version=yes
13858   ;;
13859
13860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13861   version_type=linux
13862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863   soname_spec='${libname}${release}${shared_ext}$major'
13864   shlibpath_var=LD_LIBRARY_PATH
13865   case $host_vendor in
13866     sni)
13867       shlibpath_overrides_runpath=no
13868       need_lib_prefix=no
13869       export_dynamic_flag_spec='${wl}-Blargedynsym'
13870       runpath_var=LD_RUN_PATH
13871       ;;
13872     siemens)
13873       need_lib_prefix=no
13874       ;;
13875     motorola)
13876       need_lib_prefix=no
13877       need_version=no
13878       shlibpath_overrides_runpath=no
13879       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13880       ;;
13881   esac
13882   ;;
13883
13884 sysv4*MP*)
13885   if test -d /usr/nec ;then
13886     version_type=linux
13887     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13888     soname_spec='$libname${shared_ext}.$major'
13889     shlibpath_var=LD_LIBRARY_PATH
13890   fi
13891   ;;
13892
13893 uts4*)
13894   version_type=linux
13895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13896   soname_spec='${libname}${release}${shared_ext}$major'
13897   shlibpath_var=LD_LIBRARY_PATH
13898   ;;
13899
13900 *)
13901   dynamic_linker=no
13902   ;;
13903 esac
13904 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13905 echo "${ECHO_T}$dynamic_linker" >&6
13906 test "$dynamic_linker" = no && can_build_shared=no
13907
13908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13910 hardcode_action=
13911 if test -n "$hardcode_libdir_flag_spec" || \
13912    test -n "$runpath_var" || \
13913    test "X$hardcode_automatic" = "Xyes" ; then
13914
13915   # We can hardcode non-existant directories.
13916   if test "$hardcode_direct" != no &&
13917      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13918      # have to relink, otherwise we might link with an installed library
13919      # when we should be linking with a yet-to-be-installed one
13920      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13921      test "$hardcode_minus_L" != no; then
13922     # Linking always hardcodes the temporary library directory.
13923     hardcode_action=relink
13924   else
13925     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13926     hardcode_action=immediate
13927   fi
13928 else
13929   # We cannot hardcode anything, or else we can only hardcode existing
13930   # directories.
13931   hardcode_action=unsupported
13932 fi
13933 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13934 echo "${ECHO_T}$hardcode_action" >&6
13935
13936 if test "$hardcode_action" = relink; then
13937   # Fast installation is not supported
13938   enable_fast_install=no
13939 elif test "$shlibpath_overrides_runpath" = yes ||
13940      test "$enable_shared" = no; then
13941   # Fast installation is not necessary
13942   enable_fast_install=needless
13943 fi
13944
13945 striplib=
13946 old_striplib=
13947 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13948 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13949 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13950   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13951   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13952   echo "$as_me:$LINENO: result: yes" >&5
13953 echo "${ECHO_T}yes" >&6
13954 else
13955 # FIXME - insert some real tests, host_os isn't really good enough
13956   case $host_os in
13957    darwin*)
13958        if test -n "$STRIP" ; then
13959          striplib="$STRIP -x"
13960          echo "$as_me:$LINENO: result: yes" >&5
13961 echo "${ECHO_T}yes" >&6
13962        else
13963   echo "$as_me:$LINENO: result: no" >&5
13964 echo "${ECHO_T}no" >&6
13965 fi
13966        ;;
13967    *)
13968   echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6
13970     ;;
13971   esac
13972 fi
13973
13974 if test "x$enable_dlopen" != xyes; then
13975   enable_dlopen=unknown
13976   enable_dlopen_self=unknown
13977   enable_dlopen_self_static=unknown
13978 else
13979   lt_cv_dlopen=no
13980   lt_cv_dlopen_libs=
13981
13982   case $host_os in
13983   beos*)
13984     lt_cv_dlopen="load_add_on"
13985     lt_cv_dlopen_libs=
13986     lt_cv_dlopen_self=yes
13987     ;;
13988
13989   mingw* | pw32*)
13990     lt_cv_dlopen="LoadLibrary"
13991     lt_cv_dlopen_libs=
13992    ;;
13993
13994   cygwin*)
13995     lt_cv_dlopen="dlopen"
13996     lt_cv_dlopen_libs=
13997    ;;
13998
13999   darwin*)
14000   # if libdl is installed we need to link against it
14001     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14002 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14003 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ldl  $LIBS"
14008 cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015 /* Override any gcc2 internal prototype to avoid an error.  */
14016 #ifdef __cplusplus
14017 extern "C"
14018 #endif
14019 /* We use char because int might match the return type of a gcc2
14020    builtin and then its argument prototype would still apply.  */
14021 char dlopen ();
14022 int
14023 main ()
14024 {
14025 dlopen ();
14026   ;
14027   return 0;
14028 }
14029 _ACEOF
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14032   (eval $ac_link) 2>conftest.er1
14033   ac_status=$?
14034   grep -v '^ *+' conftest.er1 >conftest.err
14035   rm -f conftest.er1
14036   cat conftest.err >&5
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -z "$ac_c_werror_flag"
14040                          || test ! -s conftest.err'
14041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042   (eval $ac_try) 2>&5
14043   ac_status=$?
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); }; } &&
14046          { ac_try='test -s conftest$ac_exeext'
14047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048   (eval $ac_try) 2>&5
14049   ac_status=$?
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); }; }; then
14052   ac_cv_lib_dl_dlopen=yes
14053 else
14054   echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 ac_cv_lib_dl_dlopen=no
14058 fi
14059 rm -f conftest.err conftest.$ac_objext \
14060       conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14062 fi
14063 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14065 if test $ac_cv_lib_dl_dlopen = yes; then
14066   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14067 else
14068
14069     lt_cv_dlopen="dyld"
14070     lt_cv_dlopen_libs=
14071     lt_cv_dlopen_self=yes
14072
14073 fi
14074
14075    ;;
14076
14077   *)
14078     echo "$as_me:$LINENO: checking for shl_load" >&5
14079 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14080 if test "${ac_cv_func_shl_load+set}" = set; then
14081   echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083   cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14091 #define shl_load innocuous_shl_load
14092
14093 /* System header to define __stub macros and hopefully few prototypes,
14094     which can conflict with char shl_load (); below.
14095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14096     <limits.h> exists even on freestanding compilers.  */
14097
14098 #ifdef __STDC__
14099 # include <limits.h>
14100 #else
14101 # include <assert.h>
14102 #endif
14103
14104 #undef shl_load
14105
14106 /* Override any gcc2 internal prototype to avoid an error.  */
14107 #ifdef __cplusplus
14108 extern "C"
14109 {
14110 #endif
14111 /* We use char because int might match the return type of a gcc2
14112    builtin and then its argument prototype would still apply.  */
14113 char shl_load ();
14114 /* The GNU C library defines this for functions which it implements
14115     to always fail with ENOSYS.  Some functions are actually named
14116     something starting with __ and the normal name is an alias.  */
14117 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14118 choke me
14119 #else
14120 char (*f) () = shl_load;
14121 #endif
14122 #ifdef __cplusplus
14123 }
14124 #endif
14125
14126 int
14127 main ()
14128 {
14129 return f != shl_load;
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136   (eval $ac_link) 2>conftest.er1
14137   ac_status=$?
14138   grep -v '^ *+' conftest.er1 >conftest.err
14139   rm -f conftest.er1
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } &&
14143          { ac_try='test -z "$ac_c_werror_flag"
14144                          || test ! -s conftest.err'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest$ac_exeext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_func_shl_load=yes
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_func_shl_load=no
14162 fi
14163 rm -f conftest.err conftest.$ac_objext \
14164       conftest$ac_exeext conftest.$ac_ext
14165 fi
14166 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14167 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14168 if test $ac_cv_func_shl_load = yes; then
14169   lt_cv_dlopen="shl_load"
14170 else
14171   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14172 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14173 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   ac_check_lib_save_LIBS=$LIBS
14177 LIBS="-ldld  $LIBS"
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184
14185 /* Override any gcc2 internal prototype to avoid an error.  */
14186 #ifdef __cplusplus
14187 extern "C"
14188 #endif
14189 /* We use char because int might match the return type of a gcc2
14190    builtin and then its argument prototype would still apply.  */
14191 char shl_load ();
14192 int
14193 main ()
14194 {
14195 shl_load ();
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14202   (eval $ac_link) 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } &&
14209          { ac_try='test -z "$ac_c_werror_flag"
14210                          || test ! -s conftest.err'
14211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212   (eval $ac_try) 2>&5
14213   ac_status=$?
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); }; } &&
14216          { ac_try='test -s conftest$ac_exeext'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; }; then
14222   ac_cv_lib_dld_shl_load=yes
14223 else
14224   echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14226
14227 ac_cv_lib_dld_shl_load=no
14228 fi
14229 rm -f conftest.err conftest.$ac_objext \
14230       conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14232 fi
14233 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14234 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14235 if test $ac_cv_lib_dld_shl_load = yes; then
14236   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14237 else
14238   echo "$as_me:$LINENO: checking for dlopen" >&5
14239 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14240 if test "${ac_cv_func_dlopen+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   cat >conftest.$ac_ext <<_ACEOF
14244 /* confdefs.h.  */
14245 _ACEOF
14246 cat confdefs.h >>conftest.$ac_ext
14247 cat >>conftest.$ac_ext <<_ACEOF
14248 /* end confdefs.h.  */
14249 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14251 #define dlopen innocuous_dlopen
14252
14253 /* System header to define __stub macros and hopefully few prototypes,
14254     which can conflict with char dlopen (); below.
14255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14256     <limits.h> exists even on freestanding compilers.  */
14257
14258 #ifdef __STDC__
14259 # include <limits.h>
14260 #else
14261 # include <assert.h>
14262 #endif
14263
14264 #undef dlopen
14265
14266 /* Override any gcc2 internal prototype to avoid an error.  */
14267 #ifdef __cplusplus
14268 extern "C"
14269 {
14270 #endif
14271 /* We use char because int might match the return type of a gcc2
14272    builtin and then its argument prototype would still apply.  */
14273 char dlopen ();
14274 /* The GNU C library defines this for functions which it implements
14275     to always fail with ENOSYS.  Some functions are actually named
14276     something starting with __ and the normal name is an alias.  */
14277 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14278 choke me
14279 #else
14280 char (*f) () = dlopen;
14281 #endif
14282 #ifdef __cplusplus
14283 }
14284 #endif
14285
14286 int
14287 main ()
14288 {
14289 return f != dlopen;
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14296   (eval $ac_link) 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -z "$ac_c_werror_flag"
14304                          || test ! -s conftest.err'
14305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306   (eval $ac_try) 2>&5
14307   ac_status=$?
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); }; } &&
14310          { ac_try='test -s conftest$ac_exeext'
14311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312   (eval $ac_try) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); }; }; then
14316   ac_cv_func_dlopen=yes
14317 else
14318   echo "$as_me: failed program was:" >&5
14319 sed 's/^/| /' conftest.$ac_ext >&5
14320
14321 ac_cv_func_dlopen=no
14322 fi
14323 rm -f conftest.err conftest.$ac_objext \
14324       conftest$ac_exeext conftest.$ac_ext
14325 fi
14326 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14327 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14328 if test $ac_cv_func_dlopen = yes; then
14329   lt_cv_dlopen="dlopen"
14330 else
14331   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14332 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14334   echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336   ac_check_lib_save_LIBS=$LIBS
14337 LIBS="-ldl  $LIBS"
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h.  */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h.  */
14344
14345 /* Override any gcc2 internal prototype to avoid an error.  */
14346 #ifdef __cplusplus
14347 extern "C"
14348 #endif
14349 /* We use char because int might match the return type of a gcc2
14350    builtin and then its argument prototype would still apply.  */
14351 char dlopen ();
14352 int
14353 main ()
14354 {
14355 dlopen ();
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest.$ac_objext conftest$ac_exeext
14361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14362   (eval $ac_link) 2>conftest.er1
14363   ac_status=$?
14364   grep -v '^ *+' conftest.er1 >conftest.err
14365   rm -f conftest.er1
14366   cat conftest.err >&5
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); } &&
14369          { ac_try='test -z "$ac_c_werror_flag"
14370                          || test ! -s conftest.err'
14371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14372   (eval $ac_try) 2>&5
14373   ac_status=$?
14374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375   (exit $ac_status); }; } &&
14376          { ac_try='test -s conftest$ac_exeext'
14377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378   (eval $ac_try) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); }; }; then
14382   ac_cv_lib_dl_dlopen=yes
14383 else
14384   echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ac_cv_lib_dl_dlopen=no
14388 fi
14389 rm -f conftest.err conftest.$ac_objext \
14390       conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14392 fi
14393 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14394 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14395 if test $ac_cv_lib_dl_dlopen = yes; then
14396   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14397 else
14398   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14399 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14400 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   ac_check_lib_save_LIBS=$LIBS
14404 LIBS="-lsvld  $LIBS"
14405 cat >conftest.$ac_ext <<_ACEOF
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411
14412 /* Override any gcc2 internal prototype to avoid an error.  */
14413 #ifdef __cplusplus
14414 extern "C"
14415 #endif
14416 /* We use char because int might match the return type of a gcc2
14417    builtin and then its argument prototype would still apply.  */
14418 char dlopen ();
14419 int
14420 main ()
14421 {
14422 dlopen ();
14423   ;
14424   return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429   (eval $ac_link) 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_c_werror_flag"
14437                          || test ! -s conftest.err'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; } &&
14443          { ac_try='test -s conftest$ac_exeext'
14444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445   (eval $ac_try) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); }; }; then
14449   ac_cv_lib_svld_dlopen=yes
14450 else
14451   echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 ac_cv_lib_svld_dlopen=no
14455 fi
14456 rm -f conftest.err conftest.$ac_objext \
14457       conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14459 fi
14460 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14461 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14462 if test $ac_cv_lib_svld_dlopen = yes; then
14463   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14464 else
14465   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14466 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14467 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   ac_check_lib_save_LIBS=$LIBS
14471 LIBS="-ldld  $LIBS"
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478
14479 /* Override any gcc2 internal prototype to avoid an error.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 /* We use char because int might match the return type of a gcc2
14484    builtin and then its argument prototype would still apply.  */
14485 char dld_link ();
14486 int
14487 main ()
14488 {
14489 dld_link ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496   (eval $ac_link) 2>conftest.er1
14497   ac_status=$?
14498   grep -v '^ *+' conftest.er1 >conftest.err
14499   rm -f conftest.er1
14500   cat conftest.err >&5
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); } &&
14503          { ac_try='test -z "$ac_c_werror_flag"
14504                          || test ! -s conftest.err'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; } &&
14510          { ac_try='test -s conftest$ac_exeext'
14511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512   (eval $ac_try) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   ac_cv_lib_dld_dld_link=yes
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_cv_lib_dld_dld_link=no
14522 fi
14523 rm -f conftest.err conftest.$ac_objext \
14524       conftest$ac_exeext conftest.$ac_ext
14525 LIBS=$ac_check_lib_save_LIBS
14526 fi
14527 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14528 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14529 if test $ac_cv_lib_dld_dld_link = yes; then
14530   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14531 fi
14532
14533
14534 fi
14535
14536
14537 fi
14538
14539
14540 fi
14541
14542
14543 fi
14544
14545
14546 fi
14547
14548     ;;
14549   esac
14550
14551   if test "x$lt_cv_dlopen" != xno; then
14552     enable_dlopen=yes
14553   else
14554     enable_dlopen=no
14555   fi
14556
14557   case $lt_cv_dlopen in
14558   dlopen)
14559     save_CPPFLAGS="$CPPFLAGS"
14560     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14561
14562     save_LDFLAGS="$LDFLAGS"
14563     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14564
14565     save_LIBS="$LIBS"
14566     LIBS="$lt_cv_dlopen_libs $LIBS"
14567
14568     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14569 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14570 if test "${lt_cv_dlopen_self+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573           if test "$cross_compiling" = yes; then :
14574   lt_cv_dlopen_self=cross
14575 else
14576   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14577   lt_status=$lt_dlunknown
14578   cat > conftest.$ac_ext <<EOF
14579 #line 14579 "configure"
14580 #include "confdefs.h"
14581
14582 #if HAVE_DLFCN_H
14583 #include <dlfcn.h>
14584 #endif
14585
14586 #include <stdio.h>
14587
14588 #ifdef RTLD_GLOBAL
14589 #  define LT_DLGLOBAL           RTLD_GLOBAL
14590 #else
14591 #  ifdef DL_GLOBAL
14592 #    define LT_DLGLOBAL         DL_GLOBAL
14593 #  else
14594 #    define LT_DLGLOBAL         0
14595 #  endif
14596 #endif
14597
14598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14599    find out it does not work in some platform. */
14600 #ifndef LT_DLLAZY_OR_NOW
14601 #  ifdef RTLD_LAZY
14602 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14603 #  else
14604 #    ifdef DL_LAZY
14605 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14606 #    else
14607 #      ifdef RTLD_NOW
14608 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14609 #      else
14610 #        ifdef DL_NOW
14611 #          define LT_DLLAZY_OR_NOW      DL_NOW
14612 #        else
14613 #          define LT_DLLAZY_OR_NOW      0
14614 #        endif
14615 #      endif
14616 #    endif
14617 #  endif
14618 #endif
14619
14620 #ifdef __cplusplus
14621 extern "C" void exit (int);
14622 #endif
14623
14624 void fnord() { int i=42;}
14625 int main ()
14626 {
14627   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14628   int status = $lt_dlunknown;
14629
14630   if (self)
14631     {
14632       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14633       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14634       /* dlclose (self); */
14635     }
14636
14637     exit (status);
14638 }
14639 EOF
14640   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641   (eval $ac_link) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14645     (./conftest; exit; ) 2>/dev/null
14646     lt_status=$?
14647     case x$lt_status in
14648       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14649       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14650       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14651     esac
14652   else :
14653     # compilation failed
14654     lt_cv_dlopen_self=no
14655   fi
14656 fi
14657 rm -fr conftest*
14658
14659
14660 fi
14661 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14662 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14663
14664     if test "x$lt_cv_dlopen_self" = xyes; then
14665       LDFLAGS="$LDFLAGS $link_static_flag"
14666       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14667 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14668 if test "${lt_cv_dlopen_self_static+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671           if test "$cross_compiling" = yes; then :
14672   lt_cv_dlopen_self_static=cross
14673 else
14674   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14675   lt_status=$lt_dlunknown
14676   cat > conftest.$ac_ext <<EOF
14677 #line 14677 "configure"
14678 #include "confdefs.h"
14679
14680 #if HAVE_DLFCN_H
14681 #include <dlfcn.h>
14682 #endif
14683
14684 #include <stdio.h>
14685
14686 #ifdef RTLD_GLOBAL
14687 #  define LT_DLGLOBAL           RTLD_GLOBAL
14688 #else
14689 #  ifdef DL_GLOBAL
14690 #    define LT_DLGLOBAL         DL_GLOBAL
14691 #  else
14692 #    define LT_DLGLOBAL         0
14693 #  endif
14694 #endif
14695
14696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14697    find out it does not work in some platform. */
14698 #ifndef LT_DLLAZY_OR_NOW
14699 #  ifdef RTLD_LAZY
14700 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14701 #  else
14702 #    ifdef DL_LAZY
14703 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14704 #    else
14705 #      ifdef RTLD_NOW
14706 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14707 #      else
14708 #        ifdef DL_NOW
14709 #          define LT_DLLAZY_OR_NOW      DL_NOW
14710 #        else
14711 #          define LT_DLLAZY_OR_NOW      0
14712 #        endif
14713 #      endif
14714 #    endif
14715 #  endif
14716 #endif
14717
14718 #ifdef __cplusplus
14719 extern "C" void exit (int);
14720 #endif
14721
14722 void fnord() { int i=42;}
14723 int main ()
14724 {
14725   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14726   int status = $lt_dlunknown;
14727
14728   if (self)
14729     {
14730       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14731       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14732       /* dlclose (self); */
14733     }
14734
14735     exit (status);
14736 }
14737 EOF
14738   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739   (eval $ac_link) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14743     (./conftest; exit; ) 2>/dev/null
14744     lt_status=$?
14745     case x$lt_status in
14746       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14747       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14748       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14749     esac
14750   else :
14751     # compilation failed
14752     lt_cv_dlopen_self_static=no
14753   fi
14754 fi
14755 rm -fr conftest*
14756
14757
14758 fi
14759 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14760 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14761     fi
14762
14763     CPPFLAGS="$save_CPPFLAGS"
14764     LDFLAGS="$save_LDFLAGS"
14765     LIBS="$save_LIBS"
14766     ;;
14767   esac
14768
14769   case $lt_cv_dlopen_self in
14770   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14771   *) enable_dlopen_self=unknown ;;
14772   esac
14773
14774   case $lt_cv_dlopen_self_static in
14775   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14776   *) enable_dlopen_self_static=unknown ;;
14777   esac
14778 fi
14779
14780
14781 # Report which librarie types wil actually be built
14782 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14783 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14784 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14785 echo "${ECHO_T}$can_build_shared" >&6
14786
14787 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14788 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14789 test "$can_build_shared" = "no" && enable_shared=no
14790
14791 # On AIX, shared libraries and static libraries use the same namespace, and
14792 # are all built from PIC.
14793 case "$host_os" in
14794 aix3*)
14795   test "$enable_shared" = yes && enable_static=no
14796   if test -n "$RANLIB"; then
14797     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14798     postinstall_cmds='$RANLIB $lib'
14799   fi
14800   ;;
14801
14802 aix4* | aix5*)
14803   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14804     test "$enable_shared" = yes && enable_static=no
14805   fi
14806     ;;
14807 esac
14808 echo "$as_me:$LINENO: result: $enable_shared" >&5
14809 echo "${ECHO_T}$enable_shared" >&6
14810
14811 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14812 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14813 # Make sure either enable_shared or enable_static is yes.
14814 test "$enable_shared" = yes || enable_static=yes
14815 echo "$as_me:$LINENO: result: $enable_static" >&5
14816 echo "${ECHO_T}$enable_static" >&6
14817
14818 # The else clause should only fire when bootstrapping the
14819 # libtool distribution, otherwise you forgot to ship ltmain.sh
14820 # with your package, and you will get complaints that there are
14821 # no rules to generate ltmain.sh.
14822 if test -f "$ltmain"; then
14823   # See if we are running on zsh, and set the options which allow our commands through
14824   # without removal of \ escapes.
14825   if test -n "${ZSH_VERSION+set}" ; then
14826     setopt NO_GLOB_SUBST
14827   fi
14828   # Now quote all the things that may contain metacharacters while being
14829   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14830   # variables and quote the copies for generation of the libtool script.
14831   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14832     SED SHELL STRIP \
14833     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14834     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14835     deplibs_check_method reload_flag reload_cmds need_locks \
14836     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14837     lt_cv_sys_global_symbol_to_c_name_address \
14838     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14839     old_postinstall_cmds old_postuninstall_cmds \
14840     compiler \
14841     CC \
14842     LD \
14843     lt_prog_compiler_wl \
14844     lt_prog_compiler_pic \
14845     lt_prog_compiler_static \
14846     lt_prog_compiler_no_builtin_flag \
14847     export_dynamic_flag_spec \
14848     thread_safe_flag_spec \
14849     whole_archive_flag_spec \
14850     enable_shared_with_static_runtimes \
14851     old_archive_cmds \
14852     old_archive_from_new_cmds \
14853     predep_objects \
14854     postdep_objects \
14855     predeps \
14856     postdeps \
14857     compiler_lib_search_path \
14858     archive_cmds \
14859     archive_expsym_cmds \
14860     postinstall_cmds \
14861     postuninstall_cmds \
14862     old_archive_from_expsyms_cmds \
14863     allow_undefined_flag \
14864     no_undefined_flag \
14865     export_symbols_cmds \
14866     hardcode_libdir_flag_spec \
14867     hardcode_libdir_flag_spec_ld \
14868     hardcode_libdir_separator \
14869     hardcode_automatic \
14870     module_cmds \
14871     module_expsym_cmds \
14872     lt_cv_prog_compiler_c_o \
14873     exclude_expsyms \
14874     include_expsyms; do
14875
14876     case $var in
14877     old_archive_cmds | \
14878     old_archive_from_new_cmds | \
14879     archive_cmds | \
14880     archive_expsym_cmds | \
14881     module_cmds | \
14882     module_expsym_cmds | \
14883     old_archive_from_expsyms_cmds | \
14884     export_symbols_cmds | \
14885     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14886     postinstall_cmds | postuninstall_cmds | \
14887     old_postinstall_cmds | old_postuninstall_cmds | \
14888     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14889       # Double-quote double-evaled strings.
14890       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14891       ;;
14892     *)
14893       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14894       ;;
14895     esac
14896   done
14897
14898   case $lt_echo in
14899   *'\$0 --fallback-echo"')
14900     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14901     ;;
14902   esac
14903
14904 cfgfile="${ofile}T"
14905   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14906   $rm -f "$cfgfile"
14907   { echo "$as_me:$LINENO: creating $ofile" >&5
14908 echo "$as_me: creating $ofile" >&6;}
14909
14910   cat <<__EOF__ >> "$cfgfile"
14911 #! $SHELL
14912
14913 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14914 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14916 #
14917 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14918 # Free Software Foundation, Inc.
14919 #
14920 # This file is part of GNU Libtool:
14921 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14922 #
14923 # This program is free software; you can redistribute it and/or modify
14924 # it under the terms of the GNU General Public License as published by
14925 # the Free Software Foundation; either version 2 of the License, or
14926 # (at your option) any later version.
14927 #
14928 # This program is distributed in the hope that it will be useful, but
14929 # WITHOUT ANY WARRANTY; without even the implied warranty of
14930 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14931 # General Public License for more details.
14932 #
14933 # You should have received a copy of the GNU General Public License
14934 # along with this program; if not, write to the Free Software
14935 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14936 #
14937 # As a special exception to the GNU General Public License, if you
14938 # distribute this file as part of a program that contains a
14939 # configuration script generated by Autoconf, you may include it under
14940 # the same distribution terms that you use for the rest of that program.
14941
14942 # A sed program that does not truncate output.
14943 SED=$lt_SED
14944
14945 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14946 Xsed="$SED -e s/^X//"
14947
14948 # The HP-UX ksh and POSIX shell print the target directory to stdout
14949 # if CDPATH is set.
14950 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14951
14952 # The names of the tagged configurations supported by this script.
14953 available_tags=
14954
14955 # ### BEGIN LIBTOOL CONFIG
14956
14957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14958
14959 # Shell to use when invoking shell scripts.
14960 SHELL=$lt_SHELL
14961
14962 # Whether or not to build shared libraries.
14963 build_libtool_libs=$enable_shared
14964
14965 # Whether or not to build static libraries.
14966 build_old_libs=$enable_static
14967
14968 # Whether or not to add -lc for building shared libraries.
14969 build_libtool_need_lc=$archive_cmds_need_lc
14970
14971 # Whether or not to disallow shared libs when runtime libs are static
14972 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14973
14974 # Whether or not to optimize for fast installation.
14975 fast_install=$enable_fast_install
14976
14977 # The host system.
14978 host_alias=$host_alias
14979 host=$host
14980
14981 # An echo program that does not interpret backslashes.
14982 echo=$lt_echo
14983
14984 # The archiver.
14985 AR=$lt_AR
14986 AR_FLAGS=$lt_AR_FLAGS
14987
14988 # A C compiler.
14989 LTCC=$lt_LTCC
14990
14991 # A language-specific compiler.
14992 CC=$lt_compiler
14993
14994 # Is the compiler the GNU C compiler?
14995 with_gcc=$GCC
14996
14997 # An ERE matcher.
14998 EGREP=$lt_EGREP
14999
15000 # The linker used to build libraries.
15001 LD=$lt_LD
15002
15003 # Whether we need hard or soft links.
15004 LN_S=$lt_LN_S
15005
15006 # A BSD-compatible nm program.
15007 NM=$lt_NM
15008
15009 # A symbol stripping program
15010 STRIP=$lt_STRIP
15011
15012 # Used to examine libraries when file_magic_cmd begins "file"
15013 MAGIC_CMD=$MAGIC_CMD
15014
15015 # Used on cygwin: DLL creation program.
15016 DLLTOOL="$DLLTOOL"
15017
15018 # Used on cygwin: object dumper.
15019 OBJDUMP="$OBJDUMP"
15020
15021 # Used on cygwin: assembler.
15022 AS="$AS"
15023
15024 # The name of the directory that contains temporary libtool files.
15025 objdir=$objdir
15026
15027 # How to create reloadable object files.
15028 reload_flag=$lt_reload_flag
15029 reload_cmds=$lt_reload_cmds
15030
15031 # How to pass a linker flag through the compiler.
15032 wl=$lt_lt_prog_compiler_wl
15033
15034 # Object file suffix (normally "o").
15035 objext="$ac_objext"
15036
15037 # Old archive suffix (normally "a").
15038 libext="$libext"
15039
15040 # Shared library suffix (normally ".so").
15041 shrext_cmds='$shrext_cmds'
15042
15043 # Executable file suffix (normally "").
15044 exeext="$exeext"
15045
15046 # Additional compiler flags for building library objects.
15047 pic_flag=$lt_lt_prog_compiler_pic
15048 pic_mode=$pic_mode
15049
15050 # What is the maximum length of a command?
15051 max_cmd_len=$lt_cv_sys_max_cmd_len
15052
15053 # Does compiler simultaneously support -c and -o options?
15054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15055
15056 # Must we lock files when doing compilation ?
15057 need_locks=$lt_need_locks
15058
15059 # Do we need the lib prefix for modules?
15060 need_lib_prefix=$need_lib_prefix
15061
15062 # Do we need a version for libraries?
15063 need_version=$need_version
15064
15065 # Whether dlopen is supported.
15066 dlopen_support=$enable_dlopen
15067
15068 # Whether dlopen of programs is supported.
15069 dlopen_self=$enable_dlopen_self
15070
15071 # Whether dlopen of statically linked programs is supported.
15072 dlopen_self_static=$enable_dlopen_self_static
15073
15074 # Compiler flag to prevent dynamic linking.
15075 link_static_flag=$lt_lt_prog_compiler_static
15076
15077 # Compiler flag to turn off builtin functions.
15078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15079
15080 # Compiler flag to allow reflexive dlopens.
15081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15082
15083 # Compiler flag to generate shared objects directly from archives.
15084 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15085
15086 # Compiler flag to generate thread-safe objects.
15087 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15088
15089 # Library versioning type.
15090 version_type=$version_type
15091
15092 # Format of library name prefix.
15093 libname_spec=$lt_libname_spec
15094
15095 # List of archive names.  First name is the real one, the rest are links.
15096 # The last name is the one that the linker finds with -lNAME.
15097 library_names_spec=$lt_library_names_spec
15098
15099 # The coded name of the library, if different from the real name.
15100 soname_spec=$lt_soname_spec
15101
15102 # Commands used to build and install an old-style archive.
15103 RANLIB=$lt_RANLIB
15104 old_archive_cmds=$lt_old_archive_cmds
15105 old_postinstall_cmds=$lt_old_postinstall_cmds
15106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15107
15108 # Create an old-style archive from a shared archive.
15109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15110
15111 # Create a temporary old-style archive to link instead of a shared archive.
15112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15113
15114 # Commands used to build and install a shared archive.
15115 archive_cmds=$lt_archive_cmds
15116 archive_expsym_cmds=$lt_archive_expsym_cmds
15117 postinstall_cmds=$lt_postinstall_cmds
15118 postuninstall_cmds=$lt_postuninstall_cmds
15119
15120 # Commands used to build a loadable module (assumed same as above if empty)
15121 module_cmds=$lt_module_cmds
15122 module_expsym_cmds=$lt_module_expsym_cmds
15123
15124 # Commands to strip libraries.
15125 old_striplib=$lt_old_striplib
15126 striplib=$lt_striplib
15127
15128 # Dependencies to place before the objects being linked to create a
15129 # shared library.
15130 predep_objects=$lt_predep_objects
15131
15132 # Dependencies to place after the objects being linked to create a
15133 # shared library.
15134 postdep_objects=$lt_postdep_objects
15135
15136 # Dependencies to place before the objects being linked to create a
15137 # shared library.
15138 predeps=$lt_predeps
15139
15140 # Dependencies to place after the objects being linked to create a
15141 # shared library.
15142 postdeps=$lt_postdeps
15143
15144 # The library search path used internally by the compiler when linking
15145 # a shared library.
15146 compiler_lib_search_path=$lt_compiler_lib_search_path
15147
15148 # Method to check whether dependent libraries are shared objects.
15149 deplibs_check_method=$lt_deplibs_check_method
15150
15151 # Command to use when deplibs_check_method == file_magic.
15152 file_magic_cmd=$lt_file_magic_cmd
15153
15154 # Flag that allows shared libraries with undefined symbols to be built.
15155 allow_undefined_flag=$lt_allow_undefined_flag
15156
15157 # Flag that forces no undefined symbols.
15158 no_undefined_flag=$lt_no_undefined_flag
15159
15160 # Commands used to finish a libtool library installation in a directory.
15161 finish_cmds=$lt_finish_cmds
15162
15163 # Same as above, but a single script fragment to be evaled but not shown.
15164 finish_eval=$lt_finish_eval
15165
15166 # Take the output of nm and produce a listing of raw symbols and C names.
15167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15168
15169 # Transform the output of nm in a proper C declaration
15170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15171
15172 # Transform the output of nm in a C name address pair
15173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15174
15175 # This is the shared library runtime path variable.
15176 runpath_var=$runpath_var
15177
15178 # This is the shared library path variable.
15179 shlibpath_var=$shlibpath_var
15180
15181 # Is shlibpath searched before the hard-coded library search path?
15182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15183
15184 # How to hardcode a shared library path into an executable.
15185 hardcode_action=$hardcode_action
15186
15187 # Whether we should hardcode library paths into libraries.
15188 hardcode_into_libs=$hardcode_into_libs
15189
15190 # Flag to hardcode \$libdir into a binary during linking.
15191 # This must work even if \$libdir does not exist.
15192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15193
15194 # If ld is used when linking, flag to hardcode \$libdir into
15195 # a binary during linking. This must work even if \$libdir does
15196 # not exist.
15197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15198
15199 # Whether we need a single -rpath flag with a separated argument.
15200 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15201
15202 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15203 # resulting binary.
15204 hardcode_direct=$hardcode_direct
15205
15206 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15207 # resulting binary.
15208 hardcode_minus_L=$hardcode_minus_L
15209
15210 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15211 # the resulting binary.
15212 hardcode_shlibpath_var=$hardcode_shlibpath_var
15213
15214 # Set to yes if building a shared library automatically hardcodes DIR into the library
15215 # and all subsequent libraries and executables linked against it.
15216 hardcode_automatic=$hardcode_automatic
15217
15218 # Variables whose values should be saved in libtool wrapper scripts and
15219 # restored at relink time.
15220 variables_saved_for_relink="$variables_saved_for_relink"
15221
15222 # Whether libtool must link a program against all its dependency libraries.
15223 link_all_deplibs=$link_all_deplibs
15224
15225 # Compile-time system search path for libraries
15226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15227
15228 # Run-time system search path for libraries
15229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15230
15231 # Fix the shell variable \$srcfile for the compiler.
15232 fix_srcfile_path="$fix_srcfile_path"
15233
15234 # Set to yes if exported symbols are required.
15235 always_export_symbols=$always_export_symbols
15236
15237 # The commands to list exported symbols.
15238 export_symbols_cmds=$lt_export_symbols_cmds
15239
15240 # The commands to extract the exported symbol list from a shared archive.
15241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15242
15243 # Symbols that should not be listed in the preloaded symbols.
15244 exclude_expsyms=$lt_exclude_expsyms
15245
15246 # Symbols that must always be exported.
15247 include_expsyms=$lt_include_expsyms
15248
15249 # ### END LIBTOOL CONFIG
15250
15251 __EOF__
15252
15253
15254   case $host_os in
15255   aix3*)
15256     cat <<\EOF >> "$cfgfile"
15257
15258 # AIX sometimes has problems with the GCC collect2 program.  For some
15259 # reason, if we set the COLLECT_NAMES environment variable, the problems
15260 # vanish in a puff of smoke.
15261 if test "X${COLLECT_NAMES+set}" != Xset; then
15262   COLLECT_NAMES=
15263   export COLLECT_NAMES
15264 fi
15265 EOF
15266     ;;
15267   esac
15268
15269   # We use sed instead of cat because bash on DJGPP gets confused if
15270   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15271   # text mode, it properly converts lines to CR/LF.  This bash problem
15272   # is reportedly fixed, but why not run on old versions too?
15273   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15274
15275   mv -f "$cfgfile" "$ofile" || \
15276     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15277   chmod +x "$ofile"
15278
15279 else
15280   # If there is no Makefile yet, we rely on a make rule to execute
15281   # `config.status --recheck' to rerun these tests and create the
15282   # libtool script then.
15283   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15284   if test -f "$ltmain_in"; then
15285     test -f Makefile && make "$ltmain"
15286   fi
15287 fi
15288
15289
15290 ac_ext=c
15291 ac_cpp='$CPP $CPPFLAGS'
15292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15295
15296 CC="$lt_save_CC"
15297
15298
15299 # Check whether --with-tags or --without-tags was given.
15300 if test "${with_tags+set}" = set; then
15301   withval="$with_tags"
15302   tagnames="$withval"
15303 fi;
15304
15305 if test -f "$ltmain" && test -n "$tagnames"; then
15306   if test ! -f "${ofile}"; then
15307     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15308 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15309   fi
15310
15311   if test -z "$LTCC"; then
15312     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15313     if test -z "$LTCC"; then
15314       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15315 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15316     else
15317       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15318 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15319     fi
15320   fi
15321
15322   # Extract list of available tagged configurations in $ofile.
15323   # Note that this assumes the entire list is on one line.
15324   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15325
15326   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15327   for tagname in $tagnames; do
15328     IFS="$lt_save_ifs"
15329     # Check whether tagname contains only valid characters
15330     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15331     "") ;;
15332     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15333 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15334    { (exit 1); exit 1; }; }
15335         ;;
15336     esac
15337
15338     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15339     then
15340       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15341 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15342    { (exit 1); exit 1; }; }
15343     fi
15344
15345     # Update the list of available tags.
15346     if test -n "$tagname"; then
15347       echo appending configuration tag "$tagname" to $ofile
15348
15349       case $tagname in
15350       CXX)
15351         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15352             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15353             (test "X$CXX" != "Xg++"))) ; then
15354           ac_ext=cc
15355 ac_cpp='$CXXCPP $CPPFLAGS'
15356 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15357 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15358 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15359
15360
15361
15362
15363 archive_cmds_need_lc_CXX=no
15364 allow_undefined_flag_CXX=
15365 always_export_symbols_CXX=no
15366 archive_expsym_cmds_CXX=
15367 export_dynamic_flag_spec_CXX=
15368 hardcode_direct_CXX=no
15369 hardcode_libdir_flag_spec_CXX=
15370 hardcode_libdir_flag_spec_ld_CXX=
15371 hardcode_libdir_separator_CXX=
15372 hardcode_minus_L_CXX=no
15373 hardcode_automatic_CXX=no
15374 module_cmds_CXX=
15375 module_expsym_cmds_CXX=
15376 link_all_deplibs_CXX=unknown
15377 old_archive_cmds_CXX=$old_archive_cmds
15378 no_undefined_flag_CXX=
15379 whole_archive_flag_spec_CXX=
15380 enable_shared_with_static_runtimes_CXX=no
15381
15382 # Dependencies to place before and after the object being linked:
15383 predep_objects_CXX=
15384 postdep_objects_CXX=
15385 predeps_CXX=
15386 postdeps_CXX=
15387 compiler_lib_search_path_CXX=
15388
15389 # Source file extension for C++ test sources.
15390 ac_ext=cc
15391
15392 # Object file extension for compiled C++ test sources.
15393 objext=o
15394 objext_CXX=$objext
15395
15396 # Code to be used in simple compile tests
15397 lt_simple_compile_test_code="int some_variable = 0;\n"
15398
15399 # Code to be used in simple link tests
15400 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15401
15402 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15403
15404 # If no C compiler was specified, use CC.
15405 LTCC=${LTCC-"$CC"}
15406
15407 # Allow CC to be a program name with arguments.
15408 compiler=$CC
15409
15410
15411 # Allow CC to be a program name with arguments.
15412 lt_save_CC=$CC
15413 lt_save_LD=$LD
15414 lt_save_GCC=$GCC
15415 GCC=$GXX
15416 lt_save_with_gnu_ld=$with_gnu_ld
15417 lt_save_path_LD=$lt_cv_path_LD
15418 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15419   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15420 else
15421   unset lt_cv_prog_gnu_ld
15422 fi
15423 if test -n "${lt_cv_path_LDCXX+set}"; then
15424   lt_cv_path_LD=$lt_cv_path_LDCXX
15425 else
15426   unset lt_cv_path_LD
15427 fi
15428 test -z "${LDCXX+set}" || LD=$LDCXX
15429 CC=${CXX-"c++"}
15430 compiler=$CC
15431 compiler_CXX=$CC
15432 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15433
15434 # We don't want -fno-exception wen compiling C++ code, so set the
15435 # no_builtin_flag separately
15436 if test "$GXX" = yes; then
15437   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15438 else
15439   lt_prog_compiler_no_builtin_flag_CXX=
15440 fi
15441
15442 if test "$GXX" = yes; then
15443   # Set up default GNU C++ configuration
15444
15445
15446 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15447 if test "${with_gnu_ld+set}" = set; then
15448   withval="$with_gnu_ld"
15449   test "$withval" = no || with_gnu_ld=yes
15450 else
15451   with_gnu_ld=no
15452 fi;
15453 ac_prog=ld
15454 if test "$GCC" = yes; then
15455   # Check if gcc -print-prog-name=ld gives a path.
15456   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15457 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15458   case $host in
15459   *-*-mingw*)
15460     # gcc leaves a trailing carriage return which upsets mingw
15461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15462   *)
15463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15464   esac
15465   case $ac_prog in
15466     # Accept absolute paths.
15467     [\\/]* | ?:[\\/]*)
15468       re_direlt='/[^/][^/]*/\.\./'
15469       # Canonicalize the pathname of ld
15470       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15471       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15472         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15473       done
15474       test -z "$LD" && LD="$ac_prog"
15475       ;;
15476   "")
15477     # If it fails, then pretend we aren't using GCC.
15478     ac_prog=ld
15479     ;;
15480   *)
15481     # If it is relative, then search for the first ld in PATH.
15482     with_gnu_ld=unknown
15483     ;;
15484   esac
15485 elif test "$with_gnu_ld" = yes; then
15486   echo "$as_me:$LINENO: checking for GNU ld" >&5
15487 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15488 else
15489   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15490 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15491 fi
15492 if test "${lt_cv_path_LD+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   if test -z "$LD"; then
15496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15497   for ac_dir in $PATH; do
15498     IFS="$lt_save_ifs"
15499     test -z "$ac_dir" && ac_dir=.
15500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15501       lt_cv_path_LD="$ac_dir/$ac_prog"
15502       # Check to see if the program is GNU ld.  I'd rather use --version,
15503       # but apparently some GNU ld's only accept -v.
15504       # Break only if it was the GNU/non-GNU ld that we prefer.
15505       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15506       *GNU* | *'with BFD'*)
15507         test "$with_gnu_ld" != no && break
15508         ;;
15509       *)
15510         test "$with_gnu_ld" != yes && break
15511         ;;
15512       esac
15513     fi
15514   done
15515   IFS="$lt_save_ifs"
15516 else
15517   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15518 fi
15519 fi
15520
15521 LD="$lt_cv_path_LD"
15522 if test -n "$LD"; then
15523   echo "$as_me:$LINENO: result: $LD" >&5
15524 echo "${ECHO_T}$LD" >&6
15525 else
15526   echo "$as_me:$LINENO: result: no" >&5
15527 echo "${ECHO_T}no" >&6
15528 fi
15529 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15530 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15531    { (exit 1); exit 1; }; }
15532 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15533 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15534 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15535   echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15538 case `$LD -v 2>&1 </dev/null` in
15539 *GNU* | *'with BFD'*)
15540   lt_cv_prog_gnu_ld=yes
15541   ;;
15542 *)
15543   lt_cv_prog_gnu_ld=no
15544   ;;
15545 esac
15546 fi
15547 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15548 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15549 with_gnu_ld=$lt_cv_prog_gnu_ld
15550
15551
15552
15553   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15554   # archiving commands below assume that GNU ld is being used.
15555   if test "$with_gnu_ld" = yes; then
15556     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15557     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'
15558
15559     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15560     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15561
15562     # If archive_cmds runs LD, not CC, wlarc should be empty
15563     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15564     #     investigate it a little bit more. (MM)
15565     wlarc='${wl}'
15566
15567     # ancient GNU ld didn't support --whole-archive et. al.
15568     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15569         grep 'no-whole-archive' > /dev/null; then
15570       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15571     else
15572       whole_archive_flag_spec_CXX=
15573     fi
15574   else
15575     with_gnu_ld=no
15576     wlarc=
15577
15578     # A generic and very simple default shared library creation
15579     # command for GNU C++ for the case where it uses the native
15580     # linker, instead of GNU ld.  If possible, this setting should
15581     # overridden to take advantage of the native linker features on
15582     # the platform it is being used on.
15583     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15584   fi
15585
15586   # Commands to make compiler produce verbose output that lists
15587   # what "hidden" libraries, object files and flags are used when
15588   # linking a shared library.
15589   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15590
15591 else
15592   GXX=no
15593   with_gnu_ld=no
15594   wlarc=
15595 fi
15596
15597 # PORTME: fill in a description of your system's C++ link characteristics
15598 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15600 ld_shlibs_CXX=yes
15601 case $host_os in
15602   aix3*)
15603     # FIXME: insert proper C++ library support
15604     ld_shlibs_CXX=no
15605     ;;
15606   aix4* | aix5*)
15607     if test "$host_cpu" = ia64; then
15608       # On IA64, the linker does run time linking by default, so we don't
15609       # have to do anything special.
15610       aix_use_runtimelinking=no
15611       exp_sym_flag='-Bexport'
15612       no_entry_flag=""
15613     else
15614       aix_use_runtimelinking=no
15615
15616       # Test if we are trying to use run time linking or normal
15617       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15618       # need to do runtime linking.
15619       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15620         for ld_flag in $LDFLAGS; do
15621           case $ld_flag in
15622           *-brtl*)
15623             aix_use_runtimelinking=yes
15624             break
15625             ;;
15626           esac
15627         done
15628       esac
15629
15630       exp_sym_flag='-bexport'
15631       no_entry_flag='-bnoentry'
15632     fi
15633
15634     # When large executables or shared objects are built, AIX ld can
15635     # have problems creating the table of contents.  If linking a library
15636     # or program results in "error TOC overflow" add -mminimal-toc to
15637     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15638     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15639
15640     archive_cmds_CXX=''
15641     hardcode_direct_CXX=yes
15642     hardcode_libdir_separator_CXX=':'
15643     link_all_deplibs_CXX=yes
15644
15645     if test "$GXX" = yes; then
15646       case $host_os in aix4.012|aix4.012.*)
15647       # We only want to do this on AIX 4.2 and lower, the check
15648       # below for broken collect2 doesn't work under 4.3+
15649         collect2name=`${CC} -print-prog-name=collect2`
15650         if test -f "$collect2name" && \
15651            strings "$collect2name" | grep resolve_lib_name >/dev/null
15652         then
15653           # We have reworked collect2
15654           hardcode_direct_CXX=yes
15655         else
15656           # We have old collect2
15657           hardcode_direct_CXX=unsupported
15658           # It fails to find uninstalled libraries when the uninstalled
15659           # path is not listed in the libpath.  Setting hardcode_minus_L
15660           # to unsupported forces relinking
15661           hardcode_minus_L_CXX=yes
15662           hardcode_libdir_flag_spec_CXX='-L$libdir'
15663           hardcode_libdir_separator_CXX=
15664         fi
15665       esac
15666       shared_flag='-shared'
15667     else
15668       # not using gcc
15669       if test "$host_cpu" = ia64; then
15670         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15671         # chokes on -Wl,-G. The following line is correct:
15672         shared_flag='-G'
15673       else
15674         if test "$aix_use_runtimelinking" = yes; then
15675           shared_flag='${wl}-G'
15676         else
15677           shared_flag='${wl}-bM:SRE'
15678         fi
15679       fi
15680     fi
15681
15682     # It seems that -bexpall does not export symbols beginning with
15683     # underscore (_), so it is better to generate a list of symbols to export.
15684     always_export_symbols_CXX=yes
15685     if test "$aix_use_runtimelinking" = yes; then
15686       # Warning - without using the other runtime loading flags (-brtl),
15687       # -berok will link without error, but may produce a broken library.
15688       allow_undefined_flag_CXX='-berok'
15689       # Determine the default libpath from the value encoded in an empty executable.
15690       cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696
15697 int
15698 main ()
15699 {
15700
15701   ;
15702   return 0;
15703 }
15704 _ACEOF
15705 rm -f conftest.$ac_objext conftest$ac_exeext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15707   (eval $ac_link) 2>conftest.er1
15708   ac_status=$?
15709   grep -v '^ *+' conftest.er1 >conftest.err
15710   rm -f conftest.er1
15711   cat conftest.err >&5
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); } &&
15714          { ac_try='test -z "$ac_cxx_werror_flag"
15715                          || test ! -s conftest.err'
15716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717   (eval $ac_try) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; } &&
15721          { ac_try='test -s conftest$ac_exeext'
15722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723   (eval $ac_try) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727
15728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15729 }'`
15730 # Check for a 64-bit object if we didn't find anything.
15731 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; }
15732 }'`; fi
15733 else
15734   echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 fi
15738 rm -f conftest.err conftest.$ac_objext \
15739       conftest$ac_exeext conftest.$ac_ext
15740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15741
15742       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15743
15744       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"
15745      else
15746       if test "$host_cpu" = ia64; then
15747         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15748         allow_undefined_flag_CXX="-z nodefs"
15749         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"
15750       else
15751         # Determine the default libpath from the value encoded in an empty executable.
15752         cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h.  */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h.  */
15758
15759 int
15760 main ()
15761 {
15762
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15769   (eval $ac_link) 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -z "$ac_cxx_werror_flag"
15777                          || test ! -s conftest.err'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest$ac_exeext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789
15790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15791 }'`
15792 # Check for a 64-bit object if we didn't find anything.
15793 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; }
15794 }'`; fi
15795 else
15796   echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 fi
15800 rm -f conftest.err conftest.$ac_objext \
15801       conftest$ac_exeext conftest.$ac_ext
15802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15803
15804         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15805         # Warning - without using the other run time loading flags,
15806         # -berok will link without error, but may produce a broken library.
15807         no_undefined_flag_CXX=' ${wl}-bernotok'
15808         allow_undefined_flag_CXX=' ${wl}-berok'
15809         # -bexpall does not export symbols beginning with underscore (_)
15810         always_export_symbols_CXX=yes
15811         # Exported symbols can be pulled into shared objects from archives
15812         whole_archive_flag_spec_CXX=' '
15813         archive_cmds_need_lc_CXX=yes
15814         # This is similar to how AIX traditionally builds it's shared libraries.
15815         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'
15816       fi
15817     fi
15818     ;;
15819   chorus*)
15820     case $cc_basename in
15821       *)
15822         # FIXME: insert proper C++ library support
15823         ld_shlibs_CXX=no
15824         ;;
15825     esac
15826     ;;
15827
15828
15829   cygwin* | mingw* | pw32*)
15830     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15831     # as there is no search path for DLLs.
15832     hardcode_libdir_flag_spec_CXX='-L$libdir'
15833     allow_undefined_flag_CXX=unsupported
15834     always_export_symbols_CXX=no
15835     enable_shared_with_static_runtimes_CXX=yes
15836
15837     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15838       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'
15839       # If the export-symbols file already is a .def file (1st line
15840       # is EXPORTS), use it as is; otherwise, prepend...
15841       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842         cp $export_symbols $output_objdir/$soname.def;
15843       else
15844         echo EXPORTS > $output_objdir/$soname.def;
15845         cat $export_symbols >> $output_objdir/$soname.def;
15846       fi~
15847       $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'
15848     else
15849       ld_shlibs_CXX=no
15850     fi
15851   ;;
15852       darwin* | rhapsody*)
15853         case "$host_os" in
15854         rhapsody* | darwin1.[012])
15855          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15856          ;;
15857        *) # Darwin 1.3 on
15858          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15859            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15860          else
15861            case ${MACOSX_DEPLOYMENT_TARGET} in
15862              10.[012])
15863                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15864                ;;
15865              10.*)
15866                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15867                ;;
15868            esac
15869          fi
15870          ;;
15871         esac
15872       archive_cmds_need_lc_CXX=no
15873       hardcode_direct_CXX=no
15874       hardcode_automatic_CXX=yes
15875       hardcode_shlibpath_var_CXX=unsupported
15876       whole_archive_flag_spec_CXX=''
15877       link_all_deplibs_CXX=yes
15878
15879     if test "$GXX" = yes ; then
15880       lt_int_apple_cc_single_mod=no
15881       output_verbose_link_cmd='echo'
15882       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15883        lt_int_apple_cc_single_mod=yes
15884       fi
15885       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15886        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15887       else
15888           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'
15889         fi
15890         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15891         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15892           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15893             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}'
15894           else
15895             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}'
15896           fi
15897             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}'
15898       else
15899       case "$cc_basename" in
15900         xlc*)
15901          output_verbose_link_cmd='echo'
15902           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'
15903           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15905           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}'
15906           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}'
15907           ;;
15908        *)
15909          ld_shlibs_CXX=no
15910           ;;
15911       esac
15912       fi
15913         ;;
15914
15915   dgux*)
15916     case $cc_basename in
15917       ec++)
15918         # FIXME: insert proper C++ library support
15919         ld_shlibs_CXX=no
15920         ;;
15921       ghcx)
15922         # Green Hills C++ Compiler
15923         # FIXME: insert proper C++ library support
15924         ld_shlibs_CXX=no
15925         ;;
15926       *)
15927         # FIXME: insert proper C++ library support
15928         ld_shlibs_CXX=no
15929         ;;
15930     esac
15931     ;;
15932   freebsd12*)
15933     # C++ shared libraries reported to be fairly broken before switch to ELF
15934     ld_shlibs_CXX=no
15935     ;;
15936   freebsd-elf*)
15937     archive_cmds_need_lc_CXX=no
15938     ;;
15939   freebsd* | kfreebsd*-gnu)
15940     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15941     # conventions
15942     ld_shlibs_CXX=yes
15943     ;;
15944   gnu*)
15945     ;;
15946   hpux9*)
15947     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15948     hardcode_libdir_separator_CXX=:
15949     export_dynamic_flag_spec_CXX='${wl}-E'
15950     hardcode_direct_CXX=yes
15951     hardcode_minus_L_CXX=yes # Not in the search PATH,
15952                                 # but as the default
15953                                 # location of the library.
15954
15955     case $cc_basename in
15956     CC)
15957       # FIXME: insert proper C++ library support
15958       ld_shlibs_CXX=no
15959       ;;
15960     aCC)
15961       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'
15962       # Commands to make compiler produce verbose output that lists
15963       # what "hidden" libraries, object files and flags are used when
15964       # linking a shared library.
15965       #
15966       # There doesn't appear to be a way to prevent this compiler from
15967       # explicitly linking system object files so we need to strip them
15968       # from the output so that they don't get included in the library
15969       # dependencies.
15970       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'
15971       ;;
15972     *)
15973       if test "$GXX" = yes; then
15974         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'
15975       else
15976         # FIXME: insert proper C++ library support
15977         ld_shlibs_CXX=no
15978       fi
15979       ;;
15980     esac
15981     ;;
15982   hpux10*|hpux11*)
15983     if test $with_gnu_ld = no; then
15984       case "$host_cpu" in
15985       hppa*64*)
15986         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15987         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15988         hardcode_libdir_separator_CXX=:
15989         ;;
15990       ia64*)
15991         hardcode_libdir_flag_spec_CXX='-L$libdir'
15992         ;;
15993       *)
15994         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15995         hardcode_libdir_separator_CXX=:
15996         export_dynamic_flag_spec_CXX='${wl}-E'
15997         ;;
15998       esac
15999     fi
16000     case "$host_cpu" in
16001     hppa*64*)
16002       hardcode_direct_CXX=no
16003       hardcode_shlibpath_var_CXX=no
16004       ;;
16005     ia64*)
16006       hardcode_direct_CXX=no
16007       hardcode_shlibpath_var_CXX=no
16008       hardcode_minus_L_CXX=yes # Not in the search PATH,
16009                                               # but as the default
16010                                               # location of the library.
16011       ;;
16012     *)
16013       hardcode_direct_CXX=yes
16014       hardcode_minus_L_CXX=yes # Not in the search PATH,
16015                                               # but as the default
16016                                               # location of the library.
16017       ;;
16018     esac
16019
16020     case $cc_basename in
16021       CC)
16022         # FIXME: insert proper C++ library support
16023         ld_shlibs_CXX=no
16024         ;;
16025       aCC)
16026         case "$host_cpu" in
16027         hppa*64*|ia64*)
16028           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16029           ;;
16030         *)
16031           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16032           ;;
16033         esac
16034         # Commands to make compiler produce verbose output that lists
16035         # what "hidden" libraries, object files and flags are used when
16036         # linking a shared library.
16037         #
16038         # There doesn't appear to be a way to prevent this compiler from
16039         # explicitly linking system object files so we need to strip them
16040         # from the output so that they don't get included in the library
16041         # dependencies.
16042         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'
16043         ;;
16044       *)
16045         if test "$GXX" = yes; then
16046           if test $with_gnu_ld = no; then
16047             case "$host_cpu" in
16048             ia64*|hppa*64*)
16049               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16050               ;;
16051             *)
16052               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'
16053               ;;
16054             esac
16055           fi
16056         else
16057           # FIXME: insert proper C++ library support
16058           ld_shlibs_CXX=no
16059         fi
16060         ;;
16061     esac
16062     ;;
16063   irix5* | irix6*)
16064     case $cc_basename in
16065       CC)
16066         # SGI C++
16067         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'
16068
16069         # Archives containing C++ object files must be created using
16070         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16071         # necessary to make sure instantiated templates are included
16072         # in the archive.
16073         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16074         ;;
16075       *)
16076         if test "$GXX" = yes; then
16077           if test "$with_gnu_ld" = no; then
16078             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'
16079           else
16080             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'
16081           fi
16082         fi
16083         link_all_deplibs_CXX=yes
16084         ;;
16085     esac
16086     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16087     hardcode_libdir_separator_CXX=:
16088     ;;
16089   linux*)
16090     case $cc_basename in
16091       KCC)
16092         # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094         # KCC will only create a shared library if the output file
16095         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096         # to its proper name (with version) after linking.
16097         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'
16098         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'
16099         # Commands to make compiler produce verbose output that lists
16100         # what "hidden" libraries, object files and flags are used when
16101         # linking a shared library.
16102         #
16103         # There doesn't appear to be a way to prevent this compiler from
16104         # explicitly linking system object files so we need to strip them
16105         # from the output so that they don't get included in the library
16106         # dependencies.
16107         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'
16108
16109         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16110         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16111
16112         # Archives containing C++ object files must be created using
16113         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16114         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16115         ;;
16116       icpc)
16117         # Intel C++
16118         with_gnu_ld=yes
16119         # version 8.0 and above of icpc choke on multiply defined symbols
16120         # if we add $predep_objects and $postdep_objects, however 7.1 and
16121         # earlier do not add the objects themselves.
16122         case `$CC -V 2>&1` in
16123         *"Version 7."*)
16124           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16125           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'
16126           ;;
16127         *)  # Version 8.0 or newer
16128           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16129         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16130           ;;
16131         esac
16132         archive_cmds_need_lc_CXX=no
16133         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16134         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16135         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16136         ;;
16137       cxx)
16138         # Compaq C++
16139         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140         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'
16141
16142         runpath_var=LD_RUN_PATH
16143         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16144         hardcode_libdir_separator_CXX=:
16145
16146         # Commands to make compiler produce verbose output that lists
16147         # what "hidden" libraries, object files and flags are used when
16148         # linking a shared library.
16149         #
16150         # There doesn't appear to be a way to prevent this compiler from
16151         # explicitly linking system object files so we need to strip them
16152         # from the output so that they don't get included in the library
16153         # dependencies.
16154         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'
16155         ;;
16156     esac
16157     ;;
16158   lynxos*)
16159     # FIXME: insert proper C++ library support
16160     ld_shlibs_CXX=no
16161     ;;
16162   m88k*)
16163     # FIXME: insert proper C++ library support
16164     ld_shlibs_CXX=no
16165     ;;
16166   mvs*)
16167     case $cc_basename in
16168       cxx)
16169         # FIXME: insert proper C++ library support
16170         ld_shlibs_CXX=no
16171         ;;
16172       *)
16173         # FIXME: insert proper C++ library support
16174         ld_shlibs_CXX=no
16175         ;;
16176     esac
16177     ;;
16178   netbsd*)
16179     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16180       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16181       wlarc=
16182       hardcode_libdir_flag_spec_CXX='-R$libdir'
16183       hardcode_direct_CXX=yes
16184       hardcode_shlibpath_var_CXX=no
16185     fi
16186     # Workaround some broken pre-1.5 toolchains
16187     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16188     ;;
16189   openbsd2*)
16190     # C++ shared libraries are fairly broken
16191     ld_shlibs_CXX=no
16192     ;;
16193   openbsd*)
16194     hardcode_direct_CXX=yes
16195     hardcode_shlibpath_var_CXX=no
16196     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16197     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16198     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16199       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16200       export_dynamic_flag_spec_CXX='${wl}-E'
16201       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16202     fi
16203     output_verbose_link_cmd='echo'
16204     ;;
16205   osf3*)
16206     case $cc_basename in
16207       KCC)
16208         # Kuck and Associates, Inc. (KAI) C++ Compiler
16209
16210         # KCC will only create a shared library if the output file
16211         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16212         # to its proper name (with version) after linking.
16213         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'
16214
16215         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16216         hardcode_libdir_separator_CXX=:
16217
16218         # Archives containing C++ object files must be created using
16219         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16220         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16221
16222         ;;
16223       RCC)
16224         # Rational C++ 2.4.1
16225         # FIXME: insert proper C++ library support
16226         ld_shlibs_CXX=no
16227         ;;
16228       cxx)
16229         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16230         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'
16231
16232         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16233         hardcode_libdir_separator_CXX=:
16234
16235         # Commands to make compiler produce verbose output that lists
16236         # what "hidden" libraries, object files and flags are used when
16237         # linking a shared library.
16238         #
16239         # There doesn't appear to be a way to prevent this compiler from
16240         # explicitly linking system object files so we need to strip them
16241         # from the output so that they don't get included in the library
16242         # dependencies.
16243         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'
16244         ;;
16245       *)
16246         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16247           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16248           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'
16249
16250           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16251           hardcode_libdir_separator_CXX=:
16252
16253           # Commands to make compiler produce verbose output that lists
16254           # what "hidden" libraries, object files and flags are used when
16255           # linking a shared library.
16256           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16257
16258         else
16259           # FIXME: insert proper C++ library support
16260           ld_shlibs_CXX=no
16261         fi
16262         ;;
16263     esac
16264     ;;
16265   osf4* | osf5*)
16266     case $cc_basename in
16267       KCC)
16268         # Kuck and Associates, Inc. (KAI) C++ Compiler
16269
16270         # KCC will only create a shared library if the output file
16271         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16272         # to its proper name (with version) after linking.
16273         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'
16274
16275         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16276         hardcode_libdir_separator_CXX=:
16277
16278         # Archives containing C++ object files must be created using
16279         # the KAI C++ compiler.
16280         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16281         ;;
16282       RCC)
16283         # Rational C++ 2.4.1
16284         # FIXME: insert proper C++ library support
16285         ld_shlibs_CXX=no
16286         ;;
16287       cxx)
16288         allow_undefined_flag_CXX=' -expect_unresolved \*'
16289         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'
16290         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16291           echo "-hidden">> $lib.exp~
16292           $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~
16293           $rm $lib.exp'
16294
16295         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16296         hardcode_libdir_separator_CXX=:
16297
16298         # Commands to make compiler produce verbose output that lists
16299         # what "hidden" libraries, object files and flags are used when
16300         # linking a shared library.
16301         #
16302         # There doesn't appear to be a way to prevent this compiler from
16303         # explicitly linking system object files so we need to strip them
16304         # from the output so that they don't get included in the library
16305         # dependencies.
16306         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'
16307         ;;
16308       *)
16309         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16310           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16311          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'
16312
16313           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16314           hardcode_libdir_separator_CXX=:
16315
16316           # Commands to make compiler produce verbose output that lists
16317           # what "hidden" libraries, object files and flags are used when
16318           # linking a shared library.
16319           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16320
16321         else
16322           # FIXME: insert proper C++ library support
16323           ld_shlibs_CXX=no
16324         fi
16325         ;;
16326     esac
16327     ;;
16328   psos*)
16329     # FIXME: insert proper C++ library support
16330     ld_shlibs_CXX=no
16331     ;;
16332   sco*)
16333     archive_cmds_need_lc_CXX=no
16334     case $cc_basename in
16335       CC)
16336         # FIXME: insert proper C++ library support
16337         ld_shlibs_CXX=no
16338         ;;
16339       *)
16340         # FIXME: insert proper C++ library support
16341         ld_shlibs_CXX=no
16342         ;;
16343     esac
16344     ;;
16345   sunos4*)
16346     case $cc_basename in
16347       CC)
16348         # Sun C++ 4.x
16349         # FIXME: insert proper C++ library support
16350         ld_shlibs_CXX=no
16351         ;;
16352       lcc)
16353         # Lucid
16354         # FIXME: insert proper C++ library support
16355         ld_shlibs_CXX=no
16356         ;;
16357       *)
16358         # FIXME: insert proper C++ library support
16359         ld_shlibs_CXX=no
16360         ;;
16361     esac
16362     ;;
16363   solaris*)
16364     case $cc_basename in
16365       CC)
16366         # Sun C++ 4.2, 5.x and Centerline C++
16367         no_undefined_flag_CXX=' -zdefs'
16368         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16369         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16370         $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'
16371
16372         hardcode_libdir_flag_spec_CXX='-R$libdir'
16373         hardcode_shlibpath_var_CXX=no
16374         case $host_os in
16375           solaris2.0-5 | solaris2.0-5.*) ;;
16376           *)
16377             # The C++ compiler is used as linker so we must use $wl
16378             # flag to pass the commands to the underlying system
16379             # linker.
16380             # Supported since Solaris 2.6 (maybe 2.5.1?)
16381             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16382             ;;
16383         esac
16384         link_all_deplibs_CXX=yes
16385
16386         # Commands to make compiler produce verbose output that lists
16387         # what "hidden" libraries, object files and flags are used when
16388         # linking a shared library.
16389         #
16390         # There doesn't appear to be a way to prevent this compiler from
16391         # explicitly linking system object files so we need to strip them
16392         # from the output so that they don't get included in the library
16393         # dependencies.
16394         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'
16395
16396         # Archives containing C++ object files must be created using
16397         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16398         # necessary to make sure instantiated templates are included
16399         # in the archive.
16400         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16401         ;;
16402       gcx)
16403         # Green Hills C++ Compiler
16404         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16405
16406         # The C++ compiler must be used to create the archive.
16407         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16408         ;;
16409       *)
16410         # GNU C++ compiler with Solaris linker
16411         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16412           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16413           if $CC --version | grep -v '^2\.7' > /dev/null; then
16414             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16415             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16416                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16417
16418             # Commands to make compiler produce verbose output that lists
16419             # what "hidden" libraries, object files and flags are used when
16420             # linking a shared library.
16421             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16422           else
16423             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16424             # platform.
16425             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16426             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16427                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16428
16429             # Commands to make compiler produce verbose output that lists
16430             # what "hidden" libraries, object files and flags are used when
16431             # linking a shared library.
16432             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16433           fi
16434
16435           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16436         fi
16437         ;;
16438     esac
16439     ;;
16440   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16441     archive_cmds_need_lc_CXX=no
16442     ;;
16443   tandem*)
16444     case $cc_basename in
16445       NCC)
16446         # NonStop-UX NCC 3.20
16447         # FIXME: insert proper C++ library support
16448         ld_shlibs_CXX=no
16449         ;;
16450       *)
16451         # FIXME: insert proper C++ library support
16452         ld_shlibs_CXX=no
16453         ;;
16454     esac
16455     ;;
16456   vxworks*)
16457     # FIXME: insert proper C++ library support
16458     ld_shlibs_CXX=no
16459     ;;
16460   *)
16461     # FIXME: insert proper C++ library support
16462     ld_shlibs_CXX=no
16463     ;;
16464 esac
16465 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16466 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16467 test "$ld_shlibs_CXX" = no && can_build_shared=no
16468
16469 GCC_CXX="$GXX"
16470 LD_CXX="$LD"
16471
16472
16473 cat > conftest.$ac_ext <<EOF
16474 class Foo
16475 {
16476 public:
16477   Foo (void) { a = 0; }
16478 private:
16479   int a;
16480 };
16481 EOF
16482
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484   (eval $ac_compile) 2>&5
16485   ac_status=$?
16486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487   (exit $ac_status); }; then
16488   # Parse the compiler output and extract the necessary
16489   # objects, libraries and library flags.
16490
16491   # Sentinel used to keep track of whether or not we are before
16492   # the conftest object file.
16493   pre_test_object_deps_done=no
16494
16495   # The `*' in the case matches for architectures that use `case' in
16496   # $output_verbose_cmd can trigger glob expansion during the loop
16497   # eval without this substitution.
16498   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16499
16500   for p in `eval $output_verbose_link_cmd`; do
16501     case $p in
16502
16503     -L* | -R* | -l*)
16504        # Some compilers place space between "-{L,R}" and the path.
16505        # Remove the space.
16506        if test $p = "-L" \
16507           || test $p = "-R"; then
16508          prev=$p
16509          continue
16510        else
16511          prev=
16512        fi
16513
16514        if test "$pre_test_object_deps_done" = no; then
16515          case $p in
16516          -L* | -R*)
16517            # Internal compiler library paths should come after those
16518            # provided the user.  The postdeps already come after the
16519            # user supplied libs so there is no need to process them.
16520            if test -z "$compiler_lib_search_path_CXX"; then
16521              compiler_lib_search_path_CXX="${prev}${p}"
16522            else
16523              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16524            fi
16525            ;;
16526          # The "-l" case would never come before the object being
16527          # linked, so don't bother handling this case.
16528          esac
16529        else
16530          if test -z "$postdeps_CXX"; then
16531            postdeps_CXX="${prev}${p}"
16532          else
16533            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16534          fi
16535        fi
16536        ;;
16537
16538     *.$objext)
16539        # This assumes that the test object file only shows up
16540        # once in the compiler output.
16541        if test "$p" = "conftest.$objext"; then
16542          pre_test_object_deps_done=yes
16543          continue
16544        fi
16545
16546        if test "$pre_test_object_deps_done" = no; then
16547          if test -z "$predep_objects_CXX"; then
16548            predep_objects_CXX="$p"
16549          else
16550            predep_objects_CXX="$predep_objects_CXX $p"
16551          fi
16552        else
16553          if test -z "$postdep_objects_CXX"; then
16554            postdep_objects_CXX="$p"
16555          else
16556            postdep_objects_CXX="$postdep_objects_CXX $p"
16557          fi
16558        fi
16559        ;;
16560
16561     *) ;; # Ignore the rest.
16562
16563     esac
16564   done
16565
16566   # Clean up.
16567   rm -f a.out a.exe
16568 else
16569   echo "libtool.m4: error: problem compiling CXX test program"
16570 fi
16571
16572 $rm -f confest.$objext
16573
16574 case " $postdeps_CXX " in
16575 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16576 esac
16577
16578 lt_prog_compiler_wl_CXX=
16579 lt_prog_compiler_pic_CXX=
16580 lt_prog_compiler_static_CXX=
16581
16582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16584
16585   # C++ specific cases for pic, static, wl, etc.
16586   if test "$GXX" = yes; then
16587     lt_prog_compiler_wl_CXX='-Wl,'
16588     lt_prog_compiler_static_CXX='-static'
16589
16590     case $host_os in
16591     aix*)
16592       # All AIX code is PIC.
16593       if test "$host_cpu" = ia64; then
16594         # AIX 5 now supports IA64 processor
16595         lt_prog_compiler_static_CXX='-Bstatic'
16596       fi
16597       ;;
16598     amigaos*)
16599       # FIXME: we need at least 68020 code to build shared libraries, but
16600       # adding the `-m68020' flag to GCC prevents building anything better,
16601       # like `-m68040'.
16602       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16603       ;;
16604     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16605       # PIC is the default for these OSes.
16606       ;;
16607     mingw* | os2* | pw32*)
16608       # This hack is so that the source file can tell whether it is being
16609       # built for inclusion in a dll (and should export symbols for example).
16610       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16611       ;;
16612     darwin* | rhapsody*)
16613       # PIC is the default on this platform
16614       # Common symbols not allowed in MH_DYLIB files
16615       lt_prog_compiler_pic_CXX='-fno-common'
16616       ;;
16617     *djgpp*)
16618       # DJGPP does not support shared libraries at all
16619       lt_prog_compiler_pic_CXX=
16620       ;;
16621     sysv4*MP*)
16622       if test -d /usr/nec; then
16623         lt_prog_compiler_pic_CXX=-Kconform_pic
16624       fi
16625       ;;
16626     hpux*)
16627       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16628       # not for PA HP-UX.
16629       case "$host_cpu" in
16630       hppa*64*|ia64*)
16631         ;;
16632       *)
16633         lt_prog_compiler_pic_CXX='-fPIC'
16634         ;;
16635       esac
16636       ;;
16637     *)
16638       lt_prog_compiler_pic_CXX='-fPIC'
16639       ;;
16640     esac
16641   else
16642     case $host_os in
16643       aix4* | aix5*)
16644         # All AIX code is PIC.
16645         if test "$host_cpu" = ia64; then
16646           # AIX 5 now supports IA64 processor
16647           lt_prog_compiler_static_CXX='-Bstatic'
16648         else
16649           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16650         fi
16651         ;;
16652       chorus*)
16653         case $cc_basename in
16654         cxch68)
16655           # Green Hills C++ Compiler
16656           # _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"
16657           ;;
16658         esac
16659         ;;
16660        darwin*)
16661          # PIC is the default on this platform
16662          # Common symbols not allowed in MH_DYLIB files
16663          case "$cc_basename" in
16664            xlc*)
16665            lt_prog_compiler_pic_CXX='-qnocommon'
16666            lt_prog_compiler_wl_CXX='-Wl,'
16667            ;;
16668          esac
16669        ;;
16670       dgux*)
16671         case $cc_basename in
16672           ec++)
16673             lt_prog_compiler_pic_CXX='-KPIC'
16674             ;;
16675           ghcx)
16676             # Green Hills C++ Compiler
16677             lt_prog_compiler_pic_CXX='-pic'
16678             ;;
16679           *)
16680             ;;
16681         esac
16682         ;;
16683       freebsd* | kfreebsd*-gnu)
16684         # FreeBSD uses GNU C++
16685         ;;
16686       hpux9* | hpux10* | hpux11*)
16687         case $cc_basename in
16688           CC)
16689             lt_prog_compiler_wl_CXX='-Wl,'
16690             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16691             if test "$host_cpu" != ia64; then
16692               lt_prog_compiler_pic_CXX='+Z'
16693             fi
16694             ;;
16695           aCC)
16696             lt_prog_compiler_wl_CXX='-Wl,'
16697             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16698             case "$host_cpu" in
16699             hppa*64*|ia64*)
16700               # +Z the default
16701               ;;
16702             *)
16703               lt_prog_compiler_pic_CXX='+Z'
16704               ;;
16705             esac
16706             ;;
16707           *)
16708             ;;
16709         esac
16710         ;;
16711       irix5* | irix6* | nonstopux*)
16712         case $cc_basename in
16713           CC)
16714             lt_prog_compiler_wl_CXX='-Wl,'
16715             lt_prog_compiler_static_CXX='-non_shared'
16716             # CC pic flag -KPIC is the default.
16717             ;;
16718           *)
16719             ;;
16720         esac
16721         ;;
16722       linux*)
16723         case $cc_basename in
16724           KCC)
16725             # KAI C++ Compiler
16726             lt_prog_compiler_wl_CXX='--backend -Wl,'
16727             lt_prog_compiler_pic_CXX='-fPIC'
16728             ;;
16729           icpc)
16730             # Intel C++
16731             lt_prog_compiler_wl_CXX='-Wl,'
16732             lt_prog_compiler_pic_CXX='-KPIC'
16733             lt_prog_compiler_static_CXX='-static'
16734             ;;
16735           cxx)
16736             # Compaq C++
16737             # Make sure the PIC flag is empty.  It appears that all Alpha
16738             # Linux and Compaq Tru64 Unix objects are PIC.
16739             lt_prog_compiler_pic_CXX=
16740             lt_prog_compiler_static_CXX='-non_shared'
16741             ;;
16742           *)
16743             ;;
16744         esac
16745         ;;
16746       lynxos*)
16747         ;;
16748       m88k*)
16749         ;;
16750       mvs*)
16751         case $cc_basename in
16752           cxx)
16753             lt_prog_compiler_pic_CXX='-W c,exportall'
16754             ;;
16755           *)
16756             ;;
16757         esac
16758         ;;
16759       netbsd*)
16760         ;;
16761       osf3* | osf4* | osf5*)
16762         case $cc_basename in
16763           KCC)
16764             lt_prog_compiler_wl_CXX='--backend -Wl,'
16765             ;;
16766           RCC)
16767             # Rational C++ 2.4.1
16768             lt_prog_compiler_pic_CXX='-pic'
16769             ;;
16770           cxx)
16771             # Digital/Compaq C++
16772             lt_prog_compiler_wl_CXX='-Wl,'
16773             # Make sure the PIC flag is empty.  It appears that all Alpha
16774             # Linux and Compaq Tru64 Unix objects are PIC.
16775             lt_prog_compiler_pic_CXX=
16776             lt_prog_compiler_static_CXX='-non_shared'
16777             ;;
16778           *)
16779             ;;
16780         esac
16781         ;;
16782       psos*)
16783         ;;
16784       sco*)
16785         case $cc_basename in
16786           CC)
16787             lt_prog_compiler_pic_CXX='-fPIC'
16788             ;;
16789           *)
16790             ;;
16791         esac
16792         ;;
16793       solaris*)
16794         case $cc_basename in
16795           CC)
16796             # Sun C++ 4.2, 5.x and Centerline C++
16797             lt_prog_compiler_pic_CXX='-KPIC'
16798             lt_prog_compiler_static_CXX='-Bstatic'
16799             lt_prog_compiler_wl_CXX='-Qoption ld '
16800             ;;
16801           gcx)
16802             # Green Hills C++ Compiler
16803             lt_prog_compiler_pic_CXX='-PIC'
16804             ;;
16805           *)
16806             ;;
16807         esac
16808         ;;
16809       sunos4*)
16810         case $cc_basename in
16811           CC)
16812             # Sun C++ 4.x
16813             lt_prog_compiler_pic_CXX='-pic'
16814             lt_prog_compiler_static_CXX='-Bstatic'
16815             ;;
16816           lcc)
16817             # Lucid
16818             lt_prog_compiler_pic_CXX='-pic'
16819             ;;
16820           *)
16821             ;;
16822         esac
16823         ;;
16824       tandem*)
16825         case $cc_basename in
16826           NCC)
16827             # NonStop-UX NCC 3.20
16828             lt_prog_compiler_pic_CXX='-KPIC'
16829             ;;
16830           *)
16831             ;;
16832         esac
16833         ;;
16834       unixware*)
16835         ;;
16836       vxworks*)
16837         ;;
16838       *)
16839         lt_prog_compiler_can_build_shared_CXX=no
16840         ;;
16841     esac
16842   fi
16843
16844 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16845 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16846
16847 #
16848 # Check to make sure the PIC flag actually works.
16849 #
16850 if test -n "$lt_prog_compiler_pic_CXX"; then
16851
16852 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16853 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16854 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   lt_prog_compiler_pic_works_CXX=no
16858   ac_outfile=conftest.$ac_objext
16859    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16860    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16861    # Insert the option either (1) after the last *FLAGS variable, or
16862    # (2) before a word containing "conftest.", or (3) at the end.
16863    # Note that $ac_compile itself does not contain backslashes and begins
16864    # with a dollar sign (not a hyphen), so the echo should work correctly.
16865    # The option is referenced via a variable to avoid confusing sed.
16866    lt_compile=`echo "$ac_compile" | $SED \
16867    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16868    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16869    -e 's:$: $lt_compiler_flag:'`
16870    (eval echo "\"\$as_me:16870: $lt_compile\"" >&5)
16871    (eval "$lt_compile" 2>conftest.err)
16872    ac_status=$?
16873    cat conftest.err >&5
16874    echo "$as_me:16874: \$? = $ac_status" >&5
16875    if (exit $ac_status) && test -s "$ac_outfile"; then
16876      # The compiler can only warn and ignore the option if not recognized
16877      # So say no if there are warnings
16878      if test ! -s conftest.err; then
16879        lt_prog_compiler_pic_works_CXX=yes
16880      fi
16881    fi
16882    $rm conftest*
16883
16884 fi
16885 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16886 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16887
16888 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16889     case $lt_prog_compiler_pic_CXX in
16890      "" | " "*) ;;
16891      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16892      esac
16893 else
16894     lt_prog_compiler_pic_CXX=
16895      lt_prog_compiler_can_build_shared_CXX=no
16896 fi
16897
16898 fi
16899 case "$host_os" in
16900   # For platforms which do not support PIC, -DPIC is meaningless:
16901   *djgpp*)
16902     lt_prog_compiler_pic_CXX=
16903     ;;
16904   *)
16905     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16906     ;;
16907 esac
16908
16909 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16910 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16911 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   lt_cv_prog_compiler_c_o_CXX=no
16915    $rm -r conftest 2>/dev/null
16916    mkdir conftest
16917    cd conftest
16918    mkdir out
16919    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16920
16921    lt_compiler_flag="-o out/conftest2.$ac_objext"
16922    # Insert the option either (1) after the last *FLAGS variable, or
16923    # (2) before a word containing "conftest.", or (3) at the end.
16924    # Note that $ac_compile itself does not contain backslashes and begins
16925    # with a dollar sign (not a hyphen), so the echo should work correctly.
16926    lt_compile=`echo "$ac_compile" | $SED \
16927    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16929    -e 's:$: $lt_compiler_flag:'`
16930    (eval echo "\"\$as_me:16930: $lt_compile\"" >&5)
16931    (eval "$lt_compile" 2>out/conftest.err)
16932    ac_status=$?
16933    cat out/conftest.err >&5
16934    echo "$as_me:16934: \$? = $ac_status" >&5
16935    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16936    then
16937      # The compiler can only warn and ignore the option if not recognized
16938      # So say no if there are warnings
16939      if test ! -s out/conftest.err; then
16940        lt_cv_prog_compiler_c_o_CXX=yes
16941      fi
16942    fi
16943    chmod u+w .
16944    $rm conftest*
16945    # SGI C++ compiler will create directory out/ii_files/ for
16946    # template instantiation
16947    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16948    $rm out/* && rmdir out
16949    cd ..
16950    rmdir conftest
16951    $rm conftest*
16952
16953 fi
16954 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16955 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16956
16957
16958 hard_links="nottested"
16959 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16960   # do not overwrite the value of need_locks provided by the user
16961   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16962 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16963   hard_links=yes
16964   $rm conftest*
16965   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16966   touch conftest.a
16967   ln conftest.a conftest.b 2>&5 || hard_links=no
16968   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16969   echo "$as_me:$LINENO: result: $hard_links" >&5
16970 echo "${ECHO_T}$hard_links" >&6
16971   if test "$hard_links" = no; then
16972     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16973 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16974     need_locks=warn
16975   fi
16976 else
16977   need_locks=no
16978 fi
16979
16980 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16981 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16982
16983   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16984   case $host_os in
16985   aix4* | aix5*)
16986     # If we're using GNU nm, then we don't want the "-C" option.
16987     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16988     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16989       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'
16990     else
16991       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'
16992     fi
16993     ;;
16994   pw32*)
16995     export_symbols_cmds_CXX="$ltdll_cmds"
16996   ;;
16997   cygwin* | mingw*)
16998     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16999   ;;
17000   *)
17001     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17002   ;;
17003   esac
17004
17005 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17006 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17007 test "$ld_shlibs_CXX" = no && can_build_shared=no
17008
17009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17010 if test "$GCC" = yes; then
17011   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17012 fi
17013
17014 #
17015 # Do we need to explicitly link libc?
17016 #
17017 case "x$archive_cmds_need_lc_CXX" in
17018 x|xyes)
17019   # Assume -lc should be added
17020   archive_cmds_need_lc_CXX=yes
17021
17022   if test "$enable_shared" = yes && test "$GCC" = yes; then
17023     case $archive_cmds_CXX in
17024     *'~'*)
17025       # FIXME: we may have to deal with multi-command sequences.
17026       ;;
17027     '$CC '*)
17028       # Test whether the compiler implicitly links with -lc since on some
17029       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17030       # to ld, don't add -lc before -lgcc.
17031       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17033       $rm conftest*
17034       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17035
17036       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037   (eval $ac_compile) 2>&5
17038   ac_status=$?
17039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); } 2>conftest.err; then
17041         soname=conftest
17042         lib=conftest
17043         libobjs=conftest.$ac_objext
17044         deplibs=
17045         wl=$lt_prog_compiler_wl_CXX
17046         compiler_flags=-v
17047         linker_flags=-v
17048         verstring=
17049         output_objdir=.
17050         libname=conftest
17051         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17052         allow_undefined_flag_CXX=
17053         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17054   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }
17058         then
17059           archive_cmds_need_lc_CXX=no
17060         else
17061           archive_cmds_need_lc_CXX=yes
17062         fi
17063         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17064       else
17065         cat conftest.err 1>&5
17066       fi
17067       $rm conftest*
17068       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17069 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17070       ;;
17071     esac
17072   fi
17073   ;;
17074 esac
17075
17076 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17077 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17078 library_names_spec=
17079 libname_spec='lib$name'
17080 soname_spec=
17081 shrext_cmds=".so"
17082 postinstall_cmds=
17083 postuninstall_cmds=
17084 finish_cmds=
17085 finish_eval=
17086 shlibpath_var=
17087 shlibpath_overrides_runpath=unknown
17088 version_type=none
17089 dynamic_linker="$host_os ld.so"
17090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17091 if test "$GCC" = yes; then
17092   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17093   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17094     # if the path contains ";" then we assume it to be the separator
17095     # otherwise default to the standard path separator (i.e. ":") - it is
17096     # assumed that no part of a normal pathname contains ";" but that should
17097     # okay in the real world where ";" in dirpaths is itself problematic.
17098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17099   else
17100     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17101   fi
17102 else
17103   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17104 fi
17105 need_lib_prefix=unknown
17106 hardcode_into_libs=no
17107
17108 # when you set need_version to no, make sure it does not cause -set_version
17109 # flags to be left without arguments
17110 need_version=unknown
17111
17112 case $host_os in
17113 aix3*)
17114   version_type=linux
17115   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17116   shlibpath_var=LIBPATH
17117
17118   # AIX 3 has no versioning support, so we append a major version to the name.
17119   soname_spec='${libname}${release}${shared_ext}$major'
17120   ;;
17121
17122 aix4* | aix5*)
17123   version_type=linux
17124   need_lib_prefix=no
17125   need_version=no
17126   hardcode_into_libs=yes
17127   if test "$host_cpu" = ia64; then
17128     # AIX 5 supports IA64
17129     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17130     shlibpath_var=LD_LIBRARY_PATH
17131   else
17132     # With GCC up to 2.95.x, collect2 would create an import file
17133     # for dependence libraries.  The import file would start with
17134     # the line `#! .'.  This would cause the generated library to
17135     # depend on `.', always an invalid library.  This was fixed in
17136     # development snapshots of GCC prior to 3.0.
17137     case $host_os in
17138       aix4 | aix4.[01] | aix4.[01].*)
17139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17140            echo ' yes '
17141            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17142         :
17143       else
17144         can_build_shared=no
17145       fi
17146       ;;
17147     esac
17148     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17149     # soname into executable. Probably we can add versioning support to
17150     # collect2, so additional links can be useful in future.
17151     if test "$aix_use_runtimelinking" = yes; then
17152       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17153       # instead of lib<name>.a to let people know that these are not
17154       # typical AIX shared libraries.
17155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156     else
17157       # We preserve .a as extension for shared libraries through AIX4.2
17158       # and later when we are not doing run time linking.
17159       library_names_spec='${libname}${release}.a $libname.a'
17160       soname_spec='${libname}${release}${shared_ext}$major'
17161     fi
17162     shlibpath_var=LIBPATH
17163   fi
17164   ;;
17165
17166 amigaos*)
17167   library_names_spec='$libname.ixlibrary $libname.a'
17168   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17169   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'
17170   ;;
17171
17172 beos*)
17173   library_names_spec='${libname}${shared_ext}'
17174   dynamic_linker="$host_os ld.so"
17175   shlibpath_var=LIBRARY_PATH
17176   ;;
17177
17178 bsdi[45]*)
17179   version_type=linux
17180   need_version=no
17181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17182   soname_spec='${libname}${release}${shared_ext}$major'
17183   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17184   shlibpath_var=LD_LIBRARY_PATH
17185   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17186   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17187   # the default ld.so.conf also contains /usr/contrib/lib and
17188   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17189   # libtool to hard-code these into programs
17190   ;;
17191
17192 cygwin* | mingw* | pw32*)
17193   version_type=windows
17194   shrext_cmds=".dll"
17195   need_version=no
17196   need_lib_prefix=no
17197
17198   case $GCC,$host_os in
17199   yes,cygwin* | yes,mingw* | yes,pw32*)
17200     library_names_spec='$libname.dll.a'
17201     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17202     postinstall_cmds='base_file=`basename \${file}`~
17203       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17204       dldir=$destdir/`dirname \$dlpath`~
17205       test -d \$dldir || mkdir -p \$dldir~
17206       $install_prog $dir/$dlname \$dldir/$dlname'
17207     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17208       dlpath=$dir/\$dldll~
17209        $rm \$dlpath'
17210     shlibpath_overrides_runpath=yes
17211
17212     case $host_os in
17213     cygwin*)
17214       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17215       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17217       ;;
17218     mingw*)
17219       # MinGW DLLs use traditional 'lib' prefix
17220       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17221       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17222       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17223         # It is most probably a Windows format PATH printed by
17224         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17225         # path with ; separators, and with drive letters. We can handle the
17226         # drive letters (cygwin fileutils understands them), so leave them,
17227         # especially as we might pass files found there to a mingw objdump,
17228         # which wouldn't understand a cygwinified path. Ahh.
17229         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17230       else
17231         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17232       fi
17233       ;;
17234     pw32*)
17235       # pw32 DLLs use 'pw' prefix rather than 'lib'
17236       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17237       ;;
17238     esac
17239     ;;
17240
17241   *)
17242     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17243     ;;
17244   esac
17245   dynamic_linker='Win32 ld.exe'
17246   # FIXME: first we should search . and the directory the executable is in
17247   shlibpath_var=PATH
17248   ;;
17249
17250 darwin* | rhapsody*)
17251   dynamic_linker="$host_os dyld"
17252   version_type=darwin
17253   need_lib_prefix=no
17254   need_version=no
17255   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17256   soname_spec='${libname}${release}${major}$shared_ext'
17257   shlibpath_overrides_runpath=yes
17258   shlibpath_var=DYLD_LIBRARY_PATH
17259   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17260   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17261   if test "$GCC" = yes; then
17262     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"`
17263   else
17264     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17265   fi
17266   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17267   ;;
17268
17269 dgux*)
17270   version_type=linux
17271   need_lib_prefix=no
17272   need_version=no
17273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17274   soname_spec='${libname}${release}${shared_ext}$major'
17275   shlibpath_var=LD_LIBRARY_PATH
17276   ;;
17277
17278 freebsd1*)
17279   dynamic_linker=no
17280   ;;
17281
17282 kfreebsd*-gnu)
17283   version_type=linux
17284   need_lib_prefix=no
17285   need_version=no
17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17287   soname_spec='${libname}${release}${shared_ext}$major'
17288   shlibpath_var=LD_LIBRARY_PATH
17289   shlibpath_overrides_runpath=no
17290   hardcode_into_libs=yes
17291   dynamic_linker='GNU ld.so'
17292   ;;
17293
17294 freebsd*)
17295   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17296   version_type=freebsd-$objformat
17297   case $version_type in
17298     freebsd-elf*)
17299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17300       need_version=no
17301       need_lib_prefix=no
17302       ;;
17303     freebsd-*)
17304       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17305       need_version=yes
17306       ;;
17307   esac
17308   shlibpath_var=LD_LIBRARY_PATH
17309   case $host_os in
17310   freebsd2*)
17311     shlibpath_overrides_runpath=yes
17312     ;;
17313   freebsd3.01* | freebsdelf3.01*)
17314     shlibpath_overrides_runpath=yes
17315     hardcode_into_libs=yes
17316     ;;
17317   *) # from 3.2 on
17318     shlibpath_overrides_runpath=no
17319     hardcode_into_libs=yes
17320     ;;
17321   esac
17322   ;;
17323
17324 gnu*)
17325   version_type=linux
17326   need_lib_prefix=no
17327   need_version=no
17328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329   soname_spec='${libname}${release}${shared_ext}$major'
17330   shlibpath_var=LD_LIBRARY_PATH
17331   hardcode_into_libs=yes
17332   ;;
17333
17334 hpux9* | hpux10* | hpux11*)
17335   # Give a soname corresponding to the major version so that dld.sl refuses to
17336   # link against other versions.
17337   version_type=sunos
17338   need_lib_prefix=no
17339   need_version=no
17340   case "$host_cpu" in
17341   ia64*)
17342     shrext_cmds='.so'
17343     hardcode_into_libs=yes
17344     dynamic_linker="$host_os dld.so"
17345     shlibpath_var=LD_LIBRARY_PATH
17346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348     soname_spec='${libname}${release}${shared_ext}$major'
17349     if test "X$HPUX_IA64_MODE" = X32; then
17350       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17351     else
17352       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17353     fi
17354     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355     ;;
17356    hppa*64*)
17357      shrext_cmds='.sl'
17358      hardcode_into_libs=yes
17359      dynamic_linker="$host_os dld.sl"
17360      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363      soname_spec='${libname}${release}${shared_ext}$major'
17364      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366      ;;
17367    *)
17368     shrext_cmds='.sl'
17369     dynamic_linker="$host_os dld.sl"
17370     shlibpath_var=SHLIB_PATH
17371     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373     soname_spec='${libname}${release}${shared_ext}$major'
17374     ;;
17375   esac
17376   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377   postinstall_cmds='chmod 555 $lib'
17378   ;;
17379
17380 irix5* | irix6* | nonstopux*)
17381   case $host_os in
17382     nonstopux*) version_type=nonstopux ;;
17383     *)
17384         if test "$lt_cv_prog_gnu_ld" = yes; then
17385                 version_type=linux
17386         else
17387                 version_type=irix
17388         fi ;;
17389   esac
17390   need_lib_prefix=no
17391   need_version=no
17392   soname_spec='${libname}${release}${shared_ext}$major'
17393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17394   case $host_os in
17395   irix5* | nonstopux*)
17396     libsuff= shlibsuff=
17397     ;;
17398   *)
17399     case $LD in # libtool.m4 will add one of these switches to LD
17400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17401       libsuff= shlibsuff= libmagic=32-bit;;
17402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17403       libsuff=32 shlibsuff=N32 libmagic=N32;;
17404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17406     *) libsuff= shlibsuff= libmagic=never-match;;
17407     esac
17408     ;;
17409   esac
17410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17411   shlibpath_overrides_runpath=no
17412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17414   hardcode_into_libs=yes
17415   ;;
17416
17417 # No shared lib support for Linux oldld, aout, or coff.
17418 linux*oldld* | linux*aout* | linux*coff*)
17419   dynamic_linker=no
17420   ;;
17421
17422 # This must be Linux ELF.
17423 linux*)
17424   version_type=linux
17425   need_lib_prefix=no
17426   need_version=no
17427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428   soname_spec='${libname}${release}${shared_ext}$major'
17429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   shlibpath_overrides_runpath=no
17432   # This implies no fast_install, which is unacceptable.
17433   # Some rework will be needed to allow for fast_install
17434   # before this can be enabled.
17435   hardcode_into_libs=yes
17436
17437   # Append ld.so.conf contents to the search path
17438   if test -f /etc/ld.so.conf; then
17439     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17440     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17441   fi
17442
17443   # We used to test for /lib/ld.so.1 and disable shared libraries on
17444   # powerpc, because MkLinux only supported shared libraries with the
17445   # GNU dynamic linker.  Since this was broken with cross compilers,
17446   # most powerpc-linux boxes support dynamic linking these days and
17447   # people can always --disable-shared, the test was removed, and we
17448   # assume the GNU/Linux dynamic linker is in use.
17449   dynamic_linker='GNU/Linux ld.so'
17450   ;;
17451
17452 knetbsd*-gnu)
17453   version_type=linux
17454   need_lib_prefix=no
17455   need_version=no
17456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17457   soname_spec='${libname}${release}${shared_ext}$major'
17458   shlibpath_var=LD_LIBRARY_PATH
17459   shlibpath_overrides_runpath=no
17460   hardcode_into_libs=yes
17461   dynamic_linker='GNU ld.so'
17462   ;;
17463
17464 netbsd*)
17465   version_type=sunos
17466   need_lib_prefix=no
17467   need_version=no
17468   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471     dynamic_linker='NetBSD (a.out) ld.so'
17472   else
17473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474     soname_spec='${libname}${release}${shared_ext}$major'
17475     dynamic_linker='NetBSD ld.elf_so'
17476   fi
17477   shlibpath_var=LD_LIBRARY_PATH
17478   shlibpath_overrides_runpath=yes
17479   hardcode_into_libs=yes
17480   ;;
17481
17482 newsos6)
17483   version_type=linux
17484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485   shlibpath_var=LD_LIBRARY_PATH
17486   shlibpath_overrides_runpath=yes
17487   ;;
17488
17489 nto-qnx*)
17490   version_type=linux
17491   need_lib_prefix=no
17492   need_version=no
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494   soname_spec='${libname}${release}${shared_ext}$major'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   shlibpath_overrides_runpath=yes
17497   ;;
17498
17499 openbsd*)
17500   version_type=sunos
17501   need_lib_prefix=no
17502   need_version=no
17503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17504   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17505   shlibpath_var=LD_LIBRARY_PATH
17506   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17507     case $host_os in
17508       openbsd2.[89] | openbsd2.[89].*)
17509         shlibpath_overrides_runpath=no
17510         ;;
17511       *)
17512         shlibpath_overrides_runpath=yes
17513         ;;
17514       esac
17515   else
17516     shlibpath_overrides_runpath=yes
17517   fi
17518   ;;
17519
17520 os2*)
17521   libname_spec='$name'
17522   shrext_cmds=".dll"
17523   need_lib_prefix=no
17524   library_names_spec='$libname${shared_ext} $libname.a'
17525   dynamic_linker='OS/2 ld.exe'
17526   shlibpath_var=LIBPATH
17527   ;;
17528
17529 osf3* | osf4* | osf5*)
17530   version_type=osf
17531   need_lib_prefix=no
17532   need_version=no
17533   soname_spec='${libname}${release}${shared_ext}$major'
17534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535   shlibpath_var=LD_LIBRARY_PATH
17536   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17537   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17538   ;;
17539
17540 sco3.2v5*)
17541   version_type=osf
17542   soname_spec='${libname}${release}${shared_ext}$major'
17543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544   shlibpath_var=LD_LIBRARY_PATH
17545   ;;
17546
17547 solaris*)
17548   version_type=linux
17549   need_lib_prefix=no
17550   need_version=no
17551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552   soname_spec='${libname}${release}${shared_ext}$major'
17553   shlibpath_var=LD_LIBRARY_PATH
17554   shlibpath_overrides_runpath=yes
17555   hardcode_into_libs=yes
17556   # ldd complains unless libraries are executable
17557   postinstall_cmds='chmod +x $lib'
17558   ;;
17559
17560 sunos4*)
17561   version_type=sunos
17562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17563   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17564   shlibpath_var=LD_LIBRARY_PATH
17565   shlibpath_overrides_runpath=yes
17566   if test "$with_gnu_ld" = yes; then
17567     need_lib_prefix=no
17568   fi
17569   need_version=yes
17570   ;;
17571
17572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17573   version_type=linux
17574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575   soname_spec='${libname}${release}${shared_ext}$major'
17576   shlibpath_var=LD_LIBRARY_PATH
17577   case $host_vendor in
17578     sni)
17579       shlibpath_overrides_runpath=no
17580       need_lib_prefix=no
17581       export_dynamic_flag_spec='${wl}-Blargedynsym'
17582       runpath_var=LD_RUN_PATH
17583       ;;
17584     siemens)
17585       need_lib_prefix=no
17586       ;;
17587     motorola)
17588       need_lib_prefix=no
17589       need_version=no
17590       shlibpath_overrides_runpath=no
17591       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17592       ;;
17593   esac
17594   ;;
17595
17596 sysv4*MP*)
17597   if test -d /usr/nec ;then
17598     version_type=linux
17599     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17600     soname_spec='$libname${shared_ext}.$major'
17601     shlibpath_var=LD_LIBRARY_PATH
17602   fi
17603   ;;
17604
17605 uts4*)
17606   version_type=linux
17607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608   soname_spec='${libname}${release}${shared_ext}$major'
17609   shlibpath_var=LD_LIBRARY_PATH
17610   ;;
17611
17612 *)
17613   dynamic_linker=no
17614   ;;
17615 esac
17616 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17617 echo "${ECHO_T}$dynamic_linker" >&6
17618 test "$dynamic_linker" = no && can_build_shared=no
17619
17620 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17621 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17622 hardcode_action_CXX=
17623 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17624    test -n "$runpath_var_CXX" || \
17625    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17626
17627   # We can hardcode non-existant directories.
17628   if test "$hardcode_direct_CXX" != no &&
17629      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17630      # have to relink, otherwise we might link with an installed library
17631      # when we should be linking with a yet-to-be-installed one
17632      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17633      test "$hardcode_minus_L_CXX" != no; then
17634     # Linking always hardcodes the temporary library directory.
17635     hardcode_action_CXX=relink
17636   else
17637     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17638     hardcode_action_CXX=immediate
17639   fi
17640 else
17641   # We cannot hardcode anything, or else we can only hardcode existing
17642   # directories.
17643   hardcode_action_CXX=unsupported
17644 fi
17645 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17646 echo "${ECHO_T}$hardcode_action_CXX" >&6
17647
17648 if test "$hardcode_action_CXX" = relink; then
17649   # Fast installation is not supported
17650   enable_fast_install=no
17651 elif test "$shlibpath_overrides_runpath" = yes ||
17652      test "$enable_shared" = no; then
17653   # Fast installation is not necessary
17654   enable_fast_install=needless
17655 fi
17656
17657 striplib=
17658 old_striplib=
17659 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17660 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17661 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17662   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17663   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17664   echo "$as_me:$LINENO: result: yes" >&5
17665 echo "${ECHO_T}yes" >&6
17666 else
17667 # FIXME - insert some real tests, host_os isn't really good enough
17668   case $host_os in
17669    darwin*)
17670        if test -n "$STRIP" ; then
17671          striplib="$STRIP -x"
17672          echo "$as_me:$LINENO: result: yes" >&5
17673 echo "${ECHO_T}yes" >&6
17674        else
17675   echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17677 fi
17678        ;;
17679    *)
17680   echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6
17682     ;;
17683   esac
17684 fi
17685
17686 if test "x$enable_dlopen" != xyes; then
17687   enable_dlopen=unknown
17688   enable_dlopen_self=unknown
17689   enable_dlopen_self_static=unknown
17690 else
17691   lt_cv_dlopen=no
17692   lt_cv_dlopen_libs=
17693
17694   case $host_os in
17695   beos*)
17696     lt_cv_dlopen="load_add_on"
17697     lt_cv_dlopen_libs=
17698     lt_cv_dlopen_self=yes
17699     ;;
17700
17701   mingw* | pw32*)
17702     lt_cv_dlopen="LoadLibrary"
17703     lt_cv_dlopen_libs=
17704    ;;
17705
17706   cygwin*)
17707     lt_cv_dlopen="dlopen"
17708     lt_cv_dlopen_libs=
17709    ;;
17710
17711   darwin*)
17712   # if libdl is installed we need to link against it
17713     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   ac_check_lib_save_LIBS=$LIBS
17719 LIBS="-ldl  $LIBS"
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726
17727 /* Override any gcc2 internal prototype to avoid an error.  */
17728 #ifdef __cplusplus
17729 extern "C"
17730 #endif
17731 /* We use char because int might match the return type of a gcc2
17732    builtin and then its argument prototype would still apply.  */
17733 char dlopen ();
17734 int
17735 main ()
17736 {
17737 dlopen ();
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744   (eval $ac_link) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_cxx_werror_flag"
17752                          || test ! -s conftest.err'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; } &&
17758          { ac_try='test -s conftest$ac_exeext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   ac_cv_lib_dl_dlopen=yes
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 ac_cv_lib_dl_dlopen=no
17770 fi
17771 rm -f conftest.err conftest.$ac_objext \
17772       conftest$ac_exeext conftest.$ac_ext
17773 LIBS=$ac_check_lib_save_LIBS
17774 fi
17775 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17777 if test $ac_cv_lib_dl_dlopen = yes; then
17778   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17779 else
17780
17781     lt_cv_dlopen="dyld"
17782     lt_cv_dlopen_libs=
17783     lt_cv_dlopen_self=yes
17784
17785 fi
17786
17787    ;;
17788
17789   *)
17790     echo "$as_me:$LINENO: checking for shl_load" >&5
17791 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17792 if test "${ac_cv_func_shl_load+set}" = set; then
17793   echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795   cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17803 #define shl_load innocuous_shl_load
17804
17805 /* System header to define __stub macros and hopefully few prototypes,
17806     which can conflict with char shl_load (); below.
17807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808     <limits.h> exists even on freestanding compilers.  */
17809
17810 #ifdef __STDC__
17811 # include <limits.h>
17812 #else
17813 # include <assert.h>
17814 #endif
17815
17816 #undef shl_load
17817
17818 /* Override any gcc2 internal prototype to avoid an error.  */
17819 #ifdef __cplusplus
17820 extern "C"
17821 {
17822 #endif
17823 /* We use char because int might match the return type of a gcc2
17824    builtin and then its argument prototype would still apply.  */
17825 char shl_load ();
17826 /* The GNU C library defines this for functions which it implements
17827     to always fail with ENOSYS.  Some functions are actually named
17828     something starting with __ and the normal name is an alias.  */
17829 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17830 choke me
17831 #else
17832 char (*f) () = shl_load;
17833 #endif
17834 #ifdef __cplusplus
17835 }
17836 #endif
17837
17838 int
17839 main ()
17840 {
17841 return f != shl_load;
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17848   (eval $ac_link) 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_cxx_werror_flag"
17856                          || test ! -s conftest.err'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; } &&
17862          { ac_try='test -s conftest$ac_exeext'
17863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864   (eval $ac_try) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   ac_cv_func_shl_load=yes
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 ac_cv_func_shl_load=no
17874 fi
17875 rm -f conftest.err conftest.$ac_objext \
17876       conftest$ac_exeext conftest.$ac_ext
17877 fi
17878 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17879 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17880 if test $ac_cv_func_shl_load = yes; then
17881   lt_cv_dlopen="shl_load"
17882 else
17883   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17884 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17885 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17886   echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888   ac_check_lib_save_LIBS=$LIBS
17889 LIBS="-ldld  $LIBS"
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896
17897 /* Override any gcc2 internal prototype to avoid an error.  */
17898 #ifdef __cplusplus
17899 extern "C"
17900 #endif
17901 /* We use char because int might match the return type of a gcc2
17902    builtin and then its argument prototype would still apply.  */
17903 char shl_load ();
17904 int
17905 main ()
17906 {
17907 shl_load ();
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17914   (eval $ac_link) 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } &&
17921          { ac_try='test -z "$ac_cxx_werror_flag"
17922                          || test ! -s conftest.err'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; } &&
17928          { ac_try='test -s conftest$ac_exeext'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   ac_cv_lib_dld_shl_load=yes
17935 else
17936   echo "$as_me: failed program was:" >&5
17937 sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 ac_cv_lib_dld_shl_load=no
17940 fi
17941 rm -f conftest.err conftest.$ac_objext \
17942       conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17944 fi
17945 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17946 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17947 if test $ac_cv_lib_dld_shl_load = yes; then
17948   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17949 else
17950   echo "$as_me:$LINENO: checking for dlopen" >&5
17951 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17952 if test "${ac_cv_func_dlopen+set}" = set; then
17953   echo $ECHO_N "(cached) $ECHO_C" >&6
17954 else
17955   cat >conftest.$ac_ext <<_ACEOF
17956 /* confdefs.h.  */
17957 _ACEOF
17958 cat confdefs.h >>conftest.$ac_ext
17959 cat >>conftest.$ac_ext <<_ACEOF
17960 /* end confdefs.h.  */
17961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17963 #define dlopen innocuous_dlopen
17964
17965 /* System header to define __stub macros and hopefully few prototypes,
17966     which can conflict with char dlopen (); below.
17967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17968     <limits.h> exists even on freestanding compilers.  */
17969
17970 #ifdef __STDC__
17971 # include <limits.h>
17972 #else
17973 # include <assert.h>
17974 #endif
17975
17976 #undef dlopen
17977
17978 /* Override any gcc2 internal prototype to avoid an error.  */
17979 #ifdef __cplusplus
17980 extern "C"
17981 {
17982 #endif
17983 /* We use char because int might match the return type of a gcc2
17984    builtin and then its argument prototype would still apply.  */
17985 char dlopen ();
17986 /* The GNU C library defines this for functions which it implements
17987     to always fail with ENOSYS.  Some functions are actually named
17988     something starting with __ and the normal name is an alias.  */
17989 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17990 choke me
17991 #else
17992 char (*f) () = dlopen;
17993 #endif
17994 #ifdef __cplusplus
17995 }
17996 #endif
17997
17998 int
17999 main ()
18000 {
18001 return f != dlopen;
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18008   (eval $ac_link) 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } &&
18015          { ac_try='test -z "$ac_cxx_werror_flag"
18016                          || test ! -s conftest.err'
18017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018   (eval $ac_try) 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; } &&
18022          { ac_try='test -s conftest$ac_exeext'
18023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024   (eval $ac_try) 2>&5
18025   ac_status=$?
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); }; }; then
18028   ac_cv_func_dlopen=yes
18029 else
18030   echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 ac_cv_func_dlopen=no
18034 fi
18035 rm -f conftest.err conftest.$ac_objext \
18036       conftest$ac_exeext conftest.$ac_ext
18037 fi
18038 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18040 if test $ac_cv_func_dlopen = yes; then
18041   lt_cv_dlopen="dlopen"
18042 else
18043   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18046   echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048   ac_check_lib_save_LIBS=$LIBS
18049 LIBS="-ldl  $LIBS"
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h.  */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h.  */
18056
18057 /* Override any gcc2 internal prototype to avoid an error.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 #endif
18061 /* We use char because int might match the return type of a gcc2
18062    builtin and then its argument prototype would still apply.  */
18063 char dlopen ();
18064 int
18065 main ()
18066 {
18067 dlopen ();
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext conftest$ac_exeext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18074   (eval $ac_link) 2>conftest.er1
18075   ac_status=$?
18076   grep -v '^ *+' conftest.er1 >conftest.err
18077   rm -f conftest.er1
18078   cat conftest.err >&5
18079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080   (exit $ac_status); } &&
18081          { ac_try='test -z "$ac_cxx_werror_flag"
18082                          || test ! -s conftest.err'
18083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084   (eval $ac_try) 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; } &&
18088          { ac_try='test -s conftest$ac_exeext'
18089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090   (eval $ac_try) 2>&5
18091   ac_status=$?
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); }; }; then
18094   ac_cv_lib_dl_dlopen=yes
18095 else
18096   echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 ac_cv_lib_dl_dlopen=no
18100 fi
18101 rm -f conftest.err conftest.$ac_objext \
18102       conftest$ac_exeext conftest.$ac_ext
18103 LIBS=$ac_check_lib_save_LIBS
18104 fi
18105 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18106 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18107 if test $ac_cv_lib_dl_dlopen = yes; then
18108   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18109 else
18110   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18111 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115   ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lsvld  $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 /* Override any gcc2 internal prototype to avoid an error.  */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 /* We use char because int might match the return type of a gcc2
18129    builtin and then its argument prototype would still apply.  */
18130 char dlopen ();
18131 int
18132 main ()
18133 {
18134 dlopen ();
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18141   (eval $ac_link) 2>conftest.er1
18142   ac_status=$?
18143   grep -v '^ *+' conftest.er1 >conftest.err
18144   rm -f conftest.er1
18145   cat conftest.err >&5
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); } &&
18148          { ac_try='test -z "$ac_cxx_werror_flag"
18149                          || test ! -s conftest.err'
18150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151   (eval $ac_try) 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; } &&
18155          { ac_try='test -s conftest$ac_exeext'
18156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157   (eval $ac_try) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   ac_cv_lib_svld_dlopen=yes
18162 else
18163   echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_cv_lib_svld_dlopen=no
18167 fi
18168 rm -f conftest.err conftest.$ac_objext \
18169       conftest$ac_exeext conftest.$ac_ext
18170 LIBS=$ac_check_lib_save_LIBS
18171 fi
18172 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18173 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18174 if test $ac_cv_lib_svld_dlopen = yes; then
18175   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18176 else
18177   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18178 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18179 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18180   echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182   ac_check_lib_save_LIBS=$LIBS
18183 LIBS="-ldld  $LIBS"
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190
18191 /* Override any gcc2 internal prototype to avoid an error.  */
18192 #ifdef __cplusplus
18193 extern "C"
18194 #endif
18195 /* We use char because int might match the return type of a gcc2
18196    builtin and then its argument prototype would still apply.  */
18197 char dld_link ();
18198 int
18199 main ()
18200 {
18201 dld_link ();
18202   ;
18203   return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18208   (eval $ac_link) 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } &&
18215          { ac_try='test -z "$ac_cxx_werror_flag"
18216                          || test ! -s conftest.err'
18217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218   (eval $ac_try) 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; } &&
18222          { ac_try='test -s conftest$ac_exeext'
18223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224   (eval $ac_try) 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; }; then
18228   ac_cv_lib_dld_dld_link=yes
18229 else
18230   echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233 ac_cv_lib_dld_dld_link=no
18234 fi
18235 rm -f conftest.err conftest.$ac_objext \
18236       conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18238 fi
18239 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18240 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18241 if test $ac_cv_lib_dld_dld_link = yes; then
18242   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18243 fi
18244
18245
18246 fi
18247
18248
18249 fi
18250
18251
18252 fi
18253
18254
18255 fi
18256
18257
18258 fi
18259
18260     ;;
18261   esac
18262
18263   if test "x$lt_cv_dlopen" != xno; then
18264     enable_dlopen=yes
18265   else
18266     enable_dlopen=no
18267   fi
18268
18269   case $lt_cv_dlopen in
18270   dlopen)
18271     save_CPPFLAGS="$CPPFLAGS"
18272     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18273
18274     save_LDFLAGS="$LDFLAGS"
18275     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18276
18277     save_LIBS="$LIBS"
18278     LIBS="$lt_cv_dlopen_libs $LIBS"
18279
18280     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18281 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18282 if test "${lt_cv_dlopen_self+set}" = set; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285           if test "$cross_compiling" = yes; then :
18286   lt_cv_dlopen_self=cross
18287 else
18288   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18289   lt_status=$lt_dlunknown
18290   cat > conftest.$ac_ext <<EOF
18291 #line 18291 "configure"
18292 #include "confdefs.h"
18293
18294 #if HAVE_DLFCN_H
18295 #include <dlfcn.h>
18296 #endif
18297
18298 #include <stdio.h>
18299
18300 #ifdef RTLD_GLOBAL
18301 #  define LT_DLGLOBAL           RTLD_GLOBAL
18302 #else
18303 #  ifdef DL_GLOBAL
18304 #    define LT_DLGLOBAL         DL_GLOBAL
18305 #  else
18306 #    define LT_DLGLOBAL         0
18307 #  endif
18308 #endif
18309
18310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18311    find out it does not work in some platform. */
18312 #ifndef LT_DLLAZY_OR_NOW
18313 #  ifdef RTLD_LAZY
18314 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18315 #  else
18316 #    ifdef DL_LAZY
18317 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18318 #    else
18319 #      ifdef RTLD_NOW
18320 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18321 #      else
18322 #        ifdef DL_NOW
18323 #          define LT_DLLAZY_OR_NOW      DL_NOW
18324 #        else
18325 #          define LT_DLLAZY_OR_NOW      0
18326 #        endif
18327 #      endif
18328 #    endif
18329 #  endif
18330 #endif
18331
18332 #ifdef __cplusplus
18333 extern "C" void exit (int);
18334 #endif
18335
18336 void fnord() { int i=42;}
18337 int main ()
18338 {
18339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18340   int status = $lt_dlunknown;
18341
18342   if (self)
18343     {
18344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18345       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18346       /* dlclose (self); */
18347     }
18348
18349     exit (status);
18350 }
18351 EOF
18352   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18353   (eval $ac_link) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18357     (./conftest; exit; ) 2>/dev/null
18358     lt_status=$?
18359     case x$lt_status in
18360       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18361       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18362       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18363     esac
18364   else :
18365     # compilation failed
18366     lt_cv_dlopen_self=no
18367   fi
18368 fi
18369 rm -fr conftest*
18370
18371
18372 fi
18373 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18374 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18375
18376     if test "x$lt_cv_dlopen_self" = xyes; then
18377       LDFLAGS="$LDFLAGS $link_static_flag"
18378       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18379 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18380 if test "${lt_cv_dlopen_self_static+set}" = set; then
18381   echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383           if test "$cross_compiling" = yes; then :
18384   lt_cv_dlopen_self_static=cross
18385 else
18386   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18387   lt_status=$lt_dlunknown
18388   cat > conftest.$ac_ext <<EOF
18389 #line 18389 "configure"
18390 #include "confdefs.h"
18391
18392 #if HAVE_DLFCN_H
18393 #include <dlfcn.h>
18394 #endif
18395
18396 #include <stdio.h>
18397
18398 #ifdef RTLD_GLOBAL
18399 #  define LT_DLGLOBAL           RTLD_GLOBAL
18400 #else
18401 #  ifdef DL_GLOBAL
18402 #    define LT_DLGLOBAL         DL_GLOBAL
18403 #  else
18404 #    define LT_DLGLOBAL         0
18405 #  endif
18406 #endif
18407
18408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18409    find out it does not work in some platform. */
18410 #ifndef LT_DLLAZY_OR_NOW
18411 #  ifdef RTLD_LAZY
18412 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18413 #  else
18414 #    ifdef DL_LAZY
18415 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18416 #    else
18417 #      ifdef RTLD_NOW
18418 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18419 #      else
18420 #        ifdef DL_NOW
18421 #          define LT_DLLAZY_OR_NOW      DL_NOW
18422 #        else
18423 #          define LT_DLLAZY_OR_NOW      0
18424 #        endif
18425 #      endif
18426 #    endif
18427 #  endif
18428 #endif
18429
18430 #ifdef __cplusplus
18431 extern "C" void exit (int);
18432 #endif
18433
18434 void fnord() { int i=42;}
18435 int main ()
18436 {
18437   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18438   int status = $lt_dlunknown;
18439
18440   if (self)
18441     {
18442       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18443       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18444       /* dlclose (self); */
18445     }
18446
18447     exit (status);
18448 }
18449 EOF
18450   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18451   (eval $ac_link) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18455     (./conftest; exit; ) 2>/dev/null
18456     lt_status=$?
18457     case x$lt_status in
18458       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18459       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18460       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18461     esac
18462   else :
18463     # compilation failed
18464     lt_cv_dlopen_self_static=no
18465   fi
18466 fi
18467 rm -fr conftest*
18468
18469
18470 fi
18471 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18472 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18473     fi
18474
18475     CPPFLAGS="$save_CPPFLAGS"
18476     LDFLAGS="$save_LDFLAGS"
18477     LIBS="$save_LIBS"
18478     ;;
18479   esac
18480
18481   case $lt_cv_dlopen_self in
18482   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18483   *) enable_dlopen_self=unknown ;;
18484   esac
18485
18486   case $lt_cv_dlopen_self_static in
18487   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18488   *) enable_dlopen_self_static=unknown ;;
18489   esac
18490 fi
18491
18492
18493 # The else clause should only fire when bootstrapping the
18494 # libtool distribution, otherwise you forgot to ship ltmain.sh
18495 # with your package, and you will get complaints that there are
18496 # no rules to generate ltmain.sh.
18497 if test -f "$ltmain"; then
18498   # See if we are running on zsh, and set the options which allow our commands through
18499   # without removal of \ escapes.
18500   if test -n "${ZSH_VERSION+set}" ; then
18501     setopt NO_GLOB_SUBST
18502   fi
18503   # Now quote all the things that may contain metacharacters while being
18504   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18505   # variables and quote the copies for generation of the libtool script.
18506   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18507     SED SHELL STRIP \
18508     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18509     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18510     deplibs_check_method reload_flag reload_cmds need_locks \
18511     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18512     lt_cv_sys_global_symbol_to_c_name_address \
18513     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18514     old_postinstall_cmds old_postuninstall_cmds \
18515     compiler_CXX \
18516     CC_CXX \
18517     LD_CXX \
18518     lt_prog_compiler_wl_CXX \
18519     lt_prog_compiler_pic_CXX \
18520     lt_prog_compiler_static_CXX \
18521     lt_prog_compiler_no_builtin_flag_CXX \
18522     export_dynamic_flag_spec_CXX \
18523     thread_safe_flag_spec_CXX \
18524     whole_archive_flag_spec_CXX \
18525     enable_shared_with_static_runtimes_CXX \
18526     old_archive_cmds_CXX \
18527     old_archive_from_new_cmds_CXX \
18528     predep_objects_CXX \
18529     postdep_objects_CXX \
18530     predeps_CXX \
18531     postdeps_CXX \
18532     compiler_lib_search_path_CXX \
18533     archive_cmds_CXX \
18534     archive_expsym_cmds_CXX \
18535     postinstall_cmds_CXX \
18536     postuninstall_cmds_CXX \
18537     old_archive_from_expsyms_cmds_CXX \
18538     allow_undefined_flag_CXX \
18539     no_undefined_flag_CXX \
18540     export_symbols_cmds_CXX \
18541     hardcode_libdir_flag_spec_CXX \
18542     hardcode_libdir_flag_spec_ld_CXX \
18543     hardcode_libdir_separator_CXX \
18544     hardcode_automatic_CXX \
18545     module_cmds_CXX \
18546     module_expsym_cmds_CXX \
18547     lt_cv_prog_compiler_c_o_CXX \
18548     exclude_expsyms_CXX \
18549     include_expsyms_CXX; do
18550
18551     case $var in
18552     old_archive_cmds_CXX | \
18553     old_archive_from_new_cmds_CXX | \
18554     archive_cmds_CXX | \
18555     archive_expsym_cmds_CXX | \
18556     module_cmds_CXX | \
18557     module_expsym_cmds_CXX | \
18558     old_archive_from_expsyms_cmds_CXX | \
18559     export_symbols_cmds_CXX | \
18560     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18561     postinstall_cmds | postuninstall_cmds | \
18562     old_postinstall_cmds | old_postuninstall_cmds | \
18563     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18564       # Double-quote double-evaled strings.
18565       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18566       ;;
18567     *)
18568       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18569       ;;
18570     esac
18571   done
18572
18573   case $lt_echo in
18574   *'\$0 --fallback-echo"')
18575     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18576     ;;
18577   esac
18578
18579 cfgfile="$ofile"
18580
18581   cat <<__EOF__ >> "$cfgfile"
18582 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18583
18584 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18585
18586 # Shell to use when invoking shell scripts.
18587 SHELL=$lt_SHELL
18588
18589 # Whether or not to build shared libraries.
18590 build_libtool_libs=$enable_shared
18591
18592 # Whether or not to build static libraries.
18593 build_old_libs=$enable_static
18594
18595 # Whether or not to add -lc for building shared libraries.
18596 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18597
18598 # Whether or not to disallow shared libs when runtime libs are static
18599 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18600
18601 # Whether or not to optimize for fast installation.
18602 fast_install=$enable_fast_install
18603
18604 # The host system.
18605 host_alias=$host_alias
18606 host=$host
18607
18608 # An echo program that does not interpret backslashes.
18609 echo=$lt_echo
18610
18611 # The archiver.
18612 AR=$lt_AR
18613 AR_FLAGS=$lt_AR_FLAGS
18614
18615 # A C compiler.
18616 LTCC=$lt_LTCC
18617
18618 # A language-specific compiler.
18619 CC=$lt_compiler_CXX
18620
18621 # Is the compiler the GNU C compiler?
18622 with_gcc=$GCC_CXX
18623
18624 # An ERE matcher.
18625 EGREP=$lt_EGREP
18626
18627 # The linker used to build libraries.
18628 LD=$lt_LD_CXX
18629
18630 # Whether we need hard or soft links.
18631 LN_S=$lt_LN_S
18632
18633 # A BSD-compatible nm program.
18634 NM=$lt_NM
18635
18636 # A symbol stripping program
18637 STRIP=$lt_STRIP
18638
18639 # Used to examine libraries when file_magic_cmd begins "file"
18640 MAGIC_CMD=$MAGIC_CMD
18641
18642 # Used on cygwin: DLL creation program.
18643 DLLTOOL="$DLLTOOL"
18644
18645 # Used on cygwin: object dumper.
18646 OBJDUMP="$OBJDUMP"
18647
18648 # Used on cygwin: assembler.
18649 AS="$AS"
18650
18651 # The name of the directory that contains temporary libtool files.
18652 objdir=$objdir
18653
18654 # How to create reloadable object files.
18655 reload_flag=$lt_reload_flag
18656 reload_cmds=$lt_reload_cmds
18657
18658 # How to pass a linker flag through the compiler.
18659 wl=$lt_lt_prog_compiler_wl_CXX
18660
18661 # Object file suffix (normally "o").
18662 objext="$ac_objext"
18663
18664 # Old archive suffix (normally "a").
18665 libext="$libext"
18666
18667 # Shared library suffix (normally ".so").
18668 shrext_cmds='$shrext_cmds'
18669
18670 # Executable file suffix (normally "").
18671 exeext="$exeext"
18672
18673 # Additional compiler flags for building library objects.
18674 pic_flag=$lt_lt_prog_compiler_pic_CXX
18675 pic_mode=$pic_mode
18676
18677 # What is the maximum length of a command?
18678 max_cmd_len=$lt_cv_sys_max_cmd_len
18679
18680 # Does compiler simultaneously support -c and -o options?
18681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18682
18683 # Must we lock files when doing compilation ?
18684 need_locks=$lt_need_locks
18685
18686 # Do we need the lib prefix for modules?
18687 need_lib_prefix=$need_lib_prefix
18688
18689 # Do we need a version for libraries?
18690 need_version=$need_version
18691
18692 # Whether dlopen is supported.
18693 dlopen_support=$enable_dlopen
18694
18695 # Whether dlopen of programs is supported.
18696 dlopen_self=$enable_dlopen_self
18697
18698 # Whether dlopen of statically linked programs is supported.
18699 dlopen_self_static=$enable_dlopen_self_static
18700
18701 # Compiler flag to prevent dynamic linking.
18702 link_static_flag=$lt_lt_prog_compiler_static_CXX
18703
18704 # Compiler flag to turn off builtin functions.
18705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18706
18707 # Compiler flag to allow reflexive dlopens.
18708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18709
18710 # Compiler flag to generate shared objects directly from archives.
18711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18712
18713 # Compiler flag to generate thread-safe objects.
18714 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18715
18716 # Library versioning type.
18717 version_type=$version_type
18718
18719 # Format of library name prefix.
18720 libname_spec=$lt_libname_spec
18721
18722 # List of archive names.  First name is the real one, the rest are links.
18723 # The last name is the one that the linker finds with -lNAME.
18724 library_names_spec=$lt_library_names_spec
18725
18726 # The coded name of the library, if different from the real name.
18727 soname_spec=$lt_soname_spec
18728
18729 # Commands used to build and install an old-style archive.
18730 RANLIB=$lt_RANLIB
18731 old_archive_cmds=$lt_old_archive_cmds_CXX
18732 old_postinstall_cmds=$lt_old_postinstall_cmds
18733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18734
18735 # Create an old-style archive from a shared archive.
18736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18737
18738 # Create a temporary old-style archive to link instead of a shared archive.
18739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18740
18741 # Commands used to build and install a shared archive.
18742 archive_cmds=$lt_archive_cmds_CXX
18743 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18744 postinstall_cmds=$lt_postinstall_cmds
18745 postuninstall_cmds=$lt_postuninstall_cmds
18746
18747 # Commands used to build a loadable module (assumed same as above if empty)
18748 module_cmds=$lt_module_cmds_CXX
18749 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18750
18751 # Commands to strip libraries.
18752 old_striplib=$lt_old_striplib
18753 striplib=$lt_striplib
18754
18755 # Dependencies to place before the objects being linked to create a
18756 # shared library.
18757 predep_objects=$lt_predep_objects_CXX
18758
18759 # Dependencies to place after the objects being linked to create a
18760 # shared library.
18761 postdep_objects=$lt_postdep_objects_CXX
18762
18763 # Dependencies to place before the objects being linked to create a
18764 # shared library.
18765 predeps=$lt_predeps_CXX
18766
18767 # Dependencies to place after the objects being linked to create a
18768 # shared library.
18769 postdeps=$lt_postdeps_CXX
18770
18771 # The library search path used internally by the compiler when linking
18772 # a shared library.
18773 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18774
18775 # Method to check whether dependent libraries are shared objects.
18776 deplibs_check_method=$lt_deplibs_check_method
18777
18778 # Command to use when deplibs_check_method == file_magic.
18779 file_magic_cmd=$lt_file_magic_cmd
18780
18781 # Flag that allows shared libraries with undefined symbols to be built.
18782 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18783
18784 # Flag that forces no undefined symbols.
18785 no_undefined_flag=$lt_no_undefined_flag_CXX
18786
18787 # Commands used to finish a libtool library installation in a directory.
18788 finish_cmds=$lt_finish_cmds
18789
18790 # Same as above, but a single script fragment to be evaled but not shown.
18791 finish_eval=$lt_finish_eval
18792
18793 # Take the output of nm and produce a listing of raw symbols and C names.
18794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18795
18796 # Transform the output of nm in a proper C declaration
18797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18798
18799 # Transform the output of nm in a C name address pair
18800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18801
18802 # This is the shared library runtime path variable.
18803 runpath_var=$runpath_var
18804
18805 # This is the shared library path variable.
18806 shlibpath_var=$shlibpath_var
18807
18808 # Is shlibpath searched before the hard-coded library search path?
18809 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18810
18811 # How to hardcode a shared library path into an executable.
18812 hardcode_action=$hardcode_action_CXX
18813
18814 # Whether we should hardcode library paths into libraries.
18815 hardcode_into_libs=$hardcode_into_libs
18816
18817 # Flag to hardcode \$libdir into a binary during linking.
18818 # This must work even if \$libdir does not exist.
18819 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18820
18821 # If ld is used when linking, flag to hardcode \$libdir into
18822 # a binary during linking. This must work even if \$libdir does
18823 # not exist.
18824 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18825
18826 # Whether we need a single -rpath flag with a separated argument.
18827 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18828
18829 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18830 # resulting binary.
18831 hardcode_direct=$hardcode_direct_CXX
18832
18833 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18834 # resulting binary.
18835 hardcode_minus_L=$hardcode_minus_L_CXX
18836
18837 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18838 # the resulting binary.
18839 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18840
18841 # Set to yes if building a shared library automatically hardcodes DIR into the library
18842 # and all subsequent libraries and executables linked against it.
18843 hardcode_automatic=$hardcode_automatic_CXX
18844
18845 # Variables whose values should be saved in libtool wrapper scripts and
18846 # restored at relink time.
18847 variables_saved_for_relink="$variables_saved_for_relink"
18848
18849 # Whether libtool must link a program against all its dependency libraries.
18850 link_all_deplibs=$link_all_deplibs_CXX
18851
18852 # Compile-time system search path for libraries
18853 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18854
18855 # Run-time system search path for libraries
18856 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18857
18858 # Fix the shell variable \$srcfile for the compiler.
18859 fix_srcfile_path="$fix_srcfile_path_CXX"
18860
18861 # Set to yes if exported symbols are required.
18862 always_export_symbols=$always_export_symbols_CXX
18863
18864 # The commands to list exported symbols.
18865 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18866
18867 # The commands to extract the exported symbol list from a shared archive.
18868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18869
18870 # Symbols that should not be listed in the preloaded symbols.
18871 exclude_expsyms=$lt_exclude_expsyms_CXX
18872
18873 # Symbols that must always be exported.
18874 include_expsyms=$lt_include_expsyms_CXX
18875
18876 # ### END LIBTOOL TAG CONFIG: $tagname
18877
18878 __EOF__
18879
18880
18881 else
18882   # If there is no Makefile yet, we rely on a make rule to execute
18883   # `config.status --recheck' to rerun these tests and create the
18884   # libtool script then.
18885   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18886   if test -f "$ltmain_in"; then
18887     test -f Makefile && make "$ltmain"
18888   fi
18889 fi
18890
18891
18892 ac_ext=c
18893 ac_cpp='$CPP $CPPFLAGS'
18894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18897
18898 CC=$lt_save_CC
18899 LDCXX=$LD
18900 LD=$lt_save_LD
18901 GCC=$lt_save_GCC
18902 with_gnu_ldcxx=$with_gnu_ld
18903 with_gnu_ld=$lt_save_with_gnu_ld
18904 lt_cv_path_LDCXX=$lt_cv_path_LD
18905 lt_cv_path_LD=$lt_save_path_LD
18906 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18907 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18908
18909         else
18910           tagname=""
18911         fi
18912         ;;
18913
18914       F77)
18915         if test -n "$F77" && test "X$F77" != "Xno"; then
18916
18917 ac_ext=f
18918 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18919 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18921
18922
18923 archive_cmds_need_lc_F77=no
18924 allow_undefined_flag_F77=
18925 always_export_symbols_F77=no
18926 archive_expsym_cmds_F77=
18927 export_dynamic_flag_spec_F77=
18928 hardcode_direct_F77=no
18929 hardcode_libdir_flag_spec_F77=
18930 hardcode_libdir_flag_spec_ld_F77=
18931 hardcode_libdir_separator_F77=
18932 hardcode_minus_L_F77=no
18933 hardcode_automatic_F77=no
18934 module_cmds_F77=
18935 module_expsym_cmds_F77=
18936 link_all_deplibs_F77=unknown
18937 old_archive_cmds_F77=$old_archive_cmds
18938 no_undefined_flag_F77=
18939 whole_archive_flag_spec_F77=
18940 enable_shared_with_static_runtimes_F77=no
18941
18942 # Source file extension for f77 test sources.
18943 ac_ext=f
18944
18945 # Object file extension for compiled f77 test sources.
18946 objext=o
18947 objext_F77=$objext
18948
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18951
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code="      program t\n      end\n"
18954
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18956
18957 # If no C compiler was specified, use CC.
18958 LTCC=${LTCC-"$CC"}
18959
18960 # Allow CC to be a program name with arguments.
18961 compiler=$CC
18962
18963
18964 # Allow CC to be a program name with arguments.
18965 lt_save_CC="$CC"
18966 CC=${F77-"f77"}
18967 compiler=$CC
18968 compiler_F77=$CC
18969 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18970
18971 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18972 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18973 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18974 echo "${ECHO_T}$can_build_shared" >&6
18975
18976 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18977 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18978 test "$can_build_shared" = "no" && enable_shared=no
18979
18980 # On AIX, shared libraries and static libraries use the same namespace, and
18981 # are all built from PIC.
18982 case "$host_os" in
18983 aix3*)
18984   test "$enable_shared" = yes && enable_static=no
18985   if test -n "$RANLIB"; then
18986     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18987     postinstall_cmds='$RANLIB $lib'
18988   fi
18989   ;;
18990 aix4* | aix5*)
18991   test "$enable_shared" = yes && enable_static=no
18992   ;;
18993 esac
18994 echo "$as_me:$LINENO: result: $enable_shared" >&5
18995 echo "${ECHO_T}$enable_shared" >&6
18996
18997 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18998 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18999 # Make sure either enable_shared or enable_static is yes.
19000 test "$enable_shared" = yes || enable_static=yes
19001 echo "$as_me:$LINENO: result: $enable_static" >&5
19002 echo "${ECHO_T}$enable_static" >&6
19003
19004 test "$ld_shlibs_F77" = no && can_build_shared=no
19005
19006 GCC_F77="$G77"
19007 LD_F77="$LD"
19008
19009 lt_prog_compiler_wl_F77=
19010 lt_prog_compiler_pic_F77=
19011 lt_prog_compiler_static_F77=
19012
19013 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19014 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19015
19016   if test "$GCC" = yes; then
19017     lt_prog_compiler_wl_F77='-Wl,'
19018     lt_prog_compiler_static_F77='-static'
19019
19020     case $host_os in
19021       aix*)
19022       # All AIX code is PIC.
19023       if test "$host_cpu" = ia64; then
19024         # AIX 5 now supports IA64 processor
19025         lt_prog_compiler_static_F77='-Bstatic'
19026       fi
19027       ;;
19028
19029     amigaos*)
19030       # FIXME: we need at least 68020 code to build shared libraries, but
19031       # adding the `-m68020' flag to GCC prevents building anything better,
19032       # like `-m68040'.
19033       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19034       ;;
19035
19036     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19037       # PIC is the default for these OSes.
19038       ;;
19039
19040     mingw* | pw32* | os2*)
19041       # This hack is so that the source file can tell whether it is being
19042       # built for inclusion in a dll (and should export symbols for example).
19043       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19044       ;;
19045
19046     darwin* | rhapsody*)
19047       # PIC is the default on this platform
19048       # Common symbols not allowed in MH_DYLIB files
19049       lt_prog_compiler_pic_F77='-fno-common'
19050       ;;
19051
19052     msdosdjgpp*)
19053       # Just because we use GCC doesn't mean we suddenly get shared libraries
19054       # on systems that don't support them.
19055       lt_prog_compiler_can_build_shared_F77=no
19056       enable_shared=no
19057       ;;
19058
19059     sysv4*MP*)
19060       if test -d /usr/nec; then
19061         lt_prog_compiler_pic_F77=-Kconform_pic
19062       fi
19063       ;;
19064
19065     hpux*)
19066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19067       # not for PA HP-UX.
19068       case "$host_cpu" in
19069       hppa*64*|ia64*)
19070         # +Z the default
19071         ;;
19072       *)
19073         lt_prog_compiler_pic_F77='-fPIC'
19074         ;;
19075       esac
19076       ;;
19077
19078     *)
19079       lt_prog_compiler_pic_F77='-fPIC'
19080       ;;
19081     esac
19082   else
19083     # PORTME Check for flag to pass linker flags through the system compiler.
19084     case $host_os in
19085     aix*)
19086       lt_prog_compiler_wl_F77='-Wl,'
19087       if test "$host_cpu" = ia64; then
19088         # AIX 5 now supports IA64 processor
19089         lt_prog_compiler_static_F77='-Bstatic'
19090       else
19091         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19092       fi
19093       ;;
19094       darwin*)
19095         # PIC is the default on this platform
19096         # Common symbols not allowed in MH_DYLIB files
19097        case "$cc_basename" in
19098          xlc*)
19099          lt_prog_compiler_pic_F77='-qnocommon'
19100          lt_prog_compiler_wl_F77='-Wl,'
19101          ;;
19102        esac
19103        ;;
19104
19105     mingw* | pw32* | os2*)
19106       # This hack is so that the source file can tell whether it is being
19107       # built for inclusion in a dll (and should export symbols for example).
19108       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19109       ;;
19110
19111     hpux9* | hpux10* | hpux11*)
19112       lt_prog_compiler_wl_F77='-Wl,'
19113       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19114       # not for PA HP-UX.
19115       case "$host_cpu" in
19116       hppa*64*|ia64*)
19117         # +Z the default
19118         ;;
19119       *)
19120         lt_prog_compiler_pic_F77='+Z'
19121         ;;
19122       esac
19123       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19124       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19125       ;;
19126
19127     irix5* | irix6* | nonstopux*)
19128       lt_prog_compiler_wl_F77='-Wl,'
19129       # PIC (with -KPIC) is the default.
19130       lt_prog_compiler_static_F77='-non_shared'
19131       ;;
19132
19133     newsos6)
19134       lt_prog_compiler_pic_F77='-KPIC'
19135       lt_prog_compiler_static_F77='-Bstatic'
19136       ;;
19137
19138     linux*)
19139       case $CC in
19140       icc* | ecc*)
19141         lt_prog_compiler_wl_F77='-Wl,'
19142         lt_prog_compiler_pic_F77='-KPIC'
19143         lt_prog_compiler_static_F77='-static'
19144         ;;
19145       ccc*)
19146         lt_prog_compiler_wl_F77='-Wl,'
19147         # All Alpha code is PIC.
19148         lt_prog_compiler_static_F77='-non_shared'
19149         ;;
19150       esac
19151       ;;
19152
19153     osf3* | osf4* | osf5*)
19154       lt_prog_compiler_wl_F77='-Wl,'
19155       # All OSF/1 code is PIC.
19156       lt_prog_compiler_static_F77='-non_shared'
19157       ;;
19158
19159     sco3.2v5*)
19160       lt_prog_compiler_pic_F77='-Kpic'
19161       lt_prog_compiler_static_F77='-dn'
19162       ;;
19163
19164     solaris*)
19165       lt_prog_compiler_wl_F77='-Wl,'
19166       lt_prog_compiler_pic_F77='-KPIC'
19167       lt_prog_compiler_static_F77='-Bstatic'
19168       ;;
19169
19170     sunos4*)
19171       lt_prog_compiler_wl_F77='-Qoption ld '
19172       lt_prog_compiler_pic_F77='-PIC'
19173       lt_prog_compiler_static_F77='-Bstatic'
19174       ;;
19175
19176     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19177       lt_prog_compiler_wl_F77='-Wl,'
19178       lt_prog_compiler_pic_F77='-KPIC'
19179       lt_prog_compiler_static_F77='-Bstatic'
19180       ;;
19181
19182     sysv4*MP*)
19183       if test -d /usr/nec ;then
19184         lt_prog_compiler_pic_F77='-Kconform_pic'
19185         lt_prog_compiler_static_F77='-Bstatic'
19186       fi
19187       ;;
19188
19189     uts4*)
19190       lt_prog_compiler_pic_F77='-pic'
19191       lt_prog_compiler_static_F77='-Bstatic'
19192       ;;
19193
19194     *)
19195       lt_prog_compiler_can_build_shared_F77=no
19196       ;;
19197     esac
19198   fi
19199
19200 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19201 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19202
19203 #
19204 # Check to make sure the PIC flag actually works.
19205 #
19206 if test -n "$lt_prog_compiler_pic_F77"; then
19207
19208 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19209 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19210 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19211   echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213   lt_prog_compiler_pic_works_F77=no
19214   ac_outfile=conftest.$ac_objext
19215    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19216    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19217    # Insert the option either (1) after the last *FLAGS variable, or
19218    # (2) before a word containing "conftest.", or (3) at the end.
19219    # Note that $ac_compile itself does not contain backslashes and begins
19220    # with a dollar sign (not a hyphen), so the echo should work correctly.
19221    # The option is referenced via a variable to avoid confusing sed.
19222    lt_compile=`echo "$ac_compile" | $SED \
19223    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19225    -e 's:$: $lt_compiler_flag:'`
19226    (eval echo "\"\$as_me:19226: $lt_compile\"" >&5)
19227    (eval "$lt_compile" 2>conftest.err)
19228    ac_status=$?
19229    cat conftest.err >&5
19230    echo "$as_me:19230: \$? = $ac_status" >&5
19231    if (exit $ac_status) && test -s "$ac_outfile"; then
19232      # The compiler can only warn and ignore the option if not recognized
19233      # So say no if there are warnings
19234      if test ! -s conftest.err; then
19235        lt_prog_compiler_pic_works_F77=yes
19236      fi
19237    fi
19238    $rm conftest*
19239
19240 fi
19241 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19242 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19243
19244 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19245     case $lt_prog_compiler_pic_F77 in
19246      "" | " "*) ;;
19247      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19248      esac
19249 else
19250     lt_prog_compiler_pic_F77=
19251      lt_prog_compiler_can_build_shared_F77=no
19252 fi
19253
19254 fi
19255 case "$host_os" in
19256   # For platforms which do not support PIC, -DPIC is meaningless:
19257   *djgpp*)
19258     lt_prog_compiler_pic_F77=
19259     ;;
19260   *)
19261     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19262     ;;
19263 esac
19264
19265 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19266 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19267 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19268   echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270   lt_cv_prog_compiler_c_o_F77=no
19271    $rm -r conftest 2>/dev/null
19272    mkdir conftest
19273    cd conftest
19274    mkdir out
19275    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19276
19277    lt_compiler_flag="-o out/conftest2.$ac_objext"
19278    # Insert the option either (1) after the last *FLAGS variable, or
19279    # (2) before a word containing "conftest.", or (3) at the end.
19280    # Note that $ac_compile itself does not contain backslashes and begins
19281    # with a dollar sign (not a hyphen), so the echo should work correctly.
19282    lt_compile=`echo "$ac_compile" | $SED \
19283    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19285    -e 's:$: $lt_compiler_flag:'`
19286    (eval echo "\"\$as_me:19286: $lt_compile\"" >&5)
19287    (eval "$lt_compile" 2>out/conftest.err)
19288    ac_status=$?
19289    cat out/conftest.err >&5
19290    echo "$as_me:19290: \$? = $ac_status" >&5
19291    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19292    then
19293      # The compiler can only warn and ignore the option if not recognized
19294      # So say no if there are warnings
19295      if test ! -s out/conftest.err; then
19296        lt_cv_prog_compiler_c_o_F77=yes
19297      fi
19298    fi
19299    chmod u+w .
19300    $rm conftest*
19301    # SGI C++ compiler will create directory out/ii_files/ for
19302    # template instantiation
19303    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19304    $rm out/* && rmdir out
19305    cd ..
19306    rmdir conftest
19307    $rm conftest*
19308
19309 fi
19310 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19311 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19312
19313
19314 hard_links="nottested"
19315 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19316   # do not overwrite the value of need_locks provided by the user
19317   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19318 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19319   hard_links=yes
19320   $rm conftest*
19321   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19322   touch conftest.a
19323   ln conftest.a conftest.b 2>&5 || hard_links=no
19324   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19325   echo "$as_me:$LINENO: result: $hard_links" >&5
19326 echo "${ECHO_T}$hard_links" >&6
19327   if test "$hard_links" = no; then
19328     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19329 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19330     need_locks=warn
19331   fi
19332 else
19333   need_locks=no
19334 fi
19335
19336 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19337 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19338
19339   runpath_var=
19340   allow_undefined_flag_F77=
19341   enable_shared_with_static_runtimes_F77=no
19342   archive_cmds_F77=
19343   archive_expsym_cmds_F77=
19344   old_archive_From_new_cmds_F77=
19345   old_archive_from_expsyms_cmds_F77=
19346   export_dynamic_flag_spec_F77=
19347   whole_archive_flag_spec_F77=
19348   thread_safe_flag_spec_F77=
19349   hardcode_libdir_flag_spec_F77=
19350   hardcode_libdir_flag_spec_ld_F77=
19351   hardcode_libdir_separator_F77=
19352   hardcode_direct_F77=no
19353   hardcode_minus_L_F77=no
19354   hardcode_shlibpath_var_F77=unsupported
19355   link_all_deplibs_F77=unknown
19356   hardcode_automatic_F77=no
19357   module_cmds_F77=
19358   module_expsym_cmds_F77=
19359   always_export_symbols_F77=no
19360   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19361   # include_expsyms should be a list of space-separated symbols to be *always*
19362   # included in the symbol list
19363   include_expsyms_F77=
19364   # exclude_expsyms can be an extended regexp of symbols to exclude
19365   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19366   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19367   # as well as any symbol that contains `d'.
19368   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19369   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19370   # platforms (ab)use it in PIC code, but their linkers get confused if
19371   # the symbol is explicitly referenced.  Since portable code cannot
19372   # rely on this symbol name, it's probably fine to never include it in
19373   # preloaded symbol tables.
19374   extract_expsyms_cmds=
19375
19376   case $host_os in
19377   cygwin* | mingw* | pw32*)
19378     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19379     # When not using gcc, we currently assume that we are using
19380     # Microsoft Visual C++.
19381     if test "$GCC" != yes; then
19382       with_gnu_ld=no
19383     fi
19384     ;;
19385   openbsd*)
19386     with_gnu_ld=no
19387     ;;
19388   esac
19389
19390   ld_shlibs_F77=yes
19391   if test "$with_gnu_ld" = yes; then
19392     # If archive_cmds runs LD, not CC, wlarc should be empty
19393     wlarc='${wl}'
19394
19395     # See if GNU ld supports shared libraries.
19396     case $host_os in
19397     aix3* | aix4* | aix5*)
19398       # On AIX/PPC, the GNU linker is very broken
19399       if test "$host_cpu" != ia64; then
19400         ld_shlibs_F77=no
19401         cat <<EOF 1>&2
19402
19403 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19404 *** to be unable to reliably create shared libraries on AIX.
19405 *** Therefore, libtool is disabling shared libraries support.  If you
19406 *** really care for shared libraries, you may want to modify your PATH
19407 *** so that a non-GNU linker is found, and then restart.
19408
19409 EOF
19410       fi
19411       ;;
19412
19413     amigaos*)
19414       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)'
19415       hardcode_libdir_flag_spec_F77='-L$libdir'
19416       hardcode_minus_L_F77=yes
19417
19418       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19419       # that the semantics of dynamic libraries on AmigaOS, at least up
19420       # to version 4, is to share data among multiple programs linked
19421       # with the same dynamic library.  Since this doesn't match the
19422       # behavior of shared libraries on other platforms, we can't use
19423       # them.
19424       ld_shlibs_F77=no
19425       ;;
19426
19427     beos*)
19428       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19429         allow_undefined_flag_F77=unsupported
19430         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19431         # support --undefined.  This deserves some investigation.  FIXME
19432         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19433       else
19434         ld_shlibs_F77=no
19435       fi
19436       ;;
19437
19438     cygwin* | mingw* | pw32*)
19439       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19440       # as there is no search path for DLLs.
19441       hardcode_libdir_flag_spec_F77='-L$libdir'
19442       allow_undefined_flag_F77=unsupported
19443       always_export_symbols_F77=no
19444       enable_shared_with_static_runtimes_F77=yes
19445       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19446
19447       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19448         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19449         # If the export-symbols file already is a .def file (1st line
19450         # is EXPORTS), use it as is; otherwise, prepend...
19451         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19452           cp $export_symbols $output_objdir/$soname.def;
19453         else
19454           echo EXPORTS > $output_objdir/$soname.def;
19455           cat $export_symbols >> $output_objdir/$soname.def;
19456         fi~
19457         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19458       else
19459         ld_shlibs=no
19460       fi
19461       ;;
19462
19463     netbsd*)
19464       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19465         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19466         wlarc=
19467       else
19468         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19469         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19470       fi
19471       ;;
19472
19473     solaris* | sysv5*)
19474       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19475         ld_shlibs_F77=no
19476         cat <<EOF 1>&2
19477
19478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19479 *** create shared libraries on Solaris systems.  Therefore, libtool
19480 *** is disabling shared libraries support.  We urge you to upgrade GNU
19481 *** binutils to release 2.9.1 or newer.  Another option is to modify
19482 *** your PATH or compiler configuration so that the native linker is
19483 *** used, and then restart.
19484
19485 EOF
19486       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19487         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19488         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19489       else
19490         ld_shlibs_F77=no
19491       fi
19492       ;;
19493
19494     sunos4*)
19495       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19496       wlarc=
19497       hardcode_direct_F77=yes
19498       hardcode_shlibpath_var_F77=no
19499       ;;
19500
19501   linux*)
19502     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19503         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19504         archive_cmds_F77="$tmp_archive_cmds"
19505       supports_anon_versioning=no
19506       case `$LD -v 2>/dev/null` in
19507         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19508         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19509         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19510         *\ 2.11.*) ;; # other 2.11 versions
19511         *) supports_anon_versioning=yes ;;
19512       esac
19513       if test $supports_anon_versioning = yes; then
19514         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19516 $echo "local: *; };" >> $output_objdir/$libname.ver~
19517         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19518       else
19519         archive_expsym_cmds_F77="$tmp_archive_cmds"
19520       fi
19521     else
19522       ld_shlibs_F77=no
19523     fi
19524     ;;
19525
19526     *)
19527       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19528         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19529         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19530       else
19531         ld_shlibs_F77=no
19532       fi
19533       ;;
19534     esac
19535
19536     if test "$ld_shlibs_F77" = yes; then
19537       runpath_var=LD_RUN_PATH
19538       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19539       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19540       # ancient GNU ld didn't support --whole-archive et. al.
19541       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19542         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19543       else
19544         whole_archive_flag_spec_F77=
19545       fi
19546     fi
19547   else
19548     # PORTME fill in a description of your system's linker (not GNU ld)
19549     case $host_os in
19550     aix3*)
19551       allow_undefined_flag_F77=unsupported
19552       always_export_symbols_F77=yes
19553       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'
19554       # Note: this linker hardcodes the directories in LIBPATH if there
19555       # are no directories specified by -L.
19556       hardcode_minus_L_F77=yes
19557       if test "$GCC" = yes && test -z "$link_static_flag"; then
19558         # Neither direct hardcoding nor static linking is supported with a
19559         # broken collect2.
19560         hardcode_direct_F77=unsupported
19561       fi
19562       ;;
19563
19564     aix4* | aix5*)
19565       if test "$host_cpu" = ia64; then
19566         # On IA64, the linker does run time linking by default, so we don't
19567         # have to do anything special.
19568         aix_use_runtimelinking=no
19569         exp_sym_flag='-Bexport'
19570         no_entry_flag=""
19571       else
19572         # If we're using GNU nm, then we don't want the "-C" option.
19573         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19574         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19575           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'
19576         else
19577           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'
19578         fi
19579         aix_use_runtimelinking=no
19580
19581         # Test if we are trying to use run time linking or normal
19582         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19583         # need to do runtime linking.
19584         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19585           for ld_flag in $LDFLAGS; do
19586           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19587             aix_use_runtimelinking=yes
19588             break
19589           fi
19590           done
19591         esac
19592
19593         exp_sym_flag='-bexport'
19594         no_entry_flag='-bnoentry'
19595       fi
19596
19597       # When large executables or shared objects are built, AIX ld can
19598       # have problems creating the table of contents.  If linking a library
19599       # or program results in "error TOC overflow" add -mminimal-toc to
19600       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19601       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19602
19603       archive_cmds_F77=''
19604       hardcode_direct_F77=yes
19605       hardcode_libdir_separator_F77=':'
19606       link_all_deplibs_F77=yes
19607
19608       if test "$GCC" = yes; then
19609         case $host_os in aix4.012|aix4.012.*)
19610         # We only want to do this on AIX 4.2 and lower, the check
19611         # below for broken collect2 doesn't work under 4.3+
19612           collect2name=`${CC} -print-prog-name=collect2`
19613           if test -f "$collect2name" && \
19614            strings "$collect2name" | grep resolve_lib_name >/dev/null
19615           then
19616           # We have reworked collect2
19617           hardcode_direct_F77=yes
19618           else
19619           # We have old collect2
19620           hardcode_direct_F77=unsupported
19621           # It fails to find uninstalled libraries when the uninstalled
19622           # path is not listed in the libpath.  Setting hardcode_minus_L
19623           # to unsupported forces relinking
19624           hardcode_minus_L_F77=yes
19625           hardcode_libdir_flag_spec_F77='-L$libdir'
19626           hardcode_libdir_separator_F77=
19627           fi
19628         esac
19629         shared_flag='-shared'
19630       else
19631         # not using gcc
19632         if test "$host_cpu" = ia64; then
19633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19634         # chokes on -Wl,-G. The following line is correct:
19635           shared_flag='-G'
19636         else
19637         if test "$aix_use_runtimelinking" = yes; then
19638             shared_flag='${wl}-G'
19639           else
19640             shared_flag='${wl}-bM:SRE'
19641         fi
19642         fi
19643       fi
19644
19645       # It seems that -bexpall does not export symbols beginning with
19646       # underscore (_), so it is better to generate a list of symbols to export.
19647       always_export_symbols_F77=yes
19648       if test "$aix_use_runtimelinking" = yes; then
19649         # Warning - without using the other runtime loading flags (-brtl),
19650         # -berok will link without error, but may produce a broken library.
19651         allow_undefined_flag_F77='-berok'
19652        # Determine the default libpath from the value encoded in an empty executable.
19653        cat >conftest.$ac_ext <<_ACEOF
19654       program main
19655
19656       end
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660   (eval $ac_link) 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } &&
19667          { ac_try='test -z "$ac_f77_werror_flag"
19668                          || test ! -s conftest.err'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; } &&
19674          { ac_try='test -s conftest$ac_exeext'
19675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676   (eval $ac_try) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; }; then
19680
19681 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19682 }'`
19683 # Check for a 64-bit object if we didn't find anything.
19684 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; }
19685 }'`; fi
19686 else
19687   echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 fi
19691 rm -f conftest.err conftest.$ac_objext \
19692       conftest$ac_exeext conftest.$ac_ext
19693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19694
19695        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19696         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"
19697        else
19698         if test "$host_cpu" = ia64; then
19699           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19700           allow_undefined_flag_F77="-z nodefs"
19701           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"
19702         else
19703          # Determine the default libpath from the value encoded in an empty executable.
19704          cat >conftest.$ac_ext <<_ACEOF
19705       program main
19706
19707       end
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711   (eval $ac_link) 2>conftest.er1
19712   ac_status=$?
19713   grep -v '^ *+' conftest.er1 >conftest.err
19714   rm -f conftest.er1
19715   cat conftest.err >&5
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); } &&
19718          { ac_try='test -z "$ac_f77_werror_flag"
19719                          || test ! -s conftest.err'
19720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721   (eval $ac_try) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; } &&
19725          { ac_try='test -s conftest$ac_exeext'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; }; then
19731
19732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19733 }'`
19734 # Check for a 64-bit object if we didn't find anything.
19735 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; }
19736 }'`; fi
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741 fi
19742 rm -f conftest.err conftest.$ac_objext \
19743       conftest$ac_exeext conftest.$ac_ext
19744 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19745
19746          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19747           # Warning - without using the other run time loading flags,
19748           # -berok will link without error, but may produce a broken library.
19749           no_undefined_flag_F77=' ${wl}-bernotok'
19750           allow_undefined_flag_F77=' ${wl}-berok'
19751           # -bexpall does not export symbols beginning with underscore (_)
19752           always_export_symbols_F77=yes
19753           # Exported symbols can be pulled into shared objects from archives
19754           whole_archive_flag_spec_F77=' '
19755           archive_cmds_need_lc_F77=yes
19756           # This is similar to how AIX traditionally builds it's shared libraries.
19757           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'
19758         fi
19759       fi
19760       ;;
19761
19762     amigaos*)
19763       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)'
19764       hardcode_libdir_flag_spec_F77='-L$libdir'
19765       hardcode_minus_L_F77=yes
19766       # see comment about different semantics on the GNU ld section
19767       ld_shlibs_F77=no
19768       ;;
19769
19770     bsdi[45]*)
19771       export_dynamic_flag_spec_F77=-rdynamic
19772       ;;
19773
19774     cygwin* | mingw* | pw32*)
19775       # When not using gcc, we currently assume that we are using
19776       # Microsoft Visual C++.
19777       # hardcode_libdir_flag_spec is actually meaningless, as there is
19778       # no search path for DLLs.
19779       hardcode_libdir_flag_spec_F77=' '
19780       allow_undefined_flag_F77=unsupported
19781       # Tell ltmain to make .lib files, not .a files.
19782       libext=lib
19783       # Tell ltmain to make .dll files, not .so files.
19784       shrext_cmds=".dll"
19785       # FIXME: Setting linknames here is a bad hack.
19786       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19787       # The linker will automatically build a .lib file if we build a DLL.
19788       old_archive_From_new_cmds_F77='true'
19789       # FIXME: Should let the user specify the lib program.
19790       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19791       fix_srcfile_path='`cygpath -w "$srcfile"`'
19792       enable_shared_with_static_runtimes_F77=yes
19793       ;;
19794
19795     darwin* | rhapsody*)
19796       case "$host_os" in
19797         rhapsody* | darwin1.[012])
19798          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19799          ;;
19800        *) # Darwin 1.3 on
19801          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19802            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19803          else
19804            case ${MACOSX_DEPLOYMENT_TARGET} in
19805              10.[012])
19806                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19807                ;;
19808              10.*)
19809                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19810                ;;
19811            esac
19812          fi
19813          ;;
19814       esac
19815       archive_cmds_need_lc_F77=no
19816       hardcode_direct_F77=no
19817       hardcode_automatic_F77=yes
19818       hardcode_shlibpath_var_F77=unsupported
19819       whole_archive_flag_spec_F77=''
19820       link_all_deplibs_F77=yes
19821     if test "$GCC" = yes ; then
19822         output_verbose_link_cmd='echo'
19823         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19824       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19825       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19826       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}'
19827       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}'
19828     else
19829       case "$cc_basename" in
19830         xlc*)
19831          output_verbose_link_cmd='echo'
19832          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19833          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19834           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19835          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}'
19836           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}'
19837           ;;
19838        *)
19839          ld_shlibs_F77=no
19840           ;;
19841       esac
19842     fi
19843       ;;
19844
19845     dgux*)
19846       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19847       hardcode_libdir_flag_spec_F77='-L$libdir'
19848       hardcode_shlibpath_var_F77=no
19849       ;;
19850
19851     freebsd1*)
19852       ld_shlibs_F77=no
19853       ;;
19854
19855     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19856     # support.  Future versions do this automatically, but an explicit c++rt0.o
19857     # does not break anything, and helps significantly (at the cost of a little
19858     # extra space).
19859     freebsd2.2*)
19860       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19861       hardcode_libdir_flag_spec_F77='-R$libdir'
19862       hardcode_direct_F77=yes
19863       hardcode_shlibpath_var_F77=no
19864       ;;
19865
19866     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19867     freebsd2*)
19868       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19869       hardcode_direct_F77=yes
19870       hardcode_minus_L_F77=yes
19871       hardcode_shlibpath_var_F77=no
19872       ;;
19873
19874     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19875     freebsd* | kfreebsd*-gnu)
19876       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19877       hardcode_libdir_flag_spec_F77='-R$libdir'
19878       hardcode_direct_F77=yes
19879       hardcode_shlibpath_var_F77=no
19880       ;;
19881
19882     hpux9*)
19883       if test "$GCC" = yes; then
19884         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'
19885       else
19886         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'
19887       fi
19888       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19889       hardcode_libdir_separator_F77=:
19890       hardcode_direct_F77=yes
19891
19892       # hardcode_minus_L: Not really in the search PATH,
19893       # but as the default location of the library.
19894       hardcode_minus_L_F77=yes
19895       export_dynamic_flag_spec_F77='${wl}-E'
19896       ;;
19897
19898     hpux10* | hpux11*)
19899       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19900         case "$host_cpu" in
19901         hppa*64*|ia64*)
19902           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19903           ;;
19904         *)
19905           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19906           ;;
19907         esac
19908       else
19909         case "$host_cpu" in
19910         hppa*64*|ia64*)
19911           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19912           ;;
19913         *)
19914           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19915           ;;
19916         esac
19917       fi
19918       if test "$with_gnu_ld" = no; then
19919         case "$host_cpu" in
19920         hppa*64*)
19921           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19922           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19923           hardcode_libdir_separator_F77=:
19924           hardcode_direct_F77=no
19925           hardcode_shlibpath_var_F77=no
19926           ;;
19927         ia64*)
19928           hardcode_libdir_flag_spec_F77='-L$libdir'
19929           hardcode_direct_F77=no
19930           hardcode_shlibpath_var_F77=no
19931
19932           # hardcode_minus_L: Not really in the search PATH,
19933           # but as the default location of the library.
19934           hardcode_minus_L_F77=yes
19935           ;;
19936         *)
19937           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19938           hardcode_libdir_separator_F77=:
19939           hardcode_direct_F77=yes
19940           export_dynamic_flag_spec_F77='${wl}-E'
19941
19942           # hardcode_minus_L: Not really in the search PATH,
19943           # but as the default location of the library.
19944           hardcode_minus_L_F77=yes
19945           ;;
19946         esac
19947       fi
19948       ;;
19949
19950     irix5* | irix6* | nonstopux*)
19951       if test "$GCC" = yes; then
19952         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'
19953       else
19954         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'
19955         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19956       fi
19957       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19958       hardcode_libdir_separator_F77=:
19959       link_all_deplibs_F77=yes
19960       ;;
19961
19962     netbsd*)
19963       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19964         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19965       else
19966         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19967       fi
19968       hardcode_libdir_flag_spec_F77='-R$libdir'
19969       hardcode_direct_F77=yes
19970       hardcode_shlibpath_var_F77=no
19971       ;;
19972
19973     newsos6)
19974       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19975       hardcode_direct_F77=yes
19976       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19977       hardcode_libdir_separator_F77=:
19978       hardcode_shlibpath_var_F77=no
19979       ;;
19980
19981     openbsd*)
19982       hardcode_direct_F77=yes
19983       hardcode_shlibpath_var_F77=no
19984       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19985         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19986         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19987         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19988         export_dynamic_flag_spec_F77='${wl}-E'
19989       else
19990        case $host_os in
19991          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19992            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19993            hardcode_libdir_flag_spec_F77='-R$libdir'
19994            ;;
19995          *)
19996            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19997            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19998            ;;
19999        esac
20000       fi
20001       ;;
20002
20003     os2*)
20004       hardcode_libdir_flag_spec_F77='-L$libdir'
20005       hardcode_minus_L_F77=yes
20006       allow_undefined_flag_F77=unsupported
20007       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'
20008       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20009       ;;
20010
20011     osf3*)
20012       if test "$GCC" = yes; then
20013         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20014         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'
20015       else
20016         allow_undefined_flag_F77=' -expect_unresolved \*'
20017         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'
20018       fi
20019       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20020       hardcode_libdir_separator_F77=:
20021       ;;
20022
20023     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20024       if test "$GCC" = yes; then
20025         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20026         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'
20027         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20028       else
20029         allow_undefined_flag_F77=' -expect_unresolved \*'
20030         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'
20031         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~
20032         $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'
20033
20034         # Both c and cxx compiler support -rpath directly
20035         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20036       fi
20037       hardcode_libdir_separator_F77=:
20038       ;;
20039
20040     sco3.2v5*)
20041       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20042       hardcode_shlibpath_var_F77=no
20043       export_dynamic_flag_spec_F77='${wl}-Bexport'
20044       runpath_var=LD_RUN_PATH
20045       hardcode_runpath_var=yes
20046       ;;
20047
20048     solaris*)
20049       no_undefined_flag_F77=' -z text'
20050       if test "$GCC" = yes; then
20051         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20052         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20053           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20054       else
20055         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20056         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20058       fi
20059       hardcode_libdir_flag_spec_F77='-R$libdir'
20060       hardcode_shlibpath_var_F77=no
20061       case $host_os in
20062       solaris2.[0-5] | solaris2.[0-5].*) ;;
20063       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20064         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20065       esac
20066       link_all_deplibs_F77=yes
20067       ;;
20068
20069     sunos4*)
20070       if test "x$host_vendor" = xsequent; then
20071         # Use $CC to link under sequent, because it throws in some extra .o
20072         # files that make .init and .fini sections work.
20073         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20074       else
20075         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20076       fi
20077       hardcode_libdir_flag_spec_F77='-L$libdir'
20078       hardcode_direct_F77=yes
20079       hardcode_minus_L_F77=yes
20080       hardcode_shlibpath_var_F77=no
20081       ;;
20082
20083     sysv4)
20084       case $host_vendor in
20085         sni)
20086           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20087           hardcode_direct_F77=yes # is this really true???
20088         ;;
20089         siemens)
20090           ## LD is ld it makes a PLAMLIB
20091           ## CC just makes a GrossModule.
20092           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20093           reload_cmds_F77='$CC -r -o $output$reload_objs'
20094           hardcode_direct_F77=no
20095         ;;
20096         motorola)
20097           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20098           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20099         ;;
20100       esac
20101       runpath_var='LD_RUN_PATH'
20102       hardcode_shlibpath_var_F77=no
20103       ;;
20104
20105     sysv4.3*)
20106       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20107       hardcode_shlibpath_var_F77=no
20108       export_dynamic_flag_spec_F77='-Bexport'
20109       ;;
20110
20111     sysv4*MP*)
20112       if test -d /usr/nec; then
20113         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20114         hardcode_shlibpath_var_F77=no
20115         runpath_var=LD_RUN_PATH
20116         hardcode_runpath_var=yes
20117         ld_shlibs_F77=yes
20118       fi
20119       ;;
20120
20121     sysv4.2uw2*)
20122       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20123       hardcode_direct_F77=yes
20124       hardcode_minus_L_F77=no
20125       hardcode_shlibpath_var_F77=no
20126       hardcode_runpath_var=yes
20127       runpath_var=LD_RUN_PATH
20128       ;;
20129
20130    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20131       no_undefined_flag_F77='${wl}-z ${wl}text'
20132       if test "$GCC" = yes; then
20133         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20134       else
20135         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20136       fi
20137       runpath_var='LD_RUN_PATH'
20138       hardcode_shlibpath_var_F77=no
20139       ;;
20140
20141     sysv5*)
20142       no_undefined_flag_F77=' -z text'
20143       # $CC -shared without GNU ld will not create a library from C++
20144       # object files and a static libstdc++, better avoid it by now
20145       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20146       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20147                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20148       hardcode_libdir_flag_spec_F77=
20149       hardcode_shlibpath_var_F77=no
20150       runpath_var='LD_RUN_PATH'
20151       ;;
20152
20153     uts4*)
20154       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20155       hardcode_libdir_flag_spec_F77='-L$libdir'
20156       hardcode_shlibpath_var_F77=no
20157       ;;
20158
20159     *)
20160       ld_shlibs_F77=no
20161       ;;
20162     esac
20163   fi
20164
20165 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20166 echo "${ECHO_T}$ld_shlibs_F77" >&6
20167 test "$ld_shlibs_F77" = no && can_build_shared=no
20168
20169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20170 if test "$GCC" = yes; then
20171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20172 fi
20173
20174 #
20175 # Do we need to explicitly link libc?
20176 #
20177 case "x$archive_cmds_need_lc_F77" in
20178 x|xyes)
20179   # Assume -lc should be added
20180   archive_cmds_need_lc_F77=yes
20181
20182   if test "$enable_shared" = yes && test "$GCC" = yes; then
20183     case $archive_cmds_F77 in
20184     *'~'*)
20185       # FIXME: we may have to deal with multi-command sequences.
20186       ;;
20187     '$CC '*)
20188       # Test whether the compiler implicitly links with -lc since on some
20189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190       # to ld, don't add -lc before -lgcc.
20191       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20193       $rm conftest*
20194       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20195
20196       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } 2>conftest.err; then
20201         soname=conftest
20202         lib=conftest
20203         libobjs=conftest.$ac_objext
20204         deplibs=
20205         wl=$lt_prog_compiler_wl_F77
20206         compiler_flags=-v
20207         linker_flags=-v
20208         verstring=
20209         output_objdir=.
20210         libname=conftest
20211         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20212         allow_undefined_flag_F77=
20213         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20214   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20215   ac_status=$?
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); }
20218         then
20219           archive_cmds_need_lc_F77=no
20220         else
20221           archive_cmds_need_lc_F77=yes
20222         fi
20223         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20224       else
20225         cat conftest.err 1>&5
20226       fi
20227       $rm conftest*
20228       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20229 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20230       ;;
20231     esac
20232   fi
20233   ;;
20234 esac
20235
20236 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20238 library_names_spec=
20239 libname_spec='lib$name'
20240 soname_spec=
20241 shrext_cmds=".so"
20242 postinstall_cmds=
20243 postuninstall_cmds=
20244 finish_cmds=
20245 finish_eval=
20246 shlibpath_var=
20247 shlibpath_overrides_runpath=unknown
20248 version_type=none
20249 dynamic_linker="$host_os ld.so"
20250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20251 if test "$GCC" = yes; then
20252   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20253   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20254     # if the path contains ";" then we assume it to be the separator
20255     # otherwise default to the standard path separator (i.e. ":") - it is
20256     # assumed that no part of a normal pathname contains ";" but that should
20257     # okay in the real world where ";" in dirpaths is itself problematic.
20258     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20259   else
20260     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20261   fi
20262 else
20263   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20264 fi
20265 need_lib_prefix=unknown
20266 hardcode_into_libs=no
20267
20268 # when you set need_version to no, make sure it does not cause -set_version
20269 # flags to be left without arguments
20270 need_version=unknown
20271
20272 case $host_os in
20273 aix3*)
20274   version_type=linux
20275   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20276   shlibpath_var=LIBPATH
20277
20278   # AIX 3 has no versioning support, so we append a major version to the name.
20279   soname_spec='${libname}${release}${shared_ext}$major'
20280   ;;
20281
20282 aix4* | aix5*)
20283   version_type=linux
20284   need_lib_prefix=no
20285   need_version=no
20286   hardcode_into_libs=yes
20287   if test "$host_cpu" = ia64; then
20288     # AIX 5 supports IA64
20289     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20290     shlibpath_var=LD_LIBRARY_PATH
20291   else
20292     # With GCC up to 2.95.x, collect2 would create an import file
20293     # for dependence libraries.  The import file would start with
20294     # the line `#! .'.  This would cause the generated library to
20295     # depend on `.', always an invalid library.  This was fixed in
20296     # development snapshots of GCC prior to 3.0.
20297     case $host_os in
20298       aix4 | aix4.[01] | aix4.[01].*)
20299       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20300            echo ' yes '
20301            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20302         :
20303       else
20304         can_build_shared=no
20305       fi
20306       ;;
20307     esac
20308     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20309     # soname into executable. Probably we can add versioning support to
20310     # collect2, so additional links can be useful in future.
20311     if test "$aix_use_runtimelinking" = yes; then
20312       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20313       # instead of lib<name>.a to let people know that these are not
20314       # typical AIX shared libraries.
20315       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316     else
20317       # We preserve .a as extension for shared libraries through AIX4.2
20318       # and later when we are not doing run time linking.
20319       library_names_spec='${libname}${release}.a $libname.a'
20320       soname_spec='${libname}${release}${shared_ext}$major'
20321     fi
20322     shlibpath_var=LIBPATH
20323   fi
20324   ;;
20325
20326 amigaos*)
20327   library_names_spec='$libname.ixlibrary $libname.a'
20328   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20329   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'
20330   ;;
20331
20332 beos*)
20333   library_names_spec='${libname}${shared_ext}'
20334   dynamic_linker="$host_os ld.so"
20335   shlibpath_var=LIBRARY_PATH
20336   ;;
20337
20338 bsdi[45]*)
20339   version_type=linux
20340   need_version=no
20341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20342   soname_spec='${libname}${release}${shared_ext}$major'
20343   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20344   shlibpath_var=LD_LIBRARY_PATH
20345   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20346   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20347   # the default ld.so.conf also contains /usr/contrib/lib and
20348   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20349   # libtool to hard-code these into programs
20350   ;;
20351
20352 cygwin* | mingw* | pw32*)
20353   version_type=windows
20354   shrext_cmds=".dll"
20355   need_version=no
20356   need_lib_prefix=no
20357
20358   case $GCC,$host_os in
20359   yes,cygwin* | yes,mingw* | yes,pw32*)
20360     library_names_spec='$libname.dll.a'
20361     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20362     postinstall_cmds='base_file=`basename \${file}`~
20363       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20364       dldir=$destdir/`dirname \$dlpath`~
20365       test -d \$dldir || mkdir -p \$dldir~
20366       $install_prog $dir/$dlname \$dldir/$dlname'
20367     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20368       dlpath=$dir/\$dldll~
20369        $rm \$dlpath'
20370     shlibpath_overrides_runpath=yes
20371
20372     case $host_os in
20373     cygwin*)
20374       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20375       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20376       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20377       ;;
20378     mingw*)
20379       # MinGW DLLs use traditional 'lib' prefix
20380       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20381       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20382       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20383         # It is most probably a Windows format PATH printed by
20384         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20385         # path with ; separators, and with drive letters. We can handle the
20386         # drive letters (cygwin fileutils understands them), so leave them,
20387         # especially as we might pass files found there to a mingw objdump,
20388         # which wouldn't understand a cygwinified path. Ahh.
20389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20390       else
20391         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20392       fi
20393       ;;
20394     pw32*)
20395       # pw32 DLLs use 'pw' prefix rather than 'lib'
20396       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20397       ;;
20398     esac
20399     ;;
20400
20401   *)
20402     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20403     ;;
20404   esac
20405   dynamic_linker='Win32 ld.exe'
20406   # FIXME: first we should search . and the directory the executable is in
20407   shlibpath_var=PATH
20408   ;;
20409
20410 darwin* | rhapsody*)
20411   dynamic_linker="$host_os dyld"
20412   version_type=darwin
20413   need_lib_prefix=no
20414   need_version=no
20415   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20416   soname_spec='${libname}${release}${major}$shared_ext'
20417   shlibpath_overrides_runpath=yes
20418   shlibpath_var=DYLD_LIBRARY_PATH
20419   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20420   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20421   if test "$GCC" = yes; then
20422     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"`
20423   else
20424     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20425   fi
20426   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20427   ;;
20428
20429 dgux*)
20430   version_type=linux
20431   need_lib_prefix=no
20432   need_version=no
20433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20434   soname_spec='${libname}${release}${shared_ext}$major'
20435   shlibpath_var=LD_LIBRARY_PATH
20436   ;;
20437
20438 freebsd1*)
20439   dynamic_linker=no
20440   ;;
20441
20442 kfreebsd*-gnu)
20443   version_type=linux
20444   need_lib_prefix=no
20445   need_version=no
20446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20447   soname_spec='${libname}${release}${shared_ext}$major'
20448   shlibpath_var=LD_LIBRARY_PATH
20449   shlibpath_overrides_runpath=no
20450   hardcode_into_libs=yes
20451   dynamic_linker='GNU ld.so'
20452   ;;
20453
20454 freebsd*)
20455   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20456   version_type=freebsd-$objformat
20457   case $version_type in
20458     freebsd-elf*)
20459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20460       need_version=no
20461       need_lib_prefix=no
20462       ;;
20463     freebsd-*)
20464       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20465       need_version=yes
20466       ;;
20467   esac
20468   shlibpath_var=LD_LIBRARY_PATH
20469   case $host_os in
20470   freebsd2*)
20471     shlibpath_overrides_runpath=yes
20472     ;;
20473   freebsd3.01* | freebsdelf3.01*)
20474     shlibpath_overrides_runpath=yes
20475     hardcode_into_libs=yes
20476     ;;
20477   *) # from 3.2 on
20478     shlibpath_overrides_runpath=no
20479     hardcode_into_libs=yes
20480     ;;
20481   esac
20482   ;;
20483
20484 gnu*)
20485   version_type=linux
20486   need_lib_prefix=no
20487   need_version=no
20488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20489   soname_spec='${libname}${release}${shared_ext}$major'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   hardcode_into_libs=yes
20492   ;;
20493
20494 hpux9* | hpux10* | hpux11*)
20495   # Give a soname corresponding to the major version so that dld.sl refuses to
20496   # link against other versions.
20497   version_type=sunos
20498   need_lib_prefix=no
20499   need_version=no
20500   case "$host_cpu" in
20501   ia64*)
20502     shrext_cmds='.so'
20503     hardcode_into_libs=yes
20504     dynamic_linker="$host_os dld.so"
20505     shlibpath_var=LD_LIBRARY_PATH
20506     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20508     soname_spec='${libname}${release}${shared_ext}$major'
20509     if test "X$HPUX_IA64_MODE" = X32; then
20510       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20511     else
20512       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20513     fi
20514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20515     ;;
20516    hppa*64*)
20517      shrext_cmds='.sl'
20518      hardcode_into_libs=yes
20519      dynamic_linker="$host_os dld.sl"
20520      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20521      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20523      soname_spec='${libname}${release}${shared_ext}$major'
20524      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20525      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20526      ;;
20527    *)
20528     shrext_cmds='.sl'
20529     dynamic_linker="$host_os dld.sl"
20530     shlibpath_var=SHLIB_PATH
20531     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533     soname_spec='${libname}${release}${shared_ext}$major'
20534     ;;
20535   esac
20536   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20537   postinstall_cmds='chmod 555 $lib'
20538   ;;
20539
20540 irix5* | irix6* | nonstopux*)
20541   case $host_os in
20542     nonstopux*) version_type=nonstopux ;;
20543     *)
20544         if test "$lt_cv_prog_gnu_ld" = yes; then
20545                 version_type=linux
20546         else
20547                 version_type=irix
20548         fi ;;
20549   esac
20550   need_lib_prefix=no
20551   need_version=no
20552   soname_spec='${libname}${release}${shared_ext}$major'
20553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20554   case $host_os in
20555   irix5* | nonstopux*)
20556     libsuff= shlibsuff=
20557     ;;
20558   *)
20559     case $LD in # libtool.m4 will add one of these switches to LD
20560     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20561       libsuff= shlibsuff= libmagic=32-bit;;
20562     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20563       libsuff=32 shlibsuff=N32 libmagic=N32;;
20564     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20565       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20566     *) libsuff= shlibsuff= libmagic=never-match;;
20567     esac
20568     ;;
20569   esac
20570   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20571   shlibpath_overrides_runpath=no
20572   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20573   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20574   hardcode_into_libs=yes
20575   ;;
20576
20577 # No shared lib support for Linux oldld, aout, or coff.
20578 linux*oldld* | linux*aout* | linux*coff*)
20579   dynamic_linker=no
20580   ;;
20581
20582 # This must be Linux ELF.
20583 linux*)
20584   version_type=linux
20585   need_lib_prefix=no
20586   need_version=no
20587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588   soname_spec='${libname}${release}${shared_ext}$major'
20589   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20590   shlibpath_var=LD_LIBRARY_PATH
20591   shlibpath_overrides_runpath=no
20592   # This implies no fast_install, which is unacceptable.
20593   # Some rework will be needed to allow for fast_install
20594   # before this can be enabled.
20595   hardcode_into_libs=yes
20596
20597   # Append ld.so.conf contents to the search path
20598   if test -f /etc/ld.so.conf; then
20599     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20600     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20601   fi
20602
20603   # We used to test for /lib/ld.so.1 and disable shared libraries on
20604   # powerpc, because MkLinux only supported shared libraries with the
20605   # GNU dynamic linker.  Since this was broken with cross compilers,
20606   # most powerpc-linux boxes support dynamic linking these days and
20607   # people can always --disable-shared, the test was removed, and we
20608   # assume the GNU/Linux dynamic linker is in use.
20609   dynamic_linker='GNU/Linux ld.so'
20610   ;;
20611
20612 knetbsd*-gnu)
20613   version_type=linux
20614   need_lib_prefix=no
20615   need_version=no
20616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20617   soname_spec='${libname}${release}${shared_ext}$major'
20618   shlibpath_var=LD_LIBRARY_PATH
20619   shlibpath_overrides_runpath=no
20620   hardcode_into_libs=yes
20621   dynamic_linker='GNU ld.so'
20622   ;;
20623
20624 netbsd*)
20625   version_type=sunos
20626   need_lib_prefix=no
20627   need_version=no
20628   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20630     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20631     dynamic_linker='NetBSD (a.out) ld.so'
20632   else
20633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20634     soname_spec='${libname}${release}${shared_ext}$major'
20635     dynamic_linker='NetBSD ld.elf_so'
20636   fi
20637   shlibpath_var=LD_LIBRARY_PATH
20638   shlibpath_overrides_runpath=yes
20639   hardcode_into_libs=yes
20640   ;;
20641
20642 newsos6)
20643   version_type=linux
20644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645   shlibpath_var=LD_LIBRARY_PATH
20646   shlibpath_overrides_runpath=yes
20647   ;;
20648
20649 nto-qnx*)
20650   version_type=linux
20651   need_lib_prefix=no
20652   need_version=no
20653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20654   soname_spec='${libname}${release}${shared_ext}$major'
20655   shlibpath_var=LD_LIBRARY_PATH
20656   shlibpath_overrides_runpath=yes
20657   ;;
20658
20659 openbsd*)
20660   version_type=sunos
20661   need_lib_prefix=no
20662   need_version=no
20663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20664   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20665   shlibpath_var=LD_LIBRARY_PATH
20666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20667     case $host_os in
20668       openbsd2.[89] | openbsd2.[89].*)
20669         shlibpath_overrides_runpath=no
20670         ;;
20671       *)
20672         shlibpath_overrides_runpath=yes
20673         ;;
20674       esac
20675   else
20676     shlibpath_overrides_runpath=yes
20677   fi
20678   ;;
20679
20680 os2*)
20681   libname_spec='$name'
20682   shrext_cmds=".dll"
20683   need_lib_prefix=no
20684   library_names_spec='$libname${shared_ext} $libname.a'
20685   dynamic_linker='OS/2 ld.exe'
20686   shlibpath_var=LIBPATH
20687   ;;
20688
20689 osf3* | osf4* | osf5*)
20690   version_type=osf
20691   need_lib_prefix=no
20692   need_version=no
20693   soname_spec='${libname}${release}${shared_ext}$major'
20694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695   shlibpath_var=LD_LIBRARY_PATH
20696   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20697   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20698   ;;
20699
20700 sco3.2v5*)
20701   version_type=osf
20702   soname_spec='${libname}${release}${shared_ext}$major'
20703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704   shlibpath_var=LD_LIBRARY_PATH
20705   ;;
20706
20707 solaris*)
20708   version_type=linux
20709   need_lib_prefix=no
20710   need_version=no
20711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712   soname_spec='${libname}${release}${shared_ext}$major'
20713   shlibpath_var=LD_LIBRARY_PATH
20714   shlibpath_overrides_runpath=yes
20715   hardcode_into_libs=yes
20716   # ldd complains unless libraries are executable
20717   postinstall_cmds='chmod +x $lib'
20718   ;;
20719
20720 sunos4*)
20721   version_type=sunos
20722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20723   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20724   shlibpath_var=LD_LIBRARY_PATH
20725   shlibpath_overrides_runpath=yes
20726   if test "$with_gnu_ld" = yes; then
20727     need_lib_prefix=no
20728   fi
20729   need_version=yes
20730   ;;
20731
20732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20733   version_type=linux
20734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735   soname_spec='${libname}${release}${shared_ext}$major'
20736   shlibpath_var=LD_LIBRARY_PATH
20737   case $host_vendor in
20738     sni)
20739       shlibpath_overrides_runpath=no
20740       need_lib_prefix=no
20741       export_dynamic_flag_spec='${wl}-Blargedynsym'
20742       runpath_var=LD_RUN_PATH
20743       ;;
20744     siemens)
20745       need_lib_prefix=no
20746       ;;
20747     motorola)
20748       need_lib_prefix=no
20749       need_version=no
20750       shlibpath_overrides_runpath=no
20751       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20752       ;;
20753   esac
20754   ;;
20755
20756 sysv4*MP*)
20757   if test -d /usr/nec ;then
20758     version_type=linux
20759     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20760     soname_spec='$libname${shared_ext}.$major'
20761     shlibpath_var=LD_LIBRARY_PATH
20762   fi
20763   ;;
20764
20765 uts4*)
20766   version_type=linux
20767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768   soname_spec='${libname}${release}${shared_ext}$major'
20769   shlibpath_var=LD_LIBRARY_PATH
20770   ;;
20771
20772 *)
20773   dynamic_linker=no
20774   ;;
20775 esac
20776 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20777 echo "${ECHO_T}$dynamic_linker" >&6
20778 test "$dynamic_linker" = no && can_build_shared=no
20779
20780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20782 hardcode_action_F77=
20783 if test -n "$hardcode_libdir_flag_spec_F77" || \
20784    test -n "$runpath_var_F77" || \
20785    test "X$hardcode_automatic_F77" = "Xyes" ; then
20786
20787   # We can hardcode non-existant directories.
20788   if test "$hardcode_direct_F77" != no &&
20789      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20790      # have to relink, otherwise we might link with an installed library
20791      # when we should be linking with a yet-to-be-installed one
20792      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20793      test "$hardcode_minus_L_F77" != no; then
20794     # Linking always hardcodes the temporary library directory.
20795     hardcode_action_F77=relink
20796   else
20797     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20798     hardcode_action_F77=immediate
20799   fi
20800 else
20801   # We cannot hardcode anything, or else we can only hardcode existing
20802   # directories.
20803   hardcode_action_F77=unsupported
20804 fi
20805 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20806 echo "${ECHO_T}$hardcode_action_F77" >&6
20807
20808 if test "$hardcode_action_F77" = relink; then
20809   # Fast installation is not supported
20810   enable_fast_install=no
20811 elif test "$shlibpath_overrides_runpath" = yes ||
20812      test "$enable_shared" = no; then
20813   # Fast installation is not necessary
20814   enable_fast_install=needless
20815 fi
20816
20817 striplib=
20818 old_striplib=
20819 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20820 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20822   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20823   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20824   echo "$as_me:$LINENO: result: yes" >&5
20825 echo "${ECHO_T}yes" >&6
20826 else
20827 # FIXME - insert some real tests, host_os isn't really good enough
20828   case $host_os in
20829    darwin*)
20830        if test -n "$STRIP" ; then
20831          striplib="$STRIP -x"
20832          echo "$as_me:$LINENO: result: yes" >&5
20833 echo "${ECHO_T}yes" >&6
20834        else
20835   echo "$as_me:$LINENO: result: no" >&5
20836 echo "${ECHO_T}no" >&6
20837 fi
20838        ;;
20839    *)
20840   echo "$as_me:$LINENO: result: no" >&5
20841 echo "${ECHO_T}no" >&6
20842     ;;
20843   esac
20844 fi
20845
20846
20847
20848 # The else clause should only fire when bootstrapping the
20849 # libtool distribution, otherwise you forgot to ship ltmain.sh
20850 # with your package, and you will get complaints that there are
20851 # no rules to generate ltmain.sh.
20852 if test -f "$ltmain"; then
20853   # See if we are running on zsh, and set the options which allow our commands through
20854   # without removal of \ escapes.
20855   if test -n "${ZSH_VERSION+set}" ; then
20856     setopt NO_GLOB_SUBST
20857   fi
20858   # Now quote all the things that may contain metacharacters while being
20859   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20860   # variables and quote the copies for generation of the libtool script.
20861   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20862     SED SHELL STRIP \
20863     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20864     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20865     deplibs_check_method reload_flag reload_cmds need_locks \
20866     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20867     lt_cv_sys_global_symbol_to_c_name_address \
20868     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20869     old_postinstall_cmds old_postuninstall_cmds \
20870     compiler_F77 \
20871     CC_F77 \
20872     LD_F77 \
20873     lt_prog_compiler_wl_F77 \
20874     lt_prog_compiler_pic_F77 \
20875     lt_prog_compiler_static_F77 \
20876     lt_prog_compiler_no_builtin_flag_F77 \
20877     export_dynamic_flag_spec_F77 \
20878     thread_safe_flag_spec_F77 \
20879     whole_archive_flag_spec_F77 \
20880     enable_shared_with_static_runtimes_F77 \
20881     old_archive_cmds_F77 \
20882     old_archive_from_new_cmds_F77 \
20883     predep_objects_F77 \
20884     postdep_objects_F77 \
20885     predeps_F77 \
20886     postdeps_F77 \
20887     compiler_lib_search_path_F77 \
20888     archive_cmds_F77 \
20889     archive_expsym_cmds_F77 \
20890     postinstall_cmds_F77 \
20891     postuninstall_cmds_F77 \
20892     old_archive_from_expsyms_cmds_F77 \
20893     allow_undefined_flag_F77 \
20894     no_undefined_flag_F77 \
20895     export_symbols_cmds_F77 \
20896     hardcode_libdir_flag_spec_F77 \
20897     hardcode_libdir_flag_spec_ld_F77 \
20898     hardcode_libdir_separator_F77 \
20899     hardcode_automatic_F77 \
20900     module_cmds_F77 \
20901     module_expsym_cmds_F77 \
20902     lt_cv_prog_compiler_c_o_F77 \
20903     exclude_expsyms_F77 \
20904     include_expsyms_F77; do
20905
20906     case $var in
20907     old_archive_cmds_F77 | \
20908     old_archive_from_new_cmds_F77 | \
20909     archive_cmds_F77 | \
20910     archive_expsym_cmds_F77 | \
20911     module_cmds_F77 | \
20912     module_expsym_cmds_F77 | \
20913     old_archive_from_expsyms_cmds_F77 | \
20914     export_symbols_cmds_F77 | \
20915     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20916     postinstall_cmds | postuninstall_cmds | \
20917     old_postinstall_cmds | old_postuninstall_cmds | \
20918     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20919       # Double-quote double-evaled strings.
20920       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20921       ;;
20922     *)
20923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20924       ;;
20925     esac
20926   done
20927
20928   case $lt_echo in
20929   *'\$0 --fallback-echo"')
20930     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20931     ;;
20932   esac
20933
20934 cfgfile="$ofile"
20935
20936   cat <<__EOF__ >> "$cfgfile"
20937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20938
20939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20940
20941 # Shell to use when invoking shell scripts.
20942 SHELL=$lt_SHELL
20943
20944 # Whether or not to build shared libraries.
20945 build_libtool_libs=$enable_shared
20946
20947 # Whether or not to build static libraries.
20948 build_old_libs=$enable_static
20949
20950 # Whether or not to add -lc for building shared libraries.
20951 build_libtool_need_lc=$archive_cmds_need_lc_F77
20952
20953 # Whether or not to disallow shared libs when runtime libs are static
20954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20955
20956 # Whether or not to optimize for fast installation.
20957 fast_install=$enable_fast_install
20958
20959 # The host system.
20960 host_alias=$host_alias
20961 host=$host
20962
20963 # An echo program that does not interpret backslashes.
20964 echo=$lt_echo
20965
20966 # The archiver.
20967 AR=$lt_AR
20968 AR_FLAGS=$lt_AR_FLAGS
20969
20970 # A C compiler.
20971 LTCC=$lt_LTCC
20972
20973 # A language-specific compiler.
20974 CC=$lt_compiler_F77
20975
20976 # Is the compiler the GNU C compiler?
20977 with_gcc=$GCC_F77
20978
20979 # An ERE matcher.
20980 EGREP=$lt_EGREP
20981
20982 # The linker used to build libraries.
20983 LD=$lt_LD_F77
20984
20985 # Whether we need hard or soft links.
20986 LN_S=$lt_LN_S
20987
20988 # A BSD-compatible nm program.
20989 NM=$lt_NM
20990
20991 # A symbol stripping program
20992 STRIP=$lt_STRIP
20993
20994 # Used to examine libraries when file_magic_cmd begins "file"
20995 MAGIC_CMD=$MAGIC_CMD
20996
20997 # Used on cygwin: DLL creation program.
20998 DLLTOOL="$DLLTOOL"
20999
21000 # Used on cygwin: object dumper.
21001 OBJDUMP="$OBJDUMP"
21002
21003 # Used on cygwin: assembler.
21004 AS="$AS"
21005
21006 # The name of the directory that contains temporary libtool files.
21007 objdir=$objdir
21008
21009 # How to create reloadable object files.
21010 reload_flag=$lt_reload_flag
21011 reload_cmds=$lt_reload_cmds
21012
21013 # How to pass a linker flag through the compiler.
21014 wl=$lt_lt_prog_compiler_wl_F77
21015
21016 # Object file suffix (normally "o").
21017 objext="$ac_objext"
21018
21019 # Old archive suffix (normally "a").
21020 libext="$libext"
21021
21022 # Shared library suffix (normally ".so").
21023 shrext_cmds='$shrext_cmds'
21024
21025 # Executable file suffix (normally "").
21026 exeext="$exeext"
21027
21028 # Additional compiler flags for building library objects.
21029 pic_flag=$lt_lt_prog_compiler_pic_F77
21030 pic_mode=$pic_mode
21031
21032 # What is the maximum length of a command?
21033 max_cmd_len=$lt_cv_sys_max_cmd_len
21034
21035 # Does compiler simultaneously support -c and -o options?
21036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21037
21038 # Must we lock files when doing compilation ?
21039 need_locks=$lt_need_locks
21040
21041 # Do we need the lib prefix for modules?
21042 need_lib_prefix=$need_lib_prefix
21043
21044 # Do we need a version for libraries?
21045 need_version=$need_version
21046
21047 # Whether dlopen is supported.
21048 dlopen_support=$enable_dlopen
21049
21050 # Whether dlopen of programs is supported.
21051 dlopen_self=$enable_dlopen_self
21052
21053 # Whether dlopen of statically linked programs is supported.
21054 dlopen_self_static=$enable_dlopen_self_static
21055
21056 # Compiler flag to prevent dynamic linking.
21057 link_static_flag=$lt_lt_prog_compiler_static_F77
21058
21059 # Compiler flag to turn off builtin functions.
21060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21061
21062 # Compiler flag to allow reflexive dlopens.
21063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21064
21065 # Compiler flag to generate shared objects directly from archives.
21066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21067
21068 # Compiler flag to generate thread-safe objects.
21069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21070
21071 # Library versioning type.
21072 version_type=$version_type
21073
21074 # Format of library name prefix.
21075 libname_spec=$lt_libname_spec
21076
21077 # List of archive names.  First name is the real one, the rest are links.
21078 # The last name is the one that the linker finds with -lNAME.
21079 library_names_spec=$lt_library_names_spec
21080
21081 # The coded name of the library, if different from the real name.
21082 soname_spec=$lt_soname_spec
21083
21084 # Commands used to build and install an old-style archive.
21085 RANLIB=$lt_RANLIB
21086 old_archive_cmds=$lt_old_archive_cmds_F77
21087 old_postinstall_cmds=$lt_old_postinstall_cmds
21088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21089
21090 # Create an old-style archive from a shared archive.
21091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21092
21093 # Create a temporary old-style archive to link instead of a shared archive.
21094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21095
21096 # Commands used to build and install a shared archive.
21097 archive_cmds=$lt_archive_cmds_F77
21098 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21099 postinstall_cmds=$lt_postinstall_cmds
21100 postuninstall_cmds=$lt_postuninstall_cmds
21101
21102 # Commands used to build a loadable module (assumed same as above if empty)
21103 module_cmds=$lt_module_cmds_F77
21104 module_expsym_cmds=$lt_module_expsym_cmds_F77
21105
21106 # Commands to strip libraries.
21107 old_striplib=$lt_old_striplib
21108 striplib=$lt_striplib
21109
21110 # Dependencies to place before the objects being linked to create a
21111 # shared library.
21112 predep_objects=$lt_predep_objects_F77
21113
21114 # Dependencies to place after the objects being linked to create a
21115 # shared library.
21116 postdep_objects=$lt_postdep_objects_F77
21117
21118 # Dependencies to place before the objects being linked to create a
21119 # shared library.
21120 predeps=$lt_predeps_F77
21121
21122 # Dependencies to place after the objects being linked to create a
21123 # shared library.
21124 postdeps=$lt_postdeps_F77
21125
21126 # The library search path used internally by the compiler when linking
21127 # a shared library.
21128 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21129
21130 # Method to check whether dependent libraries are shared objects.
21131 deplibs_check_method=$lt_deplibs_check_method
21132
21133 # Command to use when deplibs_check_method == file_magic.
21134 file_magic_cmd=$lt_file_magic_cmd
21135
21136 # Flag that allows shared libraries with undefined symbols to be built.
21137 allow_undefined_flag=$lt_allow_undefined_flag_F77
21138
21139 # Flag that forces no undefined symbols.
21140 no_undefined_flag=$lt_no_undefined_flag_F77
21141
21142 # Commands used to finish a libtool library installation in a directory.
21143 finish_cmds=$lt_finish_cmds
21144
21145 # Same as above, but a single script fragment to be evaled but not shown.
21146 finish_eval=$lt_finish_eval
21147
21148 # Take the output of nm and produce a listing of raw symbols and C names.
21149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21150
21151 # Transform the output of nm in a proper C declaration
21152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21153
21154 # Transform the output of nm in a C name address pair
21155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21156
21157 # This is the shared library runtime path variable.
21158 runpath_var=$runpath_var
21159
21160 # This is the shared library path variable.
21161 shlibpath_var=$shlibpath_var
21162
21163 # Is shlibpath searched before the hard-coded library search path?
21164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21165
21166 # How to hardcode a shared library path into an executable.
21167 hardcode_action=$hardcode_action_F77
21168
21169 # Whether we should hardcode library paths into libraries.
21170 hardcode_into_libs=$hardcode_into_libs
21171
21172 # Flag to hardcode \$libdir into a binary during linking.
21173 # This must work even if \$libdir does not exist.
21174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21175
21176 # If ld is used when linking, flag to hardcode \$libdir into
21177 # a binary during linking. This must work even if \$libdir does
21178 # not exist.
21179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21180
21181 # Whether we need a single -rpath flag with a separated argument.
21182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21183
21184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21185 # resulting binary.
21186 hardcode_direct=$hardcode_direct_F77
21187
21188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21189 # resulting binary.
21190 hardcode_minus_L=$hardcode_minus_L_F77
21191
21192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21193 # the resulting binary.
21194 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21195
21196 # Set to yes if building a shared library automatically hardcodes DIR into the library
21197 # and all subsequent libraries and executables linked against it.
21198 hardcode_automatic=$hardcode_automatic_F77
21199
21200 # Variables whose values should be saved in libtool wrapper scripts and
21201 # restored at relink time.
21202 variables_saved_for_relink="$variables_saved_for_relink"
21203
21204 # Whether libtool must link a program against all its dependency libraries.
21205 link_all_deplibs=$link_all_deplibs_F77
21206
21207 # Compile-time system search path for libraries
21208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21209
21210 # Run-time system search path for libraries
21211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21212
21213 # Fix the shell variable \$srcfile for the compiler.
21214 fix_srcfile_path="$fix_srcfile_path_F77"
21215
21216 # Set to yes if exported symbols are required.
21217 always_export_symbols=$always_export_symbols_F77
21218
21219 # The commands to list exported symbols.
21220 export_symbols_cmds=$lt_export_symbols_cmds_F77
21221
21222 # The commands to extract the exported symbol list from a shared archive.
21223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21224
21225 # Symbols that should not be listed in the preloaded symbols.
21226 exclude_expsyms=$lt_exclude_expsyms_F77
21227
21228 # Symbols that must always be exported.
21229 include_expsyms=$lt_include_expsyms_F77
21230
21231 # ### END LIBTOOL TAG CONFIG: $tagname
21232
21233 __EOF__
21234
21235
21236 else
21237   # If there is no Makefile yet, we rely on a make rule to execute
21238   # `config.status --recheck' to rerun these tests and create the
21239   # libtool script then.
21240   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21241   if test -f "$ltmain_in"; then
21242     test -f Makefile && make "$ltmain"
21243   fi
21244 fi
21245
21246
21247 ac_ext=c
21248 ac_cpp='$CPP $CPPFLAGS'
21249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21252
21253 CC="$lt_save_CC"
21254
21255         else
21256           tagname=""
21257         fi
21258         ;;
21259
21260       GCJ)
21261         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21262           ac_ext=c
21263 ac_cpp='$CPP $CPPFLAGS'
21264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268
21269 # Source file extension for Java test sources.
21270 ac_ext=java
21271
21272 # Object file extension for compiled Java test sources.
21273 objext=o
21274 objext_GCJ=$objext
21275
21276 # Code to be used in simple compile tests
21277 lt_simple_compile_test_code="class foo {}\n"
21278
21279 # Code to be used in simple link tests
21280 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21281
21282 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21283
21284 # If no C compiler was specified, use CC.
21285 LTCC=${LTCC-"$CC"}
21286
21287 # Allow CC to be a program name with arguments.
21288 compiler=$CC
21289
21290
21291 # Allow CC to be a program name with arguments.
21292 lt_save_CC="$CC"
21293 CC=${GCJ-"gcj"}
21294 compiler=$CC
21295 compiler_GCJ=$CC
21296
21297 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21298 archive_cmds_need_lc_GCJ=no
21299
21300
21301 lt_prog_compiler_no_builtin_flag_GCJ=
21302
21303 if test "$GCC" = yes; then
21304   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21305
21306
21307 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21308 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21310   echo $ECHO_N "(cached) $ECHO_C" >&6
21311 else
21312   lt_cv_prog_compiler_rtti_exceptions=no
21313   ac_outfile=conftest.$ac_objext
21314    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21315    lt_compiler_flag="-fno-rtti -fno-exceptions"
21316    # Insert the option either (1) after the last *FLAGS variable, or
21317    # (2) before a word containing "conftest.", or (3) at the end.
21318    # Note that $ac_compile itself does not contain backslashes and begins
21319    # with a dollar sign (not a hyphen), so the echo should work correctly.
21320    # The option is referenced via a variable to avoid confusing sed.
21321    lt_compile=`echo "$ac_compile" | $SED \
21322    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21323    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21324    -e 's:$: $lt_compiler_flag:'`
21325    (eval echo "\"\$as_me:21325: $lt_compile\"" >&5)
21326    (eval "$lt_compile" 2>conftest.err)
21327    ac_status=$?
21328    cat conftest.err >&5
21329    echo "$as_me:21329: \$? = $ac_status" >&5
21330    if (exit $ac_status) && test -s "$ac_outfile"; then
21331      # The compiler can only warn and ignore the option if not recognized
21332      # So say no if there are warnings
21333      if test ! -s conftest.err; then
21334        lt_cv_prog_compiler_rtti_exceptions=yes
21335      fi
21336    fi
21337    $rm conftest*
21338
21339 fi
21340 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21341 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21342
21343 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21344     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21345 else
21346     :
21347 fi
21348
21349 fi
21350
21351 lt_prog_compiler_wl_GCJ=
21352 lt_prog_compiler_pic_GCJ=
21353 lt_prog_compiler_static_GCJ=
21354
21355 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21356 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21357
21358   if test "$GCC" = yes; then
21359     lt_prog_compiler_wl_GCJ='-Wl,'
21360     lt_prog_compiler_static_GCJ='-static'
21361
21362     case $host_os in
21363       aix*)
21364       # All AIX code is PIC.
21365       if test "$host_cpu" = ia64; then
21366         # AIX 5 now supports IA64 processor
21367         lt_prog_compiler_static_GCJ='-Bstatic'
21368       fi
21369       ;;
21370
21371     amigaos*)
21372       # FIXME: we need at least 68020 code to build shared libraries, but
21373       # adding the `-m68020' flag to GCC prevents building anything better,
21374       # like `-m68040'.
21375       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21376       ;;
21377
21378     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21379       # PIC is the default for these OSes.
21380       ;;
21381
21382     mingw* | pw32* | os2*)
21383       # This hack is so that the source file can tell whether it is being
21384       # built for inclusion in a dll (and should export symbols for example).
21385       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21386       ;;
21387
21388     darwin* | rhapsody*)
21389       # PIC is the default on this platform
21390       # Common symbols not allowed in MH_DYLIB files
21391       lt_prog_compiler_pic_GCJ='-fno-common'
21392       ;;
21393
21394     msdosdjgpp*)
21395       # Just because we use GCC doesn't mean we suddenly get shared libraries
21396       # on systems that don't support them.
21397       lt_prog_compiler_can_build_shared_GCJ=no
21398       enable_shared=no
21399       ;;
21400
21401     sysv4*MP*)
21402       if test -d /usr/nec; then
21403         lt_prog_compiler_pic_GCJ=-Kconform_pic
21404       fi
21405       ;;
21406
21407     hpux*)
21408       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21409       # not for PA HP-UX.
21410       case "$host_cpu" in
21411       hppa*64*|ia64*)
21412         # +Z the default
21413         ;;
21414       *)
21415         lt_prog_compiler_pic_GCJ='-fPIC'
21416         ;;
21417       esac
21418       ;;
21419
21420     *)
21421       lt_prog_compiler_pic_GCJ='-fPIC'
21422       ;;
21423     esac
21424   else
21425     # PORTME Check for flag to pass linker flags through the system compiler.
21426     case $host_os in
21427     aix*)
21428       lt_prog_compiler_wl_GCJ='-Wl,'
21429       if test "$host_cpu" = ia64; then
21430         # AIX 5 now supports IA64 processor
21431         lt_prog_compiler_static_GCJ='-Bstatic'
21432       else
21433         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21434       fi
21435       ;;
21436       darwin*)
21437         # PIC is the default on this platform
21438         # Common symbols not allowed in MH_DYLIB files
21439        case "$cc_basename" in
21440          xlc*)
21441          lt_prog_compiler_pic_GCJ='-qnocommon'
21442          lt_prog_compiler_wl_GCJ='-Wl,'
21443          ;;
21444        esac
21445        ;;
21446
21447     mingw* | pw32* | os2*)
21448       # This hack is so that the source file can tell whether it is being
21449       # built for inclusion in a dll (and should export symbols for example).
21450       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21451       ;;
21452
21453     hpux9* | hpux10* | hpux11*)
21454       lt_prog_compiler_wl_GCJ='-Wl,'
21455       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21456       # not for PA HP-UX.
21457       case "$host_cpu" in
21458       hppa*64*|ia64*)
21459         # +Z the default
21460         ;;
21461       *)
21462         lt_prog_compiler_pic_GCJ='+Z'
21463         ;;
21464       esac
21465       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21466       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21467       ;;
21468
21469     irix5* | irix6* | nonstopux*)
21470       lt_prog_compiler_wl_GCJ='-Wl,'
21471       # PIC (with -KPIC) is the default.
21472       lt_prog_compiler_static_GCJ='-non_shared'
21473       ;;
21474
21475     newsos6)
21476       lt_prog_compiler_pic_GCJ='-KPIC'
21477       lt_prog_compiler_static_GCJ='-Bstatic'
21478       ;;
21479
21480     linux*)
21481       case $CC in
21482       icc* | ecc*)
21483         lt_prog_compiler_wl_GCJ='-Wl,'
21484         lt_prog_compiler_pic_GCJ='-KPIC'
21485         lt_prog_compiler_static_GCJ='-static'
21486         ;;
21487       ccc*)
21488         lt_prog_compiler_wl_GCJ='-Wl,'
21489         # All Alpha code is PIC.
21490         lt_prog_compiler_static_GCJ='-non_shared'
21491         ;;
21492       esac
21493       ;;
21494
21495     osf3* | osf4* | osf5*)
21496       lt_prog_compiler_wl_GCJ='-Wl,'
21497       # All OSF/1 code is PIC.
21498       lt_prog_compiler_static_GCJ='-non_shared'
21499       ;;
21500
21501     sco3.2v5*)
21502       lt_prog_compiler_pic_GCJ='-Kpic'
21503       lt_prog_compiler_static_GCJ='-dn'
21504       ;;
21505
21506     solaris*)
21507       lt_prog_compiler_wl_GCJ='-Wl,'
21508       lt_prog_compiler_pic_GCJ='-KPIC'
21509       lt_prog_compiler_static_GCJ='-Bstatic'
21510       ;;
21511
21512     sunos4*)
21513       lt_prog_compiler_wl_GCJ='-Qoption ld '
21514       lt_prog_compiler_pic_GCJ='-PIC'
21515       lt_prog_compiler_static_GCJ='-Bstatic'
21516       ;;
21517
21518     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21519       lt_prog_compiler_wl_GCJ='-Wl,'
21520       lt_prog_compiler_pic_GCJ='-KPIC'
21521       lt_prog_compiler_static_GCJ='-Bstatic'
21522       ;;
21523
21524     sysv4*MP*)
21525       if test -d /usr/nec ;then
21526         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21527         lt_prog_compiler_static_GCJ='-Bstatic'
21528       fi
21529       ;;
21530
21531     uts4*)
21532       lt_prog_compiler_pic_GCJ='-pic'
21533       lt_prog_compiler_static_GCJ='-Bstatic'
21534       ;;
21535
21536     *)
21537       lt_prog_compiler_can_build_shared_GCJ=no
21538       ;;
21539     esac
21540   fi
21541
21542 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21543 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21544
21545 #
21546 # Check to make sure the PIC flag actually works.
21547 #
21548 if test -n "$lt_prog_compiler_pic_GCJ"; then
21549
21550 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21551 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21552 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   lt_prog_compiler_pic_works_GCJ=no
21556   ac_outfile=conftest.$ac_objext
21557    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21559    # Insert the option either (1) after the last *FLAGS variable, or
21560    # (2) before a word containing "conftest.", or (3) at the end.
21561    # Note that $ac_compile itself does not contain backslashes and begins
21562    # with a dollar sign (not a hyphen), so the echo should work correctly.
21563    # The option is referenced via a variable to avoid confusing sed.
21564    lt_compile=`echo "$ac_compile" | $SED \
21565    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567    -e 's:$: $lt_compiler_flag:'`
21568    (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
21569    (eval "$lt_compile" 2>conftest.err)
21570    ac_status=$?
21571    cat conftest.err >&5
21572    echo "$as_me:21572: \$? = $ac_status" >&5
21573    if (exit $ac_status) && test -s "$ac_outfile"; then
21574      # The compiler can only warn and ignore the option if not recognized
21575      # So say no if there are warnings
21576      if test ! -s conftest.err; then
21577        lt_prog_compiler_pic_works_GCJ=yes
21578      fi
21579    fi
21580    $rm conftest*
21581
21582 fi
21583 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21584 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21585
21586 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21587     case $lt_prog_compiler_pic_GCJ in
21588      "" | " "*) ;;
21589      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21590      esac
21591 else
21592     lt_prog_compiler_pic_GCJ=
21593      lt_prog_compiler_can_build_shared_GCJ=no
21594 fi
21595
21596 fi
21597 case "$host_os" in
21598   # For platforms which do not support PIC, -DPIC is meaningless:
21599   *djgpp*)
21600     lt_prog_compiler_pic_GCJ=
21601     ;;
21602   *)
21603     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21604     ;;
21605 esac
21606
21607 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21608 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21609 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21610   echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612   lt_cv_prog_compiler_c_o_GCJ=no
21613    $rm -r conftest 2>/dev/null
21614    mkdir conftest
21615    cd conftest
21616    mkdir out
21617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21618
21619    lt_compiler_flag="-o out/conftest2.$ac_objext"
21620    # Insert the option either (1) after the last *FLAGS variable, or
21621    # (2) before a word containing "conftest.", or (3) at the end.
21622    # Note that $ac_compile itself does not contain backslashes and begins
21623    # with a dollar sign (not a hyphen), so the echo should work correctly.
21624    lt_compile=`echo "$ac_compile" | $SED \
21625    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21627    -e 's:$: $lt_compiler_flag:'`
21628    (eval echo "\"\$as_me:21628: $lt_compile\"" >&5)
21629    (eval "$lt_compile" 2>out/conftest.err)
21630    ac_status=$?
21631    cat out/conftest.err >&5
21632    echo "$as_me:21632: \$? = $ac_status" >&5
21633    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21634    then
21635      # The compiler can only warn and ignore the option if not recognized
21636      # So say no if there are warnings
21637      if test ! -s out/conftest.err; then
21638        lt_cv_prog_compiler_c_o_GCJ=yes
21639      fi
21640    fi
21641    chmod u+w .
21642    $rm conftest*
21643    # SGI C++ compiler will create directory out/ii_files/ for
21644    # template instantiation
21645    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21646    $rm out/* && rmdir out
21647    cd ..
21648    rmdir conftest
21649    $rm conftest*
21650
21651 fi
21652 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21653 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21654
21655
21656 hard_links="nottested"
21657 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21658   # do not overwrite the value of need_locks provided by the user
21659   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21661   hard_links=yes
21662   $rm conftest*
21663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21664   touch conftest.a
21665   ln conftest.a conftest.b 2>&5 || hard_links=no
21666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21667   echo "$as_me:$LINENO: result: $hard_links" >&5
21668 echo "${ECHO_T}$hard_links" >&6
21669   if test "$hard_links" = no; then
21670     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21672     need_locks=warn
21673   fi
21674 else
21675   need_locks=no
21676 fi
21677
21678 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21679 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21680
21681   runpath_var=
21682   allow_undefined_flag_GCJ=
21683   enable_shared_with_static_runtimes_GCJ=no
21684   archive_cmds_GCJ=
21685   archive_expsym_cmds_GCJ=
21686   old_archive_From_new_cmds_GCJ=
21687   old_archive_from_expsyms_cmds_GCJ=
21688   export_dynamic_flag_spec_GCJ=
21689   whole_archive_flag_spec_GCJ=
21690   thread_safe_flag_spec_GCJ=
21691   hardcode_libdir_flag_spec_GCJ=
21692   hardcode_libdir_flag_spec_ld_GCJ=
21693   hardcode_libdir_separator_GCJ=
21694   hardcode_direct_GCJ=no
21695   hardcode_minus_L_GCJ=no
21696   hardcode_shlibpath_var_GCJ=unsupported
21697   link_all_deplibs_GCJ=unknown
21698   hardcode_automatic_GCJ=no
21699   module_cmds_GCJ=
21700   module_expsym_cmds_GCJ=
21701   always_export_symbols_GCJ=no
21702   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21703   # include_expsyms should be a list of space-separated symbols to be *always*
21704   # included in the symbol list
21705   include_expsyms_GCJ=
21706   # exclude_expsyms can be an extended regexp of symbols to exclude
21707   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21708   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21709   # as well as any symbol that contains `d'.
21710   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21711   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21712   # platforms (ab)use it in PIC code, but their linkers get confused if
21713   # the symbol is explicitly referenced.  Since portable code cannot
21714   # rely on this symbol name, it's probably fine to never include it in
21715   # preloaded symbol tables.
21716   extract_expsyms_cmds=
21717
21718   case $host_os in
21719   cygwin* | mingw* | pw32*)
21720     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21721     # When not using gcc, we currently assume that we are using
21722     # Microsoft Visual C++.
21723     if test "$GCC" != yes; then
21724       with_gnu_ld=no
21725     fi
21726     ;;
21727   openbsd*)
21728     with_gnu_ld=no
21729     ;;
21730   esac
21731
21732   ld_shlibs_GCJ=yes
21733   if test "$with_gnu_ld" = yes; then
21734     # If archive_cmds runs LD, not CC, wlarc should be empty
21735     wlarc='${wl}'
21736
21737     # See if GNU ld supports shared libraries.
21738     case $host_os in
21739     aix3* | aix4* | aix5*)
21740       # On AIX/PPC, the GNU linker is very broken
21741       if test "$host_cpu" != ia64; then
21742         ld_shlibs_GCJ=no
21743         cat <<EOF 1>&2
21744
21745 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21746 *** to be unable to reliably create shared libraries on AIX.
21747 *** Therefore, libtool is disabling shared libraries support.  If you
21748 *** really care for shared libraries, you may want to modify your PATH
21749 *** so that a non-GNU linker is found, and then restart.
21750
21751 EOF
21752       fi
21753       ;;
21754
21755     amigaos*)
21756       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)'
21757       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21758       hardcode_minus_L_GCJ=yes
21759
21760       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21761       # that the semantics of dynamic libraries on AmigaOS, at least up
21762       # to version 4, is to share data among multiple programs linked
21763       # with the same dynamic library.  Since this doesn't match the
21764       # behavior of shared libraries on other platforms, we can't use
21765       # them.
21766       ld_shlibs_GCJ=no
21767       ;;
21768
21769     beos*)
21770       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21771         allow_undefined_flag_GCJ=unsupported
21772         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21773         # support --undefined.  This deserves some investigation.  FIXME
21774         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21775       else
21776         ld_shlibs_GCJ=no
21777       fi
21778       ;;
21779
21780     cygwin* | mingw* | pw32*)
21781       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21782       # as there is no search path for DLLs.
21783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21784       allow_undefined_flag_GCJ=unsupported
21785       always_export_symbols_GCJ=no
21786       enable_shared_with_static_runtimes_GCJ=yes
21787       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21788
21789       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21790         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21791         # If the export-symbols file already is a .def file (1st line
21792         # is EXPORTS), use it as is; otherwise, prepend...
21793         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21794           cp $export_symbols $output_objdir/$soname.def;
21795         else
21796           echo EXPORTS > $output_objdir/$soname.def;
21797           cat $export_symbols >> $output_objdir/$soname.def;
21798         fi~
21799         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21800       else
21801         ld_shlibs=no
21802       fi
21803       ;;
21804
21805     netbsd*)
21806       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21807         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21808         wlarc=
21809       else
21810         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21811         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21812       fi
21813       ;;
21814
21815     solaris* | sysv5*)
21816       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21817         ld_shlibs_GCJ=no
21818         cat <<EOF 1>&2
21819
21820 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21821 *** create shared libraries on Solaris systems.  Therefore, libtool
21822 *** is disabling shared libraries support.  We urge you to upgrade GNU
21823 *** binutils to release 2.9.1 or newer.  Another option is to modify
21824 *** your PATH or compiler configuration so that the native linker is
21825 *** used, and then restart.
21826
21827 EOF
21828       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21829         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21830         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21831       else
21832         ld_shlibs_GCJ=no
21833       fi
21834       ;;
21835
21836     sunos4*)
21837       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21838       wlarc=
21839       hardcode_direct_GCJ=yes
21840       hardcode_shlibpath_var_GCJ=no
21841       ;;
21842
21843   linux*)
21844     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21845         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21846         archive_cmds_GCJ="$tmp_archive_cmds"
21847       supports_anon_versioning=no
21848       case `$LD -v 2>/dev/null` in
21849         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21850         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21851         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21852         *\ 2.11.*) ;; # other 2.11 versions
21853         *) supports_anon_versioning=yes ;;
21854       esac
21855       if test $supports_anon_versioning = yes; then
21856         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21858 $echo "local: *; };" >> $output_objdir/$libname.ver~
21859         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21860       else
21861         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21862       fi
21863     else
21864       ld_shlibs_GCJ=no
21865     fi
21866     ;;
21867
21868     *)
21869       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21870         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21871         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21872       else
21873         ld_shlibs_GCJ=no
21874       fi
21875       ;;
21876     esac
21877
21878     if test "$ld_shlibs_GCJ" = yes; then
21879       runpath_var=LD_RUN_PATH
21880       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21881       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21882       # ancient GNU ld didn't support --whole-archive et. al.
21883       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21884         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21885       else
21886         whole_archive_flag_spec_GCJ=
21887       fi
21888     fi
21889   else
21890     # PORTME fill in a description of your system's linker (not GNU ld)
21891     case $host_os in
21892     aix3*)
21893       allow_undefined_flag_GCJ=unsupported
21894       always_export_symbols_GCJ=yes
21895       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'
21896       # Note: this linker hardcodes the directories in LIBPATH if there
21897       # are no directories specified by -L.
21898       hardcode_minus_L_GCJ=yes
21899       if test "$GCC" = yes && test -z "$link_static_flag"; then
21900         # Neither direct hardcoding nor static linking is supported with a
21901         # broken collect2.
21902         hardcode_direct_GCJ=unsupported
21903       fi
21904       ;;
21905
21906     aix4* | aix5*)
21907       if test "$host_cpu" = ia64; then
21908         # On IA64, the linker does run time linking by default, so we don't
21909         # have to do anything special.
21910         aix_use_runtimelinking=no
21911         exp_sym_flag='-Bexport'
21912         no_entry_flag=""
21913       else
21914         # If we're using GNU nm, then we don't want the "-C" option.
21915         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21916         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21917           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'
21918         else
21919           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'
21920         fi
21921         aix_use_runtimelinking=no
21922
21923         # Test if we are trying to use run time linking or normal
21924         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21925         # need to do runtime linking.
21926         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21927           for ld_flag in $LDFLAGS; do
21928           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21929             aix_use_runtimelinking=yes
21930             break
21931           fi
21932           done
21933         esac
21934
21935         exp_sym_flag='-bexport'
21936         no_entry_flag='-bnoentry'
21937       fi
21938
21939       # When large executables or shared objects are built, AIX ld can
21940       # have problems creating the table of contents.  If linking a library
21941       # or program results in "error TOC overflow" add -mminimal-toc to
21942       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21943       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21944
21945       archive_cmds_GCJ=''
21946       hardcode_direct_GCJ=yes
21947       hardcode_libdir_separator_GCJ=':'
21948       link_all_deplibs_GCJ=yes
21949
21950       if test "$GCC" = yes; then
21951         case $host_os in aix4.012|aix4.012.*)
21952         # We only want to do this on AIX 4.2 and lower, the check
21953         # below for broken collect2 doesn't work under 4.3+
21954           collect2name=`${CC} -print-prog-name=collect2`
21955           if test -f "$collect2name" && \
21956            strings "$collect2name" | grep resolve_lib_name >/dev/null
21957           then
21958           # We have reworked collect2
21959           hardcode_direct_GCJ=yes
21960           else
21961           # We have old collect2
21962           hardcode_direct_GCJ=unsupported
21963           # It fails to find uninstalled libraries when the uninstalled
21964           # path is not listed in the libpath.  Setting hardcode_minus_L
21965           # to unsupported forces relinking
21966           hardcode_minus_L_GCJ=yes
21967           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21968           hardcode_libdir_separator_GCJ=
21969           fi
21970         esac
21971         shared_flag='-shared'
21972       else
21973         # not using gcc
21974         if test "$host_cpu" = ia64; then
21975         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21976         # chokes on -Wl,-G. The following line is correct:
21977           shared_flag='-G'
21978         else
21979         if test "$aix_use_runtimelinking" = yes; then
21980             shared_flag='${wl}-G'
21981           else
21982             shared_flag='${wl}-bM:SRE'
21983         fi
21984         fi
21985       fi
21986
21987       # It seems that -bexpall does not export symbols beginning with
21988       # underscore (_), so it is better to generate a list of symbols to export.
21989       always_export_symbols_GCJ=yes
21990       if test "$aix_use_runtimelinking" = yes; then
21991         # Warning - without using the other runtime loading flags (-brtl),
21992         # -berok will link without error, but may produce a broken library.
21993         allow_undefined_flag_GCJ='-berok'
21994        # Determine the default libpath from the value encoded in an empty executable.
21995        cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001
22002 int
22003 main ()
22004 {
22005
22006   ;
22007   return 0;
22008 }
22009 _ACEOF
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012   (eval $ac_link) 2>conftest.er1
22013   ac_status=$?
22014   grep -v '^ *+' conftest.er1 >conftest.err
22015   rm -f conftest.er1
22016   cat conftest.err >&5
22017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018   (exit $ac_status); } &&
22019          { ac_try='test -z "$ac_c_werror_flag"
22020                          || test ! -s conftest.err'
22021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022   (eval $ac_try) 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); }; } &&
22026          { ac_try='test -s conftest$ac_exeext'
22027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028   (eval $ac_try) 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; }; then
22032
22033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22034 }'`
22035 # Check for a 64-bit object if we didn't find anything.
22036 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; }
22037 }'`; fi
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 fi
22043 rm -f conftest.err conftest.$ac_objext \
22044       conftest$ac_exeext conftest.$ac_ext
22045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22046
22047        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22048         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"
22049        else
22050         if test "$host_cpu" = ia64; then
22051           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22052           allow_undefined_flag_GCJ="-z nodefs"
22053           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"
22054         else
22055          # Determine the default libpath from the value encoded in an empty executable.
22056          cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h.  */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h.  */
22062
22063 int
22064 main ()
22065 {
22066
22067   ;
22068   return 0;
22069 }
22070 _ACEOF
22071 rm -f conftest.$ac_objext conftest$ac_exeext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22073   (eval $ac_link) 2>conftest.er1
22074   ac_status=$?
22075   grep -v '^ *+' conftest.er1 >conftest.err
22076   rm -f conftest.er1
22077   cat conftest.err >&5
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } &&
22080          { ac_try='test -z "$ac_c_werror_flag"
22081                          || test ! -s conftest.err'
22082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083   (eval $ac_try) 2>&5
22084   ac_status=$?
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); }; } &&
22087          { ac_try='test -s conftest$ac_exeext'
22088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089   (eval $ac_try) 2>&5
22090   ac_status=$?
22091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); }; }; then
22093
22094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22095 }'`
22096 # Check for a 64-bit object if we didn't find anything.
22097 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; }
22098 }'`; fi
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 fi
22104 rm -f conftest.err conftest.$ac_objext \
22105       conftest$ac_exeext conftest.$ac_ext
22106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22107
22108          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22109           # Warning - without using the other run time loading flags,
22110           # -berok will link without error, but may produce a broken library.
22111           no_undefined_flag_GCJ=' ${wl}-bernotok'
22112           allow_undefined_flag_GCJ=' ${wl}-berok'
22113           # -bexpall does not export symbols beginning with underscore (_)
22114           always_export_symbols_GCJ=yes
22115           # Exported symbols can be pulled into shared objects from archives
22116           whole_archive_flag_spec_GCJ=' '
22117           archive_cmds_need_lc_GCJ=yes
22118           # This is similar to how AIX traditionally builds it's shared libraries.
22119           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'
22120         fi
22121       fi
22122       ;;
22123
22124     amigaos*)
22125       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)'
22126       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22127       hardcode_minus_L_GCJ=yes
22128       # see comment about different semantics on the GNU ld section
22129       ld_shlibs_GCJ=no
22130       ;;
22131
22132     bsdi[45]*)
22133       export_dynamic_flag_spec_GCJ=-rdynamic
22134       ;;
22135
22136     cygwin* | mingw* | pw32*)
22137       # When not using gcc, we currently assume that we are using
22138       # Microsoft Visual C++.
22139       # hardcode_libdir_flag_spec is actually meaningless, as there is
22140       # no search path for DLLs.
22141       hardcode_libdir_flag_spec_GCJ=' '
22142       allow_undefined_flag_GCJ=unsupported
22143       # Tell ltmain to make .lib files, not .a files.
22144       libext=lib
22145       # Tell ltmain to make .dll files, not .so files.
22146       shrext_cmds=".dll"
22147       # FIXME: Setting linknames here is a bad hack.
22148       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22149       # The linker will automatically build a .lib file if we build a DLL.
22150       old_archive_From_new_cmds_GCJ='true'
22151       # FIXME: Should let the user specify the lib program.
22152       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22153       fix_srcfile_path='`cygpath -w "$srcfile"`'
22154       enable_shared_with_static_runtimes_GCJ=yes
22155       ;;
22156
22157     darwin* | rhapsody*)
22158       case "$host_os" in
22159         rhapsody* | darwin1.[012])
22160          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22161          ;;
22162        *) # Darwin 1.3 on
22163          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22164            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22165          else
22166            case ${MACOSX_DEPLOYMENT_TARGET} in
22167              10.[012])
22168                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22169                ;;
22170              10.*)
22171                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22172                ;;
22173            esac
22174          fi
22175          ;;
22176       esac
22177       archive_cmds_need_lc_GCJ=no
22178       hardcode_direct_GCJ=no
22179       hardcode_automatic_GCJ=yes
22180       hardcode_shlibpath_var_GCJ=unsupported
22181       whole_archive_flag_spec_GCJ=''
22182       link_all_deplibs_GCJ=yes
22183     if test "$GCC" = yes ; then
22184         output_verbose_link_cmd='echo'
22185         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22186       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22187       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22188       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}'
22189       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}'
22190     else
22191       case "$cc_basename" in
22192         xlc*)
22193          output_verbose_link_cmd='echo'
22194          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22195          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22196           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22197          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}'
22198           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}'
22199           ;;
22200        *)
22201          ld_shlibs_GCJ=no
22202           ;;
22203       esac
22204     fi
22205       ;;
22206
22207     dgux*)
22208       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22210       hardcode_shlibpath_var_GCJ=no
22211       ;;
22212
22213     freebsd1*)
22214       ld_shlibs_GCJ=no
22215       ;;
22216
22217     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22218     # support.  Future versions do this automatically, but an explicit c++rt0.o
22219     # does not break anything, and helps significantly (at the cost of a little
22220     # extra space).
22221     freebsd2.2*)
22222       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22223       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22224       hardcode_direct_GCJ=yes
22225       hardcode_shlibpath_var_GCJ=no
22226       ;;
22227
22228     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22229     freebsd2*)
22230       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22231       hardcode_direct_GCJ=yes
22232       hardcode_minus_L_GCJ=yes
22233       hardcode_shlibpath_var_GCJ=no
22234       ;;
22235
22236     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22237     freebsd* | kfreebsd*-gnu)
22238       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22239       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240       hardcode_direct_GCJ=yes
22241       hardcode_shlibpath_var_GCJ=no
22242       ;;
22243
22244     hpux9*)
22245       if test "$GCC" = yes; then
22246         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'
22247       else
22248         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'
22249       fi
22250       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22251       hardcode_libdir_separator_GCJ=:
22252       hardcode_direct_GCJ=yes
22253
22254       # hardcode_minus_L: Not really in the search PATH,
22255       # but as the default location of the library.
22256       hardcode_minus_L_GCJ=yes
22257       export_dynamic_flag_spec_GCJ='${wl}-E'
22258       ;;
22259
22260     hpux10* | hpux11*)
22261       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22262         case "$host_cpu" in
22263         hppa*64*|ia64*)
22264           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22265           ;;
22266         *)
22267           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22268           ;;
22269         esac
22270       else
22271         case "$host_cpu" in
22272         hppa*64*|ia64*)
22273           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22274           ;;
22275         *)
22276           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22277           ;;
22278         esac
22279       fi
22280       if test "$with_gnu_ld" = no; then
22281         case "$host_cpu" in
22282         hppa*64*)
22283           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22284           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22285           hardcode_libdir_separator_GCJ=:
22286           hardcode_direct_GCJ=no
22287           hardcode_shlibpath_var_GCJ=no
22288           ;;
22289         ia64*)
22290           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22291           hardcode_direct_GCJ=no
22292           hardcode_shlibpath_var_GCJ=no
22293
22294           # hardcode_minus_L: Not really in the search PATH,
22295           # but as the default location of the library.
22296           hardcode_minus_L_GCJ=yes
22297           ;;
22298         *)
22299           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22300           hardcode_libdir_separator_GCJ=:
22301           hardcode_direct_GCJ=yes
22302           export_dynamic_flag_spec_GCJ='${wl}-E'
22303
22304           # hardcode_minus_L: Not really in the search PATH,
22305           # but as the default location of the library.
22306           hardcode_minus_L_GCJ=yes
22307           ;;
22308         esac
22309       fi
22310       ;;
22311
22312     irix5* | irix6* | nonstopux*)
22313       if test "$GCC" = yes; then
22314         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'
22315       else
22316         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'
22317         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22318       fi
22319       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22320       hardcode_libdir_separator_GCJ=:
22321       link_all_deplibs_GCJ=yes
22322       ;;
22323
22324     netbsd*)
22325       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22326         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22327       else
22328         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22329       fi
22330       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22331       hardcode_direct_GCJ=yes
22332       hardcode_shlibpath_var_GCJ=no
22333       ;;
22334
22335     newsos6)
22336       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337       hardcode_direct_GCJ=yes
22338       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22339       hardcode_libdir_separator_GCJ=:
22340       hardcode_shlibpath_var_GCJ=no
22341       ;;
22342
22343     openbsd*)
22344       hardcode_direct_GCJ=yes
22345       hardcode_shlibpath_var_GCJ=no
22346       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22347         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22348         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22349         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22350         export_dynamic_flag_spec_GCJ='${wl}-E'
22351       else
22352        case $host_os in
22353          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22354            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22355            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22356            ;;
22357          *)
22358            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22359            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22360            ;;
22361        esac
22362       fi
22363       ;;
22364
22365     os2*)
22366       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22367       hardcode_minus_L_GCJ=yes
22368       allow_undefined_flag_GCJ=unsupported
22369       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'
22370       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22371       ;;
22372
22373     osf3*)
22374       if test "$GCC" = yes; then
22375         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22376         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'
22377       else
22378         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22379         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'
22380       fi
22381       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22382       hardcode_libdir_separator_GCJ=:
22383       ;;
22384
22385     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22386       if test "$GCC" = yes; then
22387         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22388         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'
22389         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22390       else
22391         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22392         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'
22393         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~
22394         $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'
22395
22396         # Both c and cxx compiler support -rpath directly
22397         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22398       fi
22399       hardcode_libdir_separator_GCJ=:
22400       ;;
22401
22402     sco3.2v5*)
22403       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22404       hardcode_shlibpath_var_GCJ=no
22405       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22406       runpath_var=LD_RUN_PATH
22407       hardcode_runpath_var=yes
22408       ;;
22409
22410     solaris*)
22411       no_undefined_flag_GCJ=' -z text'
22412       if test "$GCC" = yes; then
22413         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22414         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22415           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22416       else
22417         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22420       fi
22421       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22422       hardcode_shlibpath_var_GCJ=no
22423       case $host_os in
22424       solaris2.[0-5] | solaris2.[0-5].*) ;;
22425       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22426         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22427       esac
22428       link_all_deplibs_GCJ=yes
22429       ;;
22430
22431     sunos4*)
22432       if test "x$host_vendor" = xsequent; then
22433         # Use $CC to link under sequent, because it throws in some extra .o
22434         # files that make .init and .fini sections work.
22435         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22436       else
22437         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22438       fi
22439       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22440       hardcode_direct_GCJ=yes
22441       hardcode_minus_L_GCJ=yes
22442       hardcode_shlibpath_var_GCJ=no
22443       ;;
22444
22445     sysv4)
22446       case $host_vendor in
22447         sni)
22448           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22449           hardcode_direct_GCJ=yes # is this really true???
22450         ;;
22451         siemens)
22452           ## LD is ld it makes a PLAMLIB
22453           ## CC just makes a GrossModule.
22454           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22455           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22456           hardcode_direct_GCJ=no
22457         ;;
22458         motorola)
22459           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22460           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22461         ;;
22462       esac
22463       runpath_var='LD_RUN_PATH'
22464       hardcode_shlibpath_var_GCJ=no
22465       ;;
22466
22467     sysv4.3*)
22468       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469       hardcode_shlibpath_var_GCJ=no
22470       export_dynamic_flag_spec_GCJ='-Bexport'
22471       ;;
22472
22473     sysv4*MP*)
22474       if test -d /usr/nec; then
22475         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22476         hardcode_shlibpath_var_GCJ=no
22477         runpath_var=LD_RUN_PATH
22478         hardcode_runpath_var=yes
22479         ld_shlibs_GCJ=yes
22480       fi
22481       ;;
22482
22483     sysv4.2uw2*)
22484       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22485       hardcode_direct_GCJ=yes
22486       hardcode_minus_L_GCJ=no
22487       hardcode_shlibpath_var_GCJ=no
22488       hardcode_runpath_var=yes
22489       runpath_var=LD_RUN_PATH
22490       ;;
22491
22492    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22493       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22494       if test "$GCC" = yes; then
22495         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22496       else
22497         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22498       fi
22499       runpath_var='LD_RUN_PATH'
22500       hardcode_shlibpath_var_GCJ=no
22501       ;;
22502
22503     sysv5*)
22504       no_undefined_flag_GCJ=' -z text'
22505       # $CC -shared without GNU ld will not create a library from C++
22506       # object files and a static libstdc++, better avoid it by now
22507       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22508       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22509                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22510       hardcode_libdir_flag_spec_GCJ=
22511       hardcode_shlibpath_var_GCJ=no
22512       runpath_var='LD_RUN_PATH'
22513       ;;
22514
22515     uts4*)
22516       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22517       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22518       hardcode_shlibpath_var_GCJ=no
22519       ;;
22520
22521     *)
22522       ld_shlibs_GCJ=no
22523       ;;
22524     esac
22525   fi
22526
22527 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22528 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22529 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22530
22531 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22532 if test "$GCC" = yes; then
22533   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22534 fi
22535
22536 #
22537 # Do we need to explicitly link libc?
22538 #
22539 case "x$archive_cmds_need_lc_GCJ" in
22540 x|xyes)
22541   # Assume -lc should be added
22542   archive_cmds_need_lc_GCJ=yes
22543
22544   if test "$enable_shared" = yes && test "$GCC" = yes; then
22545     case $archive_cmds_GCJ in
22546     *'~'*)
22547       # FIXME: we may have to deal with multi-command sequences.
22548       ;;
22549     '$CC '*)
22550       # Test whether the compiler implicitly links with -lc since on some
22551       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22552       # to ld, don't add -lc before -lgcc.
22553       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22554 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22555       $rm conftest*
22556       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22557
22558       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22559   (eval $ac_compile) 2>&5
22560   ac_status=$?
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } 2>conftest.err; then
22563         soname=conftest
22564         lib=conftest
22565         libobjs=conftest.$ac_objext
22566         deplibs=
22567         wl=$lt_prog_compiler_wl_GCJ
22568         compiler_flags=-v
22569         linker_flags=-v
22570         verstring=
22571         output_objdir=.
22572         libname=conftest
22573         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22574         allow_undefined_flag_GCJ=
22575         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22576   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }
22580         then
22581           archive_cmds_need_lc_GCJ=no
22582         else
22583           archive_cmds_need_lc_GCJ=yes
22584         fi
22585         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22586       else
22587         cat conftest.err 1>&5
22588       fi
22589       $rm conftest*
22590       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22591 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22592       ;;
22593     esac
22594   fi
22595   ;;
22596 esac
22597
22598 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22600 library_names_spec=
22601 libname_spec='lib$name'
22602 soname_spec=
22603 shrext_cmds=".so"
22604 postinstall_cmds=
22605 postuninstall_cmds=
22606 finish_cmds=
22607 finish_eval=
22608 shlibpath_var=
22609 shlibpath_overrides_runpath=unknown
22610 version_type=none
22611 dynamic_linker="$host_os ld.so"
22612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22613 if test "$GCC" = yes; then
22614   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22615   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22616     # if the path contains ";" then we assume it to be the separator
22617     # otherwise default to the standard path separator (i.e. ":") - it is
22618     # assumed that no part of a normal pathname contains ";" but that should
22619     # okay in the real world where ";" in dirpaths is itself problematic.
22620     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22621   else
22622     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22623   fi
22624 else
22625   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22626 fi
22627 need_lib_prefix=unknown
22628 hardcode_into_libs=no
22629
22630 # when you set need_version to no, make sure it does not cause -set_version
22631 # flags to be left without arguments
22632 need_version=unknown
22633
22634 case $host_os in
22635 aix3*)
22636   version_type=linux
22637   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22638   shlibpath_var=LIBPATH
22639
22640   # AIX 3 has no versioning support, so we append a major version to the name.
22641   soname_spec='${libname}${release}${shared_ext}$major'
22642   ;;
22643
22644 aix4* | aix5*)
22645   version_type=linux
22646   need_lib_prefix=no
22647   need_version=no
22648   hardcode_into_libs=yes
22649   if test "$host_cpu" = ia64; then
22650     # AIX 5 supports IA64
22651     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22652     shlibpath_var=LD_LIBRARY_PATH
22653   else
22654     # With GCC up to 2.95.x, collect2 would create an import file
22655     # for dependence libraries.  The import file would start with
22656     # the line `#! .'.  This would cause the generated library to
22657     # depend on `.', always an invalid library.  This was fixed in
22658     # development snapshots of GCC prior to 3.0.
22659     case $host_os in
22660       aix4 | aix4.[01] | aix4.[01].*)
22661       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22662            echo ' yes '
22663            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22664         :
22665       else
22666         can_build_shared=no
22667       fi
22668       ;;
22669     esac
22670     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22671     # soname into executable. Probably we can add versioning support to
22672     # collect2, so additional links can be useful in future.
22673     if test "$aix_use_runtimelinking" = yes; then
22674       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22675       # instead of lib<name>.a to let people know that these are not
22676       # typical AIX shared libraries.
22677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22678     else
22679       # We preserve .a as extension for shared libraries through AIX4.2
22680       # and later when we are not doing run time linking.
22681       library_names_spec='${libname}${release}.a $libname.a'
22682       soname_spec='${libname}${release}${shared_ext}$major'
22683     fi
22684     shlibpath_var=LIBPATH
22685   fi
22686   ;;
22687
22688 amigaos*)
22689   library_names_spec='$libname.ixlibrary $libname.a'
22690   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22691   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'
22692   ;;
22693
22694 beos*)
22695   library_names_spec='${libname}${shared_ext}'
22696   dynamic_linker="$host_os ld.so"
22697   shlibpath_var=LIBRARY_PATH
22698   ;;
22699
22700 bsdi[45]*)
22701   version_type=linux
22702   need_version=no
22703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22704   soname_spec='${libname}${release}${shared_ext}$major'
22705   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22706   shlibpath_var=LD_LIBRARY_PATH
22707   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22708   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22709   # the default ld.so.conf also contains /usr/contrib/lib and
22710   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22711   # libtool to hard-code these into programs
22712   ;;
22713
22714 cygwin* | mingw* | pw32*)
22715   version_type=windows
22716   shrext_cmds=".dll"
22717   need_version=no
22718   need_lib_prefix=no
22719
22720   case $GCC,$host_os in
22721   yes,cygwin* | yes,mingw* | yes,pw32*)
22722     library_names_spec='$libname.dll.a'
22723     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22724     postinstall_cmds='base_file=`basename \${file}`~
22725       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22726       dldir=$destdir/`dirname \$dlpath`~
22727       test -d \$dldir || mkdir -p \$dldir~
22728       $install_prog $dir/$dlname \$dldir/$dlname'
22729     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22730       dlpath=$dir/\$dldll~
22731        $rm \$dlpath'
22732     shlibpath_overrides_runpath=yes
22733
22734     case $host_os in
22735     cygwin*)
22736       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22737       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22739       ;;
22740     mingw*)
22741       # MinGW DLLs use traditional 'lib' prefix
22742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22743       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22744       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22745         # It is most probably a Windows format PATH printed by
22746         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22747         # path with ; separators, and with drive letters. We can handle the
22748         # drive letters (cygwin fileutils understands them), so leave them,
22749         # especially as we might pass files found there to a mingw objdump,
22750         # which wouldn't understand a cygwinified path. Ahh.
22751         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22752       else
22753         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22754       fi
22755       ;;
22756     pw32*)
22757       # pw32 DLLs use 'pw' prefix rather than 'lib'
22758       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22759       ;;
22760     esac
22761     ;;
22762
22763   *)
22764     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22765     ;;
22766   esac
22767   dynamic_linker='Win32 ld.exe'
22768   # FIXME: first we should search . and the directory the executable is in
22769   shlibpath_var=PATH
22770   ;;
22771
22772 darwin* | rhapsody*)
22773   dynamic_linker="$host_os dyld"
22774   version_type=darwin
22775   need_lib_prefix=no
22776   need_version=no
22777   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22778   soname_spec='${libname}${release}${major}$shared_ext'
22779   shlibpath_overrides_runpath=yes
22780   shlibpath_var=DYLD_LIBRARY_PATH
22781   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22782   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22783   if test "$GCC" = yes; then
22784     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"`
22785   else
22786     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22787   fi
22788   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22789   ;;
22790
22791 dgux*)
22792   version_type=linux
22793   need_lib_prefix=no
22794   need_version=no
22795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22796   soname_spec='${libname}${release}${shared_ext}$major'
22797   shlibpath_var=LD_LIBRARY_PATH
22798   ;;
22799
22800 freebsd1*)
22801   dynamic_linker=no
22802   ;;
22803
22804 kfreebsd*-gnu)
22805   version_type=linux
22806   need_lib_prefix=no
22807   need_version=no
22808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22809   soname_spec='${libname}${release}${shared_ext}$major'
22810   shlibpath_var=LD_LIBRARY_PATH
22811   shlibpath_overrides_runpath=no
22812   hardcode_into_libs=yes
22813   dynamic_linker='GNU ld.so'
22814   ;;
22815
22816 freebsd*)
22817   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22818   version_type=freebsd-$objformat
22819   case $version_type in
22820     freebsd-elf*)
22821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22822       need_version=no
22823       need_lib_prefix=no
22824       ;;
22825     freebsd-*)
22826       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22827       need_version=yes
22828       ;;
22829   esac
22830   shlibpath_var=LD_LIBRARY_PATH
22831   case $host_os in
22832   freebsd2*)
22833     shlibpath_overrides_runpath=yes
22834     ;;
22835   freebsd3.01* | freebsdelf3.01*)
22836     shlibpath_overrides_runpath=yes
22837     hardcode_into_libs=yes
22838     ;;
22839   *) # from 3.2 on
22840     shlibpath_overrides_runpath=no
22841     hardcode_into_libs=yes
22842     ;;
22843   esac
22844   ;;
22845
22846 gnu*)
22847   version_type=linux
22848   need_lib_prefix=no
22849   need_version=no
22850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22851   soname_spec='${libname}${release}${shared_ext}$major'
22852   shlibpath_var=LD_LIBRARY_PATH
22853   hardcode_into_libs=yes
22854   ;;
22855
22856 hpux9* | hpux10* | hpux11*)
22857   # Give a soname corresponding to the major version so that dld.sl refuses to
22858   # link against other versions.
22859   version_type=sunos
22860   need_lib_prefix=no
22861   need_version=no
22862   case "$host_cpu" in
22863   ia64*)
22864     shrext_cmds='.so'
22865     hardcode_into_libs=yes
22866     dynamic_linker="$host_os dld.so"
22867     shlibpath_var=LD_LIBRARY_PATH
22868     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22870     soname_spec='${libname}${release}${shared_ext}$major'
22871     if test "X$HPUX_IA64_MODE" = X32; then
22872       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22873     else
22874       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22875     fi
22876     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22877     ;;
22878    hppa*64*)
22879      shrext_cmds='.sl'
22880      hardcode_into_libs=yes
22881      dynamic_linker="$host_os dld.sl"
22882      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22883      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22884      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22885      soname_spec='${libname}${release}${shared_ext}$major'
22886      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22887      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22888      ;;
22889    *)
22890     shrext_cmds='.sl'
22891     dynamic_linker="$host_os dld.sl"
22892     shlibpath_var=SHLIB_PATH
22893     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895     soname_spec='${libname}${release}${shared_ext}$major'
22896     ;;
22897   esac
22898   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22899   postinstall_cmds='chmod 555 $lib'
22900   ;;
22901
22902 irix5* | irix6* | nonstopux*)
22903   case $host_os in
22904     nonstopux*) version_type=nonstopux ;;
22905     *)
22906         if test "$lt_cv_prog_gnu_ld" = yes; then
22907                 version_type=linux
22908         else
22909                 version_type=irix
22910         fi ;;
22911   esac
22912   need_lib_prefix=no
22913   need_version=no
22914   soname_spec='${libname}${release}${shared_ext}$major'
22915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22916   case $host_os in
22917   irix5* | nonstopux*)
22918     libsuff= shlibsuff=
22919     ;;
22920   *)
22921     case $LD in # libtool.m4 will add one of these switches to LD
22922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22923       libsuff= shlibsuff= libmagic=32-bit;;
22924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22925       libsuff=32 shlibsuff=N32 libmagic=N32;;
22926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22928     *) libsuff= shlibsuff= libmagic=never-match;;
22929     esac
22930     ;;
22931   esac
22932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22933   shlibpath_overrides_runpath=no
22934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22936   hardcode_into_libs=yes
22937   ;;
22938
22939 # No shared lib support for Linux oldld, aout, or coff.
22940 linux*oldld* | linux*aout* | linux*coff*)
22941   dynamic_linker=no
22942   ;;
22943
22944 # This must be Linux ELF.
22945 linux*)
22946   version_type=linux
22947   need_lib_prefix=no
22948   need_version=no
22949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950   soname_spec='${libname}${release}${shared_ext}$major'
22951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22952   shlibpath_var=LD_LIBRARY_PATH
22953   shlibpath_overrides_runpath=no
22954   # This implies no fast_install, which is unacceptable.
22955   # Some rework will be needed to allow for fast_install
22956   # before this can be enabled.
22957   hardcode_into_libs=yes
22958
22959   # Append ld.so.conf contents to the search path
22960   if test -f /etc/ld.so.conf; then
22961     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22962     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22963   fi
22964
22965   # We used to test for /lib/ld.so.1 and disable shared libraries on
22966   # powerpc, because MkLinux only supported shared libraries with the
22967   # GNU dynamic linker.  Since this was broken with cross compilers,
22968   # most powerpc-linux boxes support dynamic linking these days and
22969   # people can always --disable-shared, the test was removed, and we
22970   # assume the GNU/Linux dynamic linker is in use.
22971   dynamic_linker='GNU/Linux ld.so'
22972   ;;
22973
22974 knetbsd*-gnu)
22975   version_type=linux
22976   need_lib_prefix=no
22977   need_version=no
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22979   soname_spec='${libname}${release}${shared_ext}$major'
22980   shlibpath_var=LD_LIBRARY_PATH
22981   shlibpath_overrides_runpath=no
22982   hardcode_into_libs=yes
22983   dynamic_linker='GNU ld.so'
22984   ;;
22985
22986 netbsd*)
22987   version_type=sunos
22988   need_lib_prefix=no
22989   need_version=no
22990   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993     dynamic_linker='NetBSD (a.out) ld.so'
22994   else
22995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22996     soname_spec='${libname}${release}${shared_ext}$major'
22997     dynamic_linker='NetBSD ld.elf_so'
22998   fi
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=yes
23001   hardcode_into_libs=yes
23002   ;;
23003
23004 newsos6)
23005   version_type=linux
23006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007   shlibpath_var=LD_LIBRARY_PATH
23008   shlibpath_overrides_runpath=yes
23009   ;;
23010
23011 nto-qnx*)
23012   version_type=linux
23013   need_lib_prefix=no
23014   need_version=no
23015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016   soname_spec='${libname}${release}${shared_ext}$major'
23017   shlibpath_var=LD_LIBRARY_PATH
23018   shlibpath_overrides_runpath=yes
23019   ;;
23020
23021 openbsd*)
23022   version_type=sunos
23023   need_lib_prefix=no
23024   need_version=no
23025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23027   shlibpath_var=LD_LIBRARY_PATH
23028   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23029     case $host_os in
23030       openbsd2.[89] | openbsd2.[89].*)
23031         shlibpath_overrides_runpath=no
23032         ;;
23033       *)
23034         shlibpath_overrides_runpath=yes
23035         ;;
23036       esac
23037   else
23038     shlibpath_overrides_runpath=yes
23039   fi
23040   ;;
23041
23042 os2*)
23043   libname_spec='$name'
23044   shrext_cmds=".dll"
23045   need_lib_prefix=no
23046   library_names_spec='$libname${shared_ext} $libname.a'
23047   dynamic_linker='OS/2 ld.exe'
23048   shlibpath_var=LIBPATH
23049   ;;
23050
23051 osf3* | osf4* | osf5*)
23052   version_type=osf
23053   need_lib_prefix=no
23054   need_version=no
23055   soname_spec='${libname}${release}${shared_ext}$major'
23056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23057   shlibpath_var=LD_LIBRARY_PATH
23058   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23059   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23060   ;;
23061
23062 sco3.2v5*)
23063   version_type=osf
23064   soname_spec='${libname}${release}${shared_ext}$major'
23065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23066   shlibpath_var=LD_LIBRARY_PATH
23067   ;;
23068
23069 solaris*)
23070   version_type=linux
23071   need_lib_prefix=no
23072   need_version=no
23073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074   soname_spec='${libname}${release}${shared_ext}$major'
23075   shlibpath_var=LD_LIBRARY_PATH
23076   shlibpath_overrides_runpath=yes
23077   hardcode_into_libs=yes
23078   # ldd complains unless libraries are executable
23079   postinstall_cmds='chmod +x $lib'
23080   ;;
23081
23082 sunos4*)
23083   version_type=sunos
23084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23085   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23086   shlibpath_var=LD_LIBRARY_PATH
23087   shlibpath_overrides_runpath=yes
23088   if test "$with_gnu_ld" = yes; then
23089     need_lib_prefix=no
23090   fi
23091   need_version=yes
23092   ;;
23093
23094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23095   version_type=linux
23096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097   soname_spec='${libname}${release}${shared_ext}$major'
23098   shlibpath_var=LD_LIBRARY_PATH
23099   case $host_vendor in
23100     sni)
23101       shlibpath_overrides_runpath=no
23102       need_lib_prefix=no
23103       export_dynamic_flag_spec='${wl}-Blargedynsym'
23104       runpath_var=LD_RUN_PATH
23105       ;;
23106     siemens)
23107       need_lib_prefix=no
23108       ;;
23109     motorola)
23110       need_lib_prefix=no
23111       need_version=no
23112       shlibpath_overrides_runpath=no
23113       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23114       ;;
23115   esac
23116   ;;
23117
23118 sysv4*MP*)
23119   if test -d /usr/nec ;then
23120     version_type=linux
23121     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23122     soname_spec='$libname${shared_ext}.$major'
23123     shlibpath_var=LD_LIBRARY_PATH
23124   fi
23125   ;;
23126
23127 uts4*)
23128   version_type=linux
23129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130   soname_spec='${libname}${release}${shared_ext}$major'
23131   shlibpath_var=LD_LIBRARY_PATH
23132   ;;
23133
23134 *)
23135   dynamic_linker=no
23136   ;;
23137 esac
23138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23139 echo "${ECHO_T}$dynamic_linker" >&6
23140 test "$dynamic_linker" = no && can_build_shared=no
23141
23142 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23143 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23144 hardcode_action_GCJ=
23145 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23146    test -n "$runpath_var_GCJ" || \
23147    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23148
23149   # We can hardcode non-existant directories.
23150   if test "$hardcode_direct_GCJ" != no &&
23151      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23152      # have to relink, otherwise we might link with an installed library
23153      # when we should be linking with a yet-to-be-installed one
23154      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23155      test "$hardcode_minus_L_GCJ" != no; then
23156     # Linking always hardcodes the temporary library directory.
23157     hardcode_action_GCJ=relink
23158   else
23159     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23160     hardcode_action_GCJ=immediate
23161   fi
23162 else
23163   # We cannot hardcode anything, or else we can only hardcode existing
23164   # directories.
23165   hardcode_action_GCJ=unsupported
23166 fi
23167 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23168 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23169
23170 if test "$hardcode_action_GCJ" = relink; then
23171   # Fast installation is not supported
23172   enable_fast_install=no
23173 elif test "$shlibpath_overrides_runpath" = yes ||
23174      test "$enable_shared" = no; then
23175   # Fast installation is not necessary
23176   enable_fast_install=needless
23177 fi
23178
23179 striplib=
23180 old_striplib=
23181 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23182 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23183 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23184   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23185   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23186   echo "$as_me:$LINENO: result: yes" >&5
23187 echo "${ECHO_T}yes" >&6
23188 else
23189 # FIXME - insert some real tests, host_os isn't really good enough
23190   case $host_os in
23191    darwin*)
23192        if test -n "$STRIP" ; then
23193          striplib="$STRIP -x"
23194          echo "$as_me:$LINENO: result: yes" >&5
23195 echo "${ECHO_T}yes" >&6
23196        else
23197   echo "$as_me:$LINENO: result: no" >&5
23198 echo "${ECHO_T}no" >&6
23199 fi
23200        ;;
23201    *)
23202   echo "$as_me:$LINENO: result: no" >&5
23203 echo "${ECHO_T}no" >&6
23204     ;;
23205   esac
23206 fi
23207
23208 if test "x$enable_dlopen" != xyes; then
23209   enable_dlopen=unknown
23210   enable_dlopen_self=unknown
23211   enable_dlopen_self_static=unknown
23212 else
23213   lt_cv_dlopen=no
23214   lt_cv_dlopen_libs=
23215
23216   case $host_os in
23217   beos*)
23218     lt_cv_dlopen="load_add_on"
23219     lt_cv_dlopen_libs=
23220     lt_cv_dlopen_self=yes
23221     ;;
23222
23223   mingw* | pw32*)
23224     lt_cv_dlopen="LoadLibrary"
23225     lt_cv_dlopen_libs=
23226    ;;
23227
23228   cygwin*)
23229     lt_cv_dlopen="dlopen"
23230     lt_cv_dlopen_libs=
23231    ;;
23232
23233   darwin*)
23234   # if libdl is installed we need to link against it
23235     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23236 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   ac_check_lib_save_LIBS=$LIBS
23241 LIBS="-ldl  $LIBS"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248
23249 /* Override any gcc2 internal prototype to avoid an error.  */
23250 #ifdef __cplusplus
23251 extern "C"
23252 #endif
23253 /* We use char because int might match the return type of a gcc2
23254    builtin and then its argument prototype would still apply.  */
23255 char dlopen ();
23256 int
23257 main ()
23258 {
23259 dlopen ();
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266   (eval $ac_link) 2>conftest.er1
23267   ac_status=$?
23268   grep -v '^ *+' conftest.er1 >conftest.err
23269   rm -f conftest.er1
23270   cat conftest.err >&5
23271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); } &&
23273          { ac_try='test -z "$ac_c_werror_flag"
23274                          || test ! -s conftest.err'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; } &&
23280          { ac_try='test -s conftest$ac_exeext'
23281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282   (eval $ac_try) 2>&5
23283   ac_status=$?
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); }; }; then
23286   ac_cv_lib_dl_dlopen=yes
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291 ac_cv_lib_dl_dlopen=no
23292 fi
23293 rm -f conftest.err conftest.$ac_objext \
23294       conftest$ac_exeext conftest.$ac_ext
23295 LIBS=$ac_check_lib_save_LIBS
23296 fi
23297 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23299 if test $ac_cv_lib_dl_dlopen = yes; then
23300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23301 else
23302
23303     lt_cv_dlopen="dyld"
23304     lt_cv_dlopen_libs=
23305     lt_cv_dlopen_self=yes
23306
23307 fi
23308
23309    ;;
23310
23311   *)
23312     echo "$as_me:$LINENO: checking for shl_load" >&5
23313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23314 if test "${ac_cv_func_shl_load+set}" = set; then
23315   echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317   cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23325 #define shl_load innocuous_shl_load
23326
23327 /* System header to define __stub macros and hopefully few prototypes,
23328     which can conflict with char shl_load (); below.
23329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23330     <limits.h> exists even on freestanding compilers.  */
23331
23332 #ifdef __STDC__
23333 # include <limits.h>
23334 #else
23335 # include <assert.h>
23336 #endif
23337
23338 #undef shl_load
23339
23340 /* Override any gcc2 internal prototype to avoid an error.  */
23341 #ifdef __cplusplus
23342 extern "C"
23343 {
23344 #endif
23345 /* We use char because int might match the return type of a gcc2
23346    builtin and then its argument prototype would still apply.  */
23347 char shl_load ();
23348 /* The GNU C library defines this for functions which it implements
23349     to always fail with ENOSYS.  Some functions are actually named
23350     something starting with __ and the normal name is an alias.  */
23351 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23352 choke me
23353 #else
23354 char (*f) () = shl_load;
23355 #endif
23356 #ifdef __cplusplus
23357 }
23358 #endif
23359
23360 int
23361 main ()
23362 {
23363 return f != shl_load;
23364   ;
23365   return 0;
23366 }
23367 _ACEOF
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23370   (eval $ac_link) 2>conftest.er1
23371   ac_status=$?
23372   grep -v '^ *+' conftest.er1 >conftest.err
23373   rm -f conftest.er1
23374   cat conftest.err >&5
23375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376   (exit $ac_status); } &&
23377          { ac_try='test -z "$ac_c_werror_flag"
23378                          || test ! -s conftest.err'
23379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); }; } &&
23384          { ac_try='test -s conftest$ac_exeext'
23385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386   (eval $ac_try) 2>&5
23387   ac_status=$?
23388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389   (exit $ac_status); }; }; then
23390   ac_cv_func_shl_load=yes
23391 else
23392   echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395 ac_cv_func_shl_load=no
23396 fi
23397 rm -f conftest.err conftest.$ac_objext \
23398       conftest$ac_exeext conftest.$ac_ext
23399 fi
23400 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23402 if test $ac_cv_func_shl_load = yes; then
23403   lt_cv_dlopen="shl_load"
23404 else
23405   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23406 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23407 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23408   echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410   ac_check_lib_save_LIBS=$LIBS
23411 LIBS="-ldld  $LIBS"
23412 cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418
23419 /* Override any gcc2 internal prototype to avoid an error.  */
23420 #ifdef __cplusplus
23421 extern "C"
23422 #endif
23423 /* We use char because int might match the return type of a gcc2
23424    builtin and then its argument prototype would still apply.  */
23425 char shl_load ();
23426 int
23427 main ()
23428 {
23429 shl_load ();
23430   ;
23431   return 0;
23432 }
23433 _ACEOF
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23436   (eval $ac_link) 2>conftest.er1
23437   ac_status=$?
23438   grep -v '^ *+' conftest.er1 >conftest.err
23439   rm -f conftest.er1
23440   cat conftest.err >&5
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } &&
23443          { ac_try='test -z "$ac_c_werror_flag"
23444                          || test ! -s conftest.err'
23445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23446   (eval $ac_try) 2>&5
23447   ac_status=$?
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); }; } &&
23450          { ac_try='test -s conftest$ac_exeext'
23451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452   (eval $ac_try) 2>&5
23453   ac_status=$?
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); }; }; then
23456   ac_cv_lib_dld_shl_load=yes
23457 else
23458   echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461 ac_cv_lib_dld_shl_load=no
23462 fi
23463 rm -f conftest.err conftest.$ac_objext \
23464       conftest$ac_exeext conftest.$ac_ext
23465 LIBS=$ac_check_lib_save_LIBS
23466 fi
23467 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23468 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23469 if test $ac_cv_lib_dld_shl_load = yes; then
23470   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23471 else
23472   echo "$as_me:$LINENO: checking for dlopen" >&5
23473 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23474 if test "${ac_cv_func_dlopen+set}" = set; then
23475   echo $ECHO_N "(cached) $ECHO_C" >&6
23476 else
23477   cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23485 #define dlopen innocuous_dlopen
23486
23487 /* System header to define __stub macros and hopefully few prototypes,
23488     which can conflict with char dlopen (); below.
23489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23490     <limits.h> exists even on freestanding compilers.  */
23491
23492 #ifdef __STDC__
23493 # include <limits.h>
23494 #else
23495 # include <assert.h>
23496 #endif
23497
23498 #undef dlopen
23499
23500 /* Override any gcc2 internal prototype to avoid an error.  */
23501 #ifdef __cplusplus
23502 extern "C"
23503 {
23504 #endif
23505 /* We use char because int might match the return type of a gcc2
23506    builtin and then its argument prototype would still apply.  */
23507 char dlopen ();
23508 /* The GNU C library defines this for functions which it implements
23509     to always fail with ENOSYS.  Some functions are actually named
23510     something starting with __ and the normal name is an alias.  */
23511 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23512 choke me
23513 #else
23514 char (*f) () = dlopen;
23515 #endif
23516 #ifdef __cplusplus
23517 }
23518 #endif
23519
23520 int
23521 main ()
23522 {
23523 return f != dlopen;
23524   ;
23525   return 0;
23526 }
23527 _ACEOF
23528 rm -f conftest.$ac_objext conftest$ac_exeext
23529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23530   (eval $ac_link) 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } &&
23537          { ac_try='test -z "$ac_c_werror_flag"
23538                          || test ! -s conftest.err'
23539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23540   (eval $ac_try) 2>&5
23541   ac_status=$?
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); }; } &&
23544          { ac_try='test -s conftest$ac_exeext'
23545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546   (eval $ac_try) 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); }; }; then
23550   ac_cv_func_dlopen=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555 ac_cv_func_dlopen=no
23556 fi
23557 rm -f conftest.err conftest.$ac_objext \
23558       conftest$ac_exeext conftest.$ac_ext
23559 fi
23560 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23561 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23562 if test $ac_cv_func_dlopen = yes; then
23563   lt_cv_dlopen="dlopen"
23564 else
23565   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23566 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570   ac_check_lib_save_LIBS=$LIBS
23571 LIBS="-ldl  $LIBS"
23572 cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578
23579 /* Override any gcc2 internal prototype to avoid an error.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 /* We use char because int might match the return type of a gcc2
23584    builtin and then its argument prototype would still apply.  */
23585 char dlopen ();
23586 int
23587 main ()
23588 {
23589 dlopen ();
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest.$ac_objext conftest$ac_exeext
23595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596   (eval $ac_link) 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } &&
23603          { ac_try='test -z "$ac_c_werror_flag"
23604                          || test ! -s conftest.err'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; } &&
23610          { ac_try='test -s conftest$ac_exeext'
23611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612   (eval $ac_try) 2>&5
23613   ac_status=$?
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); }; }; then
23616   ac_cv_lib_dl_dlopen=yes
23617 else
23618   echo "$as_me: failed program was:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23620
23621 ac_cv_lib_dl_dlopen=no
23622 fi
23623 rm -f conftest.err conftest.$ac_objext \
23624       conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23626 fi
23627 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23628 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23629 if test $ac_cv_lib_dl_dlopen = yes; then
23630   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23631 else
23632   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23633 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23634 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   ac_check_lib_save_LIBS=$LIBS
23638 LIBS="-lsvld  $LIBS"
23639 cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* Override any gcc2 internal prototype to avoid an error.  */
23647 #ifdef __cplusplus
23648 extern "C"
23649 #endif
23650 /* We use char because int might match the return type of a gcc2
23651    builtin and then its argument prototype would still apply.  */
23652 char dlopen ();
23653 int
23654 main ()
23655 {
23656 dlopen ();
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext conftest$ac_exeext
23662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23663   (eval $ac_link) 2>conftest.er1
23664   ac_status=$?
23665   grep -v '^ *+' conftest.er1 >conftest.err
23666   rm -f conftest.er1
23667   cat conftest.err >&5
23668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669   (exit $ac_status); } &&
23670          { ac_try='test -z "$ac_c_werror_flag"
23671                          || test ! -s conftest.err'
23672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673   (eval $ac_try) 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); }; } &&
23677          { ac_try='test -s conftest$ac_exeext'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; }; then
23683   ac_cv_lib_svld_dlopen=yes
23684 else
23685   echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23687
23688 ac_cv_lib_svld_dlopen=no
23689 fi
23690 rm -f conftest.err conftest.$ac_objext \
23691       conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23693 fi
23694 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23695 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23696 if test $ac_cv_lib_svld_dlopen = yes; then
23697   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23698 else
23699   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23700 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23701 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23702   echo $ECHO_N "(cached) $ECHO_C" >&6
23703 else
23704   ac_check_lib_save_LIBS=$LIBS
23705 LIBS="-ldld  $LIBS"
23706 cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712
23713 /* Override any gcc2 internal prototype to avoid an error.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 /* We use char because int might match the return type of a gcc2
23718    builtin and then its argument prototype would still apply.  */
23719 char dld_link ();
23720 int
23721 main ()
23722 {
23723 dld_link ();
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23730   (eval $ac_link) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_c_werror_flag"
23738                          || test ! -s conftest.err'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; } &&
23744          { ac_try='test -s conftest$ac_exeext'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; }; then
23750   ac_cv_lib_dld_dld_link=yes
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ac_cv_lib_dld_dld_link=no
23756 fi
23757 rm -f conftest.err conftest.$ac_objext \
23758       conftest$ac_exeext conftest.$ac_ext
23759 LIBS=$ac_check_lib_save_LIBS
23760 fi
23761 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23762 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23763 if test $ac_cv_lib_dld_dld_link = yes; then
23764   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23765 fi
23766
23767
23768 fi
23769
23770
23771 fi
23772
23773
23774 fi
23775
23776
23777 fi
23778
23779
23780 fi
23781
23782     ;;
23783   esac
23784
23785   if test "x$lt_cv_dlopen" != xno; then
23786     enable_dlopen=yes
23787   else
23788     enable_dlopen=no
23789   fi
23790
23791   case $lt_cv_dlopen in
23792   dlopen)
23793     save_CPPFLAGS="$CPPFLAGS"
23794     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23795
23796     save_LDFLAGS="$LDFLAGS"
23797     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23798
23799     save_LIBS="$LIBS"
23800     LIBS="$lt_cv_dlopen_libs $LIBS"
23801
23802     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23803 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23804 if test "${lt_cv_dlopen_self+set}" = set; then
23805   echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807           if test "$cross_compiling" = yes; then :
23808   lt_cv_dlopen_self=cross
23809 else
23810   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23811   lt_status=$lt_dlunknown
23812   cat > conftest.$ac_ext <<EOF
23813 #line 23813 "configure"
23814 #include "confdefs.h"
23815
23816 #if HAVE_DLFCN_H
23817 #include <dlfcn.h>
23818 #endif
23819
23820 #include <stdio.h>
23821
23822 #ifdef RTLD_GLOBAL
23823 #  define LT_DLGLOBAL           RTLD_GLOBAL
23824 #else
23825 #  ifdef DL_GLOBAL
23826 #    define LT_DLGLOBAL         DL_GLOBAL
23827 #  else
23828 #    define LT_DLGLOBAL         0
23829 #  endif
23830 #endif
23831
23832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23833    find out it does not work in some platform. */
23834 #ifndef LT_DLLAZY_OR_NOW
23835 #  ifdef RTLD_LAZY
23836 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23837 #  else
23838 #    ifdef DL_LAZY
23839 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23840 #    else
23841 #      ifdef RTLD_NOW
23842 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23843 #      else
23844 #        ifdef DL_NOW
23845 #          define LT_DLLAZY_OR_NOW      DL_NOW
23846 #        else
23847 #          define LT_DLLAZY_OR_NOW      0
23848 #        endif
23849 #      endif
23850 #    endif
23851 #  endif
23852 #endif
23853
23854 #ifdef __cplusplus
23855 extern "C" void exit (int);
23856 #endif
23857
23858 void fnord() { int i=42;}
23859 int main ()
23860 {
23861   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23862   int status = $lt_dlunknown;
23863
23864   if (self)
23865     {
23866       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23867       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23868       /* dlclose (self); */
23869     }
23870
23871     exit (status);
23872 }
23873 EOF
23874   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875   (eval $ac_link) 2>&5
23876   ac_status=$?
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23879     (./conftest; exit; ) 2>/dev/null
23880     lt_status=$?
23881     case x$lt_status in
23882       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23883       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23884       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23885     esac
23886   else :
23887     # compilation failed
23888     lt_cv_dlopen_self=no
23889   fi
23890 fi
23891 rm -fr conftest*
23892
23893
23894 fi
23895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23896 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23897
23898     if test "x$lt_cv_dlopen_self" = xyes; then
23899       LDFLAGS="$LDFLAGS $link_static_flag"
23900       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23901 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23902 if test "${lt_cv_dlopen_self_static+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905           if test "$cross_compiling" = yes; then :
23906   lt_cv_dlopen_self_static=cross
23907 else
23908   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23909   lt_status=$lt_dlunknown
23910   cat > conftest.$ac_ext <<EOF
23911 #line 23911 "configure"
23912 #include "confdefs.h"
23913
23914 #if HAVE_DLFCN_H
23915 #include <dlfcn.h>
23916 #endif
23917
23918 #include <stdio.h>
23919
23920 #ifdef RTLD_GLOBAL
23921 #  define LT_DLGLOBAL           RTLD_GLOBAL
23922 #else
23923 #  ifdef DL_GLOBAL
23924 #    define LT_DLGLOBAL         DL_GLOBAL
23925 #  else
23926 #    define LT_DLGLOBAL         0
23927 #  endif
23928 #endif
23929
23930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23931    find out it does not work in some platform. */
23932 #ifndef LT_DLLAZY_OR_NOW
23933 #  ifdef RTLD_LAZY
23934 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23935 #  else
23936 #    ifdef DL_LAZY
23937 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23938 #    else
23939 #      ifdef RTLD_NOW
23940 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23941 #      else
23942 #        ifdef DL_NOW
23943 #          define LT_DLLAZY_OR_NOW      DL_NOW
23944 #        else
23945 #          define LT_DLLAZY_OR_NOW      0
23946 #        endif
23947 #      endif
23948 #    endif
23949 #  endif
23950 #endif
23951
23952 #ifdef __cplusplus
23953 extern "C" void exit (int);
23954 #endif
23955
23956 void fnord() { int i=42;}
23957 int main ()
23958 {
23959   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23960   int status = $lt_dlunknown;
23961
23962   if (self)
23963     {
23964       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23965       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23966       /* dlclose (self); */
23967     }
23968
23969     exit (status);
23970 }
23971 EOF
23972   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23973   (eval $ac_link) 2>&5
23974   ac_status=$?
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23977     (./conftest; exit; ) 2>/dev/null
23978     lt_status=$?
23979     case x$lt_status in
23980       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23981       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23982       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23983     esac
23984   else :
23985     # compilation failed
23986     lt_cv_dlopen_self_static=no
23987   fi
23988 fi
23989 rm -fr conftest*
23990
23991
23992 fi
23993 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23994 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23995     fi
23996
23997     CPPFLAGS="$save_CPPFLAGS"
23998     LDFLAGS="$save_LDFLAGS"
23999     LIBS="$save_LIBS"
24000     ;;
24001   esac
24002
24003   case $lt_cv_dlopen_self in
24004   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24005   *) enable_dlopen_self=unknown ;;
24006   esac
24007
24008   case $lt_cv_dlopen_self_static in
24009   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24010   *) enable_dlopen_self_static=unknown ;;
24011   esac
24012 fi
24013
24014
24015 # The else clause should only fire when bootstrapping the
24016 # libtool distribution, otherwise you forgot to ship ltmain.sh
24017 # with your package, and you will get complaints that there are
24018 # no rules to generate ltmain.sh.
24019 if test -f "$ltmain"; then
24020   # See if we are running on zsh, and set the options which allow our commands through
24021   # without removal of \ escapes.
24022   if test -n "${ZSH_VERSION+set}" ; then
24023     setopt NO_GLOB_SUBST
24024   fi
24025   # Now quote all the things that may contain metacharacters while being
24026   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24027   # variables and quote the copies for generation of the libtool script.
24028   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24029     SED SHELL STRIP \
24030     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24031     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24032     deplibs_check_method reload_flag reload_cmds need_locks \
24033     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24034     lt_cv_sys_global_symbol_to_c_name_address \
24035     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24036     old_postinstall_cmds old_postuninstall_cmds \
24037     compiler_GCJ \
24038     CC_GCJ \
24039     LD_GCJ \
24040     lt_prog_compiler_wl_GCJ \
24041     lt_prog_compiler_pic_GCJ \
24042     lt_prog_compiler_static_GCJ \
24043     lt_prog_compiler_no_builtin_flag_GCJ \
24044     export_dynamic_flag_spec_GCJ \
24045     thread_safe_flag_spec_GCJ \
24046     whole_archive_flag_spec_GCJ \
24047     enable_shared_with_static_runtimes_GCJ \
24048     old_archive_cmds_GCJ \
24049     old_archive_from_new_cmds_GCJ \
24050     predep_objects_GCJ \
24051     postdep_objects_GCJ \
24052     predeps_GCJ \
24053     postdeps_GCJ \
24054     compiler_lib_search_path_GCJ \
24055     archive_cmds_GCJ \
24056     archive_expsym_cmds_GCJ \
24057     postinstall_cmds_GCJ \
24058     postuninstall_cmds_GCJ \
24059     old_archive_from_expsyms_cmds_GCJ \
24060     allow_undefined_flag_GCJ \
24061     no_undefined_flag_GCJ \
24062     export_symbols_cmds_GCJ \
24063     hardcode_libdir_flag_spec_GCJ \
24064     hardcode_libdir_flag_spec_ld_GCJ \
24065     hardcode_libdir_separator_GCJ \
24066     hardcode_automatic_GCJ \
24067     module_cmds_GCJ \
24068     module_expsym_cmds_GCJ \
24069     lt_cv_prog_compiler_c_o_GCJ \
24070     exclude_expsyms_GCJ \
24071     include_expsyms_GCJ; do
24072
24073     case $var in
24074     old_archive_cmds_GCJ | \
24075     old_archive_from_new_cmds_GCJ | \
24076     archive_cmds_GCJ | \
24077     archive_expsym_cmds_GCJ | \
24078     module_cmds_GCJ | \
24079     module_expsym_cmds_GCJ | \
24080     old_archive_from_expsyms_cmds_GCJ | \
24081     export_symbols_cmds_GCJ | \
24082     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24083     postinstall_cmds | postuninstall_cmds | \
24084     old_postinstall_cmds | old_postuninstall_cmds | \
24085     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24086       # Double-quote double-evaled strings.
24087       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24088       ;;
24089     *)
24090       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24091       ;;
24092     esac
24093   done
24094
24095   case $lt_echo in
24096   *'\$0 --fallback-echo"')
24097     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24098     ;;
24099   esac
24100
24101 cfgfile="$ofile"
24102
24103   cat <<__EOF__ >> "$cfgfile"
24104 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24105
24106 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24107
24108 # Shell to use when invoking shell scripts.
24109 SHELL=$lt_SHELL
24110
24111 # Whether or not to build shared libraries.
24112 build_libtool_libs=$enable_shared
24113
24114 # Whether or not to build static libraries.
24115 build_old_libs=$enable_static
24116
24117 # Whether or not to add -lc for building shared libraries.
24118 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24119
24120 # Whether or not to disallow shared libs when runtime libs are static
24121 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24122
24123 # Whether or not to optimize for fast installation.
24124 fast_install=$enable_fast_install
24125
24126 # The host system.
24127 host_alias=$host_alias
24128 host=$host
24129
24130 # An echo program that does not interpret backslashes.
24131 echo=$lt_echo
24132
24133 # The archiver.
24134 AR=$lt_AR
24135 AR_FLAGS=$lt_AR_FLAGS
24136
24137 # A C compiler.
24138 LTCC=$lt_LTCC
24139
24140 # A language-specific compiler.
24141 CC=$lt_compiler_GCJ
24142
24143 # Is the compiler the GNU C compiler?
24144 with_gcc=$GCC_GCJ
24145
24146 # An ERE matcher.
24147 EGREP=$lt_EGREP
24148
24149 # The linker used to build libraries.
24150 LD=$lt_LD_GCJ
24151
24152 # Whether we need hard or soft links.
24153 LN_S=$lt_LN_S
24154
24155 # A BSD-compatible nm program.
24156 NM=$lt_NM
24157
24158 # A symbol stripping program
24159 STRIP=$lt_STRIP
24160
24161 # Used to examine libraries when file_magic_cmd begins "file"
24162 MAGIC_CMD=$MAGIC_CMD
24163
24164 # Used on cygwin: DLL creation program.
24165 DLLTOOL="$DLLTOOL"
24166
24167 # Used on cygwin: object dumper.
24168 OBJDUMP="$OBJDUMP"
24169
24170 # Used on cygwin: assembler.
24171 AS="$AS"
24172
24173 # The name of the directory that contains temporary libtool files.
24174 objdir=$objdir
24175
24176 # How to create reloadable object files.
24177 reload_flag=$lt_reload_flag
24178 reload_cmds=$lt_reload_cmds
24179
24180 # How to pass a linker flag through the compiler.
24181 wl=$lt_lt_prog_compiler_wl_GCJ
24182
24183 # Object file suffix (normally "o").
24184 objext="$ac_objext"
24185
24186 # Old archive suffix (normally "a").
24187 libext="$libext"
24188
24189 # Shared library suffix (normally ".so").
24190 shrext_cmds='$shrext_cmds'
24191
24192 # Executable file suffix (normally "").
24193 exeext="$exeext"
24194
24195 # Additional compiler flags for building library objects.
24196 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24197 pic_mode=$pic_mode
24198
24199 # What is the maximum length of a command?
24200 max_cmd_len=$lt_cv_sys_max_cmd_len
24201
24202 # Does compiler simultaneously support -c and -o options?
24203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24204
24205 # Must we lock files when doing compilation ?
24206 need_locks=$lt_need_locks
24207
24208 # Do we need the lib prefix for modules?
24209 need_lib_prefix=$need_lib_prefix
24210
24211 # Do we need a version for libraries?
24212 need_version=$need_version
24213
24214 # Whether dlopen is supported.
24215 dlopen_support=$enable_dlopen
24216
24217 # Whether dlopen of programs is supported.
24218 dlopen_self=$enable_dlopen_self
24219
24220 # Whether dlopen of statically linked programs is supported.
24221 dlopen_self_static=$enable_dlopen_self_static
24222
24223 # Compiler flag to prevent dynamic linking.
24224 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24225
24226 # Compiler flag to turn off builtin functions.
24227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24228
24229 # Compiler flag to allow reflexive dlopens.
24230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24231
24232 # Compiler flag to generate shared objects directly from archives.
24233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24234
24235 # Compiler flag to generate thread-safe objects.
24236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24237
24238 # Library versioning type.
24239 version_type=$version_type
24240
24241 # Format of library name prefix.
24242 libname_spec=$lt_libname_spec
24243
24244 # List of archive names.  First name is the real one, the rest are links.
24245 # The last name is the one that the linker finds with -lNAME.
24246 library_names_spec=$lt_library_names_spec
24247
24248 # The coded name of the library, if different from the real name.
24249 soname_spec=$lt_soname_spec
24250
24251 # Commands used to build and install an old-style archive.
24252 RANLIB=$lt_RANLIB
24253 old_archive_cmds=$lt_old_archive_cmds_GCJ
24254 old_postinstall_cmds=$lt_old_postinstall_cmds
24255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24256
24257 # Create an old-style archive from a shared archive.
24258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24259
24260 # Create a temporary old-style archive to link instead of a shared archive.
24261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24262
24263 # Commands used to build and install a shared archive.
24264 archive_cmds=$lt_archive_cmds_GCJ
24265 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24266 postinstall_cmds=$lt_postinstall_cmds
24267 postuninstall_cmds=$lt_postuninstall_cmds
24268
24269 # Commands used to build a loadable module (assumed same as above if empty)
24270 module_cmds=$lt_module_cmds_GCJ
24271 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24272
24273 # Commands to strip libraries.
24274 old_striplib=$lt_old_striplib
24275 striplib=$lt_striplib
24276
24277 # Dependencies to place before the objects being linked to create a
24278 # shared library.
24279 predep_objects=$lt_predep_objects_GCJ
24280
24281 # Dependencies to place after the objects being linked to create a
24282 # shared library.
24283 postdep_objects=$lt_postdep_objects_GCJ
24284
24285 # Dependencies to place before the objects being linked to create a
24286 # shared library.
24287 predeps=$lt_predeps_GCJ
24288
24289 # Dependencies to place after the objects being linked to create a
24290 # shared library.
24291 postdeps=$lt_postdeps_GCJ
24292
24293 # The library search path used internally by the compiler when linking
24294 # a shared library.
24295 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24296
24297 # Method to check whether dependent libraries are shared objects.
24298 deplibs_check_method=$lt_deplibs_check_method
24299
24300 # Command to use when deplibs_check_method == file_magic.
24301 file_magic_cmd=$lt_file_magic_cmd
24302
24303 # Flag that allows shared libraries with undefined symbols to be built.
24304 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24305
24306 # Flag that forces no undefined symbols.
24307 no_undefined_flag=$lt_no_undefined_flag_GCJ
24308
24309 # Commands used to finish a libtool library installation in a directory.
24310 finish_cmds=$lt_finish_cmds
24311
24312 # Same as above, but a single script fragment to be evaled but not shown.
24313 finish_eval=$lt_finish_eval
24314
24315 # Take the output of nm and produce a listing of raw symbols and C names.
24316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24317
24318 # Transform the output of nm in a proper C declaration
24319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24320
24321 # Transform the output of nm in a C name address pair
24322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24323
24324 # This is the shared library runtime path variable.
24325 runpath_var=$runpath_var
24326
24327 # This is the shared library path variable.
24328 shlibpath_var=$shlibpath_var
24329
24330 # Is shlibpath searched before the hard-coded library search path?
24331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24332
24333 # How to hardcode a shared library path into an executable.
24334 hardcode_action=$hardcode_action_GCJ
24335
24336 # Whether we should hardcode library paths into libraries.
24337 hardcode_into_libs=$hardcode_into_libs
24338
24339 # Flag to hardcode \$libdir into a binary during linking.
24340 # This must work even if \$libdir does not exist.
24341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24342
24343 # If ld is used when linking, flag to hardcode \$libdir into
24344 # a binary during linking. This must work even if \$libdir does
24345 # not exist.
24346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24347
24348 # Whether we need a single -rpath flag with a separated argument.
24349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24350
24351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24352 # resulting binary.
24353 hardcode_direct=$hardcode_direct_GCJ
24354
24355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24356 # resulting binary.
24357 hardcode_minus_L=$hardcode_minus_L_GCJ
24358
24359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24360 # the resulting binary.
24361 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24362
24363 # Set to yes if building a shared library automatically hardcodes DIR into the library
24364 # and all subsequent libraries and executables linked against it.
24365 hardcode_automatic=$hardcode_automatic_GCJ
24366
24367 # Variables whose values should be saved in libtool wrapper scripts and
24368 # restored at relink time.
24369 variables_saved_for_relink="$variables_saved_for_relink"
24370
24371 # Whether libtool must link a program against all its dependency libraries.
24372 link_all_deplibs=$link_all_deplibs_GCJ
24373
24374 # Compile-time system search path for libraries
24375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24376
24377 # Run-time system search path for libraries
24378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24379
24380 # Fix the shell variable \$srcfile for the compiler.
24381 fix_srcfile_path="$fix_srcfile_path_GCJ"
24382
24383 # Set to yes if exported symbols are required.
24384 always_export_symbols=$always_export_symbols_GCJ
24385
24386 # The commands to list exported symbols.
24387 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24388
24389 # The commands to extract the exported symbol list from a shared archive.
24390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24391
24392 # Symbols that should not be listed in the preloaded symbols.
24393 exclude_expsyms=$lt_exclude_expsyms_GCJ
24394
24395 # Symbols that must always be exported.
24396 include_expsyms=$lt_include_expsyms_GCJ
24397
24398 # ### END LIBTOOL TAG CONFIG: $tagname
24399
24400 __EOF__
24401
24402
24403 else
24404   # If there is no Makefile yet, we rely on a make rule to execute
24405   # `config.status --recheck' to rerun these tests and create the
24406   # libtool script then.
24407   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24408   if test -f "$ltmain_in"; then
24409     test -f Makefile && make "$ltmain"
24410   fi
24411 fi
24412
24413
24414 ac_ext=c
24415 ac_cpp='$CPP $CPPFLAGS'
24416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24419
24420 CC="$lt_save_CC"
24421
24422         else
24423           tagname=""
24424         fi
24425         ;;
24426
24427       RC)
24428         ac_ext=c
24429 ac_cpp='$CPP $CPPFLAGS'
24430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24433
24434
24435 # Source file extension for RC test sources.
24436 ac_ext=rc
24437
24438 # Object file extension for compiled RC test sources.
24439 objext=o
24440 objext_RC=$objext
24441
24442 # Code to be used in simple compile tests
24443 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24444
24445 # Code to be used in simple link tests
24446 lt_simple_link_test_code="$lt_simple_compile_test_code"
24447
24448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24449
24450 # If no C compiler was specified, use CC.
24451 LTCC=${LTCC-"$CC"}
24452
24453 # Allow CC to be a program name with arguments.
24454 compiler=$CC
24455
24456
24457 # Allow CC to be a program name with arguments.
24458 lt_save_CC="$CC"
24459 CC=${RC-"windres"}
24460 compiler=$CC
24461 compiler_RC=$CC
24462 lt_cv_prog_compiler_c_o_RC=yes
24463
24464 # The else clause should only fire when bootstrapping the
24465 # libtool distribution, otherwise you forgot to ship ltmain.sh
24466 # with your package, and you will get complaints that there are
24467 # no rules to generate ltmain.sh.
24468 if test -f "$ltmain"; then
24469   # See if we are running on zsh, and set the options which allow our commands through
24470   # without removal of \ escapes.
24471   if test -n "${ZSH_VERSION+set}" ; then
24472     setopt NO_GLOB_SUBST
24473   fi
24474   # Now quote all the things that may contain metacharacters while being
24475   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24476   # variables and quote the copies for generation of the libtool script.
24477   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24478     SED SHELL STRIP \
24479     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24480     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24481     deplibs_check_method reload_flag reload_cmds need_locks \
24482     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24483     lt_cv_sys_global_symbol_to_c_name_address \
24484     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24485     old_postinstall_cmds old_postuninstall_cmds \
24486     compiler_RC \
24487     CC_RC \
24488     LD_RC \
24489     lt_prog_compiler_wl_RC \
24490     lt_prog_compiler_pic_RC \
24491     lt_prog_compiler_static_RC \
24492     lt_prog_compiler_no_builtin_flag_RC \
24493     export_dynamic_flag_spec_RC \
24494     thread_safe_flag_spec_RC \
24495     whole_archive_flag_spec_RC \
24496     enable_shared_with_static_runtimes_RC \
24497     old_archive_cmds_RC \
24498     old_archive_from_new_cmds_RC \
24499     predep_objects_RC \
24500     postdep_objects_RC \
24501     predeps_RC \
24502     postdeps_RC \
24503     compiler_lib_search_path_RC \
24504     archive_cmds_RC \
24505     archive_expsym_cmds_RC \
24506     postinstall_cmds_RC \
24507     postuninstall_cmds_RC \
24508     old_archive_from_expsyms_cmds_RC \
24509     allow_undefined_flag_RC \
24510     no_undefined_flag_RC \
24511     export_symbols_cmds_RC \
24512     hardcode_libdir_flag_spec_RC \
24513     hardcode_libdir_flag_spec_ld_RC \
24514     hardcode_libdir_separator_RC \
24515     hardcode_automatic_RC \
24516     module_cmds_RC \
24517     module_expsym_cmds_RC \
24518     lt_cv_prog_compiler_c_o_RC \
24519     exclude_expsyms_RC \
24520     include_expsyms_RC; do
24521
24522     case $var in
24523     old_archive_cmds_RC | \
24524     old_archive_from_new_cmds_RC | \
24525     archive_cmds_RC | \
24526     archive_expsym_cmds_RC | \
24527     module_cmds_RC | \
24528     module_expsym_cmds_RC | \
24529     old_archive_from_expsyms_cmds_RC | \
24530     export_symbols_cmds_RC | \
24531     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24532     postinstall_cmds | postuninstall_cmds | \
24533     old_postinstall_cmds | old_postuninstall_cmds | \
24534     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24535       # Double-quote double-evaled strings.
24536       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24537       ;;
24538     *)
24539       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24540       ;;
24541     esac
24542   done
24543
24544   case $lt_echo in
24545   *'\$0 --fallback-echo"')
24546     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24547     ;;
24548   esac
24549
24550 cfgfile="$ofile"
24551
24552   cat <<__EOF__ >> "$cfgfile"
24553 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24554
24555 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24556
24557 # Shell to use when invoking shell scripts.
24558 SHELL=$lt_SHELL
24559
24560 # Whether or not to build shared libraries.
24561 build_libtool_libs=$enable_shared
24562
24563 # Whether or not to build static libraries.
24564 build_old_libs=$enable_static
24565
24566 # Whether or not to add -lc for building shared libraries.
24567 build_libtool_need_lc=$archive_cmds_need_lc_RC
24568
24569 # Whether or not to disallow shared libs when runtime libs are static
24570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24571
24572 # Whether or not to optimize for fast installation.
24573 fast_install=$enable_fast_install
24574
24575 # The host system.
24576 host_alias=$host_alias
24577 host=$host
24578
24579 # An echo program that does not interpret backslashes.
24580 echo=$lt_echo
24581
24582 # The archiver.
24583 AR=$lt_AR
24584 AR_FLAGS=$lt_AR_FLAGS
24585
24586 # A C compiler.
24587 LTCC=$lt_LTCC
24588
24589 # A language-specific compiler.
24590 CC=$lt_compiler_RC
24591
24592 # Is the compiler the GNU C compiler?
24593 with_gcc=$GCC_RC
24594
24595 # An ERE matcher.
24596 EGREP=$lt_EGREP
24597
24598 # The linker used to build libraries.
24599 LD=$lt_LD_RC
24600
24601 # Whether we need hard or soft links.
24602 LN_S=$lt_LN_S
24603
24604 # A BSD-compatible nm program.
24605 NM=$lt_NM
24606
24607 # A symbol stripping program
24608 STRIP=$lt_STRIP
24609
24610 # Used to examine libraries when file_magic_cmd begins "file"
24611 MAGIC_CMD=$MAGIC_CMD
24612
24613 # Used on cygwin: DLL creation program.
24614 DLLTOOL="$DLLTOOL"
24615
24616 # Used on cygwin: object dumper.
24617 OBJDUMP="$OBJDUMP"
24618
24619 # Used on cygwin: assembler.
24620 AS="$AS"
24621
24622 # The name of the directory that contains temporary libtool files.
24623 objdir=$objdir
24624
24625 # How to create reloadable object files.
24626 reload_flag=$lt_reload_flag
24627 reload_cmds=$lt_reload_cmds
24628
24629 # How to pass a linker flag through the compiler.
24630 wl=$lt_lt_prog_compiler_wl_RC
24631
24632 # Object file suffix (normally "o").
24633 objext="$ac_objext"
24634
24635 # Old archive suffix (normally "a").
24636 libext="$libext"
24637
24638 # Shared library suffix (normally ".so").
24639 shrext_cmds='$shrext_cmds'
24640
24641 # Executable file suffix (normally "").
24642 exeext="$exeext"
24643
24644 # Additional compiler flags for building library objects.
24645 pic_flag=$lt_lt_prog_compiler_pic_RC
24646 pic_mode=$pic_mode
24647
24648 # What is the maximum length of a command?
24649 max_cmd_len=$lt_cv_sys_max_cmd_len
24650
24651 # Does compiler simultaneously support -c and -o options?
24652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24653
24654 # Must we lock files when doing compilation ?
24655 need_locks=$lt_need_locks
24656
24657 # Do we need the lib prefix for modules?
24658 need_lib_prefix=$need_lib_prefix
24659
24660 # Do we need a version for libraries?
24661 need_version=$need_version
24662
24663 # Whether dlopen is supported.
24664 dlopen_support=$enable_dlopen
24665
24666 # Whether dlopen of programs is supported.
24667 dlopen_self=$enable_dlopen_self
24668
24669 # Whether dlopen of statically linked programs is supported.
24670 dlopen_self_static=$enable_dlopen_self_static
24671
24672 # Compiler flag to prevent dynamic linking.
24673 link_static_flag=$lt_lt_prog_compiler_static_RC
24674
24675 # Compiler flag to turn off builtin functions.
24676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24677
24678 # Compiler flag to allow reflexive dlopens.
24679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24680
24681 # Compiler flag to generate shared objects directly from archives.
24682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24683
24684 # Compiler flag to generate thread-safe objects.
24685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24686
24687 # Library versioning type.
24688 version_type=$version_type
24689
24690 # Format of library name prefix.
24691 libname_spec=$lt_libname_spec
24692
24693 # List of archive names.  First name is the real one, the rest are links.
24694 # The last name is the one that the linker finds with -lNAME.
24695 library_names_spec=$lt_library_names_spec
24696
24697 # The coded name of the library, if different from the real name.
24698 soname_spec=$lt_soname_spec
24699
24700 # Commands used to build and install an old-style archive.
24701 RANLIB=$lt_RANLIB
24702 old_archive_cmds=$lt_old_archive_cmds_RC
24703 old_postinstall_cmds=$lt_old_postinstall_cmds
24704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24705
24706 # Create an old-style archive from a shared archive.
24707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24708
24709 # Create a temporary old-style archive to link instead of a shared archive.
24710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24711
24712 # Commands used to build and install a shared archive.
24713 archive_cmds=$lt_archive_cmds_RC
24714 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24715 postinstall_cmds=$lt_postinstall_cmds
24716 postuninstall_cmds=$lt_postuninstall_cmds
24717
24718 # Commands used to build a loadable module (assumed same as above if empty)
24719 module_cmds=$lt_module_cmds_RC
24720 module_expsym_cmds=$lt_module_expsym_cmds_RC
24721
24722 # Commands to strip libraries.
24723 old_striplib=$lt_old_striplib
24724 striplib=$lt_striplib
24725
24726 # Dependencies to place before the objects being linked to create a
24727 # shared library.
24728 predep_objects=$lt_predep_objects_RC
24729
24730 # Dependencies to place after the objects being linked to create a
24731 # shared library.
24732 postdep_objects=$lt_postdep_objects_RC
24733
24734 # Dependencies to place before the objects being linked to create a
24735 # shared library.
24736 predeps=$lt_predeps_RC
24737
24738 # Dependencies to place after the objects being linked to create a
24739 # shared library.
24740 postdeps=$lt_postdeps_RC
24741
24742 # The library search path used internally by the compiler when linking
24743 # a shared library.
24744 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24745
24746 # Method to check whether dependent libraries are shared objects.
24747 deplibs_check_method=$lt_deplibs_check_method
24748
24749 # Command to use when deplibs_check_method == file_magic.
24750 file_magic_cmd=$lt_file_magic_cmd
24751
24752 # Flag that allows shared libraries with undefined symbols to be built.
24753 allow_undefined_flag=$lt_allow_undefined_flag_RC
24754
24755 # Flag that forces no undefined symbols.
24756 no_undefined_flag=$lt_no_undefined_flag_RC
24757
24758 # Commands used to finish a libtool library installation in a directory.
24759 finish_cmds=$lt_finish_cmds
24760
24761 # Same as above, but a single script fragment to be evaled but not shown.
24762 finish_eval=$lt_finish_eval
24763
24764 # Take the output of nm and produce a listing of raw symbols and C names.
24765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24766
24767 # Transform the output of nm in a proper C declaration
24768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24769
24770 # Transform the output of nm in a C name address pair
24771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24772
24773 # This is the shared library runtime path variable.
24774 runpath_var=$runpath_var
24775
24776 # This is the shared library path variable.
24777 shlibpath_var=$shlibpath_var
24778
24779 # Is shlibpath searched before the hard-coded library search path?
24780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24781
24782 # How to hardcode a shared library path into an executable.
24783 hardcode_action=$hardcode_action_RC
24784
24785 # Whether we should hardcode library paths into libraries.
24786 hardcode_into_libs=$hardcode_into_libs
24787
24788 # Flag to hardcode \$libdir into a binary during linking.
24789 # This must work even if \$libdir does not exist.
24790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24791
24792 # If ld is used when linking, flag to hardcode \$libdir into
24793 # a binary during linking. This must work even if \$libdir does
24794 # not exist.
24795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24796
24797 # Whether we need a single -rpath flag with a separated argument.
24798 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24799
24800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24801 # resulting binary.
24802 hardcode_direct=$hardcode_direct_RC
24803
24804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24805 # resulting binary.
24806 hardcode_minus_L=$hardcode_minus_L_RC
24807
24808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24809 # the resulting binary.
24810 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24811
24812 # Set to yes if building a shared library automatically hardcodes DIR into the library
24813 # and all subsequent libraries and executables linked against it.
24814 hardcode_automatic=$hardcode_automatic_RC
24815
24816 # Variables whose values should be saved in libtool wrapper scripts and
24817 # restored at relink time.
24818 variables_saved_for_relink="$variables_saved_for_relink"
24819
24820 # Whether libtool must link a program against all its dependency libraries.
24821 link_all_deplibs=$link_all_deplibs_RC
24822
24823 # Compile-time system search path for libraries
24824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24825
24826 # Run-time system search path for libraries
24827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24828
24829 # Fix the shell variable \$srcfile for the compiler.
24830 fix_srcfile_path="$fix_srcfile_path_RC"
24831
24832 # Set to yes if exported symbols are required.
24833 always_export_symbols=$always_export_symbols_RC
24834
24835 # The commands to list exported symbols.
24836 export_symbols_cmds=$lt_export_symbols_cmds_RC
24837
24838 # The commands to extract the exported symbol list from a shared archive.
24839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24840
24841 # Symbols that should not be listed in the preloaded symbols.
24842 exclude_expsyms=$lt_exclude_expsyms_RC
24843
24844 # Symbols that must always be exported.
24845 include_expsyms=$lt_include_expsyms_RC
24846
24847 # ### END LIBTOOL TAG CONFIG: $tagname
24848
24849 __EOF__
24850
24851
24852 else
24853   # If there is no Makefile yet, we rely on a make rule to execute
24854   # `config.status --recheck' to rerun these tests and create the
24855   # libtool script then.
24856   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24857   if test -f "$ltmain_in"; then
24858     test -f Makefile && make "$ltmain"
24859   fi
24860 fi
24861
24862
24863 ac_ext=c
24864 ac_cpp='$CPP $CPPFLAGS'
24865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24868
24869 CC="$lt_save_CC"
24870
24871         ;;
24872
24873       *)
24874         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24875 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24876    { (exit 1); exit 1; }; }
24877         ;;
24878       esac
24879
24880       # Append the new tag name to the list of available tags.
24881       if test -n "$tagname" ; then
24882       available_tags="$available_tags $tagname"
24883     fi
24884     fi
24885   done
24886   IFS="$lt_save_ifs"
24887
24888   # Now substitute the updated list of available tags.
24889   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24890     mv "${ofile}T" "$ofile"
24891     chmod +x "$ofile"
24892   else
24893     rm -f "${ofile}T"
24894     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24895 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24896    { (exit 1); exit 1; }; }
24897   fi
24898 fi
24899
24900
24901
24902 # This can be used to rebuild libtool when needed
24903 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24904
24905 # Always use our own libtool.
24906 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24907
24908 # Prevent multiple expansion
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930 if test "$lt_cv_dlopen_self" = "yes" ; then
24931
24932 cat >>confdefs.h <<\_ACEOF
24933 #define CAN_DLOPEN_SELF 1
24934 _ACEOF
24935
24936 fi
24937
24938 etags_version=`$ETAGS --version 2>&1`
24939 case "$etags_version" in
24940         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24941         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24942         *) ETAGSFLAGS="" ;;
24943 esac
24944 ETAGSFLAGS=$ETAGSFLAGS
24945
24946
24947 if test "$WITH_LLVMGCCDIR" = "default" ; then
24948   LLVMGCC="llvm-gcc${EXEEXT}"
24949   LLVMGXX="llvm-g++${EXEEXT}"
24950   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24951 set dummy $LLVMGCC; ac_word=$2
24952 echo "$as_me:$LINENO: checking for $ac_word" >&5
24953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24954 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24955   echo $ECHO_N "(cached) $ECHO_C" >&6
24956 else
24957   case $LLVMGCC in
24958   [\\/]* | ?:[\\/]*)
24959   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24960   ;;
24961   *)
24962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963 for as_dir in $PATH
24964 do
24965   IFS=$as_save_IFS
24966   test -z "$as_dir" && as_dir=.
24967   for ac_exec_ext in '' $ac_executable_extensions; do
24968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24969     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24971     break 2
24972   fi
24973 done
24974 done
24975
24976   ;;
24977 esac
24978 fi
24979 LLVMGCC=$ac_cv_path_LLVMGCC
24980
24981 if test -n "$LLVMGCC"; then
24982   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24983 echo "${ECHO_T}$LLVMGCC" >&6
24984 else
24985   echo "$as_me:$LINENO: result: no" >&5
24986 echo "${ECHO_T}no" >&6
24987 fi
24988
24989   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24990 set dummy $LLVMGXX; ac_word=$2
24991 echo "$as_me:$LINENO: checking for $ac_word" >&5
24992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24994   echo $ECHO_N "(cached) $ECHO_C" >&6
24995 else
24996   case $LLVMGXX in
24997   [\\/]* | ?:[\\/]*)
24998   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24999   ;;
25000   *)
25001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002 for as_dir in $PATH
25003 do
25004   IFS=$as_save_IFS
25005   test -z "$as_dir" && as_dir=.
25006   for ac_exec_ext in '' $ac_executable_extensions; do
25007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25010     break 2
25011   fi
25012 done
25013 done
25014
25015   ;;
25016 esac
25017 fi
25018 LLVMGXX=$ac_cv_path_LLVMGXX
25019
25020 if test -n "$LLVMGXX"; then
25021   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25022 echo "${ECHO_T}$LLVMGXX" >&6
25023 else
25024   echo "$as_me:$LINENO: result: no" >&5
25025 echo "${ECHO_T}no" >&6
25026 fi
25027
25028 else
25029   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25030   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25031   LLVMGCC=$LLVMGCC
25032
25033   LLVMGXX=$LLVMGXX
25034
25035 fi
25036
25037 echo "$as_me:$LINENO: checking tool compatibility" >&5
25038 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25039
25040 ICC=no
25041 IXX=no
25042 case $CC in
25043   icc*|icpc*)
25044     ICC=yes
25045     IXX=yes
25046     ;;
25047    *)
25048     ;;
25049 esac
25050
25051 if test "$GCC" != "yes" && test "$ICC" != "yes"
25052 then
25053   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25054 echo "$as_me: error: gcc|icc required but not found" >&2;}
25055    { (exit 1); exit 1; }; }
25056 fi
25057
25058 if test "$GXX" != "yes" && test "$IXX" != "yes"
25059 then
25060   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25061 echo "$as_me: error: g++|icc required but not found" >&2;}
25062    { (exit 1); exit 1; }; }
25063 fi
25064
25065 if test "$GCC" = "yes"
25066 then
25067   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25068   if test "$gccmajor" -lt "3"
25069   then
25070     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25071 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25072    { (exit 1); exit 1; }; }
25073   fi
25074 fi
25075
25076 if test -z "$llvm_cv_gnu_make_command"
25077 then
25078   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25079 echo "$as_me: error: GNU Make required but not found" >&2;}
25080    { (exit 1); exit 1; }; }
25081 fi
25082
25083 echo "$as_me:$LINENO: result: ok" >&5
25084 echo "${ECHO_T}ok" >&6
25085
25086
25087
25088 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25089 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25090 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25091   echo $ECHO_N "(cached) $ECHO_C" >&6
25092 else
25093   ac_check_lib_save_LIBS=$LIBS
25094 LIBS="-lelf  $LIBS"
25095 cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101
25102 /* Override any gcc2 internal prototype to avoid an error.  */
25103 #ifdef __cplusplus
25104 extern "C"
25105 #endif
25106 /* We use char because int might match the return type of a gcc2
25107    builtin and then its argument prototype would still apply.  */
25108 char elf_begin ();
25109 int
25110 main ()
25111 {
25112 elf_begin ();
25113   ;
25114   return 0;
25115 }
25116 _ACEOF
25117 rm -f conftest.$ac_objext conftest$ac_exeext
25118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25119   (eval $ac_link) 2>conftest.er1
25120   ac_status=$?
25121   grep -v '^ *+' conftest.er1 >conftest.err
25122   rm -f conftest.er1
25123   cat conftest.err >&5
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); } &&
25126          { ac_try='test -z "$ac_c_werror_flag"
25127                          || test ! -s conftest.err'
25128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129   (eval $ac_try) 2>&5
25130   ac_status=$?
25131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132   (exit $ac_status); }; } &&
25133          { ac_try='test -s conftest$ac_exeext'
25134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135   (eval $ac_try) 2>&5
25136   ac_status=$?
25137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138   (exit $ac_status); }; }; then
25139   ac_cv_lib_elf_elf_begin=yes
25140 else
25141   echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25143
25144 ac_cv_lib_elf_elf_begin=no
25145 fi
25146 rm -f conftest.err conftest.$ac_objext \
25147       conftest$ac_exeext conftest.$ac_ext
25148 LIBS=$ac_check_lib_save_LIBS
25149 fi
25150 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25151 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25152 if test $ac_cv_lib_elf_elf_begin = yes; then
25153   cat >>confdefs.h <<_ACEOF
25154 #define HAVE_LIBELF 1
25155 _ACEOF
25156
25157   LIBS="-lelf $LIBS"
25158
25159 fi
25160
25161
25162 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25163 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25164 if test "${ac_cv_lib_m_sin+set}" = set; then
25165   echo $ECHO_N "(cached) $ECHO_C" >&6
25166 else
25167   ac_check_lib_save_LIBS=$LIBS
25168 LIBS="-lm  $LIBS"
25169 cat >conftest.$ac_ext <<_ACEOF
25170 /* confdefs.h.  */
25171 _ACEOF
25172 cat confdefs.h >>conftest.$ac_ext
25173 cat >>conftest.$ac_ext <<_ACEOF
25174 /* end confdefs.h.  */
25175
25176 /* Override any gcc2 internal prototype to avoid an error.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 /* We use char because int might match the return type of a gcc2
25181    builtin and then its argument prototype would still apply.  */
25182 char sin ();
25183 int
25184 main ()
25185 {
25186 sin ();
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext conftest$ac_exeext
25192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193   (eval $ac_link) 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag"
25201                          || test ! -s conftest.err'
25202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; } &&
25207          { ac_try='test -s conftest$ac_exeext'
25208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209   (eval $ac_try) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }; }; then
25213   ac_cv_lib_m_sin=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218 ac_cv_lib_m_sin=no
25219 fi
25220 rm -f conftest.err conftest.$ac_objext \
25221       conftest$ac_exeext conftest.$ac_ext
25222 LIBS=$ac_check_lib_save_LIBS
25223 fi
25224 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25225 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25226 if test $ac_cv_lib_m_sin = yes; then
25227   cat >>confdefs.h <<_ACEOF
25228 #define HAVE_LIBM 1
25229 _ACEOF
25230
25231   LIBS="-lm $LIBS"
25232
25233 fi
25234
25235 if test "$llvm_cv_os_type" == "MingW" ; then
25236
25237 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25238 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25239 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   ac_check_lib_save_LIBS=$LIBS
25243 LIBS="-limagehlp  $LIBS"
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250
25251
25252 int
25253 main ()
25254 {
25255 main ();
25256   ;
25257   return 0;
25258 }
25259 _ACEOF
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262   (eval $ac_link) 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } &&
25269          { ac_try='test -z "$ac_c_werror_flag"
25270                          || test ! -s conftest.err'
25271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272   (eval $ac_try) 2>&5
25273   ac_status=$?
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); }; } &&
25276          { ac_try='test -s conftest$ac_exeext'
25277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278   (eval $ac_try) 2>&5
25279   ac_status=$?
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); }; }; then
25282   ac_cv_lib_imagehlp_main=yes
25283 else
25284   echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25286
25287 ac_cv_lib_imagehlp_main=no
25288 fi
25289 rm -f conftest.err conftest.$ac_objext \
25290       conftest$ac_exeext conftest.$ac_ext
25291 LIBS=$ac_check_lib_save_LIBS
25292 fi
25293 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25294 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25295 if test $ac_cv_lib_imagehlp_main = yes; then
25296   cat >>confdefs.h <<_ACEOF
25297 #define HAVE_LIBIMAGEHLP 1
25298 _ACEOF
25299
25300   LIBS="-limagehlp $LIBS"
25301
25302 fi
25303
25304
25305 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25306 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25307 if test "${ac_cv_lib_psapi_main+set}" = set; then
25308   echo $ECHO_N "(cached) $ECHO_C" >&6
25309 else
25310   ac_check_lib_save_LIBS=$LIBS
25311 LIBS="-lpsapi  $LIBS"
25312 cat >conftest.$ac_ext <<_ACEOF
25313 /* confdefs.h.  */
25314 _ACEOF
25315 cat confdefs.h >>conftest.$ac_ext
25316 cat >>conftest.$ac_ext <<_ACEOF
25317 /* end confdefs.h.  */
25318
25319
25320 int
25321 main ()
25322 {
25323 main ();
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext conftest$ac_exeext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25330   (eval $ac_link) 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } &&
25337          { ac_try='test -z "$ac_c_werror_flag"
25338                          || test ! -s conftest.err'
25339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340   (eval $ac_try) 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; } &&
25344          { ac_try='test -s conftest$ac_exeext'
25345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346   (eval $ac_try) 2>&5
25347   ac_status=$?
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); }; }; then
25350   ac_cv_lib_psapi_main=yes
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355 ac_cv_lib_psapi_main=no
25356 fi
25357 rm -f conftest.err conftest.$ac_objext \
25358       conftest$ac_exeext conftest.$ac_ext
25359 LIBS=$ac_check_lib_save_LIBS
25360 fi
25361 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25362 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25363 if test $ac_cv_lib_psapi_main = yes; then
25364   cat >>confdefs.h <<_ACEOF
25365 #define HAVE_LIBPSAPI 1
25366 _ACEOF
25367
25368   LIBS="-lpsapi $LIBS"
25369
25370 fi
25371
25372 fi
25373
25374 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25375 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25376 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25377   echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379   ac_func_search_save_LIBS=$LIBS
25380 ac_cv_search_lt_dlopen=no
25381 cat >conftest.$ac_ext <<_ACEOF
25382 /* confdefs.h.  */
25383 _ACEOF
25384 cat confdefs.h >>conftest.$ac_ext
25385 cat >>conftest.$ac_ext <<_ACEOF
25386 /* end confdefs.h.  */
25387
25388 /* Override any gcc2 internal prototype to avoid an error.  */
25389 #ifdef __cplusplus
25390 extern "C"
25391 #endif
25392 /* We use char because int might match the return type of a gcc2
25393    builtin and then its argument prototype would still apply.  */
25394 char lt_dlopen ();
25395 int
25396 main ()
25397 {
25398 lt_dlopen ();
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext conftest$ac_exeext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25405   (eval $ac_link) 2>conftest.er1
25406   ac_status=$?
25407   grep -v '^ *+' conftest.er1 >conftest.err
25408   rm -f conftest.er1
25409   cat conftest.err >&5
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } &&
25412          { ac_try='test -z "$ac_c_werror_flag"
25413                          || test ! -s conftest.err'
25414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25415   (eval $ac_try) 2>&5
25416   ac_status=$?
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); }; } &&
25419          { ac_try='test -s conftest$ac_exeext'
25420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25421   (eval $ac_try) 2>&5
25422   ac_status=$?
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); }; }; then
25425   ac_cv_search_lt_dlopen="none required"
25426 else
25427   echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430 fi
25431 rm -f conftest.err conftest.$ac_objext \
25432       conftest$ac_exeext conftest.$ac_ext
25433 if test "$ac_cv_search_lt_dlopen" = no; then
25434   for ac_lib in ltdl; do
25435     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25436     cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442
25443 /* Override any gcc2 internal prototype to avoid an error.  */
25444 #ifdef __cplusplus
25445 extern "C"
25446 #endif
25447 /* We use char because int might match the return type of a gcc2
25448    builtin and then its argument prototype would still apply.  */
25449 char lt_dlopen ();
25450 int
25451 main ()
25452 {
25453 lt_dlopen ();
25454   ;
25455   return 0;
25456 }
25457 _ACEOF
25458 rm -f conftest.$ac_objext conftest$ac_exeext
25459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25460   (eval $ac_link) 2>conftest.er1
25461   ac_status=$?
25462   grep -v '^ *+' conftest.er1 >conftest.err
25463   rm -f conftest.er1
25464   cat conftest.err >&5
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); } &&
25467          { ac_try='test -z "$ac_c_werror_flag"
25468                          || test ! -s conftest.err'
25469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25470   (eval $ac_try) 2>&5
25471   ac_status=$?
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); }; } &&
25474          { ac_try='test -s conftest$ac_exeext'
25475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25476   (eval $ac_try) 2>&5
25477   ac_status=$?
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); }; }; then
25480   ac_cv_search_lt_dlopen="-l$ac_lib"
25481 break
25482 else
25483   echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486 fi
25487 rm -f conftest.err conftest.$ac_objext \
25488       conftest$ac_exeext conftest.$ac_ext
25489   done
25490 fi
25491 LIBS=$ac_func_search_save_LIBS
25492 fi
25493 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25494 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25495 if test "$ac_cv_search_lt_dlopen" != no; then
25496   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25497
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_LT_DLOPEN 1
25500 _ACEOF
25501
25502 else
25503   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25504                            not be available" >&5
25505 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25506                            not be available" >&2;}
25507 fi
25508
25509
25510 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25511 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25512 if test "${ac_cv_search_dlopen+set}" = set; then
25513   echo $ECHO_N "(cached) $ECHO_C" >&6
25514 else
25515   ac_func_search_save_LIBS=$LIBS
25516 ac_cv_search_dlopen=no
25517 cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h.  */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h.  */
25523
25524 /* Override any gcc2 internal prototype to avoid an error.  */
25525 #ifdef __cplusplus
25526 extern "C"
25527 #endif
25528 /* We use char because int might match the return type of a gcc2
25529    builtin and then its argument prototype would still apply.  */
25530 char dlopen ();
25531 int
25532 main ()
25533 {
25534 dlopen ();
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541   (eval $ac_link) 2>conftest.er1
25542   ac_status=$?
25543   grep -v '^ *+' conftest.er1 >conftest.err
25544   rm -f conftest.er1
25545   cat conftest.err >&5
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); } &&
25548          { ac_try='test -z "$ac_c_werror_flag"
25549                          || test ! -s conftest.err'
25550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); }; } &&
25555          { ac_try='test -s conftest$ac_exeext'
25556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557   (eval $ac_try) 2>&5
25558   ac_status=$?
25559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); }; }; then
25561   ac_cv_search_dlopen="none required"
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566 fi
25567 rm -f conftest.err conftest.$ac_objext \
25568       conftest$ac_exeext conftest.$ac_ext
25569 if test "$ac_cv_search_dlopen" = no; then
25570   for ac_lib in dl; do
25571     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25572     cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578
25579 /* Override any gcc2 internal prototype to avoid an error.  */
25580 #ifdef __cplusplus
25581 extern "C"
25582 #endif
25583 /* We use char because int might match the return type of a gcc2
25584    builtin and then its argument prototype would still apply.  */
25585 char dlopen ();
25586 int
25587 main ()
25588 {
25589 dlopen ();
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596   (eval $ac_link) 2>conftest.er1
25597   ac_status=$?
25598   grep -v '^ *+' conftest.er1 >conftest.err
25599   rm -f conftest.er1
25600   cat conftest.err >&5
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } &&
25603          { ac_try='test -z "$ac_c_werror_flag"
25604                          || test ! -s conftest.err'
25605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606   (eval $ac_try) 2>&5
25607   ac_status=$?
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); }; } &&
25610          { ac_try='test -s conftest$ac_exeext'
25611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612   (eval $ac_try) 2>&5
25613   ac_status=$?
25614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615   (exit $ac_status); }; }; then
25616   ac_cv_search_dlopen="-l$ac_lib"
25617 break
25618 else
25619   echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 fi
25623 rm -f conftest.err conftest.$ac_objext \
25624       conftest$ac_exeext conftest.$ac_ext
25625   done
25626 fi
25627 LIBS=$ac_func_search_save_LIBS
25628 fi
25629 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25630 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25631 if test "$ac_cv_search_dlopen" != no; then
25632   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25633
25634 cat >>confdefs.h <<\_ACEOF
25635 #define HAVE_DLOPEN 1
25636 _ACEOF
25637
25638 else
25639   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25640 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25641 fi
25642
25643
25644 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25645 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25646 if test "${ac_cv_search_mallinfo+set}" = set; then
25647   echo $ECHO_N "(cached) $ECHO_C" >&6
25648 else
25649   ac_func_search_save_LIBS=$LIBS
25650 ac_cv_search_mallinfo=no
25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657
25658 /* Override any gcc2 internal prototype to avoid an error.  */
25659 #ifdef __cplusplus
25660 extern "C"
25661 #endif
25662 /* We use char because int might match the return type of a gcc2
25663    builtin and then its argument prototype would still apply.  */
25664 char mallinfo ();
25665 int
25666 main ()
25667 {
25668 mallinfo ();
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 rm -f conftest.$ac_objext conftest$ac_exeext
25674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25675   (eval $ac_link) 2>conftest.er1
25676   ac_status=$?
25677   grep -v '^ *+' conftest.er1 >conftest.err
25678   rm -f conftest.er1
25679   cat conftest.err >&5
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); } &&
25682          { ac_try='test -z "$ac_c_werror_flag"
25683                          || test ! -s conftest.err'
25684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685   (eval $ac_try) 2>&5
25686   ac_status=$?
25687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); }; } &&
25689          { ac_try='test -s conftest$ac_exeext'
25690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25691   (eval $ac_try) 2>&5
25692   ac_status=$?
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); }; }; then
25695   ac_cv_search_mallinfo="none required"
25696 else
25697   echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700 fi
25701 rm -f conftest.err conftest.$ac_objext \
25702       conftest$ac_exeext conftest.$ac_ext
25703 if test "$ac_cv_search_mallinfo" = no; then
25704   for ac_lib in malloc; do
25705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25706     cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h.  */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h.  */
25712
25713 /* Override any gcc2 internal prototype to avoid an error.  */
25714 #ifdef __cplusplus
25715 extern "C"
25716 #endif
25717 /* We use char because int might match the return type of a gcc2
25718    builtin and then its argument prototype would still apply.  */
25719 char mallinfo ();
25720 int
25721 main ()
25722 {
25723 mallinfo ();
25724   ;
25725   return 0;
25726 }
25727 _ACEOF
25728 rm -f conftest.$ac_objext conftest$ac_exeext
25729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25730   (eval $ac_link) 2>conftest.er1
25731   ac_status=$?
25732   grep -v '^ *+' conftest.er1 >conftest.err
25733   rm -f conftest.er1
25734   cat conftest.err >&5
25735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736   (exit $ac_status); } &&
25737          { ac_try='test -z "$ac_c_werror_flag"
25738                          || test ! -s conftest.err'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; } &&
25744          { ac_try='test -s conftest$ac_exeext'
25745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746   (eval $ac_try) 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; }; then
25750   ac_cv_search_mallinfo="-l$ac_lib"
25751 break
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756 fi
25757 rm -f conftest.err conftest.$ac_objext \
25758       conftest$ac_exeext conftest.$ac_ext
25759   done
25760 fi
25761 LIBS=$ac_func_search_save_LIBS
25762 fi
25763 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25764 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25765 if test "$ac_cv_search_mallinfo" != no; then
25766   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25767
25768 cat >>confdefs.h <<\_ACEOF
25769 #define HAVE_MALLINFO 1
25770 _ACEOF
25771
25772 fi
25773
25774
25775 if test "$ENABLE_THREADS" -eq 1 ; then
25776
25777 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25778 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25779 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25780   echo $ECHO_N "(cached) $ECHO_C" >&6
25781 else
25782   ac_check_lib_save_LIBS=$LIBS
25783 LIBS="-lpthread  $LIBS"
25784 cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h.  */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h.  */
25790
25791 /* Override any gcc2 internal prototype to avoid an error.  */
25792 #ifdef __cplusplus
25793 extern "C"
25794 #endif
25795 /* We use char because int might match the return type of a gcc2
25796    builtin and then its argument prototype would still apply.  */
25797 char pthread_mutex_init ();
25798 int
25799 main ()
25800 {
25801 pthread_mutex_init ();
25802   ;
25803   return 0;
25804 }
25805 _ACEOF
25806 rm -f conftest.$ac_objext conftest$ac_exeext
25807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25808   (eval $ac_link) 2>conftest.er1
25809   ac_status=$?
25810   grep -v '^ *+' conftest.er1 >conftest.err
25811   rm -f conftest.er1
25812   cat conftest.err >&5
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); } &&
25815          { ac_try='test -z "$ac_c_werror_flag"
25816                          || test ! -s conftest.err'
25817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818   (eval $ac_try) 2>&5
25819   ac_status=$?
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); }; } &&
25822          { ac_try='test -s conftest$ac_exeext'
25823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824   (eval $ac_try) 2>&5
25825   ac_status=$?
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); }; }; then
25828   ac_cv_lib_pthread_pthread_mutex_init=yes
25829 else
25830   echo "$as_me: failed program was:" >&5
25831 sed 's/^/| /' conftest.$ac_ext >&5
25832
25833 ac_cv_lib_pthread_pthread_mutex_init=no
25834 fi
25835 rm -f conftest.err conftest.$ac_objext \
25836       conftest$ac_exeext conftest.$ac_ext
25837 LIBS=$ac_check_lib_save_LIBS
25838 fi
25839 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25840 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25841 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25842   cat >>confdefs.h <<_ACEOF
25843 #define HAVE_LIBPTHREAD 1
25844 _ACEOF
25845
25846   LIBS="-lpthread $LIBS"
25847
25848 fi
25849
25850   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25851 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25852 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25853   echo $ECHO_N "(cached) $ECHO_C" >&6
25854 else
25855   ac_func_search_save_LIBS=$LIBS
25856 ac_cv_search_pthread_mutex_lock=no
25857 cat >conftest.$ac_ext <<_ACEOF
25858 /* confdefs.h.  */
25859 _ACEOF
25860 cat confdefs.h >>conftest.$ac_ext
25861 cat >>conftest.$ac_ext <<_ACEOF
25862 /* end confdefs.h.  */
25863
25864 /* Override any gcc2 internal prototype to avoid an error.  */
25865 #ifdef __cplusplus
25866 extern "C"
25867 #endif
25868 /* We use char because int might match the return type of a gcc2
25869    builtin and then its argument prototype would still apply.  */
25870 char pthread_mutex_lock ();
25871 int
25872 main ()
25873 {
25874 pthread_mutex_lock ();
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 rm -f conftest.$ac_objext conftest$ac_exeext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25881   (eval $ac_link) 2>conftest.er1
25882   ac_status=$?
25883   grep -v '^ *+' conftest.er1 >conftest.err
25884   rm -f conftest.er1
25885   cat conftest.err >&5
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); } &&
25888          { ac_try='test -z "$ac_c_werror_flag"
25889                          || test ! -s conftest.err'
25890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891   (eval $ac_try) 2>&5
25892   ac_status=$?
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); }; } &&
25895          { ac_try='test -s conftest$ac_exeext'
25896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897   (eval $ac_try) 2>&5
25898   ac_status=$?
25899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900   (exit $ac_status); }; }; then
25901   ac_cv_search_pthread_mutex_lock="none required"
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906 fi
25907 rm -f conftest.err conftest.$ac_objext \
25908       conftest$ac_exeext conftest.$ac_ext
25909 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25910   for ac_lib in pthread; do
25911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25912     cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h.  */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h.  */
25918
25919 /* Override any gcc2 internal prototype to avoid an error.  */
25920 #ifdef __cplusplus
25921 extern "C"
25922 #endif
25923 /* We use char because int might match the return type of a gcc2
25924    builtin and then its argument prototype would still apply.  */
25925 char pthread_mutex_lock ();
25926 int
25927 main ()
25928 {
25929 pthread_mutex_lock ();
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25936   (eval $ac_link) 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } &&
25943          { ac_try='test -z "$ac_c_werror_flag"
25944                          || test ! -s conftest.err'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; } &&
25950          { ac_try='test -s conftest$ac_exeext'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25957 break
25958 else
25959   echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962 fi
25963 rm -f conftest.err conftest.$ac_objext \
25964       conftest$ac_exeext conftest.$ac_ext
25965   done
25966 fi
25967 LIBS=$ac_func_search_save_LIBS
25968 fi
25969 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25970 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25971 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25972   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25973
25974 cat >>confdefs.h <<\_ACEOF
25975 #define HAVE_PTHREAD_MUTEX_LOCK 1
25976 _ACEOF
25977
25978 fi
25979
25980 fi
25981
25982
25983
25984
25985
25986
25987
25988 ac_header_dirent=no
25989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25990   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25991 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25992 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25994   echo $ECHO_N "(cached) $ECHO_C" >&6
25995 else
25996   cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 #include <sys/types.h>
26003 #include <$ac_hdr>
26004
26005 int
26006 main ()
26007 {
26008 if ((DIR *) 0)
26009 return 0;
26010   ;
26011   return 0;
26012 }
26013 _ACEOF
26014 rm -f conftest.$ac_objext
26015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26016   (eval $ac_compile) 2>conftest.er1
26017   ac_status=$?
26018   grep -v '^ *+' conftest.er1 >conftest.err
26019   rm -f conftest.er1
26020   cat conftest.err >&5
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } &&
26023          { ac_try='test -z "$ac_c_werror_flag"
26024                          || test ! -s conftest.err'
26025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026   (eval $ac_try) 2>&5
26027   ac_status=$?
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); }; } &&
26030          { ac_try='test -s conftest.$ac_objext'
26031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032   (eval $ac_try) 2>&5
26033   ac_status=$?
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); }; }; then
26036   eval "$as_ac_Header=yes"
26037 else
26038   echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26040
26041 eval "$as_ac_Header=no"
26042 fi
26043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26044 fi
26045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26048   cat >>confdefs.h <<_ACEOF
26049 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26050 _ACEOF
26051
26052 ac_header_dirent=$ac_hdr; break
26053 fi
26054
26055 done
26056 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26057 if test $ac_header_dirent = dirent.h; then
26058   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26060 if test "${ac_cv_search_opendir+set}" = set; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063   ac_func_search_save_LIBS=$LIBS
26064 ac_cv_search_opendir=no
26065 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071
26072 /* Override any gcc2 internal prototype to avoid an error.  */
26073 #ifdef __cplusplus
26074 extern "C"
26075 #endif
26076 /* We use char because int might match the return type of a gcc2
26077    builtin and then its argument prototype would still apply.  */
26078 char opendir ();
26079 int
26080 main ()
26081 {
26082 opendir ();
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext conftest$ac_exeext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26089   (eval $ac_link) 2>conftest.er1
26090   ac_status=$?
26091   grep -v '^ *+' conftest.er1 >conftest.err
26092   rm -f conftest.er1
26093   cat conftest.err >&5
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } &&
26096          { ac_try='test -z "$ac_c_werror_flag"
26097                          || test ! -s conftest.err'
26098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099   (eval $ac_try) 2>&5
26100   ac_status=$?
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); }; } &&
26103          { ac_try='test -s conftest$ac_exeext'
26104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105   (eval $ac_try) 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; }; then
26109   ac_cv_search_opendir="none required"
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26113
26114 fi
26115 rm -f conftest.err conftest.$ac_objext \
26116       conftest$ac_exeext conftest.$ac_ext
26117 if test "$ac_cv_search_opendir" = no; then
26118   for ac_lib in dir; do
26119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26120     cat >conftest.$ac_ext <<_ACEOF
26121 /* confdefs.h.  */
26122 _ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h.  */
26126
26127 /* Override any gcc2 internal prototype to avoid an error.  */
26128 #ifdef __cplusplus
26129 extern "C"
26130 #endif
26131 /* We use char because int might match the return type of a gcc2
26132    builtin and then its argument prototype would still apply.  */
26133 char opendir ();
26134 int
26135 main ()
26136 {
26137 opendir ();
26138   ;
26139   return 0;
26140 }
26141 _ACEOF
26142 rm -f conftest.$ac_objext conftest$ac_exeext
26143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26144   (eval $ac_link) 2>conftest.er1
26145   ac_status=$?
26146   grep -v '^ *+' conftest.er1 >conftest.err
26147   rm -f conftest.er1
26148   cat conftest.err >&5
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } &&
26151          { ac_try='test -z "$ac_c_werror_flag"
26152                          || test ! -s conftest.err'
26153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154   (eval $ac_try) 2>&5
26155   ac_status=$?
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); }; } &&
26158          { ac_try='test -s conftest$ac_exeext'
26159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160   (eval $ac_try) 2>&5
26161   ac_status=$?
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); }; }; then
26164   ac_cv_search_opendir="-l$ac_lib"
26165 break
26166 else
26167   echo "$as_me: failed program was:" >&5
26168 sed 's/^/| /' conftest.$ac_ext >&5
26169
26170 fi
26171 rm -f conftest.err conftest.$ac_objext \
26172       conftest$ac_exeext conftest.$ac_ext
26173   done
26174 fi
26175 LIBS=$ac_func_search_save_LIBS
26176 fi
26177 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26178 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26179 if test "$ac_cv_search_opendir" != no; then
26180   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26181
26182 fi
26183
26184 else
26185   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26186 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26187 if test "${ac_cv_search_opendir+set}" = set; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26190   ac_func_search_save_LIBS=$LIBS
26191 ac_cv_search_opendir=no
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h.  */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h.  */
26198
26199 /* Override any gcc2 internal prototype to avoid an error.  */
26200 #ifdef __cplusplus
26201 extern "C"
26202 #endif
26203 /* We use char because int might match the return type of a gcc2
26204    builtin and then its argument prototype would still apply.  */
26205 char opendir ();
26206 int
26207 main ()
26208 {
26209 opendir ();
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 rm -f conftest.$ac_objext conftest$ac_exeext
26215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26216   (eval $ac_link) 2>conftest.er1
26217   ac_status=$?
26218   grep -v '^ *+' conftest.er1 >conftest.err
26219   rm -f conftest.er1
26220   cat conftest.err >&5
26221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); } &&
26223          { ac_try='test -z "$ac_c_werror_flag"
26224                          || test ! -s conftest.err'
26225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226   (eval $ac_try) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); }; } &&
26230          { ac_try='test -s conftest$ac_exeext'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; }; then
26236   ac_cv_search_opendir="none required"
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241 fi
26242 rm -f conftest.err conftest.$ac_objext \
26243       conftest$ac_exeext conftest.$ac_ext
26244 if test "$ac_cv_search_opendir" = no; then
26245   for ac_lib in x; do
26246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26247     cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h.  */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h.  */
26253
26254 /* Override any gcc2 internal prototype to avoid an error.  */
26255 #ifdef __cplusplus
26256 extern "C"
26257 #endif
26258 /* We use char because int might match the return type of a gcc2
26259    builtin and then its argument prototype would still apply.  */
26260 char opendir ();
26261 int
26262 main ()
26263 {
26264 opendir ();
26265   ;
26266   return 0;
26267 }
26268 _ACEOF
26269 rm -f conftest.$ac_objext conftest$ac_exeext
26270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26271   (eval $ac_link) 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } &&
26278          { ac_try='test -z "$ac_c_werror_flag"
26279                          || test ! -s conftest.err'
26280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26281   (eval $ac_try) 2>&5
26282   ac_status=$?
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); }; } &&
26285          { ac_try='test -s conftest$ac_exeext'
26286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287   (eval $ac_try) 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; }; then
26291   ac_cv_search_opendir="-l$ac_lib"
26292 break
26293 else
26294   echo "$as_me: failed program was:" >&5
26295 sed 's/^/| /' conftest.$ac_ext >&5
26296
26297 fi
26298 rm -f conftest.err conftest.$ac_objext \
26299       conftest$ac_exeext conftest.$ac_ext
26300   done
26301 fi
26302 LIBS=$ac_func_search_save_LIBS
26303 fi
26304 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26305 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26306 if test "$ac_cv_search_opendir" != no; then
26307   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26308
26309 fi
26310
26311 fi
26312
26313 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26314 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26315 if test "${ac_cv_header_mmap_anon+set}" = set; then
26316   echo $ECHO_N "(cached) $ECHO_C" >&6
26317 else
26318    ac_ext=c
26319 ac_cpp='$CPP $CPPFLAGS'
26320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26323
26324   cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h.  */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h.  */
26330 #include <sys/mman.h>
26331 #include <unistd.h>
26332 #include <fcntl.h>
26333 int
26334 main ()
26335 {
26336 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26337   ;
26338   return 0;
26339 }
26340 _ACEOF
26341 rm -f conftest.$ac_objext
26342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26343   (eval $ac_compile) 2>conftest.er1
26344   ac_status=$?
26345   grep -v '^ *+' conftest.er1 >conftest.err
26346   rm -f conftest.er1
26347   cat conftest.err >&5
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); } &&
26350          { ac_try='test -z "$ac_c_werror_flag"
26351                          || test ! -s conftest.err'
26352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353   (eval $ac_try) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); }; } &&
26357          { ac_try='test -s conftest.$ac_objext'
26358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359   (eval $ac_try) 2>&5
26360   ac_status=$?
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); }; }; then
26363   ac_cv_header_mmap_anon=yes
26364 else
26365   echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368 ac_cv_header_mmap_anon=no
26369 fi
26370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26371   ac_ext=c
26372 ac_cpp='$CPP $CPPFLAGS'
26373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26376
26377
26378 fi
26379 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26380 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26381 if test "$ac_cv_header_mmap_anon" = yes; then
26382
26383 cat >>confdefs.h <<\_ACEOF
26384 #define HAVE_MMAP_ANONYMOUS 1
26385 _ACEOF
26386
26387 fi
26388
26389 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26390 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26391 if test "${ac_cv_header_stat_broken+set}" = set; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26393 else
26394   cat >conftest.$ac_ext <<_ACEOF
26395 /* confdefs.h.  */
26396 _ACEOF
26397 cat confdefs.h >>conftest.$ac_ext
26398 cat >>conftest.$ac_ext <<_ACEOF
26399 /* end confdefs.h.  */
26400 #include <sys/types.h>
26401 #include <sys/stat.h>
26402
26403 #if defined(S_ISBLK) && defined(S_IFDIR)
26404 # if S_ISBLK (S_IFDIR)
26405 You lose.
26406 # endif
26407 #endif
26408
26409 #if defined(S_ISBLK) && defined(S_IFCHR)
26410 # if S_ISBLK (S_IFCHR)
26411 You lose.
26412 # endif
26413 #endif
26414
26415 #if defined(S_ISLNK) && defined(S_IFREG)
26416 # if S_ISLNK (S_IFREG)
26417 You lose.
26418 # endif
26419 #endif
26420
26421 #if defined(S_ISSOCK) && defined(S_IFREG)
26422 # if S_ISSOCK (S_IFREG)
26423 You lose.
26424 # endif
26425 #endif
26426
26427 _ACEOF
26428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26429   $EGREP "You lose" >/dev/null 2>&1; then
26430   ac_cv_header_stat_broken=yes
26431 else
26432   ac_cv_header_stat_broken=no
26433 fi
26434 rm -f conftest*
26435
26436 fi
26437 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26438 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26439 if test $ac_cv_header_stat_broken = yes; then
26440
26441 cat >>confdefs.h <<\_ACEOF
26442 #define STAT_MACROS_BROKEN 1
26443 _ACEOF
26444
26445 fi
26446
26447 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26448 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26449 if test "${ac_cv_header_stdc+set}" = set; then
26450   echo $ECHO_N "(cached) $ECHO_C" >&6
26451 else
26452   cat >conftest.$ac_ext <<_ACEOF
26453 /* confdefs.h.  */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h.  */
26458 #include <stdlib.h>
26459 #include <stdarg.h>
26460 #include <string.h>
26461 #include <float.h>
26462
26463 int
26464 main ()
26465 {
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473   (eval $ac_compile) 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag"
26481                          || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest.$ac_objext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493   ac_cv_header_stdc=yes
26494 else
26495   echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 ac_cv_header_stdc=no
26499 fi
26500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26501
26502 if test $ac_cv_header_stdc = yes; then
26503   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26504   cat >conftest.$ac_ext <<_ACEOF
26505 /* confdefs.h.  */
26506 _ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h.  */
26510 #include <string.h>
26511
26512 _ACEOF
26513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26514   $EGREP "memchr" >/dev/null 2>&1; then
26515   :
26516 else
26517   ac_cv_header_stdc=no
26518 fi
26519 rm -f conftest*
26520
26521 fi
26522
26523 if test $ac_cv_header_stdc = yes; then
26524   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26525   cat >conftest.$ac_ext <<_ACEOF
26526 /* confdefs.h.  */
26527 _ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h.  */
26531 #include <stdlib.h>
26532
26533 _ACEOF
26534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26535   $EGREP "free" >/dev/null 2>&1; then
26536   :
26537 else
26538   ac_cv_header_stdc=no
26539 fi
26540 rm -f conftest*
26541
26542 fi
26543
26544 if test $ac_cv_header_stdc = yes; then
26545   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26546   if test "$cross_compiling" = yes; then
26547   :
26548 else
26549   cat >conftest.$ac_ext <<_ACEOF
26550 /* confdefs.h.  */
26551 _ACEOF
26552 cat confdefs.h >>conftest.$ac_ext
26553 cat >>conftest.$ac_ext <<_ACEOF
26554 /* end confdefs.h.  */
26555 #include <ctype.h>
26556 #if ((' ' & 0x0FF) == 0x020)
26557 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26558 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26559 #else
26560 # define ISLOWER(c) \
26561                    (('a' <= (c) && (c) <= 'i') \
26562                      || ('j' <= (c) && (c) <= 'r') \
26563                      || ('s' <= (c) && (c) <= 'z'))
26564 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26565 #endif
26566
26567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26568 int
26569 main ()
26570 {
26571   int i;
26572   for (i = 0; i < 256; i++)
26573     if (XOR (islower (i), ISLOWER (i))
26574         || toupper (i) != TOUPPER (i))
26575       exit(2);
26576   exit (0);
26577 }
26578 _ACEOF
26579 rm -f conftest$ac_exeext
26580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26581   (eval $ac_link) 2>&5
26582   ac_status=$?
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586   (eval $ac_try) 2>&5
26587   ac_status=$?
26588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589   (exit $ac_status); }; }; then
26590   :
26591 else
26592   echo "$as_me: program exited with status $ac_status" >&5
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26595
26596 ( exit $ac_status )
26597 ac_cv_header_stdc=no
26598 fi
26599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26600 fi
26601 fi
26602 fi
26603 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26604 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26605 if test $ac_cv_header_stdc = yes; then
26606
26607 cat >>confdefs.h <<\_ACEOF
26608 #define STDC_HEADERS 1
26609 _ACEOF
26610
26611 fi
26612
26613 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26614 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26615 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26616   echo $ECHO_N "(cached) $ECHO_C" >&6
26617 else
26618   cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624 #include <sys/types.h>
26625 #include <sys/wait.h>
26626 #ifndef WEXITSTATUS
26627 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26628 #endif
26629 #ifndef WIFEXITED
26630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26631 #endif
26632
26633 int
26634 main ()
26635 {
26636   int s;
26637   wait (&s);
26638   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26639   ;
26640   return 0;
26641 }
26642 _ACEOF
26643 rm -f conftest.$ac_objext
26644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26645   (eval $ac_compile) 2>conftest.er1
26646   ac_status=$?
26647   grep -v '^ *+' conftest.er1 >conftest.err
26648   rm -f conftest.er1
26649   cat conftest.err >&5
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); } &&
26652          { ac_try='test -z "$ac_c_werror_flag"
26653                          || test ! -s conftest.err'
26654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655   (eval $ac_try) 2>&5
26656   ac_status=$?
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); }; } &&
26659          { ac_try='test -s conftest.$ac_objext'
26660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661   (eval $ac_try) 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); }; }; then
26665   ac_cv_header_sys_wait_h=yes
26666 else
26667   echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670 ac_cv_header_sys_wait_h=no
26671 fi
26672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26673 fi
26674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26675 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26676 if test $ac_cv_header_sys_wait_h = yes; then
26677
26678 cat >>confdefs.h <<\_ACEOF
26679 #define HAVE_SYS_WAIT_H 1
26680 _ACEOF
26681
26682 fi
26683
26684 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26685 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26686 if test "${ac_cv_header_time+set}" = set; then
26687   echo $ECHO_N "(cached) $ECHO_C" >&6
26688 else
26689   cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695 #include <sys/types.h>
26696 #include <sys/time.h>
26697 #include <time.h>
26698
26699 int
26700 main ()
26701 {
26702 if ((struct tm *) 0)
26703 return 0;
26704   ;
26705   return 0;
26706 }
26707 _ACEOF
26708 rm -f conftest.$ac_objext
26709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26710   (eval $ac_compile) 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } &&
26717          { ac_try='test -z "$ac_c_werror_flag"
26718                          || test ! -s conftest.err'
26719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720   (eval $ac_try) 2>&5
26721   ac_status=$?
26722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723   (exit $ac_status); }; } &&
26724          { ac_try='test -s conftest.$ac_objext'
26725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726   (eval $ac_try) 2>&5
26727   ac_status=$?
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); }; }; then
26730   ac_cv_header_time=yes
26731 else
26732   echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26734
26735 ac_cv_header_time=no
26736 fi
26737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26738 fi
26739 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26740 echo "${ECHO_T}$ac_cv_header_time" >&6
26741 if test $ac_cv_header_time = yes; then
26742
26743 cat >>confdefs.h <<\_ACEOF
26744 #define TIME_WITH_SYS_TIME 1
26745 _ACEOF
26746
26747 fi
26748
26749
26750
26751
26752
26753
26754
26755
26756 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26757 do
26758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760   echo "$as_me:$LINENO: checking for $ac_header" >&5
26761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26763   echo $ECHO_N "(cached) $ECHO_C" >&6
26764 fi
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26767 else
26768   # Is the header compilable?
26769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26771 cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777 $ac_includes_default
26778 #include <$ac_header>
26779 _ACEOF
26780 rm -f conftest.$ac_objext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782   (eval $ac_compile) 2>conftest.er1
26783   ac_status=$?
26784   grep -v '^ *+' conftest.er1 >conftest.err
26785   rm -f conftest.er1
26786   cat conftest.err >&5
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); } &&
26789          { ac_try='test -z "$ac_c_werror_flag"
26790                          || test ! -s conftest.err'
26791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792   (eval $ac_try) 2>&5
26793   ac_status=$?
26794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795   (exit $ac_status); }; } &&
26796          { ac_try='test -s conftest.$ac_objext'
26797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798   (eval $ac_try) 2>&5
26799   ac_status=$?
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); }; }; then
26802   ac_header_compiler=yes
26803 else
26804   echo "$as_me: failed program was:" >&5
26805 sed 's/^/| /' conftest.$ac_ext >&5
26806
26807 ac_header_compiler=no
26808 fi
26809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26811 echo "${ECHO_T}$ac_header_compiler" >&6
26812
26813 # Is the header present?
26814 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822 #include <$ac_header>
26823 _ACEOF
26824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26825   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26826   ac_status=$?
26827   grep -v '^ *+' conftest.er1 >conftest.err
26828   rm -f conftest.er1
26829   cat conftest.err >&5
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } >/dev/null; then
26832   if test -s conftest.err; then
26833     ac_cpp_err=$ac_c_preproc_warn_flag
26834     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26835   else
26836     ac_cpp_err=
26837   fi
26838 else
26839   ac_cpp_err=yes
26840 fi
26841 if test -z "$ac_cpp_err"; then
26842   ac_header_preproc=yes
26843 else
26844   echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26846
26847   ac_header_preproc=no
26848 fi
26849 rm -f conftest.err conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26851 echo "${ECHO_T}$ac_header_preproc" >&6
26852
26853 # So?  What about this header?
26854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26855   yes:no: )
26856     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26860     ac_header_preproc=yes
26861     ;;
26862   no:yes:* )
26863     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26865     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26866 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26869     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26870 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26873     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26875     (
26876       cat <<\_ASBOX
26877 ## ----------------------------------- ##
26878 ## Report this to llvmbugs@cs.uiuc.edu ##
26879 ## ----------------------------------- ##
26880 _ASBOX
26881     ) |
26882       sed "s/^/$as_me: WARNING:     /" >&2
26883     ;;
26884 esac
26885 echo "$as_me:$LINENO: checking for $ac_header" >&5
26886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26888   echo $ECHO_N "(cached) $ECHO_C" >&6
26889 else
26890   eval "$as_ac_Header=\$ac_header_preproc"
26891 fi
26892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26894
26895 fi
26896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26897   cat >>confdefs.h <<_ACEOF
26898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26899 _ACEOF
26900
26901 fi
26902
26903 done
26904
26905
26906
26907
26908
26909
26910
26911 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
26912 do
26913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26915   echo "$as_me:$LINENO: checking for $ac_header" >&5
26916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26918   echo $ECHO_N "(cached) $ECHO_C" >&6
26919 fi
26920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26922 else
26923   # Is the header compilable?
26924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26926 cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 $ac_includes_default
26933 #include <$ac_header>
26934 _ACEOF
26935 rm -f conftest.$ac_objext
26936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937   (eval $ac_compile) 2>conftest.er1
26938   ac_status=$?
26939   grep -v '^ *+' conftest.er1 >conftest.err
26940   rm -f conftest.er1
26941   cat conftest.err >&5
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); } &&
26944          { ac_try='test -z "$ac_c_werror_flag"
26945                          || test ! -s conftest.err'
26946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947   (eval $ac_try) 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; } &&
26951          { ac_try='test -s conftest.$ac_objext'
26952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953   (eval $ac_try) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; }; then
26957   ac_header_compiler=yes
26958 else
26959   echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26961
26962 ac_header_compiler=no
26963 fi
26964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26966 echo "${ECHO_T}$ac_header_compiler" >&6
26967
26968 # Is the header present?
26969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977 #include <$ac_header>
26978 _ACEOF
26979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26981   ac_status=$?
26982   grep -v '^ *+' conftest.er1 >conftest.err
26983   rm -f conftest.er1
26984   cat conftest.err >&5
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); } >/dev/null; then
26987   if test -s conftest.err; then
26988     ac_cpp_err=$ac_c_preproc_warn_flag
26989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26990   else
26991     ac_cpp_err=
26992   fi
26993 else
26994   ac_cpp_err=yes
26995 fi
26996 if test -z "$ac_cpp_err"; then
26997   ac_header_preproc=yes
26998 else
26999   echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27001
27002   ac_header_preproc=no
27003 fi
27004 rm -f conftest.err conftest.$ac_ext
27005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27006 echo "${ECHO_T}$ac_header_preproc" >&6
27007
27008 # So?  What about this header?
27009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27010   yes:no: )
27011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27015     ac_header_preproc=yes
27016     ;;
27017   no:yes:* )
27018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27030     (
27031       cat <<\_ASBOX
27032 ## ----------------------------------- ##
27033 ## Report this to llvmbugs@cs.uiuc.edu ##
27034 ## ----------------------------------- ##
27035 _ASBOX
27036     ) |
27037       sed "s/^/$as_me: WARNING:     /" >&2
27038     ;;
27039 esac
27040 echo "$as_me:$LINENO: checking for $ac_header" >&5
27041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 else
27045   eval "$as_ac_Header=\$ac_header_preproc"
27046 fi
27047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27049
27050 fi
27051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27052   cat >>confdefs.h <<_ACEOF
27053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27054 _ACEOF
27055
27056 fi
27057
27058 done
27059
27060
27061
27062
27063
27064
27065 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27066 do
27067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27069   echo "$as_me:$LINENO: checking for $ac_header" >&5
27070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 fi
27074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27076 else
27077   # Is the header compilable?
27078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27080 cat >conftest.$ac_ext <<_ACEOF
27081 /* confdefs.h.  */
27082 _ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h.  */
27086 $ac_includes_default
27087 #include <$ac_header>
27088 _ACEOF
27089 rm -f conftest.$ac_objext
27090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27091   (eval $ac_compile) 2>conftest.er1
27092   ac_status=$?
27093   grep -v '^ *+' conftest.er1 >conftest.err
27094   rm -f conftest.er1
27095   cat conftest.err >&5
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); } &&
27098          { ac_try='test -z "$ac_c_werror_flag"
27099                          || test ! -s conftest.err'
27100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27101   (eval $ac_try) 2>&5
27102   ac_status=$?
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); }; } &&
27105          { ac_try='test -s conftest.$ac_objext'
27106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27107   (eval $ac_try) 2>&5
27108   ac_status=$?
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); }; }; then
27111   ac_header_compiler=yes
27112 else
27113   echo "$as_me: failed program was:" >&5
27114 sed 's/^/| /' conftest.$ac_ext >&5
27115
27116 ac_header_compiler=no
27117 fi
27118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27120 echo "${ECHO_T}$ac_header_compiler" >&6
27121
27122 # Is the header present?
27123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27125 cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131 #include <$ac_header>
27132 _ACEOF
27133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27135   ac_status=$?
27136   grep -v '^ *+' conftest.er1 >conftest.err
27137   rm -f conftest.er1
27138   cat conftest.err >&5
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); } >/dev/null; then
27141   if test -s conftest.err; then
27142     ac_cpp_err=$ac_c_preproc_warn_flag
27143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27144   else
27145     ac_cpp_err=
27146   fi
27147 else
27148   ac_cpp_err=yes
27149 fi
27150 if test -z "$ac_cpp_err"; then
27151   ac_header_preproc=yes
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156   ac_header_preproc=no
27157 fi
27158 rm -f conftest.err conftest.$ac_ext
27159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27160 echo "${ECHO_T}$ac_header_preproc" >&6
27161
27162 # So?  What about this header?
27163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27164   yes:no: )
27165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27169     ac_header_preproc=yes
27170     ;;
27171   no:yes:* )
27172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27184     (
27185       cat <<\_ASBOX
27186 ## ----------------------------------- ##
27187 ## Report this to llvmbugs@cs.uiuc.edu ##
27188 ## ----------------------------------- ##
27189 _ASBOX
27190     ) |
27191       sed "s/^/$as_me: WARNING:     /" >&2
27192     ;;
27193 esac
27194 echo "$as_me:$LINENO: checking for $ac_header" >&5
27195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27197   echo $ECHO_N "(cached) $ECHO_C" >&6
27198 else
27199   eval "$as_ac_Header=\$ac_header_preproc"
27200 fi
27201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27203
27204 fi
27205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27206   cat >>confdefs.h <<_ACEOF
27207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27208 _ACEOF
27209
27210 fi
27211
27212 done
27213
27214
27215
27216 for ac_header in sys/types.h malloc/malloc.h
27217 do
27218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27220   echo "$as_me:$LINENO: checking for $ac_header" >&5
27221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27223   echo $ECHO_N "(cached) $ECHO_C" >&6
27224 fi
27225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27227 else
27228   # Is the header compilable?
27229 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27231 cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h.  */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h.  */
27237 $ac_includes_default
27238 #include <$ac_header>
27239 _ACEOF
27240 rm -f conftest.$ac_objext
27241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27242   (eval $ac_compile) 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } &&
27249          { ac_try='test -z "$ac_c_werror_flag"
27250                          || test ! -s conftest.err'
27251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252   (eval $ac_try) 2>&5
27253   ac_status=$?
27254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255   (exit $ac_status); }; } &&
27256          { ac_try='test -s conftest.$ac_objext'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; }; then
27262   ac_header_compiler=yes
27263 else
27264   echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.$ac_ext >&5
27266
27267 ac_header_compiler=no
27268 fi
27269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27271 echo "${ECHO_T}$ac_header_compiler" >&6
27272
27273 # Is the header present?
27274 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27276 cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 #include <$ac_header>
27283 _ACEOF
27284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } >/dev/null; then
27292   if test -s conftest.err; then
27293     ac_cpp_err=$ac_c_preproc_warn_flag
27294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27295   else
27296     ac_cpp_err=
27297   fi
27298 else
27299   ac_cpp_err=yes
27300 fi
27301 if test -z "$ac_cpp_err"; then
27302   ac_header_preproc=yes
27303 else
27304   echo "$as_me: failed program was:" >&5
27305 sed 's/^/| /' conftest.$ac_ext >&5
27306
27307   ac_header_preproc=no
27308 fi
27309 rm -f conftest.err conftest.$ac_ext
27310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27311 echo "${ECHO_T}$ac_header_preproc" >&6
27312
27313 # So?  What about this header?
27314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27315   yes:no: )
27316     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27318     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27320     ac_header_preproc=yes
27321     ;;
27322   no:yes:* )
27323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27325     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27326 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27327     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27329     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27330 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27333     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27335     (
27336       cat <<\_ASBOX
27337 ## ----------------------------------- ##
27338 ## Report this to llvmbugs@cs.uiuc.edu ##
27339 ## ----------------------------------- ##
27340 _ASBOX
27341     ) |
27342       sed "s/^/$as_me: WARNING:     /" >&2
27343     ;;
27344 esac
27345 echo "$as_me:$LINENO: checking for $ac_header" >&5
27346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27348   echo $ECHO_N "(cached) $ECHO_C" >&6
27349 else
27350   eval "$as_ac_Header=\$ac_header_preproc"
27351 fi
27352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27354
27355 fi
27356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27357   cat >>confdefs.h <<_ACEOF
27358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27359 _ACEOF
27360
27361 fi
27362
27363 done
27364
27365 if test "$ENABLE_THREADS" -eq 1 ; then
27366
27367 for ac_header in pthread.h
27368 do
27369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27371   echo "$as_me:$LINENO: checking for $ac_header" >&5
27372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27374   echo $ECHO_N "(cached) $ECHO_C" >&6
27375 fi
27376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27378 else
27379   # Is the header compilable?
27380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27382 cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h.  */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h.  */
27388 $ac_includes_default
27389 #include <$ac_header>
27390 _ACEOF
27391 rm -f conftest.$ac_objext
27392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27393   (eval $ac_compile) 2>conftest.er1
27394   ac_status=$?
27395   grep -v '^ *+' conftest.er1 >conftest.err
27396   rm -f conftest.er1
27397   cat conftest.err >&5
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); } &&
27400          { ac_try='test -z "$ac_c_werror_flag"
27401                          || test ! -s conftest.err'
27402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27403   (eval $ac_try) 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); }; } &&
27407          { ac_try='test -s conftest.$ac_objext'
27408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409   (eval $ac_try) 2>&5
27410   ac_status=$?
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); }; }; then
27413   ac_header_compiler=yes
27414 else
27415   echo "$as_me: failed program was:" >&5
27416 sed 's/^/| /' conftest.$ac_ext >&5
27417
27418 ac_header_compiler=no
27419 fi
27420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27422 echo "${ECHO_T}$ac_header_compiler" >&6
27423
27424 # Is the header present?
27425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27427 cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 #include <$ac_header>
27434 _ACEOF
27435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } >/dev/null; then
27443   if test -s conftest.err; then
27444     ac_cpp_err=$ac_c_preproc_warn_flag
27445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27446   else
27447     ac_cpp_err=
27448   fi
27449 else
27450   ac_cpp_err=yes
27451 fi
27452 if test -z "$ac_cpp_err"; then
27453   ac_header_preproc=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458   ac_header_preproc=no
27459 fi
27460 rm -f conftest.err conftest.$ac_ext
27461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27462 echo "${ECHO_T}$ac_header_preproc" >&6
27463
27464 # So?  What about this header?
27465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27466   yes:no: )
27467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27471     ac_header_preproc=yes
27472     ;;
27473   no:yes:* )
27474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27486     (
27487       cat <<\_ASBOX
27488 ## ----------------------------------- ##
27489 ## Report this to llvmbugs@cs.uiuc.edu ##
27490 ## ----------------------------------- ##
27491 _ASBOX
27492     ) |
27493       sed "s/^/$as_me: WARNING:     /" >&2
27494     ;;
27495 esac
27496 echo "$as_me:$LINENO: checking for $ac_header" >&5
27497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499   echo $ECHO_N "(cached) $ECHO_C" >&6
27500 else
27501   eval "$as_ac_Header=\$ac_header_preproc"
27502 fi
27503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27505
27506 fi
27507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27508   cat >>confdefs.h <<_ACEOF
27509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27510 _ACEOF
27511
27512 fi
27513
27514 done
27515
27516 fi
27517
27518
27519 echo "$as_me:$LINENO: checking for pid_t" >&5
27520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27521 if test "${ac_cv_type_pid_t+set}" = set; then
27522   echo $ECHO_N "(cached) $ECHO_C" >&6
27523 else
27524   cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h.  */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h.  */
27530 $ac_includes_default
27531 int
27532 main ()
27533 {
27534 if ((pid_t *) 0)
27535   return 0;
27536 if (sizeof (pid_t))
27537   return 0;
27538   ;
27539   return 0;
27540 }
27541 _ACEOF
27542 rm -f conftest.$ac_objext
27543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27544   (eval $ac_compile) 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } &&
27551          { ac_try='test -z "$ac_c_werror_flag"
27552                          || test ! -s conftest.err'
27553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27554   (eval $ac_try) 2>&5
27555   ac_status=$?
27556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27557   (exit $ac_status); }; } &&
27558          { ac_try='test -s conftest.$ac_objext'
27559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27560   (eval $ac_try) 2>&5
27561   ac_status=$?
27562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563   (exit $ac_status); }; }; then
27564   ac_cv_type_pid_t=yes
27565 else
27566   echo "$as_me: failed program was:" >&5
27567 sed 's/^/| /' conftest.$ac_ext >&5
27568
27569 ac_cv_type_pid_t=no
27570 fi
27571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27572 fi
27573 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27574 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27575 if test $ac_cv_type_pid_t = yes; then
27576   :
27577 else
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define pid_t int
27581 _ACEOF
27582
27583 fi
27584
27585 echo "$as_me:$LINENO: checking for size_t" >&5
27586 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27587 if test "${ac_cv_type_size_t+set}" = set; then
27588   echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590   cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 $ac_includes_default
27597 int
27598 main ()
27599 {
27600 if ((size_t *) 0)
27601   return 0;
27602 if (sizeof (size_t))
27603   return 0;
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610   (eval $ac_compile) 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } &&
27617          { ac_try='test -z "$ac_c_werror_flag"
27618                          || test ! -s conftest.err'
27619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620   (eval $ac_try) 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; } &&
27624          { ac_try='test -s conftest.$ac_objext'
27625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626   (eval $ac_try) 2>&5
27627   ac_status=$?
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); }; }; then
27630   ac_cv_type_size_t=yes
27631 else
27632   echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635 ac_cv_type_size_t=no
27636 fi
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27638 fi
27639 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27640 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27641 if test $ac_cv_type_size_t = yes; then
27642   :
27643 else
27644
27645 cat >>confdefs.h <<_ACEOF
27646 #define size_t unsigned
27647 _ACEOF
27648
27649 fi
27650
27651 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27652 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27653 if test "${ac_cv_type_signal+set}" = set; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 #include <sys/types.h>
27663 #include <signal.h>
27664 #ifdef signal
27665 # undef signal
27666 #endif
27667 #ifdef __cplusplus
27668 extern "C" void (*signal (int, void (*)(int)))(int);
27669 #else
27670 void (*signal ()) ();
27671 #endif
27672
27673 int
27674 main ()
27675 {
27676 int i;
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 rm -f conftest.$ac_objext
27682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683   (eval $ac_compile) 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag"
27691                          || test ! -s conftest.err'
27692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693   (eval $ac_try) 2>&5
27694   ac_status=$?
27695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696   (exit $ac_status); }; } &&
27697          { ac_try='test -s conftest.$ac_objext'
27698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699   (eval $ac_try) 2>&5
27700   ac_status=$?
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); }; }; then
27703   ac_cv_type_signal=void
27704 else
27705   echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27707
27708 ac_cv_type_signal=int
27709 fi
27710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27711 fi
27712 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27713 echo "${ECHO_T}$ac_cv_type_signal" >&6
27714
27715 cat >>confdefs.h <<_ACEOF
27716 #define RETSIGTYPE $ac_cv_type_signal
27717 _ACEOF
27718
27719
27720 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27721 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27722 if test "${ac_cv_struct_tm+set}" = set; then
27723   echo $ECHO_N "(cached) $ECHO_C" >&6
27724 else
27725   cat >conftest.$ac_ext <<_ACEOF
27726 /* confdefs.h.  */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h.  */
27731 #include <sys/types.h>
27732 #include <time.h>
27733
27734 int
27735 main ()
27736 {
27737 struct tm *tp; tp->tm_sec;
27738   ;
27739   return 0;
27740 }
27741 _ACEOF
27742 rm -f conftest.$ac_objext
27743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27744   (eval $ac_compile) 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } &&
27751          { ac_try='test -z "$ac_c_werror_flag"
27752                          || test ! -s conftest.err'
27753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754   (eval $ac_try) 2>&5
27755   ac_status=$?
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; } &&
27758          { ac_try='test -s conftest.$ac_objext'
27759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760   (eval $ac_try) 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); }; }; then
27764   ac_cv_struct_tm=time.h
27765 else
27766   echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769 ac_cv_struct_tm=sys/time.h
27770 fi
27771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27772 fi
27773 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27774 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27775 if test $ac_cv_struct_tm = sys/time.h; then
27776
27777 cat >>confdefs.h <<\_ACEOF
27778 #define TM_IN_SYS_TIME 1
27779 _ACEOF
27780
27781 fi
27782
27783 echo "$as_me:$LINENO: checking for int64_t" >&5
27784 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27785 if test "${ac_cv_type_int64_t+set}" = set; then
27786   echo $ECHO_N "(cached) $ECHO_C" >&6
27787 else
27788   cat >conftest.$ac_ext <<_ACEOF
27789 /* confdefs.h.  */
27790 _ACEOF
27791 cat confdefs.h >>conftest.$ac_ext
27792 cat >>conftest.$ac_ext <<_ACEOF
27793 /* end confdefs.h.  */
27794 $ac_includes_default
27795 int
27796 main ()
27797 {
27798 if ((int64_t *) 0)
27799   return 0;
27800 if (sizeof (int64_t))
27801   return 0;
27802   ;
27803   return 0;
27804 }
27805 _ACEOF
27806 rm -f conftest.$ac_objext
27807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27808   (eval $ac_compile) 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } &&
27815          { ac_try='test -z "$ac_c_werror_flag"
27816                          || test ! -s conftest.err'
27817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818   (eval $ac_try) 2>&5
27819   ac_status=$?
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); }; } &&
27822          { ac_try='test -s conftest.$ac_objext'
27823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824   (eval $ac_try) 2>&5
27825   ac_status=$?
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); }; }; then
27828   ac_cv_type_int64_t=yes
27829 else
27830   echo "$as_me: failed program was:" >&5
27831 sed 's/^/| /' conftest.$ac_ext >&5
27832
27833 ac_cv_type_int64_t=no
27834 fi
27835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27836 fi
27837 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27838 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27839 if test $ac_cv_type_int64_t = yes; then
27840
27841 cat >>confdefs.h <<_ACEOF
27842 #define HAVE_INT64_T 1
27843 _ACEOF
27844
27845
27846 else
27847   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27848 echo "$as_me: error: Type int64_t required but not found" >&2;}
27849    { (exit 1); exit 1; }; }
27850 fi
27851
27852 echo "$as_me:$LINENO: checking for uint64_t" >&5
27853 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27854 if test "${ac_cv_type_uint64_t+set}" = set; then
27855   echo $ECHO_N "(cached) $ECHO_C" >&6
27856 else
27857   cat >conftest.$ac_ext <<_ACEOF
27858 /* confdefs.h.  */
27859 _ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h.  */
27863 $ac_includes_default
27864 int
27865 main ()
27866 {
27867 if ((uint64_t *) 0)
27868   return 0;
27869 if (sizeof (uint64_t))
27870   return 0;
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 rm -f conftest.$ac_objext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27877   (eval $ac_compile) 2>conftest.er1
27878   ac_status=$?
27879   grep -v '^ *+' conftest.er1 >conftest.err
27880   rm -f conftest.er1
27881   cat conftest.err >&5
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); } &&
27884          { ac_try='test -z "$ac_c_werror_flag"
27885                          || test ! -s conftest.err'
27886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887   (eval $ac_try) 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); }; } &&
27891          { ac_try='test -s conftest.$ac_objext'
27892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893   (eval $ac_try) 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; }; then
27897   ac_cv_type_uint64_t=yes
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902 ac_cv_type_uint64_t=no
27903 fi
27904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27905 fi
27906 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27907 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27908 if test $ac_cv_type_uint64_t = yes; then
27909
27910 cat >>confdefs.h <<_ACEOF
27911 #define HAVE_UINT64_T 1
27912 _ACEOF
27913
27914
27915 else
27916   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27917 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27918 if test "${ac_cv_type_u_int64_t+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 $ac_includes_default
27928 int
27929 main ()
27930 {
27931 if ((u_int64_t *) 0)
27932   return 0;
27933 if (sizeof (u_int64_t))
27934   return 0;
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext
27940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27941   (eval $ac_compile) 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } &&
27948          { ac_try='test -z "$ac_c_werror_flag"
27949                          || test ! -s conftest.err'
27950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951   (eval $ac_try) 2>&5
27952   ac_status=$?
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); }; } &&
27955          { ac_try='test -s conftest.$ac_objext'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; }; then
27961   ac_cv_type_u_int64_t=yes
27962 else
27963   echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27965
27966 ac_cv_type_u_int64_t=no
27967 fi
27968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27969 fi
27970 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27971 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27972 if test $ac_cv_type_u_int64_t = yes; then
27973
27974 cat >>confdefs.h <<_ACEOF
27975 #define HAVE_U_INT64_T 1
27976 _ACEOF
27977
27978
27979 else
27980   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27981 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27982    { (exit 1); exit 1; }; }
27983 fi
27984
27985 fi
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27997 do
27998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27999 echo "$as_me:$LINENO: checking for $ac_func" >&5
28000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28001 if eval "test \"\${$as_ac_var+set}\" = set"; then
28002   echo $ECHO_N "(cached) $ECHO_C" >&6
28003 else
28004   cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28012 #define $ac_func innocuous_$ac_func
28013
28014 /* System header to define __stub macros and hopefully few prototypes,
28015     which can conflict with char $ac_func (); below.
28016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28017     <limits.h> exists even on freestanding compilers.  */
28018
28019 #ifdef __STDC__
28020 # include <limits.h>
28021 #else
28022 # include <assert.h>
28023 #endif
28024
28025 #undef $ac_func
28026
28027 /* Override any gcc2 internal prototype to avoid an error.  */
28028 #ifdef __cplusplus
28029 extern "C"
28030 {
28031 #endif
28032 /* We use char because int might match the return type of a gcc2
28033    builtin and then its argument prototype would still apply.  */
28034 char $ac_func ();
28035 /* The GNU C library defines this for functions which it implements
28036     to always fail with ENOSYS.  Some functions are actually named
28037     something starting with __ and the normal name is an alias.  */
28038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28039 choke me
28040 #else
28041 char (*f) () = $ac_func;
28042 #endif
28043 #ifdef __cplusplus
28044 }
28045 #endif
28046
28047 int
28048 main ()
28049 {
28050 return f != $ac_func;
28051   ;
28052   return 0;
28053 }
28054 _ACEOF
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057   (eval $ac_link) 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } &&
28064          { ac_try='test -z "$ac_c_werror_flag"
28065                          || test ! -s conftest.err'
28066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067   (eval $ac_try) 2>&5
28068   ac_status=$?
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); }; } &&
28071          { ac_try='test -s conftest$ac_exeext'
28072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073   (eval $ac_try) 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); }; }; then
28077   eval "$as_ac_var=yes"
28078 else
28079   echo "$as_me: failed program was:" >&5
28080 sed 's/^/| /' conftest.$ac_ext >&5
28081
28082 eval "$as_ac_var=no"
28083 fi
28084 rm -f conftest.err conftest.$ac_objext \
28085       conftest$ac_exeext conftest.$ac_ext
28086 fi
28087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28089 if test `eval echo '${'$as_ac_var'}'` = yes; then
28090   cat >>confdefs.h <<_ACEOF
28091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28092 _ACEOF
28093
28094 fi
28095 done
28096
28097
28098
28099
28100
28101
28102
28103 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28104 do
28105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28106 echo "$as_me:$LINENO: checking for $ac_func" >&5
28107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28108 if eval "test \"\${$as_ac_var+set}\" = set"; then
28109   echo $ECHO_N "(cached) $ECHO_C" >&6
28110 else
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28119 #define $ac_func innocuous_$ac_func
28120
28121 /* System header to define __stub macros and hopefully few prototypes,
28122     which can conflict with char $ac_func (); below.
28123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28124     <limits.h> exists even on freestanding compilers.  */
28125
28126 #ifdef __STDC__
28127 # include <limits.h>
28128 #else
28129 # include <assert.h>
28130 #endif
28131
28132 #undef $ac_func
28133
28134 /* Override any gcc2 internal prototype to avoid an error.  */
28135 #ifdef __cplusplus
28136 extern "C"
28137 {
28138 #endif
28139 /* We use char because int might match the return type of a gcc2
28140    builtin and then its argument prototype would still apply.  */
28141 char $ac_func ();
28142 /* The GNU C library defines this for functions which it implements
28143     to always fail with ENOSYS.  Some functions are actually named
28144     something starting with __ and the normal name is an alias.  */
28145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28146 choke me
28147 #else
28148 char (*f) () = $ac_func;
28149 #endif
28150 #ifdef __cplusplus
28151 }
28152 #endif
28153
28154 int
28155 main ()
28156 {
28157 return f != $ac_func;
28158   ;
28159   return 0;
28160 }
28161 _ACEOF
28162 rm -f conftest.$ac_objext conftest$ac_exeext
28163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164   (eval $ac_link) 2>conftest.er1
28165   ac_status=$?
28166   grep -v '^ *+' conftest.er1 >conftest.err
28167   rm -f conftest.er1
28168   cat conftest.err >&5
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } &&
28171          { ac_try='test -z "$ac_c_werror_flag"
28172                          || test ! -s conftest.err'
28173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174   (eval $ac_try) 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; } &&
28178          { ac_try='test -s conftest$ac_exeext'
28179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180   (eval $ac_try) 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   eval "$as_ac_var=yes"
28185 else
28186   echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189 eval "$as_ac_var=no"
28190 fi
28191 rm -f conftest.err conftest.$ac_objext \
28192       conftest$ac_exeext conftest.$ac_ext
28193 fi
28194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28196 if test `eval echo '${'$as_ac_var'}'` = yes; then
28197   cat >>confdefs.h <<_ACEOF
28198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28199 _ACEOF
28200
28201 fi
28202 done
28203
28204
28205
28206
28207
28208
28209
28210
28211 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28212 do
28213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214 echo "$as_me:$LINENO: checking for $ac_func" >&5
28215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28216 if eval "test \"\${$as_ac_var+set}\" = set"; then
28217   echo $ECHO_N "(cached) $ECHO_C" >&6
28218 else
28219   cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h.  */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h.  */
28225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28227 #define $ac_func innocuous_$ac_func
28228
28229 /* System header to define __stub macros and hopefully few prototypes,
28230     which can conflict with char $ac_func (); below.
28231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28232     <limits.h> exists even on freestanding compilers.  */
28233
28234 #ifdef __STDC__
28235 # include <limits.h>
28236 #else
28237 # include <assert.h>
28238 #endif
28239
28240 #undef $ac_func
28241
28242 /* Override any gcc2 internal prototype to avoid an error.  */
28243 #ifdef __cplusplus
28244 extern "C"
28245 {
28246 #endif
28247 /* We use char because int might match the return type of a gcc2
28248    builtin and then its argument prototype would still apply.  */
28249 char $ac_func ();
28250 /* The GNU C library defines this for functions which it implements
28251     to always fail with ENOSYS.  Some functions are actually named
28252     something starting with __ and the normal name is an alias.  */
28253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28254 choke me
28255 #else
28256 char (*f) () = $ac_func;
28257 #endif
28258 #ifdef __cplusplus
28259 }
28260 #endif
28261
28262 int
28263 main ()
28264 {
28265 return f != $ac_func;
28266   ;
28267   return 0;
28268 }
28269 _ACEOF
28270 rm -f conftest.$ac_objext conftest$ac_exeext
28271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28272   (eval $ac_link) 2>conftest.er1
28273   ac_status=$?
28274   grep -v '^ *+' conftest.er1 >conftest.err
28275   rm -f conftest.er1
28276   cat conftest.err >&5
28277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278   (exit $ac_status); } &&
28279          { ac_try='test -z "$ac_c_werror_flag"
28280                          || test ! -s conftest.err'
28281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282   (eval $ac_try) 2>&5
28283   ac_status=$?
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); }; } &&
28286          { ac_try='test -s conftest$ac_exeext'
28287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288   (eval $ac_try) 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; }; then
28292   eval "$as_ac_var=yes"
28293 else
28294   echo "$as_me: failed program was:" >&5
28295 sed 's/^/| /' conftest.$ac_ext >&5
28296
28297 eval "$as_ac_var=no"
28298 fi
28299 rm -f conftest.err conftest.$ac_objext \
28300       conftest$ac_exeext conftest.$ac_ext
28301 fi
28302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28304 if test `eval echo '${'$as_ac_var'}'` = yes; then
28305   cat >>confdefs.h <<_ACEOF
28306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28307 _ACEOF
28308
28309 fi
28310 done
28311
28312
28313
28314
28315
28316 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28317 do
28318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28319 echo "$as_me:$LINENO: checking for $ac_func" >&5
28320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28321 if eval "test \"\${$as_ac_var+set}\" = set"; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324   cat >conftest.$ac_ext <<_ACEOF
28325 /* confdefs.h.  */
28326 _ACEOF
28327 cat confdefs.h >>conftest.$ac_ext
28328 cat >>conftest.$ac_ext <<_ACEOF
28329 /* end confdefs.h.  */
28330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28332 #define $ac_func innocuous_$ac_func
28333
28334 /* System header to define __stub macros and hopefully few prototypes,
28335     which can conflict with char $ac_func (); below.
28336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28337     <limits.h> exists even on freestanding compilers.  */
28338
28339 #ifdef __STDC__
28340 # include <limits.h>
28341 #else
28342 # include <assert.h>
28343 #endif
28344
28345 #undef $ac_func
28346
28347 /* Override any gcc2 internal prototype to avoid an error.  */
28348 #ifdef __cplusplus
28349 extern "C"
28350 {
28351 #endif
28352 /* We use char because int might match the return type of a gcc2
28353    builtin and then its argument prototype would still apply.  */
28354 char $ac_func ();
28355 /* The GNU C library defines this for functions which it implements
28356     to always fail with ENOSYS.  Some functions are actually named
28357     something starting with __ and the normal name is an alias.  */
28358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28359 choke me
28360 #else
28361 char (*f) () = $ac_func;
28362 #endif
28363 #ifdef __cplusplus
28364 }
28365 #endif
28366
28367 int
28368 main ()
28369 {
28370 return f != $ac_func;
28371   ;
28372   return 0;
28373 }
28374 _ACEOF
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377   (eval $ac_link) 2>conftest.er1
28378   ac_status=$?
28379   grep -v '^ *+' conftest.er1 >conftest.err
28380   rm -f conftest.er1
28381   cat conftest.err >&5
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); } &&
28384          { ac_try='test -z "$ac_c_werror_flag"
28385                          || test ! -s conftest.err'
28386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387   (eval $ac_try) 2>&5
28388   ac_status=$?
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); }; } &&
28391          { ac_try='test -s conftest$ac_exeext'
28392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393   (eval $ac_try) 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; }; then
28397   eval "$as_ac_var=yes"
28398 else
28399   echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28401
28402 eval "$as_ac_var=no"
28403 fi
28404 rm -f conftest.err conftest.$ac_objext \
28405       conftest$ac_exeext conftest.$ac_ext
28406 fi
28407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28409 if test `eval echo '${'$as_ac_var'}'` = yes; then
28410   cat >>confdefs.h <<_ACEOF
28411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28412 _ACEOF
28413
28414 fi
28415 done
28416
28417
28418
28419
28420
28421
28422
28423 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28424 do
28425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426 echo "$as_me:$LINENO: checking for $ac_func" >&5
28427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28428 if eval "test \"\${$as_ac_var+set}\" = set"; then
28429   echo $ECHO_N "(cached) $ECHO_C" >&6
28430 else
28431   cat >conftest.$ac_ext <<_ACEOF
28432 /* confdefs.h.  */
28433 _ACEOF
28434 cat confdefs.h >>conftest.$ac_ext
28435 cat >>conftest.$ac_ext <<_ACEOF
28436 /* end confdefs.h.  */
28437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28439 #define $ac_func innocuous_$ac_func
28440
28441 /* System header to define __stub macros and hopefully few prototypes,
28442     which can conflict with char $ac_func (); below.
28443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28444     <limits.h> exists even on freestanding compilers.  */
28445
28446 #ifdef __STDC__
28447 # include <limits.h>
28448 #else
28449 # include <assert.h>
28450 #endif
28451
28452 #undef $ac_func
28453
28454 /* Override any gcc2 internal prototype to avoid an error.  */
28455 #ifdef __cplusplus
28456 extern "C"
28457 {
28458 #endif
28459 /* We use char because int might match the return type of a gcc2
28460    builtin and then its argument prototype would still apply.  */
28461 char $ac_func ();
28462 /* The GNU C library defines this for functions which it implements
28463     to always fail with ENOSYS.  Some functions are actually named
28464     something starting with __ and the normal name is an alias.  */
28465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28466 choke me
28467 #else
28468 char (*f) () = $ac_func;
28469 #endif
28470 #ifdef __cplusplus
28471 }
28472 #endif
28473
28474 int
28475 main ()
28476 {
28477 return f != $ac_func;
28478   ;
28479   return 0;
28480 }
28481 _ACEOF
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484   (eval $ac_link) 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } &&
28491          { ac_try='test -z "$ac_c_werror_flag"
28492                          || test ! -s conftest.err'
28493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494   (eval $ac_try) 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); }; } &&
28498          { ac_try='test -s conftest$ac_exeext'
28499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500   (eval $ac_try) 2>&5
28501   ac_status=$?
28502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); }; }; then
28504   eval "$as_ac_var=yes"
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509 eval "$as_ac_var=no"
28510 fi
28511 rm -f conftest.err conftest.$ac_objext \
28512       conftest$ac_exeext conftest.$ac_ext
28513 fi
28514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28516 if test `eval echo '${'$as_ac_var'}'` = yes; then
28517   cat >>confdefs.h <<_ACEOF
28518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28519 _ACEOF
28520
28521 fi
28522 done
28523
28524 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28525 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28526 if test "${llvm_cv_c_printf_a+set}" = set; then
28527   echo $ECHO_N "(cached) $ECHO_C" >&6
28528 else
28529   ac_ext=c
28530 ac_cpp='$CPP $CPPFLAGS'
28531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28534
28535  if test "$cross_compiling" = yes; then
28536   llvmac_cv_c_printf_a=no
28537 else
28538   cat >conftest.$ac_ext <<_ACEOF
28539
28540   /* confdefs.h.  */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h.  */
28545
28546 #include <stdio.h>
28547 #include <stdlib.h>
28548
28549 int
28550 main ()
28551 {
28552
28553 volatile double A, B;
28554 char Buffer[100];
28555 A = 1;
28556 A /= 10.0;
28557 sprintf(Buffer, "%a", A);
28558 B = atof(Buffer);
28559 if (A != B)
28560   return (1);
28561 if (A != 0x1.999999999999ap-4)
28562   return (1);
28563 return (0);
28564   ;
28565   return 0;
28566 }
28567 _ACEOF
28568 rm -f conftest$ac_exeext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570   (eval $ac_link) 2>&5
28571   ac_status=$?
28572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575   (eval $ac_try) 2>&5
28576   ac_status=$?
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); }; }; then
28579   llvm_cv_c_printf_a=yes
28580 else
28581   echo "$as_me: program exited with status $ac_status" >&5
28582 echo "$as_me: failed program was:" >&5
28583 sed 's/^/| /' conftest.$ac_ext >&5
28584
28585 ( exit $ac_status )
28586 llvmac_cv_c_printf_a=no
28587 fi
28588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28589 fi
28590  ac_ext=c
28591 ac_cpp='$CPP $CPPFLAGS'
28592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28595
28596 fi
28597 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28598 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28599  if test "$llvm_cv_c_printf_a" = "yes"; then
28600
28601 cat >>confdefs.h <<\_ACEOF
28602 #define HAVE_PRINTF_A 1
28603 _ACEOF
28604
28605  fi
28606
28607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28608 # for constant arguments.  Useless!
28609 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28610 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28611 if test "${ac_cv_working_alloca_h+set}" = set; then
28612   echo $ECHO_N "(cached) $ECHO_C" >&6
28613 else
28614   cat >conftest.$ac_ext <<_ACEOF
28615 /* confdefs.h.  */
28616 _ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h.  */
28620 #include <alloca.h>
28621 int
28622 main ()
28623 {
28624 char *p = (char *) alloca (2 * sizeof (int));
28625   ;
28626   return 0;
28627 }
28628 _ACEOF
28629 rm -f conftest.$ac_objext conftest$ac_exeext
28630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28631   (eval $ac_link) 2>conftest.er1
28632   ac_status=$?
28633   grep -v '^ *+' conftest.er1 >conftest.err
28634   rm -f conftest.er1
28635   cat conftest.err >&5
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); } &&
28638          { ac_try='test -z "$ac_c_werror_flag"
28639                          || test ! -s conftest.err'
28640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641   (eval $ac_try) 2>&5
28642   ac_status=$?
28643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); }; } &&
28645          { ac_try='test -s conftest$ac_exeext'
28646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28647   (eval $ac_try) 2>&5
28648   ac_status=$?
28649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650   (exit $ac_status); }; }; then
28651   ac_cv_working_alloca_h=yes
28652 else
28653   echo "$as_me: failed program was:" >&5
28654 sed 's/^/| /' conftest.$ac_ext >&5
28655
28656 ac_cv_working_alloca_h=no
28657 fi
28658 rm -f conftest.err conftest.$ac_objext \
28659       conftest$ac_exeext conftest.$ac_ext
28660 fi
28661 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28662 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28663 if test $ac_cv_working_alloca_h = yes; then
28664
28665 cat >>confdefs.h <<\_ACEOF
28666 #define HAVE_ALLOCA_H 1
28667 _ACEOF
28668
28669 fi
28670
28671 echo "$as_me:$LINENO: checking for alloca" >&5
28672 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28673 if test "${ac_cv_func_alloca_works+set}" = set; then
28674   echo $ECHO_N "(cached) $ECHO_C" >&6
28675 else
28676   cat >conftest.$ac_ext <<_ACEOF
28677 /* confdefs.h.  */
28678 _ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h.  */
28682 #ifdef __GNUC__
28683 # define alloca __builtin_alloca
28684 #else
28685 # ifdef _MSC_VER
28686 #  include <malloc.h>
28687 #  define alloca _alloca
28688 # else
28689 #  if HAVE_ALLOCA_H
28690 #   include <alloca.h>
28691 #  else
28692 #   ifdef _AIX
28693  #pragma alloca
28694 #   else
28695 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28696 char *alloca ();
28697 #    endif
28698 #   endif
28699 #  endif
28700 # endif
28701 #endif
28702
28703 int
28704 main ()
28705 {
28706 char *p = (char *) alloca (1);
28707   ;
28708   return 0;
28709 }
28710 _ACEOF
28711 rm -f conftest.$ac_objext conftest$ac_exeext
28712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28713   (eval $ac_link) 2>conftest.er1
28714   ac_status=$?
28715   grep -v '^ *+' conftest.er1 >conftest.err
28716   rm -f conftest.er1
28717   cat conftest.err >&5
28718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719   (exit $ac_status); } &&
28720          { ac_try='test -z "$ac_c_werror_flag"
28721                          || test ! -s conftest.err'
28722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723   (eval $ac_try) 2>&5
28724   ac_status=$?
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); }; } &&
28727          { ac_try='test -s conftest$ac_exeext'
28728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729   (eval $ac_try) 2>&5
28730   ac_status=$?
28731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732   (exit $ac_status); }; }; then
28733   ac_cv_func_alloca_works=yes
28734 else
28735   echo "$as_me: failed program was:" >&5
28736 sed 's/^/| /' conftest.$ac_ext >&5
28737
28738 ac_cv_func_alloca_works=no
28739 fi
28740 rm -f conftest.err conftest.$ac_objext \
28741       conftest$ac_exeext conftest.$ac_ext
28742 fi
28743 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28744 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28745
28746 if test $ac_cv_func_alloca_works = yes; then
28747
28748 cat >>confdefs.h <<\_ACEOF
28749 #define HAVE_ALLOCA 1
28750 _ACEOF
28751
28752 else
28753   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28754 # that cause trouble.  Some versions do not even contain alloca or
28755 # contain a buggy version.  If you still want to use their alloca,
28756 # use ar to extract alloca.o from them instead of compiling alloca.c.
28757
28758 ALLOCA=alloca.$ac_objext
28759
28760 cat >>confdefs.h <<\_ACEOF
28761 #define C_ALLOCA 1
28762 _ACEOF
28763
28764
28765 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28766 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28767 if test "${ac_cv_os_cray+set}" = set; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 #if defined(CRAY) && ! defined(CRAY2)
28777 webecray
28778 #else
28779 wenotbecray
28780 #endif
28781
28782 _ACEOF
28783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28784   $EGREP "webecray" >/dev/null 2>&1; then
28785   ac_cv_os_cray=yes
28786 else
28787   ac_cv_os_cray=no
28788 fi
28789 rm -f conftest*
28790
28791 fi
28792 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28793 echo "${ECHO_T}$ac_cv_os_cray" >&6
28794 if test $ac_cv_os_cray = yes; then
28795   for ac_func in _getb67 GETB67 getb67; do
28796     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28797 echo "$as_me:$LINENO: checking for $ac_func" >&5
28798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28799 if eval "test \"\${$as_ac_var+set}\" = set"; then
28800   echo $ECHO_N "(cached) $ECHO_C" >&6
28801 else
28802   cat >conftest.$ac_ext <<_ACEOF
28803 /* confdefs.h.  */
28804 _ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h.  */
28808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28810 #define $ac_func innocuous_$ac_func
28811
28812 /* System header to define __stub macros and hopefully few prototypes,
28813     which can conflict with char $ac_func (); below.
28814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28815     <limits.h> exists even on freestanding compilers.  */
28816
28817 #ifdef __STDC__
28818 # include <limits.h>
28819 #else
28820 # include <assert.h>
28821 #endif
28822
28823 #undef $ac_func
28824
28825 /* Override any gcc2 internal prototype to avoid an error.  */
28826 #ifdef __cplusplus
28827 extern "C"
28828 {
28829 #endif
28830 /* We use char because int might match the return type of a gcc2
28831    builtin and then its argument prototype would still apply.  */
28832 char $ac_func ();
28833 /* The GNU C library defines this for functions which it implements
28834     to always fail with ENOSYS.  Some functions are actually named
28835     something starting with __ and the normal name is an alias.  */
28836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28837 choke me
28838 #else
28839 char (*f) () = $ac_func;
28840 #endif
28841 #ifdef __cplusplus
28842 }
28843 #endif
28844
28845 int
28846 main ()
28847 {
28848 return f != $ac_func;
28849   ;
28850   return 0;
28851 }
28852 _ACEOF
28853 rm -f conftest.$ac_objext conftest$ac_exeext
28854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855   (eval $ac_link) 2>conftest.er1
28856   ac_status=$?
28857   grep -v '^ *+' conftest.er1 >conftest.err
28858   rm -f conftest.er1
28859   cat conftest.err >&5
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); } &&
28862          { ac_try='test -z "$ac_c_werror_flag"
28863                          || test ! -s conftest.err'
28864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28865   (eval $ac_try) 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; } &&
28869          { ac_try='test -s conftest$ac_exeext'
28870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871   (eval $ac_try) 2>&5
28872   ac_status=$?
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); }; }; then
28875   eval "$as_ac_var=yes"
28876 else
28877   echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28879
28880 eval "$as_ac_var=no"
28881 fi
28882 rm -f conftest.err conftest.$ac_objext \
28883       conftest$ac_exeext conftest.$ac_ext
28884 fi
28885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28887 if test `eval echo '${'$as_ac_var'}'` = yes; then
28888
28889 cat >>confdefs.h <<_ACEOF
28890 #define CRAY_STACKSEG_END $ac_func
28891 _ACEOF
28892
28893     break
28894 fi
28895
28896   done
28897 fi
28898
28899 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28900 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28901 if test "${ac_cv_c_stack_direction+set}" = set; then
28902   echo $ECHO_N "(cached) $ECHO_C" >&6
28903 else
28904   if test "$cross_compiling" = yes; then
28905   ac_cv_c_stack_direction=0
28906 else
28907   cat >conftest.$ac_ext <<_ACEOF
28908 /* confdefs.h.  */
28909 _ACEOF
28910 cat confdefs.h >>conftest.$ac_ext
28911 cat >>conftest.$ac_ext <<_ACEOF
28912 /* end confdefs.h.  */
28913 int
28914 find_stack_direction ()
28915 {
28916   static char *addr = 0;
28917   auto char dummy;
28918   if (addr == 0)
28919     {
28920       addr = &dummy;
28921       return find_stack_direction ();
28922     }
28923   else
28924     return (&dummy > addr) ? 1 : -1;
28925 }
28926
28927 int
28928 main ()
28929 {
28930   exit (find_stack_direction () < 0);
28931 }
28932 _ACEOF
28933 rm -f conftest$ac_exeext
28934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28935   (eval $ac_link) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940   (eval $ac_try) 2>&5
28941   ac_status=$?
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); }; }; then
28944   ac_cv_c_stack_direction=1
28945 else
28946   echo "$as_me: program exited with status $ac_status" >&5
28947 echo "$as_me: failed program was:" >&5
28948 sed 's/^/| /' conftest.$ac_ext >&5
28949
28950 ( exit $ac_status )
28951 ac_cv_c_stack_direction=-1
28952 fi
28953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28954 fi
28955 fi
28956 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28957 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28958
28959 cat >>confdefs.h <<_ACEOF
28960 #define STACK_DIRECTION $ac_cv_c_stack_direction
28961 _ACEOF
28962
28963
28964 fi
28965
28966
28967 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28968 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28969 if test "${ac_cv_func_rand48+set}" = set; then
28970   echo $ECHO_N "(cached) $ECHO_C" >&6
28971 else
28972   ac_ext=cc
28973 ac_cpp='$CXXCPP $CPPFLAGS'
28974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28977
28978    cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984 #include <stdlib.h>
28985 int
28986 main ()
28987 {
28988 srand48(0);lrand48();drand48();
28989   ;
28990   return 0;
28991 }
28992 _ACEOF
28993 rm -f conftest.$ac_objext
28994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28995   (eval $ac_compile) 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } &&
29002          { ac_try='test -z "$ac_cxx_werror_flag"
29003                          || test ! -s conftest.err'
29004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005   (eval $ac_try) 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; } &&
29009          { ac_try='test -s conftest.$ac_objext'
29010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29011   (eval $ac_try) 2>&5
29012   ac_status=$?
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); }; }; then
29015   ac_cv_func_rand48=yes
29016 else
29017   echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ac_cv_func_rand48=no
29021 fi
29022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29023   ac_ext=c
29024 ac_cpp='$CPP $CPPFLAGS'
29025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29028
29029 fi
29030 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29031 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29032
29033 if test "$ac_cv_func_rand48" = "yes" ; then
29034
29035 cat >>confdefs.h <<\_ACEOF
29036 #define HAVE_RAND48 1
29037 _ACEOF
29038
29039 fi
29040
29041
29042 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29043 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29044 if test "${ac_cv_cxx_namespaces+set}" = set; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047   ac_ext=cc
29048 ac_cpp='$CXXCPP $CPPFLAGS'
29049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29052
29053  cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h.  */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h.  */
29059 namespace Outer { namespace Inner { int i = 0; }}
29060 int
29061 main ()
29062 {
29063 using namespace Outer::Inner; return i;
29064   ;
29065   return 0;
29066 }
29067 _ACEOF
29068 rm -f conftest.$ac_objext
29069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29070   (eval $ac_compile) 2>conftest.er1
29071   ac_status=$?
29072   grep -v '^ *+' conftest.er1 >conftest.err
29073   rm -f conftest.er1
29074   cat conftest.err >&5
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); } &&
29077          { ac_try='test -z "$ac_cxx_werror_flag"
29078                          || test ! -s conftest.err'
29079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29080   (eval $ac_try) 2>&5
29081   ac_status=$?
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); }; } &&
29084          { ac_try='test -s conftest.$ac_objext'
29085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29086   (eval $ac_try) 2>&5
29087   ac_status=$?
29088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089   (exit $ac_status); }; }; then
29090   ac_cv_cxx_namespaces=yes
29091 else
29092   echo "$as_me: failed program was:" >&5
29093 sed 's/^/| /' conftest.$ac_ext >&5
29094
29095 ac_cv_cxx_namespaces=no
29096 fi
29097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29098  ac_ext=c
29099 ac_cpp='$CPP $CPPFLAGS'
29100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29103
29104
29105 fi
29106 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29107 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29108 if test "$ac_cv_cxx_namespaces" = yes; then
29109
29110 cat >>confdefs.h <<\_ACEOF
29111 #define HAVE_NAMESPACES
29112 _ACEOF
29113
29114 fi
29115
29116 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29117 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29118 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29119   echo $ECHO_N "(cached) $ECHO_C" >&6
29120 else
29121
29122   ac_ext=cc
29123 ac_cpp='$CXXCPP $CPPFLAGS'
29124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29127
29128   cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134 #include <ext/hash_map>
29135 #ifdef HAVE_NAMESPACES
29136 using namespace std;
29137 #endif
29138 int
29139 main ()
29140 {
29141 hash_map<int, int> t;
29142   ;
29143   return 0;
29144 }
29145 _ACEOF
29146 rm -f conftest.$ac_objext
29147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29148   (eval $ac_compile) 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } &&
29155          { ac_try='test -z "$ac_cxx_werror_flag"
29156                          || test ! -s conftest.err'
29157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158   (eval $ac_try) 2>&5
29159   ac_status=$?
29160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161   (exit $ac_status); }; } &&
29162          { ac_try='test -s conftest.$ac_objext'
29163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164   (eval $ac_try) 2>&5
29165   ac_status=$?
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); }; }; then
29168   ac_cv_cxx_have_std_ext_hash_map=yes
29169 else
29170   echo "$as_me: failed program was:" >&5
29171 sed 's/^/| /' conftest.$ac_ext >&5
29172
29173 ac_cv_cxx_have_std_ext_hash_map=no
29174 fi
29175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29176   ac_ext=c
29177 ac_cpp='$CPP $CPPFLAGS'
29178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29181
29182 fi
29183 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29184 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29185  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29186  then
29187
29188 cat >>confdefs.h <<\_ACEOF
29189 #define HAVE_STD_EXT_HASH_MAP 1
29190 _ACEOF
29191
29192  else
29193
29194 cat >>confdefs.h <<\_ACEOF
29195 #define HAVE_STD_EXT_HASH_MAP 0
29196 _ACEOF
29197
29198  fi
29199
29200  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29201 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29202 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29203   echo $ECHO_N "(cached) $ECHO_C" >&6
29204 else
29205
29206   ac_ext=cc
29207 ac_cpp='$CXXCPP $CPPFLAGS'
29208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29211
29212   cat >conftest.$ac_ext <<_ACEOF
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218 #include <ext/hash_map>
29219 #ifdef HAVE_NAMESPACES
29220 using namespace __gnu_cxx;
29221 #endif
29222 int
29223 main ()
29224 {
29225 hash_map<int,int> t;
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29232   (eval $ac_compile) 2>conftest.er1
29233   ac_status=$?
29234   grep -v '^ *+' conftest.er1 >conftest.err
29235   rm -f conftest.er1
29236   cat conftest.err >&5
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); } &&
29239          { ac_try='test -z "$ac_cxx_werror_flag"
29240                          || test ! -s conftest.err'
29241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242   (eval $ac_try) 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest.$ac_objext'
29247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248   (eval $ac_try) 2>&5
29249   ac_status=$?
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); }; }; then
29252   ac_cv_cxx_have_gnu_ext_hash_map=yes
29253 else
29254   echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 ac_cv_cxx_have_gnu_ext_hash_map=no
29258 fi
29259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29260   ac_ext=c
29261 ac_cpp='$CPP $CPPFLAGS'
29262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29265
29266 fi
29267 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29268 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29269  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29270  then
29271
29272 cat >>confdefs.h <<\_ACEOF
29273 #define HAVE_GNU_EXT_HASH_MAP 1
29274 _ACEOF
29275
29276  else
29277
29278 cat >>confdefs.h <<\_ACEOF
29279 #define HAVE_GNU_EXT_HASH_MAP 0
29280 _ACEOF
29281
29282  fi
29283
29284  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29285 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29286 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29287   echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289
29290   ac_ext=cc
29291 ac_cpp='$CXXCPP $CPPFLAGS'
29292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29295
29296   cat >conftest.$ac_ext <<_ACEOF
29297 /* confdefs.h.  */
29298 _ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h.  */
29302 #include <hash_map>
29303 int
29304 main ()
29305 {
29306 hash_map<int,int> t;
29307   ;
29308   return 0;
29309 }
29310 _ACEOF
29311 rm -f conftest.$ac_objext
29312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29313   (eval $ac_compile) 2>conftest.er1
29314   ac_status=$?
29315   grep -v '^ *+' conftest.er1 >conftest.err
29316   rm -f conftest.er1
29317   cat conftest.err >&5
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); } &&
29320          { ac_try='test -z "$ac_cxx_werror_flag"
29321                          || test ! -s conftest.err'
29322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323   (eval $ac_try) 2>&5
29324   ac_status=$?
29325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326   (exit $ac_status); }; } &&
29327          { ac_try='test -s conftest.$ac_objext'
29328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29329   (eval $ac_try) 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; }; then
29333   ac_cv_cxx_have_global_hash_map=yes
29334 else
29335   echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29337
29338 ac_cv_cxx_have_global_hash_map=no
29339 fi
29340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29341   ac_ext=c
29342 ac_cpp='$CPP $CPPFLAGS'
29343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29346
29347 fi
29348 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29349 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29350  if test "$ac_cv_cxx_have_global_hash_map" = yes
29351  then
29352
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_GLOBAL_HASH_MAP 1
29355 _ACEOF
29356
29357  else
29358
29359 cat >>confdefs.h <<\_ACEOF
29360 #define HAVE_GLOBAL_HASH_MAP 0
29361 _ACEOF
29362
29363  fi
29364
29365 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29366 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29367 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370
29371   ac_ext=cc
29372 ac_cpp='$CXXCPP $CPPFLAGS'
29373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29376
29377   cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h.  */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h.  */
29383 #include <ext/hash_set>
29384 #ifdef HAVE_NAMESPACES
29385 using namespace std;
29386 #endif
29387 int
29388 main ()
29389 {
29390 hash_set<int> t;
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext
29396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29397   (eval $ac_compile) 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } &&
29404          { ac_try='test -z "$ac_cxx_werror_flag"
29405                          || test ! -s conftest.err'
29406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407   (eval $ac_try) 2>&5
29408   ac_status=$?
29409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410   (exit $ac_status); }; } &&
29411          { ac_try='test -s conftest.$ac_objext'
29412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29413   (eval $ac_try) 2>&5
29414   ac_status=$?
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); }; }; then
29417   ac_cv_cxx_have_std_ext_hash_set=yes
29418 else
29419   echo "$as_me: failed program was:" >&5
29420 sed 's/^/| /' conftest.$ac_ext >&5
29421
29422 ac_cv_cxx_have_std_ext_hash_set=no
29423 fi
29424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29425   ac_ext=c
29426 ac_cpp='$CPP $CPPFLAGS'
29427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29430
29431 fi
29432 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29433 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29434  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29435  then
29436
29437 cat >>confdefs.h <<\_ACEOF
29438 #define HAVE_STD_EXT_HASH_SET 1
29439 _ACEOF
29440
29441  else
29442
29443 cat >>confdefs.h <<\_ACEOF
29444 #define HAVE_STD_EXT_HASH_SET 0
29445 _ACEOF
29446
29447  fi
29448
29449  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29450 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29451 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29452   echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454
29455   ac_ext=cc
29456 ac_cpp='$CXXCPP $CPPFLAGS'
29457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29460
29461   cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467 #include <ext/hash_set>
29468 #ifdef HAVE_NAMESPACES
29469 using namespace __gnu_cxx;
29470 #endif
29471 int
29472 main ()
29473 {
29474 hash_set<int> t;
29475   ;
29476   return 0;
29477 }
29478 _ACEOF
29479 rm -f conftest.$ac_objext
29480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29481   (eval $ac_compile) 2>conftest.er1
29482   ac_status=$?
29483   grep -v '^ *+' conftest.er1 >conftest.err
29484   rm -f conftest.er1
29485   cat conftest.err >&5
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); } &&
29488          { ac_try='test -z "$ac_cxx_werror_flag"
29489                          || test ! -s conftest.err'
29490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491   (eval $ac_try) 2>&5
29492   ac_status=$?
29493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494   (exit $ac_status); }; } &&
29495          { ac_try='test -s conftest.$ac_objext'
29496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497   (eval $ac_try) 2>&5
29498   ac_status=$?
29499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500   (exit $ac_status); }; }; then
29501   ac_cv_cxx_have_gnu_ext_hash_set=yes
29502 else
29503   echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29505
29506 ac_cv_cxx_have_gnu_ext_hash_set=no
29507 fi
29508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29509   ac_ext=c
29510 ac_cpp='$CPP $CPPFLAGS'
29511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29514
29515 fi
29516 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29517 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29518  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29519  then
29520
29521 cat >>confdefs.h <<\_ACEOF
29522 #define HAVE_GNU_EXT_HASH_SET 1
29523 _ACEOF
29524
29525  else
29526
29527 cat >>confdefs.h <<\_ACEOF
29528 #define HAVE_GNU_EXT_HASH_SET 0
29529 _ACEOF
29530
29531  fi
29532
29533  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29534 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29535 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29536   echo $ECHO_N "(cached) $ECHO_C" >&6
29537 else
29538
29539   ac_ext=cc
29540 ac_cpp='$CXXCPP $CPPFLAGS'
29541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29544
29545   cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551 #include <hash_set>
29552 int
29553 main ()
29554 {
29555 hash_set<int> t; return 0;
29556   ;
29557   return 0;
29558 }
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29562   (eval $ac_compile) 2>conftest.er1
29563   ac_status=$?
29564   grep -v '^ *+' conftest.er1 >conftest.err
29565   rm -f conftest.er1
29566   cat conftest.err >&5
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); } &&
29569          { ac_try='test -z "$ac_cxx_werror_flag"
29570                          || test ! -s conftest.err'
29571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572   (eval $ac_try) 2>&5
29573   ac_status=$?
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); }; } &&
29576          { ac_try='test -s conftest.$ac_objext'
29577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578   (eval $ac_try) 2>&5
29579   ac_status=$?
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); }; }; then
29582   ac_cv_cxx_have_global_hash_set=yes
29583 else
29584   echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29586
29587 ac_cv_cxx_have_global_hash_set=no
29588 fi
29589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29590   ac_ext=c
29591 ac_cpp='$CPP $CPPFLAGS'
29592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29595
29596 fi
29597 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29598 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29599  if test "$ac_cv_cxx_have_global_hash_set" = yes
29600  then
29601
29602 cat >>confdefs.h <<\_ACEOF
29603 #define HAVE_GLOBAL_HASH_SET 1
29604 _ACEOF
29605
29606  else
29607
29608 cat >>confdefs.h <<\_ACEOF
29609 #define HAVE_GLOBAL_HASH_SET 0
29610 _ACEOF
29611
29612  fi
29613
29614 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29615 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29616 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29617   echo $ECHO_N "(cached) $ECHO_C" >&6
29618 else
29619
29620   ac_ext=cc
29621 ac_cpp='$CXXCPP $CPPFLAGS'
29622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29625
29626   cat >conftest.$ac_ext <<_ACEOF
29627 /* confdefs.h.  */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h.  */
29632 #include <iterator>
29633 #ifdef HAVE_NAMESPACES
29634 using namespace std;
29635 #endif
29636 int
29637 main ()
29638 {
29639 iterator<int,int,int> t; return 0;
29640   ;
29641   return 0;
29642 }
29643 _ACEOF
29644 rm -f conftest.$ac_objext
29645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29646   (eval $ac_compile) 2>conftest.er1
29647   ac_status=$?
29648   grep -v '^ *+' conftest.er1 >conftest.err
29649   rm -f conftest.er1
29650   cat conftest.err >&5
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } &&
29653          { ac_try='test -z "$ac_cxx_werror_flag"
29654                          || test ! -s conftest.err'
29655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29656   (eval $ac_try) 2>&5
29657   ac_status=$?
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); }; } &&
29660          { ac_try='test -s conftest.$ac_objext'
29661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29662   (eval $ac_try) 2>&5
29663   ac_status=$?
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); }; }; then
29666   ac_cv_cxx_have_std_iterator=yes
29667 else
29668   echo "$as_me: failed program was:" >&5
29669 sed 's/^/| /' conftest.$ac_ext >&5
29670
29671 ac_cv_cxx_have_std_iterator=no
29672 fi
29673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29674   ac_ext=c
29675 ac_cpp='$CPP $CPPFLAGS'
29676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29679
29680
29681 fi
29682 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29683 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29684 if test "$ac_cv_cxx_have_std_iterator" = yes
29685 then
29686
29687 cat >>confdefs.h <<\_ACEOF
29688 #define HAVE_STD_ITERATOR 1
29689 _ACEOF
29690
29691 else
29692
29693 cat >>confdefs.h <<\_ACEOF
29694 #define HAVE_STD_ITERATOR 0
29695 _ACEOF
29696
29697 fi
29698
29699 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29700 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29701 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29702   echo $ECHO_N "(cached) $ECHO_C" >&6
29703 else
29704
29705   ac_ext=cc
29706 ac_cpp='$CXXCPP $CPPFLAGS'
29707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29710
29711   cat >conftest.$ac_ext <<_ACEOF
29712 /* confdefs.h.  */
29713 _ACEOF
29714 cat confdefs.h >>conftest.$ac_ext
29715 cat >>conftest.$ac_ext <<_ACEOF
29716 /* end confdefs.h.  */
29717 #include <iterator>
29718 #ifdef HAVE_NAMESPACES
29719 using namespace std;
29720 #endif
29721 int
29722 main ()
29723 {
29724 bidirectional_iterator<int,int> t; return 0;
29725   ;
29726   return 0;
29727 }
29728 _ACEOF
29729 rm -f conftest.$ac_objext
29730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29731   (eval $ac_compile) 2>conftest.er1
29732   ac_status=$?
29733   grep -v '^ *+' conftest.er1 >conftest.err
29734   rm -f conftest.er1
29735   cat conftest.err >&5
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); } &&
29738          { ac_try='test -z "$ac_cxx_werror_flag"
29739                          || test ! -s conftest.err'
29740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29741   (eval $ac_try) 2>&5
29742   ac_status=$?
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); }; } &&
29745          { ac_try='test -s conftest.$ac_objext'
29746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29747   (eval $ac_try) 2>&5
29748   ac_status=$?
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); }; }; then
29751   ac_cv_cxx_have_bi_iterator=yes
29752 else
29753   echo "$as_me: failed program was:" >&5
29754 sed 's/^/| /' conftest.$ac_ext >&5
29755
29756 ac_cv_cxx_have_bi_iterator=no
29757 fi
29758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29759   ac_ext=c
29760 ac_cpp='$CPP $CPPFLAGS'
29761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29764
29765
29766 fi
29767 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29768 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29769 if test "$ac_cv_cxx_have_bi_iterator" = yes
29770 then
29771
29772 cat >>confdefs.h <<\_ACEOF
29773 #define HAVE_BI_ITERATOR 1
29774 _ACEOF
29775
29776 else
29777
29778 cat >>confdefs.h <<\_ACEOF
29779 #define HAVE_BI_ITERATOR 0
29780 _ACEOF
29781
29782 fi
29783
29784 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29785 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29786 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29787   echo $ECHO_N "(cached) $ECHO_C" >&6
29788 else
29789
29790   ac_ext=cc
29791 ac_cpp='$CXXCPP $CPPFLAGS'
29792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29795
29796   cat >conftest.$ac_ext <<_ACEOF
29797 /* confdefs.h.  */
29798 _ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h.  */
29802 #include <iterator>
29803 #ifdef HAVE_NAMESPACES
29804 using namespace std;
29805 #endif
29806 int
29807 main ()
29808 {
29809 forward_iterator<int,int> t; return 0;
29810   ;
29811   return 0;
29812 }
29813 _ACEOF
29814 rm -f conftest.$ac_objext
29815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29816   (eval $ac_compile) 2>conftest.er1
29817   ac_status=$?
29818   grep -v '^ *+' conftest.er1 >conftest.err
29819   rm -f conftest.er1
29820   cat conftest.err >&5
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); } &&
29823          { ac_try='test -z "$ac_cxx_werror_flag"
29824                          || test ! -s conftest.err'
29825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29826   (eval $ac_try) 2>&5
29827   ac_status=$?
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); }; } &&
29830          { ac_try='test -s conftest.$ac_objext'
29831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832   (eval $ac_try) 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; }; then
29836   ac_cv_cxx_have_fwd_iterator=yes
29837 else
29838   echo "$as_me: failed program was:" >&5
29839 sed 's/^/| /' conftest.$ac_ext >&5
29840
29841 ac_cv_cxx_have_fwd_iterator=no
29842 fi
29843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29844   ac_ext=c
29845 ac_cpp='$CPP $CPPFLAGS'
29846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29849
29850
29851 fi
29852 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29853 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29854 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29855 then
29856
29857 cat >>confdefs.h <<\_ACEOF
29858 #define HAVE_FWD_ITERATOR 1
29859 _ACEOF
29860
29861 else
29862
29863 cat >>confdefs.h <<\_ACEOF
29864 #define HAVE_FWD_ITERATOR 0
29865 _ACEOF
29866
29867 fi
29868
29869
29870 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29871 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29872 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29873   echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29875   ac_ext=cc
29876 ac_cpp='$CXXCPP $CPPFLAGS'
29877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29880
29881    cat >conftest.$ac_ext <<_ACEOF
29882 /* confdefs.h.  */
29883 _ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h.  */
29887 #include <math.h>
29888 int
29889 main ()
29890 {
29891 float f; isnan(f);
29892   ;
29893   return 0;
29894 }
29895 _ACEOF
29896 rm -f conftest.$ac_objext
29897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29898   (eval $ac_compile) 2>conftest.er1
29899   ac_status=$?
29900   grep -v '^ *+' conftest.er1 >conftest.err
29901   rm -f conftest.er1
29902   cat conftest.err >&5
29903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29904   (exit $ac_status); } &&
29905          { ac_try='test -z "$ac_cxx_werror_flag"
29906                          || test ! -s conftest.err'
29907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29908   (eval $ac_try) 2>&5
29909   ac_status=$?
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); }; } &&
29912          { ac_try='test -s conftest.$ac_objext'
29913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914   (eval $ac_try) 2>&5
29915   ac_status=$?
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); }; }; then
29918   ac_cv_func_isnan_in_math_h=yes
29919 else
29920   echo "$as_me: failed program was:" >&5
29921 sed 's/^/| /' conftest.$ac_ext >&5
29922
29923 ac_cv_func_isnan_in_math_h=no
29924 fi
29925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29926   ac_ext=c
29927 ac_cpp='$CPP $CPPFLAGS'
29928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29931
29932 fi
29933 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29934 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29935
29936
29937 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29938
29939 cat >>confdefs.h <<\_ACEOF
29940 #define HAVE_ISNAN_IN_MATH_H 1
29941 _ACEOF
29942
29943 fi
29944
29945 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29946 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29947 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29948   echo $ECHO_N "(cached) $ECHO_C" >&6
29949 else
29950   ac_ext=cc
29951 ac_cpp='$CXXCPP $CPPFLAGS'
29952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29955
29956    cat >conftest.$ac_ext <<_ACEOF
29957 /* confdefs.h.  */
29958 _ACEOF
29959 cat confdefs.h >>conftest.$ac_ext
29960 cat >>conftest.$ac_ext <<_ACEOF
29961 /* end confdefs.h.  */
29962 #include <cmath>
29963 int
29964 main ()
29965 {
29966 float f; isnan(f);
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 rm -f conftest.$ac_objext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29973   (eval $ac_compile) 2>conftest.er1
29974   ac_status=$?
29975   grep -v '^ *+' conftest.er1 >conftest.err
29976   rm -f conftest.er1
29977   cat conftest.err >&5
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); } &&
29980          { ac_try='test -z "$ac_cxx_werror_flag"
29981                          || test ! -s conftest.err'
29982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983   (eval $ac_try) 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; } &&
29987          { ac_try='test -s conftest.$ac_objext'
29988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989   (eval $ac_try) 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   ac_cv_func_isnan_in_cmath=yes
29994 else
29995   echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29997
29998 ac_cv_func_isnan_in_cmath=no
29999 fi
30000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30001   ac_ext=c
30002 ac_cpp='$CPP $CPPFLAGS'
30003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30006
30007 fi
30008 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30009 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30010
30011 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30012
30013 cat >>confdefs.h <<\_ACEOF
30014 #define HAVE_ISNAN_IN_CMATH 1
30015 _ACEOF
30016
30017 fi
30018
30019 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30020 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30021 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30022   echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30024   ac_ext=cc
30025 ac_cpp='$CXXCPP $CPPFLAGS'
30026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30029
30030    cat >conftest.$ac_ext <<_ACEOF
30031 /* confdefs.h.  */
30032 _ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h.  */
30036 #include <cmath>
30037 int
30038 main ()
30039 {
30040 float f; std::isnan(f);
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext
30046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30047   (eval $ac_compile) 2>conftest.er1
30048   ac_status=$?
30049   grep -v '^ *+' conftest.er1 >conftest.err
30050   rm -f conftest.er1
30051   cat conftest.err >&5
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); } &&
30054          { ac_try='test -z "$ac_cxx_werror_flag"
30055                          || test ! -s conftest.err'
30056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057   (eval $ac_try) 2>&5
30058   ac_status=$?
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); }; } &&
30061          { ac_try='test -s conftest.$ac_objext'
30062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063   (eval $ac_try) 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; }; then
30067   ac_cv_func_std_isnan_in_cmath=yes
30068 else
30069   echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30071
30072 ac_cv_func_std_isnan_in_cmath=no
30073 fi
30074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30075   ac_ext=c
30076 ac_cpp='$CPP $CPPFLAGS'
30077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30080
30081 fi
30082 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30083 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30084
30085 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30086
30087 cat >>confdefs.h <<\_ACEOF
30088 #define HAVE_STD_ISNAN_IN_CMATH 1
30089 _ACEOF
30090
30091 fi
30092
30093
30094 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30095 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30096 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30097   echo $ECHO_N "(cached) $ECHO_C" >&6
30098 else
30099   ac_ext=cc
30100 ac_cpp='$CXXCPP $CPPFLAGS'
30101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30104
30105    cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h.  */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h.  */
30111 #include <math.h>
30112 int
30113 main ()
30114 {
30115 float f; isinf(f);
30116   ;
30117   return 0;
30118 }
30119 _ACEOF
30120 rm -f conftest.$ac_objext
30121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30122   (eval $ac_compile) 2>conftest.er1
30123   ac_status=$?
30124   grep -v '^ *+' conftest.er1 >conftest.err
30125   rm -f conftest.er1
30126   cat conftest.err >&5
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); } &&
30129          { ac_try='test -z "$ac_cxx_werror_flag"
30130                          || test ! -s conftest.err'
30131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132   (eval $ac_try) 2>&5
30133   ac_status=$?
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); }; } &&
30136          { ac_try='test -s conftest.$ac_objext'
30137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30138   (eval $ac_try) 2>&5
30139   ac_status=$?
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); }; }; then
30142   ac_cv_func_isinf_in_math_h=yes
30143 else
30144   echo "$as_me: failed program was:" >&5
30145 sed 's/^/| /' conftest.$ac_ext >&5
30146
30147 ac_cv_func_isinf_in_math_h=no
30148 fi
30149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30150   ac_ext=c
30151 ac_cpp='$CPP $CPPFLAGS'
30152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30155
30156 fi
30157 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30158 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30159
30160 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30161
30162 cat >>confdefs.h <<\_ACEOF
30163 #define HAVE_ISINF_IN_MATH_H 1
30164 _ACEOF
30165
30166 fi
30167
30168 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30169 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30170 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30171   echo $ECHO_N "(cached) $ECHO_C" >&6
30172 else
30173   ac_ext=cc
30174 ac_cpp='$CXXCPP $CPPFLAGS'
30175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30178
30179    cat >conftest.$ac_ext <<_ACEOF
30180 /* confdefs.h.  */
30181 _ACEOF
30182 cat confdefs.h >>conftest.$ac_ext
30183 cat >>conftest.$ac_ext <<_ACEOF
30184 /* end confdefs.h.  */
30185 #include <cmath>
30186 int
30187 main ()
30188 {
30189 float f; isinf(f);
30190   ;
30191   return 0;
30192 }
30193 _ACEOF
30194 rm -f conftest.$ac_objext
30195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30196   (eval $ac_compile) 2>conftest.er1
30197   ac_status=$?
30198   grep -v '^ *+' conftest.er1 >conftest.err
30199   rm -f conftest.er1
30200   cat conftest.err >&5
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); } &&
30203          { ac_try='test -z "$ac_cxx_werror_flag"
30204                          || test ! -s conftest.err'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; } &&
30210          { ac_try='test -s conftest.$ac_objext'
30211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212   (eval $ac_try) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; }; then
30216   ac_cv_func_isinf_in_cmath=yes
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221 ac_cv_func_isinf_in_cmath=no
30222 fi
30223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30224   ac_ext=c
30225 ac_cpp='$CPP $CPPFLAGS'
30226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229
30230 fi
30231 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30232 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30233
30234 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30235
30236 cat >>confdefs.h <<\_ACEOF
30237 #define HAVE_ISINF_IN_CMATH 1
30238 _ACEOF
30239
30240 fi
30241
30242 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30243 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30244 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30245   echo $ECHO_N "(cached) $ECHO_C" >&6
30246 else
30247   ac_ext=cc
30248 ac_cpp='$CXXCPP $CPPFLAGS'
30249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30252
30253    cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259 #include <cmath>
30260 int
30261 main ()
30262 {
30263 float f; std::isinf(f)}
30264   ;
30265   return 0;
30266 }
30267 _ACEOF
30268 rm -f conftest.$ac_objext
30269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30270   (eval $ac_compile) 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } &&
30277          { ac_try='test -z "$ac_cxx_werror_flag"
30278                          || test ! -s conftest.err'
30279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280   (eval $ac_try) 2>&5
30281   ac_status=$?
30282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283   (exit $ac_status); }; } &&
30284          { ac_try='test -s conftest.$ac_objext'
30285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286   (eval $ac_try) 2>&5
30287   ac_status=$?
30288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289   (exit $ac_status); }; }; then
30290   ac_cv_func_std_isinf_in_cmath=yes
30291 else
30292   echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30294
30295 ac_cv_func_std_isinf_in_cmath=no
30296 fi
30297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30298   ac_ext=c
30299 ac_cpp='$CPP $CPPFLAGS'
30300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30303
30304 fi
30305 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30306 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30307
30308 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30309
30310 cat >>confdefs.h <<\_ACEOF
30311 #define HAVE_STD_ISINF_IN_CMATH 1
30312 _ACEOF
30313
30314 fi
30315
30316 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30317 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30318 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30319   echo $ECHO_N "(cached) $ECHO_C" >&6
30320 else
30321   ac_ext=cc
30322 ac_cpp='$CXXCPP $CPPFLAGS'
30323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30326
30327    cat >conftest.$ac_ext <<_ACEOF
30328 /* confdefs.h.  */
30329 _ACEOF
30330 cat confdefs.h >>conftest.$ac_ext
30331 cat >>conftest.$ac_ext <<_ACEOF
30332 /* end confdefs.h.  */
30333 #include <ieeefp.h>
30334 int
30335 main ()
30336 {
30337 float f; finite(f);
30338   ;
30339   return 0;
30340 }
30341 _ACEOF
30342 rm -f conftest.$ac_objext
30343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30344   (eval $ac_compile) 2>conftest.er1
30345   ac_status=$?
30346   grep -v '^ *+' conftest.er1 >conftest.err
30347   rm -f conftest.er1
30348   cat conftest.err >&5
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); } &&
30351          { ac_try='test -z "$ac_cxx_werror_flag"
30352                          || test ! -s conftest.err'
30353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30354   (eval $ac_try) 2>&5
30355   ac_status=$?
30356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357   (exit $ac_status); }; } &&
30358          { ac_try='test -s conftest.$ac_objext'
30359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30360   (eval $ac_try) 2>&5
30361   ac_status=$?
30362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363   (exit $ac_status); }; }; then
30364   ac_cv_func_finite_in_ieeefp_h=yes
30365 else
30366   echo "$as_me: failed program was:" >&5
30367 sed 's/^/| /' conftest.$ac_ext >&5
30368
30369 ac_cv_func_finite_in_ieeefp_h=no
30370 fi
30371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30372   ac_ext=c
30373 ac_cpp='$CPP $CPPFLAGS'
30374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30377
30378 fi
30379 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30380 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30381
30382 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30383
30384 cat >>confdefs.h <<\_ACEOF
30385 #define HAVE_FINITE_IN_IEEEFP_H 1
30386 _ACEOF
30387
30388 fi
30389
30390
30391
30392
30393
30394 for ac_header in stdlib.h unistd.h
30395 do
30396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30398   echo "$as_me:$LINENO: checking for $ac_header" >&5
30399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30401   echo $ECHO_N "(cached) $ECHO_C" >&6
30402 fi
30403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30405 else
30406   # Is the header compilable?
30407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30409 cat >conftest.$ac_ext <<_ACEOF
30410 /* confdefs.h.  */
30411 _ACEOF
30412 cat confdefs.h >>conftest.$ac_ext
30413 cat >>conftest.$ac_ext <<_ACEOF
30414 /* end confdefs.h.  */
30415 $ac_includes_default
30416 #include <$ac_header>
30417 _ACEOF
30418 rm -f conftest.$ac_objext
30419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30420   (eval $ac_compile) 2>conftest.er1
30421   ac_status=$?
30422   grep -v '^ *+' conftest.er1 >conftest.err
30423   rm -f conftest.er1
30424   cat conftest.err >&5
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } &&
30427          { ac_try='test -z "$ac_c_werror_flag"
30428                          || test ! -s conftest.err'
30429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430   (eval $ac_try) 2>&5
30431   ac_status=$?
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); }; } &&
30434          { ac_try='test -s conftest.$ac_objext'
30435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436   (eval $ac_try) 2>&5
30437   ac_status=$?
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); }; }; then
30440   ac_header_compiler=yes
30441 else
30442   echo "$as_me: failed program was:" >&5
30443 sed 's/^/| /' conftest.$ac_ext >&5
30444
30445 ac_header_compiler=no
30446 fi
30447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30449 echo "${ECHO_T}$ac_header_compiler" >&6
30450
30451 # Is the header present?
30452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30454 cat >conftest.$ac_ext <<_ACEOF
30455 /* confdefs.h.  */
30456 _ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h.  */
30460 #include <$ac_header>
30461 _ACEOF
30462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30463   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } >/dev/null; then
30470   if test -s conftest.err; then
30471     ac_cpp_err=$ac_c_preproc_warn_flag
30472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30473   else
30474     ac_cpp_err=
30475   fi
30476 else
30477   ac_cpp_err=yes
30478 fi
30479 if test -z "$ac_cpp_err"; then
30480   ac_header_preproc=yes
30481 else
30482   echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30484
30485   ac_header_preproc=no
30486 fi
30487 rm -f conftest.err conftest.$ac_ext
30488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30489 echo "${ECHO_T}$ac_header_preproc" >&6
30490
30491 # So?  What about this header?
30492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30493   yes:no: )
30494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30498     ac_header_preproc=yes
30499     ;;
30500   no:yes:* )
30501     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30503     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30504 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30505     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30507     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30508 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30511     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30513     (
30514       cat <<\_ASBOX
30515 ## ----------------------------------- ##
30516 ## Report this to llvmbugs@cs.uiuc.edu ##
30517 ## ----------------------------------- ##
30518 _ASBOX
30519     ) |
30520       sed "s/^/$as_me: WARNING:     /" >&2
30521     ;;
30522 esac
30523 echo "$as_me:$LINENO: checking for $ac_header" >&5
30524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30526   echo $ECHO_N "(cached) $ECHO_C" >&6
30527 else
30528   eval "$as_ac_Header=\$ac_header_preproc"
30529 fi
30530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30532
30533 fi
30534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30535   cat >>confdefs.h <<_ACEOF
30536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30537 _ACEOF
30538
30539 fi
30540
30541 done
30542
30543
30544 for ac_func in getpagesize
30545 do
30546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30547 echo "$as_me:$LINENO: checking for $ac_func" >&5
30548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30549 if eval "test \"\${$as_ac_var+set}\" = set"; then
30550   echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552   cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30560 #define $ac_func innocuous_$ac_func
30561
30562 /* System header to define __stub macros and hopefully few prototypes,
30563     which can conflict with char $ac_func (); below.
30564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30565     <limits.h> exists even on freestanding compilers.  */
30566
30567 #ifdef __STDC__
30568 # include <limits.h>
30569 #else
30570 # include <assert.h>
30571 #endif
30572
30573 #undef $ac_func
30574
30575 /* Override any gcc2 internal prototype to avoid an error.  */
30576 #ifdef __cplusplus
30577 extern "C"
30578 {
30579 #endif
30580 /* We use char because int might match the return type of a gcc2
30581    builtin and then its argument prototype would still apply.  */
30582 char $ac_func ();
30583 /* The GNU C library defines this for functions which it implements
30584     to always fail with ENOSYS.  Some functions are actually named
30585     something starting with __ and the normal name is an alias.  */
30586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30587 choke me
30588 #else
30589 char (*f) () = $ac_func;
30590 #endif
30591 #ifdef __cplusplus
30592 }
30593 #endif
30594
30595 int
30596 main ()
30597 {
30598 return f != $ac_func;
30599   ;
30600   return 0;
30601 }
30602 _ACEOF
30603 rm -f conftest.$ac_objext conftest$ac_exeext
30604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30605   (eval $ac_link) 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } &&
30612          { ac_try='test -z "$ac_c_werror_flag"
30613                          || test ! -s conftest.err'
30614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615   (eval $ac_try) 2>&5
30616   ac_status=$?
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); }; } &&
30619          { ac_try='test -s conftest$ac_exeext'
30620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621   (eval $ac_try) 2>&5
30622   ac_status=$?
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); }; }; then
30625   eval "$as_ac_var=yes"
30626 else
30627   echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30629
30630 eval "$as_ac_var=no"
30631 fi
30632 rm -f conftest.err conftest.$ac_objext \
30633       conftest$ac_exeext conftest.$ac_ext
30634 fi
30635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30637 if test `eval echo '${'$as_ac_var'}'` = yes; then
30638   cat >>confdefs.h <<_ACEOF
30639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30640 _ACEOF
30641
30642 fi
30643 done
30644
30645 echo "$as_me:$LINENO: checking for working mmap" >&5
30646 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30647 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30648   echo $ECHO_N "(cached) $ECHO_C" >&6
30649 else
30650   if test "$cross_compiling" = yes; then
30651   ac_cv_func_mmap_fixed_mapped=no
30652 else
30653   cat >conftest.$ac_ext <<_ACEOF
30654 /* confdefs.h.  */
30655 _ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h.  */
30659 $ac_includes_default
30660 /* malloc might have been renamed as rpl_malloc. */
30661 #undef malloc
30662
30663 /* Thanks to Mike Haertel and Jim Avera for this test.
30664    Here is a matrix of mmap possibilities:
30665         mmap private not fixed
30666         mmap private fixed at somewhere currently unmapped
30667         mmap private fixed at somewhere already mapped
30668         mmap shared not fixed
30669         mmap shared fixed at somewhere currently unmapped
30670         mmap shared fixed at somewhere already mapped
30671    For private mappings, we should verify that changes cannot be read()
30672    back from the file, nor mmap's back from the file at a different
30673    address.  (There have been systems where private was not correctly
30674    implemented like the infamous i386 svr4.0, and systems where the
30675    VM page cache was not coherent with the file system buffer cache
30676    like early versions of FreeBSD and possibly contemporary NetBSD.)
30677    For shared mappings, we should conversely verify that changes get
30678    propagated back to all the places they're supposed to be.
30679
30680    Grep wants private fixed already mapped.
30681    The main things grep needs to know about mmap are:
30682    * does it exist and is it safe to write into the mmap'd area
30683    * how to use it (BSD variants)  */
30684
30685 #include <fcntl.h>
30686 #include <sys/mman.h>
30687
30688 #if !STDC_HEADERS && !HAVE_STDLIB_H
30689 char *malloc ();
30690 #endif
30691
30692 /* This mess was copied from the GNU getpagesize.h.  */
30693 #if !HAVE_GETPAGESIZE
30694 /* Assume that all systems that can run configure have sys/param.h.  */
30695 # if !HAVE_SYS_PARAM_H
30696 #  define HAVE_SYS_PARAM_H 1
30697 # endif
30698
30699 # ifdef _SC_PAGESIZE
30700 #  define getpagesize() sysconf(_SC_PAGESIZE)
30701 # else /* no _SC_PAGESIZE */
30702 #  if HAVE_SYS_PARAM_H
30703 #   include <sys/param.h>
30704 #   ifdef EXEC_PAGESIZE
30705 #    define getpagesize() EXEC_PAGESIZE
30706 #   else /* no EXEC_PAGESIZE */
30707 #    ifdef NBPG
30708 #     define getpagesize() NBPG * CLSIZE
30709 #     ifndef CLSIZE
30710 #      define CLSIZE 1
30711 #     endif /* no CLSIZE */
30712 #    else /* no NBPG */
30713 #     ifdef NBPC
30714 #      define getpagesize() NBPC
30715 #     else /* no NBPC */
30716 #      ifdef PAGESIZE
30717 #       define getpagesize() PAGESIZE
30718 #      endif /* PAGESIZE */
30719 #     endif /* no NBPC */
30720 #    endif /* no NBPG */
30721 #   endif /* no EXEC_PAGESIZE */
30722 #  else /* no HAVE_SYS_PARAM_H */
30723 #   define getpagesize() 8192   /* punt totally */
30724 #  endif /* no HAVE_SYS_PARAM_H */
30725 # endif /* no _SC_PAGESIZE */
30726
30727 #endif /* no HAVE_GETPAGESIZE */
30728
30729 int
30730 main ()
30731 {
30732   char *data, *data2, *data3;
30733   int i, pagesize;
30734   int fd;
30735
30736   pagesize = getpagesize ();
30737
30738   /* First, make a file with some known garbage in it. */
30739   data = (char *) malloc (pagesize);
30740   if (!data)
30741     exit (1);
30742   for (i = 0; i < pagesize; ++i)
30743     *(data + i) = rand ();
30744   umask (0);
30745   fd = creat ("conftest.mmap", 0600);
30746   if (fd < 0)
30747     exit (1);
30748   if (write (fd, data, pagesize) != pagesize)
30749     exit (1);
30750   close (fd);
30751
30752   /* Next, try to mmap the file at a fixed address which already has
30753      something else allocated at it.  If we can, also make sure that
30754      we see the same garbage.  */
30755   fd = open ("conftest.mmap", O_RDWR);
30756   if (fd < 0)
30757     exit (1);
30758   data2 = (char *) malloc (2 * pagesize);
30759   if (!data2)
30760     exit (1);
30761   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30762   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30763                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30764     exit (1);
30765   for (i = 0; i < pagesize; ++i)
30766     if (*(data + i) != *(data2 + i))
30767       exit (1);
30768
30769   /* Finally, make sure that changes to the mapped area do not
30770      percolate back to the file as seen by read().  (This is a bug on
30771      some variants of i386 svr4.0.)  */
30772   for (i = 0; i < pagesize; ++i)
30773     *(data2 + i) = *(data2 + i) + 1;
30774   data3 = (char *) malloc (pagesize);
30775   if (!data3)
30776     exit (1);
30777   if (read (fd, data3, pagesize) != pagesize)
30778     exit (1);
30779   for (i = 0; i < pagesize; ++i)
30780     if (*(data + i) != *(data3 + i))
30781       exit (1);
30782   close (fd);
30783   exit (0);
30784 }
30785 _ACEOF
30786 rm -f conftest$ac_exeext
30787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30788   (eval $ac_link) 2>&5
30789   ac_status=$?
30790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793   (eval $ac_try) 2>&5
30794   ac_status=$?
30795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796   (exit $ac_status); }; }; then
30797   ac_cv_func_mmap_fixed_mapped=yes
30798 else
30799   echo "$as_me: program exited with status $ac_status" >&5
30800 echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803 ( exit $ac_status )
30804 ac_cv_func_mmap_fixed_mapped=no
30805 fi
30806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30807 fi
30808 fi
30809 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30810 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30811 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30812
30813 cat >>confdefs.h <<\_ACEOF
30814 #define HAVE_MMAP 1
30815 _ACEOF
30816
30817 fi
30818 rm -f conftest.mmap
30819
30820 echo "$as_me:$LINENO: checking for mmap of files" >&5
30821 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30822 if test "${ac_cv_func_mmap_file+set}" = set; then
30823   echo $ECHO_N "(cached) $ECHO_C" >&6
30824 else
30825    ac_ext=c
30826 ac_cpp='$CPP $CPPFLAGS'
30827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30830
30831   if test "$cross_compiling" = yes; then
30832   ac_cv_func_mmap_file=no
30833 else
30834   cat >conftest.$ac_ext <<_ACEOF
30835
30836     /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30841
30842 #include <sys/types.h>
30843 #include <sys/mman.h>
30844 #include <fcntl.h>
30845
30846 int
30847 main ()
30848 {
30849
30850   int fd;
30851   fd = creat ("foo",0777);
30852   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30853   unlink ("foo");
30854   return (fd != (int) MAP_FAILED);
30855   ;
30856   return 0;
30857 }
30858 _ACEOF
30859 rm -f conftest$ac_exeext
30860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30861   (eval $ac_link) 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30866   (eval $ac_try) 2>&5
30867   ac_status=$?
30868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869   (exit $ac_status); }; }; then
30870   ac_cv_func_mmap_file=yes
30871 else
30872   echo "$as_me: program exited with status $ac_status" >&5
30873 echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30875
30876 ( exit $ac_status )
30877 ac_cv_func_mmap_file=no
30878 fi
30879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30880 fi
30881   ac_ext=c
30882 ac_cpp='$CPP $CPPFLAGS'
30883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30886
30887
30888 fi
30889 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30890 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30891 if test "$ac_cv_func_mmap_file" = yes; then
30892
30893 cat >>confdefs.h <<\_ACEOF
30894 #define HAVE_MMAP_FILE
30895 _ACEOF
30896
30897    MMAP_FILE=yes
30898
30899 fi
30900
30901 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30902 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30903 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30904   echo $ECHO_N "(cached) $ECHO_C" >&6
30905 else
30906   if test "$llvm_cv_os_type" = "Interix" ; then
30907    ac_cv_need_dev_zero_for_mmap=yes
30908  else
30909    ac_cv_need_dev_zero_for_mmap=no
30910  fi
30911
30912 fi
30913 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30914 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30915 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30916
30917 cat >>confdefs.h <<\_ACEOF
30918 #define NEED_DEV_ZERO_FOR_MMAP 1
30919 _ACEOF
30920
30921 fi
30922 echo "$as_me:$LINENO: checking for mprotect" >&5
30923 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30924 if test "${ac_cv_func_mprotect+set}" = set; then
30925   echo $ECHO_N "(cached) $ECHO_C" >&6
30926 else
30927   cat >conftest.$ac_ext <<_ACEOF
30928 /* confdefs.h.  */
30929 _ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h.  */
30933 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30935 #define mprotect innocuous_mprotect
30936
30937 /* System header to define __stub macros and hopefully few prototypes,
30938     which can conflict with char mprotect (); below.
30939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940     <limits.h> exists even on freestanding compilers.  */
30941
30942 #ifdef __STDC__
30943 # include <limits.h>
30944 #else
30945 # include <assert.h>
30946 #endif
30947
30948 #undef mprotect
30949
30950 /* Override any gcc2 internal prototype to avoid an error.  */
30951 #ifdef __cplusplus
30952 extern "C"
30953 {
30954 #endif
30955 /* We use char because int might match the return type of a gcc2
30956    builtin and then its argument prototype would still apply.  */
30957 char mprotect ();
30958 /* The GNU C library defines this for functions which it implements
30959     to always fail with ENOSYS.  Some functions are actually named
30960     something starting with __ and the normal name is an alias.  */
30961 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30962 choke me
30963 #else
30964 char (*f) () = mprotect;
30965 #endif
30966 #ifdef __cplusplus
30967 }
30968 #endif
30969
30970 int
30971 main ()
30972 {
30973 return f != mprotect;
30974   ;
30975   return 0;
30976 }
30977 _ACEOF
30978 rm -f conftest.$ac_objext conftest$ac_exeext
30979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30980   (eval $ac_link) 2>conftest.er1
30981   ac_status=$?
30982   grep -v '^ *+' conftest.er1 >conftest.err
30983   rm -f conftest.er1
30984   cat conftest.err >&5
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); } &&
30987          { ac_try='test -z "$ac_c_werror_flag"
30988                          || test ! -s conftest.err'
30989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990   (eval $ac_try) 2>&5
30991   ac_status=$?
30992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993   (exit $ac_status); }; } &&
30994          { ac_try='test -s conftest$ac_exeext'
30995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996   (eval $ac_try) 2>&5
30997   ac_status=$?
30998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999   (exit $ac_status); }; }; then
31000   ac_cv_func_mprotect=yes
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005 ac_cv_func_mprotect=no
31006 fi
31007 rm -f conftest.err conftest.$ac_objext \
31008       conftest$ac_exeext conftest.$ac_ext
31009 fi
31010 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31011 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31012 if test $ac_cv_func_mprotect = yes; then
31013   :
31014 else
31015   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31016 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31017    { (exit 1); exit 1; }; }
31018 fi
31019
31020
31021 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31022 then
31023   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31024 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31025 fi
31026 if test "$ac_cv_func_mmap_file" = "no"
31027 then
31028   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31029 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31030 fi
31031
31032
31033 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31034 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31035 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31036   echo $ECHO_N "(cached) $ECHO_C" >&6
31037 else
31038   llvm_cv_llvmgcc_sanity="no"
31039 if test -x "$LLVMGCC" ; then
31040   cp /dev/null conftest.c
31041   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31042   if test $? -eq 0 ; then
31043     llvm_cv_llvmgcc_sanity="yes"
31044   fi
31045   rm conftest.c
31046 fi
31047 fi
31048 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31049 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31050
31051 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31052   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31053   LLVMCC1=$llvmcc1path
31054
31055   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31056   LLVMCC1PLUS=$llvmcc1pluspath
31057
31058   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31059   LLVMGCCDIR=$llvmgccdir
31060
31061   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31062   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31063   LLVMGCC_VERSION=$llvmgccversion
31064
31065   LLVMGCC_MAJVERS=$llvmgccmajvers
31066
31067 fi
31068
31069 SHLIBEXT=$libltdl_cv_shlibext
31070
31071
31072 # Translate the various configuration directories and other basic
31073 # information into substitutions that will end up in Makefile.config.in
31074 # that these configured values can be used by the makefiles
31075 if test "${prefix}" == "NONE" ; then
31076   prefix="/usr/local"
31077 fi
31078 eval LLVM_PREFIX="${prefix}";
31079 eval LLVM_BINDIR="${prefix}/bin";
31080 eval LLVM_LIBDIR="${prefix}/lib";
31081 eval LLVM_DATADIR="${prefix}/share/llvm";
31082 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31083 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31084 eval LLVM_INCLUDEDIR="${prefix}/include";
31085 eval LLVM_INFODIR="${prefix}/info";
31086 eval LLVM_MANDIR="${prefix}/man";
31087 LLVM_CONFIGTIME=`date`
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099 # Place the various directores into the config.h file as #defines so that we
31100 # can know about the installation paths within LLVM.
31101
31102 cat >>confdefs.h <<_ACEOF
31103 #define LLVM_PREFIX "$LLVM_PREFIX"
31104 _ACEOF
31105
31106
31107 cat >>confdefs.h <<_ACEOF
31108 #define LLVM_BINDIR "$LLVM_BINDIR"
31109 _ACEOF
31110
31111
31112 cat >>confdefs.h <<_ACEOF
31113 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31114 _ACEOF
31115
31116
31117 cat >>confdefs.h <<_ACEOF
31118 #define LLVM_DATADIR "$LLVM_DATADIR"
31119 _ACEOF
31120
31121
31122 cat >>confdefs.h <<_ACEOF
31123 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31124 _ACEOF
31125
31126
31127 cat >>confdefs.h <<_ACEOF
31128 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31129 _ACEOF
31130
31131
31132 cat >>confdefs.h <<_ACEOF
31133 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31134 _ACEOF
31135
31136
31137 cat >>confdefs.h <<_ACEOF
31138 #define LLVM_INFODIR "$LLVM_INFODIR"
31139 _ACEOF
31140
31141
31142 cat >>confdefs.h <<_ACEOF
31143 #define LLVM_MANDIR "$LLVM_MANDIR"
31144 _ACEOF
31145
31146
31147 cat >>confdefs.h <<_ACEOF
31148 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31149 _ACEOF
31150
31151
31152
31153           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31154
31155           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31156
31157           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31158
31159           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31160
31161           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31162
31163
31164           ac_config_files="$ac_config_files Makefile.config"
31165
31166
31167           ac_config_files="$ac_config_files docs/doxygen.cfg"
31168
31169
31170           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31171
31172
31173           ac_config_commands="$ac_config_commands setup"
31174
31175           ac_config_commands="$ac_config_commands Makefile"
31176
31177
31178           ac_config_commands="$ac_config_commands Makefile.common"
31179
31180
31181           ac_config_commands="$ac_config_commands examples/Makefile"
31182
31183
31184           ac_config_commands="$ac_config_commands lib/Makefile"
31185
31186
31187           ac_config_commands="$ac_config_commands runtime/Makefile"
31188
31189
31190           ac_config_commands="$ac_config_commands test/Makefile"
31191
31192
31193           ac_config_commands="$ac_config_commands test/Makefile.tests"
31194
31195
31196           ac_config_commands="$ac_config_commands tools/Makefile"
31197
31198
31199           ac_config_commands="$ac_config_commands utils/Makefile"
31200
31201
31202           ac_config_commands="$ac_config_commands projects/Makefile"
31203
31204
31205
31206 cat >confcache <<\_ACEOF
31207 # This file is a shell script that caches the results of configure
31208 # tests run on this system so they can be shared between configure
31209 # scripts and configure runs, see configure's option --config-cache.
31210 # It is not useful on other systems.  If it contains results you don't
31211 # want to keep, you may remove or edit it.
31212 #
31213 # config.status only pays attention to the cache file if you give it
31214 # the --recheck option to rerun configure.
31215 #
31216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31218 # following values.
31219
31220 _ACEOF
31221
31222 # The following way of writing the cache mishandles newlines in values,
31223 # but we know of no workaround that is simple, portable, and efficient.
31224 # So, don't put newlines in cache variables' values.
31225 # Ultrix sh set writes to stderr and can't be redirected directly,
31226 # and sets the high bit in the cache file unless we assign to the vars.
31227 {
31228   (set) 2>&1 |
31229     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31230     *ac_space=\ *)
31231       # `set' does not quote correctly, so add quotes (double-quote
31232       # substitution turns \\\\ into \\, and sed turns \\ into \).
31233       sed -n \
31234         "s/'/'\\\\''/g;
31235           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31236       ;;
31237     *)
31238       # `set' quotes correctly as required by POSIX, so do not add quotes.
31239       sed -n \
31240         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31241       ;;
31242     esac;
31243 } |
31244   sed '
31245      t clear
31246      : clear
31247      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31248      t end
31249      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31250      : end' >>confcache
31251 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31252   if test -w $cache_file; then
31253     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31254     cat confcache >$cache_file
31255   else
31256     echo "not updating unwritable cache $cache_file"
31257   fi
31258 fi
31259 rm -f confcache
31260
31261 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31262 # Let make expand exec_prefix.
31263 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31264
31265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31267 # trailing colons and then remove the whole line if VPATH becomes empty
31268 # (actually we leave an empty line to preserve line numbers).
31269 if test "x$srcdir" = x.; then
31270   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31271 s/:*\$(srcdir):*/:/;
31272 s/:*\${srcdir}:*/:/;
31273 s/:*@srcdir@:*/:/;
31274 s/^\([^=]*=[     ]*\):*/\1/;
31275 s/:*$//;
31276 s/^[^=]*=[       ]*$//;
31277 }'
31278 fi
31279
31280 DEFS=-DHAVE_CONFIG_H
31281
31282 ac_libobjs=
31283 ac_ltlibobjs=
31284 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31285   # 1. Remove the extension, and $U if already installed.
31286   ac_i=`echo "$ac_i" |
31287          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31288   # 2. Add them.
31289   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31290   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31291 done
31292 LIBOBJS=$ac_libobjs
31293
31294 LTLIBOBJS=$ac_ltlibobjs
31295
31296
31297 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31298   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31299 Usually this means the macro was only invoked conditionally." >&5
31300 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31301 Usually this means the macro was only invoked conditionally." >&2;}
31302    { (exit 1); exit 1; }; }
31303 fi
31304 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31305   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31306 Usually this means the macro was only invoked conditionally." >&5
31307 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31308 Usually this means the macro was only invoked conditionally." >&2;}
31309    { (exit 1); exit 1; }; }
31310 fi
31311
31312 : ${CONFIG_STATUS=./config.status}
31313 ac_clean_files_save=$ac_clean_files
31314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31316 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31317 cat >$CONFIG_STATUS <<_ACEOF
31318 #! $SHELL
31319 # Generated by $as_me.
31320 # Run this file to recreate the current configuration.
31321 # Compiler output produced by configure, useful for debugging
31322 # configure, is in config.log if it exists.
31323
31324 debug=false
31325 ac_cs_recheck=false
31326 ac_cs_silent=false
31327 SHELL=\${CONFIG_SHELL-$SHELL}
31328 _ACEOF
31329
31330 cat >>$CONFIG_STATUS <<\_ACEOF
31331 ## --------------------- ##
31332 ## M4sh Initialization.  ##
31333 ## --------------------- ##
31334
31335 # Be Bourne compatible
31336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31337   emulate sh
31338   NULLCMD=:
31339   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31340   # is contrary to our usage.  Disable this feature.
31341   alias -g '${1+"$@"}'='"$@"'
31342 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31343   set -o posix
31344 fi
31345 DUALCASE=1; export DUALCASE # for MKS sh
31346
31347 # Support unset when possible.
31348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31349   as_unset=unset
31350 else
31351   as_unset=false
31352 fi
31353
31354
31355 # Work around bugs in pre-3.0 UWIN ksh.
31356 $as_unset ENV MAIL MAILPATH
31357 PS1='$ '
31358 PS2='> '
31359 PS4='+ '
31360
31361 # NLS nuisances.
31362 for as_var in \
31363   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31364   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31365   LC_TELEPHONE LC_TIME
31366 do
31367   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31368     eval $as_var=C; export $as_var
31369   else
31370     $as_unset $as_var
31371   fi
31372 done
31373
31374 # Required to use basename.
31375 if expr a : '\(a\)' >/dev/null 2>&1; then
31376   as_expr=expr
31377 else
31378   as_expr=false
31379 fi
31380
31381 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31382   as_basename=basename
31383 else
31384   as_basename=false
31385 fi
31386
31387
31388 # Name of the executable.
31389 as_me=`$as_basename "$0" ||
31390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31391          X"$0" : 'X\(//\)$' \| \
31392          X"$0" : 'X\(/\)$' \| \
31393          .     : '\(.\)' 2>/dev/null ||
31394 echo X/"$0" |
31395     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31396           /^X\/\(\/\/\)$/{ s//\1/; q; }
31397           /^X\/\(\/\).*/{ s//\1/; q; }
31398           s/.*/./; q'`
31399
31400
31401 # PATH needs CR, and LINENO needs CR and PATH.
31402 # Avoid depending upon Character Ranges.
31403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31406 as_cr_digits='0123456789'
31407 as_cr_alnum=$as_cr_Letters$as_cr_digits
31408
31409 # The user is always right.
31410 if test "${PATH_SEPARATOR+set}" != set; then
31411   echo "#! /bin/sh" >conf$$.sh
31412   echo  "exit 0"   >>conf$$.sh
31413   chmod +x conf$$.sh
31414   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31415     PATH_SEPARATOR=';'
31416   else
31417     PATH_SEPARATOR=:
31418   fi
31419   rm -f conf$$.sh
31420 fi
31421
31422
31423   as_lineno_1=$LINENO
31424   as_lineno_2=$LINENO
31425   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31426   test "x$as_lineno_1" != "x$as_lineno_2" &&
31427   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31428   # Find who we are.  Look in the path if we contain no path at all
31429   # relative or not.
31430   case $0 in
31431     *[\\/]* ) as_myself=$0 ;;
31432     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433 for as_dir in $PATH
31434 do
31435   IFS=$as_save_IFS
31436   test -z "$as_dir" && as_dir=.
31437   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31438 done
31439
31440        ;;
31441   esac
31442   # We did not find ourselves, most probably we were run as `sh COMMAND'
31443   # in which case we are not to be found in the path.
31444   if test "x$as_myself" = x; then
31445     as_myself=$0
31446   fi
31447   if test ! -f "$as_myself"; then
31448     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31449 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31450    { (exit 1); exit 1; }; }
31451   fi
31452   case $CONFIG_SHELL in
31453   '')
31454     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31455 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31456 do
31457   IFS=$as_save_IFS
31458   test -z "$as_dir" && as_dir=.
31459   for as_base in sh bash ksh sh5; do
31460          case $as_dir in
31461          /*)
31462            if ("$as_dir/$as_base" -c '
31463   as_lineno_1=$LINENO
31464   as_lineno_2=$LINENO
31465   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31466   test "x$as_lineno_1" != "x$as_lineno_2" &&
31467   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31468              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31469              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31470              CONFIG_SHELL=$as_dir/$as_base
31471              export CONFIG_SHELL
31472              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31473            fi;;
31474          esac
31475        done
31476 done
31477 ;;
31478   esac
31479
31480   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31481   # uniformly replaced by the line number.  The first 'sed' inserts a
31482   # line-number line before each line; the second 'sed' does the real
31483   # work.  The second script uses 'N' to pair each line-number line
31484   # with the numbered line, and appends trailing '-' during
31485   # substitution so that $LINENO is not a special case at line end.
31486   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31487   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31488   sed '=' <$as_myself |
31489     sed '
31490       N
31491       s,$,-,
31492       : loop
31493       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31494       t loop
31495       s,-$,,
31496       s,^['$as_cr_digits']*\n,,
31497     ' >$as_me.lineno &&
31498   chmod +x $as_me.lineno ||
31499     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31500 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31501    { (exit 1); exit 1; }; }
31502
31503   # Don't try to exec as it changes $[0], causing all sort of problems
31504   # (the dirname of $[0] is not the place where we might find the
31505   # original and so on.  Autoconf is especially sensible to this).
31506   . ./$as_me.lineno
31507   # Exit status is that of the last command.
31508   exit
31509 }
31510
31511
31512 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31513   *c*,-n*) ECHO_N= ECHO_C='
31514 ' ECHO_T='      ' ;;
31515   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31516   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31517 esac
31518
31519 if expr a : '\(a\)' >/dev/null 2>&1; then
31520   as_expr=expr
31521 else
31522   as_expr=false
31523 fi
31524
31525 rm -f conf$$ conf$$.exe conf$$.file
31526 echo >conf$$.file
31527 if ln -s conf$$.file conf$$ 2>/dev/null; then
31528   # We could just check for DJGPP; but this test a) works b) is more generic
31529   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31530   if test -f conf$$.exe; then
31531     # Don't use ln at all; we don't have any links
31532     as_ln_s='cp -p'
31533   else
31534     as_ln_s='ln -s'
31535   fi
31536 elif ln conf$$.file conf$$ 2>/dev/null; then
31537   as_ln_s=ln
31538 else
31539   as_ln_s='cp -p'
31540 fi
31541 rm -f conf$$ conf$$.exe conf$$.file
31542
31543 if mkdir -p . 2>/dev/null; then
31544   as_mkdir_p=:
31545 else
31546   test -d ./-p && rmdir ./-p
31547   as_mkdir_p=false
31548 fi
31549
31550 as_executable_p="test -f"
31551
31552 # Sed expression to map a string onto a valid CPP name.
31553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31554
31555 # Sed expression to map a string onto a valid variable name.
31556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31557
31558
31559 # IFS
31560 # We need space, tab and new line, in precisely that order.
31561 as_nl='
31562 '
31563 IFS="   $as_nl"
31564
31565 # CDPATH.
31566 $as_unset CDPATH
31567
31568 exec 6>&1
31569
31570 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31571 # report actual input values of CONFIG_FILES etc. instead of their
31572 # values after options handling.  Logging --version etc. is OK.
31573 exec 5>>config.log
31574 {
31575   echo
31576   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31577 ## Running $as_me. ##
31578 _ASBOX
31579 } >&5
31580 cat >&5 <<_CSEOF
31581
31582 This file was extended by llvm $as_me 1.8cvs, which was
31583 generated by GNU Autoconf 2.59.  Invocation command line was
31584
31585   CONFIG_FILES    = $CONFIG_FILES
31586   CONFIG_HEADERS  = $CONFIG_HEADERS
31587   CONFIG_LINKS    = $CONFIG_LINKS
31588   CONFIG_COMMANDS = $CONFIG_COMMANDS
31589   $ $0 $@
31590
31591 _CSEOF
31592 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31593 echo >&5
31594 _ACEOF
31595
31596 # Files that config.status was made for.
31597 if test -n "$ac_config_files"; then
31598   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31599 fi
31600
31601 if test -n "$ac_config_headers"; then
31602   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31603 fi
31604
31605 if test -n "$ac_config_links"; then
31606   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31607 fi
31608
31609 if test -n "$ac_config_commands"; then
31610   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31611 fi
31612
31613 cat >>$CONFIG_STATUS <<\_ACEOF
31614
31615 ac_cs_usage="\
31616 \`$as_me' instantiates files from templates according to the
31617 current configuration.
31618
31619 Usage: $0 [OPTIONS] [FILE]...
31620
31621   -h, --help       print this help, then exit
31622   -V, --version    print version number, then exit
31623   -q, --quiet      do not print progress messages
31624   -d, --debug      don't remove temporary files
31625       --recheck    update $as_me by reconfiguring in the same conditions
31626   --file=FILE[:TEMPLATE]
31627                    instantiate the configuration file FILE
31628   --header=FILE[:TEMPLATE]
31629                    instantiate the configuration header FILE
31630
31631 Configuration files:
31632 $config_files
31633
31634 Configuration headers:
31635 $config_headers
31636
31637 Configuration commands:
31638 $config_commands
31639
31640 Report bugs to <bug-autoconf@gnu.org>."
31641 _ACEOF
31642
31643 cat >>$CONFIG_STATUS <<_ACEOF
31644 ac_cs_version="\\
31645 llvm config.status 1.8cvs
31646 configured by $0, generated by GNU Autoconf 2.59,
31647   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31648
31649 Copyright (C) 2003 Free Software Foundation, Inc.
31650 This config.status script is free software; the Free Software Foundation
31651 gives unlimited permission to copy, distribute and modify it."
31652 srcdir=$srcdir
31653 INSTALL="$INSTALL"
31654 _ACEOF
31655
31656 cat >>$CONFIG_STATUS <<\_ACEOF
31657 # If no file are specified by the user, then we need to provide default
31658 # value.  By we need to know if files were specified by the user.
31659 ac_need_defaults=:
31660 while test $# != 0
31661 do
31662   case $1 in
31663   --*=*)
31664     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31665     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31666     ac_shift=:
31667     ;;
31668   -*)
31669     ac_option=$1
31670     ac_optarg=$2
31671     ac_shift=shift
31672     ;;
31673   *) # This is not an option, so the user has probably given explicit
31674      # arguments.
31675      ac_option=$1
31676      ac_need_defaults=false;;
31677   esac
31678
31679   case $ac_option in
31680   # Handling of the options.
31681 _ACEOF
31682 cat >>$CONFIG_STATUS <<\_ACEOF
31683   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31684     ac_cs_recheck=: ;;
31685   --version | --vers* | -V )
31686     echo "$ac_cs_version"; exit 0 ;;
31687   --he | --h)
31688     # Conflict between --help and --header
31689     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31690 Try \`$0 --help' for more information." >&5
31691 echo "$as_me: error: ambiguous option: $1
31692 Try \`$0 --help' for more information." >&2;}
31693    { (exit 1); exit 1; }; };;
31694   --help | --hel | -h )
31695     echo "$ac_cs_usage"; exit 0 ;;
31696   --debug | --d* | -d )
31697     debug=: ;;
31698   --file | --fil | --fi | --f )
31699     $ac_shift
31700     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31701     ac_need_defaults=false;;
31702   --header | --heade | --head | --hea )
31703     $ac_shift
31704     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31705     ac_need_defaults=false;;
31706   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31707   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31708     ac_cs_silent=: ;;
31709
31710   # This is an error.
31711   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31712 Try \`$0 --help' for more information." >&5
31713 echo "$as_me: error: unrecognized option: $1
31714 Try \`$0 --help' for more information." >&2;}
31715    { (exit 1); exit 1; }; } ;;
31716
31717   *) ac_config_targets="$ac_config_targets $1" ;;
31718
31719   esac
31720   shift
31721 done
31722
31723 ac_configure_extra_args=
31724
31725 if $ac_cs_silent; then
31726   exec 6>/dev/null
31727   ac_configure_extra_args="$ac_configure_extra_args --silent"
31728 fi
31729
31730 _ACEOF
31731 cat >>$CONFIG_STATUS <<_ACEOF
31732 if \$ac_cs_recheck; then
31733   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31734   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31735 fi
31736
31737 _ACEOF
31738
31739 cat >>$CONFIG_STATUS <<_ACEOF
31740 #
31741 # INIT-COMMANDS section.
31742 #
31743
31744 llvm_src="${srcdir}"
31745
31746 _ACEOF
31747
31748
31749
31750 cat >>$CONFIG_STATUS <<\_ACEOF
31751 for ac_config_target in $ac_config_targets
31752 do
31753   case "$ac_config_target" in
31754   # Handling of arguments.
31755   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31756   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31757   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31758   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31759   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31760   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31761   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31762   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31763   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31764   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31765   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31766   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31767   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31768   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31769   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31770   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31771   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31772   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31773   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31774   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31775 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31776    { (exit 1); exit 1; }; };;
31777   esac
31778 done
31779
31780 # If the user did not use the arguments to specify the items to instantiate,
31781 # then the envvar interface is used.  Set only those that are not.
31782 # We use the long form for the default assignment because of an extremely
31783 # bizarre bug on SunOS 4.1.3.
31784 if $ac_need_defaults; then
31785   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31786   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31787   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31788 fi
31789
31790 # Have a temporary directory for convenience.  Make it in the build tree
31791 # simply because there is no reason to put it here, and in addition,
31792 # creating and moving files from /tmp can sometimes cause problems.
31793 # Create a temporary directory, and hook for its removal unless debugging.
31794 $debug ||
31795 {
31796   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31797   trap '{ (exit 1); exit 1; }' 1 2 13 15
31798 }
31799
31800 # Create a (secure) tmp directory for tmp files.
31801
31802 {
31803   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31804   test -n "$tmp" && test -d "$tmp"
31805 }  ||
31806 {
31807   tmp=./confstat$$-$RANDOM
31808   (umask 077 && mkdir $tmp)
31809 } ||
31810 {
31811    echo "$me: cannot create a temporary directory in ." >&2
31812    { (exit 1); exit 1; }
31813 }
31814
31815 _ACEOF
31816
31817 cat >>$CONFIG_STATUS <<_ACEOF
31818
31819 #
31820 # CONFIG_FILES section.
31821 #
31822
31823 # No need to generate the scripts if there are no CONFIG_FILES.
31824 # This happens for instance when ./config.status config.h
31825 if test -n "\$CONFIG_FILES"; then
31826   # Protect against being on the right side of a sed subst in config.status.
31827   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31828    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31829 s,@SHELL@,$SHELL,;t t
31830 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31831 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31832 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31833 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31834 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31835 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31836 s,@exec_prefix@,$exec_prefix,;t t
31837 s,@prefix@,$prefix,;t t
31838 s,@program_transform_name@,$program_transform_name,;t t
31839 s,@bindir@,$bindir,;t t
31840 s,@sbindir@,$sbindir,;t t
31841 s,@libexecdir@,$libexecdir,;t t
31842 s,@datadir@,$datadir,;t t
31843 s,@sysconfdir@,$sysconfdir,;t t
31844 s,@sharedstatedir@,$sharedstatedir,;t t
31845 s,@localstatedir@,$localstatedir,;t t
31846 s,@libdir@,$libdir,;t t
31847 s,@includedir@,$includedir,;t t
31848 s,@oldincludedir@,$oldincludedir,;t t
31849 s,@infodir@,$infodir,;t t
31850 s,@mandir@,$mandir,;t t
31851 s,@build_alias@,$build_alias,;t t
31852 s,@host_alias@,$host_alias,;t t
31853 s,@target_alias@,$target_alias,;t t
31854 s,@DEFS@,$DEFS,;t t
31855 s,@ECHO_C@,$ECHO_C,;t t
31856 s,@ECHO_N@,$ECHO_N,;t t
31857 s,@ECHO_T@,$ECHO_T,;t t
31858 s,@LIBS@,$LIBS,;t t
31859 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31860 s,@subdirs@,$subdirs,;t t
31861 s,@build@,$build,;t t
31862 s,@build_cpu@,$build_cpu,;t t
31863 s,@build_vendor@,$build_vendor,;t t
31864 s,@build_os@,$build_os,;t t
31865 s,@host@,$host,;t t
31866 s,@host_cpu@,$host_cpu,;t t
31867 s,@host_vendor@,$host_vendor,;t t
31868 s,@host_os@,$host_os,;t t
31869 s,@target@,$target,;t t
31870 s,@target_cpu@,$target_cpu,;t t
31871 s,@target_vendor@,$target_vendor,;t t
31872 s,@target_os@,$target_os,;t t
31873 s,@OS@,$OS,;t t
31874 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31875 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31876 s,@ARCH@,$ARCH,;t t
31877 s,@ENDIAN@,$ENDIAN,;t t
31878 s,@CC@,$CC,;t t
31879 s,@CFLAGS@,$CFLAGS,;t t
31880 s,@LDFLAGS@,$LDFLAGS,;t t
31881 s,@CPPFLAGS@,$CPPFLAGS,;t t
31882 s,@ac_ct_CC@,$ac_ct_CC,;t t
31883 s,@EXEEXT@,$EXEEXT,;t t
31884 s,@OBJEXT@,$OBJEXT,;t t
31885 s,@CVSBUILD@,$CVSBUILD,;t t
31886 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31887 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31888 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31889 s,@JIT@,$JIT,;t t
31890 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31891 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31892 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31893 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31894 s,@CPP@,$CPP,;t t
31895 s,@CXX@,$CXX,;t t
31896 s,@CXXFLAGS@,$CXXFLAGS,;t t
31897 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31898 s,@LEX@,$LEX,;t t
31899 s,@LEXLIB@,$LEXLIB,;t t
31900 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31901 s,@FLEX@,$FLEX,;t t
31902 s,@YACC@,$YACC,;t t
31903 s,@BISON@,$BISON,;t t
31904 s,@ifGNUmake@,$ifGNUmake,;t t
31905 s,@LN_S@,$LN_S,;t t
31906 s,@CMP@,$CMP,;t t
31907 s,@CP@,$CP,;t t
31908 s,@DATE@,$DATE,;t t
31909 s,@FIND@,$FIND,;t t
31910 s,@GREP@,$GREP,;t t
31911 s,@MKDIR@,$MKDIR,;t t
31912 s,@MV@,$MV,;t t
31913 s,@RANLIB@,$RANLIB,;t t
31914 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31915 s,@RM@,$RM,;t t
31916 s,@SED@,$SED,;t t
31917 s,@TAR@,$TAR,;t t
31918 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31919 s,@DOT@,$DOT,;t t
31920 s,@GV@,$GV,;t t
31921 s,@DOTTY@,$DOTTY,;t t
31922 s,@PERL@,$PERL,;t t
31923 s,@HAVE_PERL@,$HAVE_PERL,;t t
31924 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31925 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31926 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31927 s,@BZIP2@,$BZIP2,;t t
31928 s,@DOXYGEN@,$DOXYGEN,;t t
31929 s,@ETAGS@,$ETAGS,;t t
31930 s,@GROFF@,$GROFF,;t t
31931 s,@GZIP@,$GZIP,;t t
31932 s,@POD2HTML@,$POD2HTML,;t t
31933 s,@POD2MAN@,$POD2MAN,;t t
31934 s,@RUNTEST@,$RUNTEST,;t t
31935 s,@TCLSH@,$TCLSH,;t t
31936 s,@ZIP@,$ZIP,;t t
31937 s,@EGREP@,$EGREP,;t t
31938 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31939 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31940 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31941 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31942 s,@LIBADD_DL@,$LIBADD_DL,;t t
31943 s,@ECHO@,$ECHO,;t t
31944 s,@AR@,$AR,;t t
31945 s,@ac_ct_AR@,$ac_ct_AR,;t t
31946 s,@STRIP@,$STRIP,;t t
31947 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31948 s,@CXXCPP@,$CXXCPP,;t t
31949 s,@F77@,$F77,;t t
31950 s,@FFLAGS@,$FFLAGS,;t t
31951 s,@ac_ct_F77@,$ac_ct_F77,;t t
31952 s,@LIBTOOL@,$LIBTOOL,;t t
31953 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31954 s,@LLVMGCC@,$LLVMGCC,;t t
31955 s,@LLVMGXX@,$LLVMGXX,;t t
31956 s,@ALLOCA@,$ALLOCA,;t t
31957 s,@MMAP_FILE@,$MMAP_FILE,;t t
31958 s,@LLVMCC1@,$LLVMCC1,;t t
31959 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31960 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31961 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31962 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31963 s,@SHLIBEXT@,$SHLIBEXT,;t t
31964 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31965 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31966 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31967 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31968 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31969 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31970 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31971 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31972 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31973 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31974 s,@LIBOBJS@,$LIBOBJS,;t t
31975 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31976 CEOF
31977
31978 _ACEOF
31979
31980   cat >>$CONFIG_STATUS <<\_ACEOF
31981   # Split the substitutions into bite-sized pieces for seds with
31982   # small command number limits, like on Digital OSF/1 and HP-UX.
31983   ac_max_sed_lines=48
31984   ac_sed_frag=1 # Number of current file.
31985   ac_beg=1 # First line for current file.
31986   ac_end=$ac_max_sed_lines # Line after last line for current file.
31987   ac_more_lines=:
31988   ac_sed_cmds=
31989   while $ac_more_lines; do
31990     if test $ac_beg -gt 1; then
31991       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31992     else
31993       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31994     fi
31995     if test ! -s $tmp/subs.frag; then
31996       ac_more_lines=false
31997     else
31998       # The purpose of the label and of the branching condition is to
31999       # speed up the sed processing (if there are no `@' at all, there
32000       # is no need to browse any of the substitutions).
32001       # These are the two extra sed commands mentioned above.
32002       (echo ':t
32003   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32004       if test -z "$ac_sed_cmds"; then
32005         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32006       else
32007         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32008       fi
32009       ac_sed_frag=`expr $ac_sed_frag + 1`
32010       ac_beg=$ac_end
32011       ac_end=`expr $ac_end + $ac_max_sed_lines`
32012     fi
32013   done
32014   if test -z "$ac_sed_cmds"; then
32015     ac_sed_cmds=cat
32016   fi
32017 fi # test -n "$CONFIG_FILES"
32018
32019 _ACEOF
32020 cat >>$CONFIG_STATUS <<\_ACEOF
32021 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32022   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32023   case $ac_file in
32024   - | *:- | *:-:* ) # input from stdin
32025         cat >$tmp/stdin
32026         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32027         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32028   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32029         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32030   * )   ac_file_in=$ac_file.in ;;
32031   esac
32032
32033   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32034   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32036          X"$ac_file" : 'X\(//\)[^/]' \| \
32037          X"$ac_file" : 'X\(//\)$' \| \
32038          X"$ac_file" : 'X\(/\)' \| \
32039          .     : '\(.\)' 2>/dev/null ||
32040 echo X"$ac_file" |
32041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32042           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32043           /^X\(\/\/\)$/{ s//\1/; q; }
32044           /^X\(\/\).*/{ s//\1/; q; }
32045           s/.*/./; q'`
32046   { if $as_mkdir_p; then
32047     mkdir -p "$ac_dir"
32048   else
32049     as_dir="$ac_dir"
32050     as_dirs=
32051     while test ! -d "$as_dir"; do
32052       as_dirs="$as_dir $as_dirs"
32053       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32055          X"$as_dir" : 'X\(//\)[^/]' \| \
32056          X"$as_dir" : 'X\(//\)$' \| \
32057          X"$as_dir" : 'X\(/\)' \| \
32058          .     : '\(.\)' 2>/dev/null ||
32059 echo X"$as_dir" |
32060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32061           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32062           /^X\(\/\/\)$/{ s//\1/; q; }
32063           /^X\(\/\).*/{ s//\1/; q; }
32064           s/.*/./; q'`
32065     done
32066     test ! -n "$as_dirs" || mkdir $as_dirs
32067   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32069    { (exit 1); exit 1; }; }; }
32070
32071   ac_builddir=.
32072
32073 if test "$ac_dir" != .; then
32074   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32075   # A "../" for each directory in $ac_dir_suffix.
32076   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32077 else
32078   ac_dir_suffix= ac_top_builddir=
32079 fi
32080
32081 case $srcdir in
32082   .)  # No --srcdir option.  We are building in place.
32083     ac_srcdir=.
32084     if test -z "$ac_top_builddir"; then
32085        ac_top_srcdir=.
32086     else
32087        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32088     fi ;;
32089   [\\/]* | ?:[\\/]* )  # Absolute path.
32090     ac_srcdir=$srcdir$ac_dir_suffix;
32091     ac_top_srcdir=$srcdir ;;
32092   *) # Relative path.
32093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32095 esac
32096
32097 # Do not use `cd foo && pwd` to compute absolute paths, because
32098 # the directories may not exist.
32099 case `pwd` in
32100 .) ac_abs_builddir="$ac_dir";;
32101 *)
32102   case "$ac_dir" in
32103   .) ac_abs_builddir=`pwd`;;
32104   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32105   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32106   esac;;
32107 esac
32108 case $ac_abs_builddir in
32109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32110 *)
32111   case ${ac_top_builddir}. in
32112   .) ac_abs_top_builddir=$ac_abs_builddir;;
32113   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32114   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32115   esac;;
32116 esac
32117 case $ac_abs_builddir in
32118 .) ac_abs_srcdir=$ac_srcdir;;
32119 *)
32120   case $ac_srcdir in
32121   .) ac_abs_srcdir=$ac_abs_builddir;;
32122   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32123   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32124   esac;;
32125 esac
32126 case $ac_abs_builddir in
32127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32128 *)
32129   case $ac_top_srcdir in
32130   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32131   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32132   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32133   esac;;
32134 esac
32135
32136
32137   case $INSTALL in
32138   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32139   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32140   esac
32141
32142   if test x"$ac_file" != x-; then
32143     { echo "$as_me:$LINENO: creating $ac_file" >&5
32144 echo "$as_me: creating $ac_file" >&6;}
32145     rm -f "$ac_file"
32146   fi
32147   # Let's still pretend it is `configure' which instantiates (i.e., don't
32148   # use $as_me), people would be surprised to read:
32149   #    /* config.h.  Generated by config.status.  */
32150   if test x"$ac_file" = x-; then
32151     configure_input=
32152   else
32153     configure_input="$ac_file.  "
32154   fi
32155   configure_input=$configure_input"Generated from `echo $ac_file_in |
32156                                      sed 's,.*/,,'` by configure."
32157
32158   # First look for the input files in the build tree, otherwise in the
32159   # src tree.
32160   ac_file_inputs=`IFS=:
32161     for f in $ac_file_in; do
32162       case $f in
32163       -) echo $tmp/stdin ;;
32164       [\\/$]*)
32165          # Absolute (can't be DOS-style, as IFS=:)
32166          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32167 echo "$as_me: error: cannot find input file: $f" >&2;}
32168    { (exit 1); exit 1; }; }
32169          echo "$f";;
32170       *) # Relative
32171          if test -f "$f"; then
32172            # Build tree
32173            echo "$f"
32174          elif test -f "$srcdir/$f"; then
32175            # Source tree
32176            echo "$srcdir/$f"
32177          else
32178            # /dev/null tree
32179            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32180 echo "$as_me: error: cannot find input file: $f" >&2;}
32181    { (exit 1); exit 1; }; }
32182          fi;;
32183       esac
32184     done` || { (exit 1); exit 1; }
32185 _ACEOF
32186 cat >>$CONFIG_STATUS <<_ACEOF
32187   sed "$ac_vpsub
32188 $extrasub
32189 _ACEOF
32190 cat >>$CONFIG_STATUS <<\_ACEOF
32191 :t
32192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32193 s,@configure_input@,$configure_input,;t t
32194 s,@srcdir@,$ac_srcdir,;t t
32195 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32196 s,@top_srcdir@,$ac_top_srcdir,;t t
32197 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32198 s,@builddir@,$ac_builddir,;t t
32199 s,@abs_builddir@,$ac_abs_builddir,;t t
32200 s,@top_builddir@,$ac_top_builddir,;t t
32201 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32202 s,@INSTALL@,$ac_INSTALL,;t t
32203 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32204   rm -f $tmp/stdin
32205   if test x"$ac_file" != x-; then
32206     mv $tmp/out $ac_file
32207   else
32208     cat $tmp/out
32209     rm -f $tmp/out
32210   fi
32211
32212 done
32213 _ACEOF
32214 cat >>$CONFIG_STATUS <<\_ACEOF
32215
32216 #
32217 # CONFIG_HEADER section.
32218 #
32219
32220 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32221 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32222 #
32223 # ac_d sets the value in "#define NAME VALUE" lines.
32224 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32225 ac_dB='[         ].*$,\1#\2'
32226 ac_dC=' '
32227 ac_dD=',;t'
32228 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32229 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32230 ac_uB='$,\1#\2define\3'
32231 ac_uC=' '
32232 ac_uD=',;t'
32233
32234 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32235   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32236   case $ac_file in
32237   - | *:- | *:-:* ) # input from stdin
32238         cat >$tmp/stdin
32239         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32240         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32241   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32242         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32243   * )   ac_file_in=$ac_file.in ;;
32244   esac
32245
32246   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32247 echo "$as_me: creating $ac_file" >&6;}
32248
32249   # First look for the input files in the build tree, otherwise in the
32250   # src tree.
32251   ac_file_inputs=`IFS=:
32252     for f in $ac_file_in; do
32253       case $f in
32254       -) echo $tmp/stdin ;;
32255       [\\/$]*)
32256          # Absolute (can't be DOS-style, as IFS=:)
32257          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32258 echo "$as_me: error: cannot find input file: $f" >&2;}
32259    { (exit 1); exit 1; }; }
32260          # Do quote $f, to prevent DOS paths from being IFS'd.
32261          echo "$f";;
32262       *) # Relative
32263          if test -f "$f"; then
32264            # Build tree
32265            echo "$f"
32266          elif test -f "$srcdir/$f"; then
32267            # Source tree
32268            echo "$srcdir/$f"
32269          else
32270            # /dev/null tree
32271            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32272 echo "$as_me: error: cannot find input file: $f" >&2;}
32273    { (exit 1); exit 1; }; }
32274          fi;;
32275       esac
32276     done` || { (exit 1); exit 1; }
32277   # Remove the trailing spaces.
32278   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32279
32280 _ACEOF
32281
32282 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32283 # `conftest.undefs', that substitutes the proper values into
32284 # config.h.in to produce config.h.  The first handles `#define'
32285 # templates, and the second `#undef' templates.
32286 # And first: Protect against being on the right side of a sed subst in
32287 # config.status.  Protect against being in an unquoted here document
32288 # in config.status.
32289 rm -f conftest.defines conftest.undefs
32290 # Using a here document instead of a string reduces the quoting nightmare.
32291 # Putting comments in sed scripts is not portable.
32292 #
32293 # `end' is used to avoid that the second main sed command (meant for
32294 # 0-ary CPP macros) applies to n-ary macro definitions.
32295 # See the Autoconf documentation for `clear'.
32296 cat >confdef2sed.sed <<\_ACEOF
32297 s/[\\&,]/\\&/g
32298 s,[\\$`],\\&,g
32299 t clear
32300 : clear
32301 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32302 t end
32303 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32304 : end
32305 _ACEOF
32306 # If some macros were called several times there might be several times
32307 # the same #defines, which is useless.  Nevertheless, we may not want to
32308 # sort them, since we want the *last* AC-DEFINE to be honored.
32309 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32310 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32311 rm -f confdef2sed.sed
32312
32313 # This sed command replaces #undef with comments.  This is necessary, for
32314 # example, in the case of _POSIX_SOURCE, which is predefined and required
32315 # on some systems where configure will not decide to define it.
32316 cat >>conftest.undefs <<\_ACEOF
32317 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32318 _ACEOF
32319
32320 # Break up conftest.defines because some shells have a limit on the size
32321 # of here documents, and old seds have small limits too (100 cmds).
32322 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32323 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32324 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32325 echo '  :' >>$CONFIG_STATUS
32326 rm -f conftest.tail
32327 while grep . conftest.defines >/dev/null
32328 do
32329   # Write a limited-size here document to $tmp/defines.sed.
32330   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32331   # Speed up: don't consider the non `#define' lines.
32332   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32333   # Work around the forget-to-reset-the-flag bug.
32334   echo 't clr' >>$CONFIG_STATUS
32335   echo ': clr' >>$CONFIG_STATUS
32336   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32337   echo 'CEOF
32338   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32339   rm -f $tmp/in
32340   mv $tmp/out $tmp/in
32341 ' >>$CONFIG_STATUS
32342   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32343   rm -f conftest.defines
32344   mv conftest.tail conftest.defines
32345 done
32346 rm -f conftest.defines
32347 echo '  fi # grep' >>$CONFIG_STATUS
32348 echo >>$CONFIG_STATUS
32349
32350 # Break up conftest.undefs because some shells have a limit on the size
32351 # of here documents, and old seds have small limits too (100 cmds).
32352 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32353 rm -f conftest.tail
32354 while grep . conftest.undefs >/dev/null
32355 do
32356   # Write a limited-size here document to $tmp/undefs.sed.
32357   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32358   # Speed up: don't consider the non `#undef'
32359   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32360   # Work around the forget-to-reset-the-flag bug.
32361   echo 't clr' >>$CONFIG_STATUS
32362   echo ': clr' >>$CONFIG_STATUS
32363   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32364   echo 'CEOF
32365   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32366   rm -f $tmp/in
32367   mv $tmp/out $tmp/in
32368 ' >>$CONFIG_STATUS
32369   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32370   rm -f conftest.undefs
32371   mv conftest.tail conftest.undefs
32372 done
32373 rm -f conftest.undefs
32374
32375 cat >>$CONFIG_STATUS <<\_ACEOF
32376   # Let's still pretend it is `configure' which instantiates (i.e., don't
32377   # use $as_me), people would be surprised to read:
32378   #    /* config.h.  Generated by config.status.  */
32379   if test x"$ac_file" = x-; then
32380     echo "/* Generated by configure.  */" >$tmp/config.h
32381   else
32382     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32383   fi
32384   cat $tmp/in >>$tmp/config.h
32385   rm -f $tmp/in
32386   if test x"$ac_file" != x-; then
32387     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32388       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32389 echo "$as_me: $ac_file is unchanged" >&6;}
32390     else
32391       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32393          X"$ac_file" : 'X\(//\)[^/]' \| \
32394          X"$ac_file" : 'X\(//\)$' \| \
32395          X"$ac_file" : 'X\(/\)' \| \
32396          .     : '\(.\)' 2>/dev/null ||
32397 echo X"$ac_file" |
32398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32399           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32400           /^X\(\/\/\)$/{ s//\1/; q; }
32401           /^X\(\/\).*/{ s//\1/; q; }
32402           s/.*/./; q'`
32403       { if $as_mkdir_p; then
32404     mkdir -p "$ac_dir"
32405   else
32406     as_dir="$ac_dir"
32407     as_dirs=
32408     while test ! -d "$as_dir"; do
32409       as_dirs="$as_dir $as_dirs"
32410       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32412          X"$as_dir" : 'X\(//\)[^/]' \| \
32413          X"$as_dir" : 'X\(//\)$' \| \
32414          X"$as_dir" : 'X\(/\)' \| \
32415          .     : '\(.\)' 2>/dev/null ||
32416 echo X"$as_dir" |
32417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32418           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32419           /^X\(\/\/\)$/{ s//\1/; q; }
32420           /^X\(\/\).*/{ s//\1/; q; }
32421           s/.*/./; q'`
32422     done
32423     test ! -n "$as_dirs" || mkdir $as_dirs
32424   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32425 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32426    { (exit 1); exit 1; }; }; }
32427
32428       rm -f $ac_file
32429       mv $tmp/config.h $ac_file
32430     fi
32431   else
32432     cat $tmp/config.h
32433     rm -f $tmp/config.h
32434   fi
32435 done
32436 _ACEOF
32437 cat >>$CONFIG_STATUS <<\_ACEOF
32438
32439 #
32440 # CONFIG_COMMANDS section.
32441 #
32442 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32443   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32444   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32445   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32446 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32447          X"$ac_dest" : 'X\(//\)[^/]' \| \
32448          X"$ac_dest" : 'X\(//\)$' \| \
32449          X"$ac_dest" : 'X\(/\)' \| \
32450          .     : '\(.\)' 2>/dev/null ||
32451 echo X"$ac_dest" |
32452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32453           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32454           /^X\(\/\/\)$/{ s//\1/; q; }
32455           /^X\(\/\).*/{ s//\1/; q; }
32456           s/.*/./; q'`
32457   { if $as_mkdir_p; then
32458     mkdir -p "$ac_dir"
32459   else
32460     as_dir="$ac_dir"
32461     as_dirs=
32462     while test ! -d "$as_dir"; do
32463       as_dirs="$as_dir $as_dirs"
32464       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32465 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32466          X"$as_dir" : 'X\(//\)[^/]' \| \
32467          X"$as_dir" : 'X\(//\)$' \| \
32468          X"$as_dir" : 'X\(/\)' \| \
32469          .     : '\(.\)' 2>/dev/null ||
32470 echo X"$as_dir" |
32471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32473           /^X\(\/\/\)$/{ s//\1/; q; }
32474           /^X\(\/\).*/{ s//\1/; q; }
32475           s/.*/./; q'`
32476     done
32477     test ! -n "$as_dirs" || mkdir $as_dirs
32478   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32479 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32480    { (exit 1); exit 1; }; }; }
32481
32482   ac_builddir=.
32483
32484 if test "$ac_dir" != .; then
32485   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32486   # A "../" for each directory in $ac_dir_suffix.
32487   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32488 else
32489   ac_dir_suffix= ac_top_builddir=
32490 fi
32491
32492 case $srcdir in
32493   .)  # No --srcdir option.  We are building in place.
32494     ac_srcdir=.
32495     if test -z "$ac_top_builddir"; then
32496        ac_top_srcdir=.
32497     else
32498        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32499     fi ;;
32500   [\\/]* | ?:[\\/]* )  # Absolute path.
32501     ac_srcdir=$srcdir$ac_dir_suffix;
32502     ac_top_srcdir=$srcdir ;;
32503   *) # Relative path.
32504     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32505     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32506 esac
32507
32508 # Do not use `cd foo && pwd` to compute absolute paths, because
32509 # the directories may not exist.
32510 case `pwd` in
32511 .) ac_abs_builddir="$ac_dir";;
32512 *)
32513   case "$ac_dir" in
32514   .) ac_abs_builddir=`pwd`;;
32515   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32516   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32517   esac;;
32518 esac
32519 case $ac_abs_builddir in
32520 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32521 *)
32522   case ${ac_top_builddir}. in
32523   .) ac_abs_top_builddir=$ac_abs_builddir;;
32524   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32525   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32526   esac;;
32527 esac
32528 case $ac_abs_builddir in
32529 .) ac_abs_srcdir=$ac_srcdir;;
32530 *)
32531   case $ac_srcdir in
32532   .) ac_abs_srcdir=$ac_abs_builddir;;
32533   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32534   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32535   esac;;
32536 esac
32537 case $ac_abs_builddir in
32538 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32539 *)
32540   case $ac_top_srcdir in
32541   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32542   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32543   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32544   esac;;
32545 esac
32546
32547
32548   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32549 echo "$as_me: executing $ac_dest commands" >&6;}
32550   case $ac_dest in
32551     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32552    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32553     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32554    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32555     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32556    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32557     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32558    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32559     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32560    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32561     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32562    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32563     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32564    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32565     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32566    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32567     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32568    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32569     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32570    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32571   esac
32572 done
32573 _ACEOF
32574
32575 cat >>$CONFIG_STATUS <<\_ACEOF
32576
32577 { (exit 0); exit 0; }
32578 _ACEOF
32579 chmod +x $CONFIG_STATUS
32580 ac_clean_files=$ac_clean_files_save
32581
32582
32583 # configure is writing to config.log, and then calls config.status.
32584 # config.status does its own redirection, appending to config.log.
32585 # Unfortunately, on DOS this fails, as config.log is still kept open
32586 # by configure, so config.status won't be able to write to it; its
32587 # output is simply discarded.  So we exec the FD to /dev/null,
32588 # effectively closing config.log, so it can be properly (re)opened and
32589 # appended to by config.status.  When coming back to configure, we
32590 # need to make the FD available again.
32591 if test "$no_create" != yes; then
32592   ac_cs_success=:
32593   ac_config_status_args=
32594   test "$silent" = yes &&
32595     ac_config_status_args="$ac_config_status_args --quiet"
32596   exec 5>/dev/null
32597   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32598   exec 5>>config.log
32599   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32600   # would make configure fail if this is the last instruction.
32601   $ac_cs_success || { (exit 1); exit 1; }
32602 fi
32603
32604 #
32605 # CONFIG_SUBDIRS section.
32606 #
32607 if test "$no_recursion" != yes; then
32608
32609   # Remove --cache-file and --srcdir arguments so they do not pile up.
32610   ac_sub_configure_args=
32611   ac_prev=
32612   for ac_arg in $ac_configure_args; do
32613     if test -n "$ac_prev"; then
32614       ac_prev=
32615       continue
32616     fi
32617     case $ac_arg in
32618     -cache-file | --cache-file | --cache-fil | --cache-fi \
32619     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32620       ac_prev=cache_file ;;
32621     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32622     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32623     | --c=*)
32624       ;;
32625     --config-cache | -C)
32626       ;;
32627     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32628       ac_prev=srcdir ;;
32629     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32630       ;;
32631     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32632       ac_prev=prefix ;;
32633     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32634       ;;
32635     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32636     esac
32637   done
32638
32639   # Always prepend --prefix to ensure using the same prefix
32640   # in subdir configurations.
32641   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32642
32643   ac_popdir=`pwd`
32644   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32645
32646     # Do not complain, so a configure script can configure whichever
32647     # parts of a large source tree are present.
32648     test -d $srcdir/$ac_dir || continue
32649
32650     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32651 echo "$as_me: configuring in $ac_dir" >&6;}
32652     { if $as_mkdir_p; then
32653     mkdir -p "$ac_dir"
32654   else
32655     as_dir="$ac_dir"
32656     as_dirs=
32657     while test ! -d "$as_dir"; do
32658       as_dirs="$as_dir $as_dirs"
32659       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32661          X"$as_dir" : 'X\(//\)[^/]' \| \
32662          X"$as_dir" : 'X\(//\)$' \| \
32663          X"$as_dir" : 'X\(/\)' \| \
32664          .     : '\(.\)' 2>/dev/null ||
32665 echo X"$as_dir" |
32666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32667           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32668           /^X\(\/\/\)$/{ s//\1/; q; }
32669           /^X\(\/\).*/{ s//\1/; q; }
32670           s/.*/./; q'`
32671     done
32672     test ! -n "$as_dirs" || mkdir $as_dirs
32673   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32674 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32675    { (exit 1); exit 1; }; }; }
32676
32677     ac_builddir=.
32678
32679 if test "$ac_dir" != .; then
32680   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32681   # A "../" for each directory in $ac_dir_suffix.
32682   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32683 else
32684   ac_dir_suffix= ac_top_builddir=
32685 fi
32686
32687 case $srcdir in
32688   .)  # No --srcdir option.  We are building in place.
32689     ac_srcdir=.
32690     if test -z "$ac_top_builddir"; then
32691        ac_top_srcdir=.
32692     else
32693        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32694     fi ;;
32695   [\\/]* | ?:[\\/]* )  # Absolute path.
32696     ac_srcdir=$srcdir$ac_dir_suffix;
32697     ac_top_srcdir=$srcdir ;;
32698   *) # Relative path.
32699     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32700     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32701 esac
32702
32703 # Do not use `cd foo && pwd` to compute absolute paths, because
32704 # the directories may not exist.
32705 case `pwd` in
32706 .) ac_abs_builddir="$ac_dir";;
32707 *)
32708   case "$ac_dir" in
32709   .) ac_abs_builddir=`pwd`;;
32710   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32711   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32712   esac;;
32713 esac
32714 case $ac_abs_builddir in
32715 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32716 *)
32717   case ${ac_top_builddir}. in
32718   .) ac_abs_top_builddir=$ac_abs_builddir;;
32719   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32720   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32721   esac;;
32722 esac
32723 case $ac_abs_builddir in
32724 .) ac_abs_srcdir=$ac_srcdir;;
32725 *)
32726   case $ac_srcdir in
32727   .) ac_abs_srcdir=$ac_abs_builddir;;
32728   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32729   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32730   esac;;
32731 esac
32732 case $ac_abs_builddir in
32733 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32734 *)
32735   case $ac_top_srcdir in
32736   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32737   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32738   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32739   esac;;
32740 esac
32741
32742
32743     cd $ac_dir
32744
32745     # Check for guested configure; otherwise get Cygnus style configure.
32746     if test -f $ac_srcdir/configure.gnu; then
32747       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32748     elif test -f $ac_srcdir/configure; then
32749       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32750     elif test -f $ac_srcdir/configure.in; then
32751       ac_sub_configure=$ac_configure
32752     else
32753       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32754 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32755       ac_sub_configure=
32756     fi
32757
32758     # The recursion is here.
32759     if test -n "$ac_sub_configure"; then
32760       # Make the cache file name correct relative to the subdirectory.
32761       case $cache_file in
32762       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32763       *) # Relative path.
32764         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32765       esac
32766
32767       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32768 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32769       # The eval makes quoting arguments work.
32770       eval $ac_sub_configure $ac_sub_configure_args \
32771            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32772         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32773 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32774    { (exit 1); exit 1; }; }
32775     fi
32776
32777     cd $ac_popdir
32778   done
32779 fi
32780
32781
32782 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32783  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32784 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32785  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32786 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32787  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32788 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32789  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32790 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32791  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32792 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32793 fi