Update for including additional function tests.
[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.7cvs.
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.7cvs'
429 PACKAGE_STRING='llvm 1.7cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME 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 GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.7cvs:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-debug-runtime
1039   --enable-jit            Enable Just In Time Compiling (default is YES)
1040   --enable-doxygen        Build doxygen documentation (default is NO)
1041   --enable-threads        Use threads if available (default is YES)
1042   --enable-target         Build specific host targets:
1043                           all,host-only,{target-name} (default=all)
1044   --enable-ltdl-install   install libltdl
1045   --enable-shared[=PKGS]
1046                           build shared libraries [default=yes]
1047   --enable-static[=PKGS]
1048                           build static libraries [default=yes]
1049   --enable-fast-install[=PKGS]
1050                           optimize for fast installation [default=yes]
1051   --disable-libtool-lock  avoid locking (might break parallel builds)
1052
1053 Optional Packages:
1054   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1055   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1056   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1057                           searches PATH)
1058   --with-tclinclude       directory where tcl headers are
1059   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060   --with-pic              try to use only PIC/non-PIC objects [default=use
1061                           both]
1062   --with-tags[=TAGS]
1063                           include additional configurations [automatic]
1064
1065 Some influential environment variables:
1066   CC          C compiler command
1067   CFLAGS      C compiler flags
1068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069               nonstandard directory <lib dir>
1070   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071               headers in a nonstandard directory <include dir>
1072   CPP         C preprocessor
1073   CXX         C++ compiler command
1074   CXXFLAGS    C++ compiler flags
1075   CXXCPP      C++ preprocessor
1076   F77         Fortran 77 compiler command
1077   FFLAGS      Fortran 77 compiler flags
1078
1079 Use these variables to override the choices made by `configure' or to help
1080 it to find libraries and programs with nonstandard names/locations.
1081
1082 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087   # If there are subdirs, report their specific --help.
1088   ac_popdir=`pwd`
1089   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090     test -d $ac_dir || continue
1091     ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095   # A "../" for each directory in $ac_dir_suffix.
1096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098   ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102   .)  # No --srcdir option.  We are building in place.
1103     ac_srcdir=.
1104     if test -z "$ac_top_builddir"; then
1105        ac_top_srcdir=.
1106     else
1107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108     fi ;;
1109   [\\/]* | ?:[\\/]* )  # Absolute path.
1110     ac_srcdir=$srcdir$ac_dir_suffix;
1111     ac_top_srcdir=$srcdir ;;
1112   *) # Relative path.
1113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122   case "$ac_dir" in
1123   .) ac_abs_builddir=`pwd`;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131   case ${ac_top_builddir}. in
1132   .) ac_abs_top_builddir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140   case $ac_srcdir in
1141   .) ac_abs_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149   case $ac_top_srcdir in
1150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153   esac;;
1154 esac
1155
1156     cd $ac_dir
1157     # Check for guested configure; otherwise get Cygnus style configure.
1158     if test -f $ac_srcdir/configure.gnu; then
1159       echo
1160       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161     elif test -f $ac_srcdir/configure; then
1162       echo
1163       $SHELL $ac_srcdir/configure  --help=recursive
1164     elif test -f $ac_srcdir/configure.ac ||
1165            test -f $ac_srcdir/configure.in; then
1166       echo
1167       $ac_configure --help
1168     else
1169       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170     fi
1171     cd $ac_popdir
1172   done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177   cat <<\_ACEOF
1178 llvm configure 1.7cvs
1179 generated by GNU Autoconf 2.59
1180
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1184
1185 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1186 _ACEOF
1187   exit 0
1188 fi
1189 exec 5>config.log
1190 cat >&5 <<_ACEOF
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1193
1194 It was created by llvm $as_me 1.7cvs, which was
1195 generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197   $ $0 $@
1198
1199 _ACEOF
1200 {
1201 cat <<_ASUNAME
1202 ## --------- ##
1203 ## Platform. ##
1204 ## --------- ##
1205
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223 _ASUNAME
1224
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 for as_dir in $PATH
1227 do
1228   IFS=$as_save_IFS
1229   test -z "$as_dir" && as_dir=.
1230   echo "PATH: $as_dir"
1231 done
1232
1233 } >&5
1234
1235 cat >&5 <<_ACEOF
1236
1237
1238 ## ----------- ##
1239 ## Core tests. ##
1240 ## ----------- ##
1241
1242 _ACEOF
1243
1244
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_configure_args=
1251 ac_configure_args0=
1252 ac_configure_args1=
1253 ac_sep=
1254 ac_must_keep_next=false
1255 for ac_pass in 1 2
1256 do
1257   for ac_arg
1258   do
1259     case $ac_arg in
1260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262     | -silent | --silent | --silen | --sile | --sil)
1263       continue ;;
1264     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266     esac
1267     case $ac_pass in
1268     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269     2)
1270       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271       if test $ac_must_keep_next = true; then
1272         ac_must_keep_next=false # Got value, back to normal.
1273       else
1274         case $ac_arg in
1275           *=* | --config-cache | -C | -disable-* | --disable-* \
1276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278           | -with-* | --with-* | -without-* | --without-* | --x)
1279             case "$ac_configure_args0 " in
1280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281             esac
1282             ;;
1283           -* ) ac_must_keep_next=true ;;
1284         esac
1285       fi
1286       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287       # Get rid of the leading space.
1288       ac_sep=" "
1289       ;;
1290     esac
1291   done
1292 done
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log.  We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302   # Save into config.log some information that might help in debugging.
1303   {
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1310 _ASBOX
1311     echo
1312     # The following way of writing the cache mishandles newlines in values,
1313 {
1314   (set) 2>&1 |
1315     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316     *ac_space=\ *)
1317       sed -n \
1318         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320       ;;
1321     *)
1322       sed -n \
1323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324       ;;
1325     esac;
1326 }
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1333 _ASBOX
1334     echo
1335     for ac_var in $ac_subst_vars
1336     do
1337       eval ac_val=$`echo $ac_var`
1338       echo "$ac_var='"'"'$ac_val'"'"'"
1339     done | sort
1340     echo
1341
1342     if test -n "$ac_subst_files"; then
1343       cat <<\_ASBOX
1344 ## ------------- ##
1345 ## Output files. ##
1346 ## ------------- ##
1347 _ASBOX
1348       echo
1349       for ac_var in $ac_subst_files
1350       do
1351         eval ac_val=$`echo $ac_var`
1352         echo "$ac_var='"'"'$ac_val'"'"'"
1353       done | sort
1354       echo
1355     fi
1356
1357     if test -s confdefs.h; then
1358       cat <<\_ASBOX
1359 ## ----------- ##
1360 ## confdefs.h. ##
1361 ## ----------- ##
1362 _ASBOX
1363       echo
1364       sed "/^$/d" confdefs.h | sort
1365       echo
1366     fi
1367     test "$ac_signal" != 0 &&
1368       echo "$as_me: caught signal $ac_signal"
1369     echo "$as_me: exit $exit_status"
1370   } >&5
1371   rm -f core *.core &&
1372   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373     exit $exit_status
1374      ' 0
1375 for ac_signal in 1 2 13 15; do
1376   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 done
1378 ac_signal=0
1379
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 echo >confdefs.h
1384
1385 # Predefined preprocessor variables.
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 _ACEOF
1410
1411
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415   if test "x$prefix" != xNONE; then
1416     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417   else
1418     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419   fi
1420 fi
1421 for ac_site_file in $CONFIG_SITE; do
1422   if test -r "$ac_site_file"; then
1423     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425     sed 's/^/| /' "$ac_site_file" >&5
1426     . "$ac_site_file"
1427   fi
1428 done
1429
1430 if test -r "$cache_file"; then
1431   # Some versions of bash will fail to source /dev/null (special
1432   # files actually), so we avoid doing that.
1433   if test -f "$cache_file"; then
1434     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1436     case $cache_file in
1437       [\\/]* | ?:[\\/]* ) . $cache_file;;
1438       *)                      . ./$cache_file;;
1439     esac
1440   fi
1441 else
1442   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1444   >$cache_file
1445 fi
1446
1447 # Check that the precious variables saved in the cache have kept the same
1448 # value.
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453   eval ac_new_set=\$ac_env_${ac_var}_set
1454   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455   eval ac_new_val="\$ac_env_${ac_var}_value"
1456   case $ac_old_set,$ac_new_set in
1457     set,)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,set)
1462       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464       ac_cache_corrupted=: ;;
1465     ,);;
1466     *)
1467       if test "x$ac_old_val" != "x$ac_new_val"; then
1468         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471 echo "$as_me:   former value:  $ac_old_val" >&2;}
1472         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473 echo "$as_me:   current value: $ac_new_val" >&2;}
1474         ac_cache_corrupted=:
1475       fi;;
1476   esac
1477   # Pass precious variables to config.status.
1478   if test "$ac_new_set" = set; then
1479     case $ac_new_val in
1480     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     *) ac_arg=$ac_var=$ac_new_val ;;
1483     esac
1484     case " $ac_configure_args " in
1485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487     esac
1488   fi
1489 done
1490 if $ac_cache_corrupted; then
1491   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1532
1533
1534
1535
1536
1537
1538
1539 ac_aux_dir=
1540 for ac_dir in autoconf $srcdir/autoconf; do
1541   if test -f $ac_dir/install-sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install-sh -c"
1544     break
1545   elif test -f $ac_dir/install.sh; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/install.sh -c"
1548     break
1549   elif test -f $ac_dir/shtool; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/shtool install -c"
1552     break
1553   fi
1554 done
1555 if test -z "$ac_aux_dir"; then
1556   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558    { (exit 1); exit 1; }; }
1559 fi
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564
1565 if test ${srcdir} != "." ; then
1566   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1568 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569    { (exit 1); exit 1; }; }
1570   fi
1571 fi
1572
1573 for i in `ls ${srcdir}/projects`
1574 do
1575   if test -d ${srcdir}/projects/${i} ; then
1576     case ${i} in
1577       "CVS") ;;
1578       "sample")
1579
1580 subdirs="$subdirs projects/sample"
1581     ;;
1582       "Stacker")
1583
1584 subdirs="$subdirs projects/Stacker"
1585    ;;
1586       "llvm-test")
1587
1588 subdirs="$subdirs projects/llvm-test"
1589  ;;
1590       "llvm-reopt")
1591
1592 subdirs="$subdirs projects/llvm-reopt"
1593 ;;
1594       "llvm-gcc")
1595
1596 subdirs="$subdirs projects/llvm-gcc"
1597   ;;
1598       "llvm-java")
1599
1600 subdirs="$subdirs projects/llvm-java"
1601  ;;
1602       "llvm-tv")
1603
1604 subdirs="$subdirs projects/llvm-tv"
1605    ;;
1606       "llvm-poolalloc")
1607
1608 subdirs="$subdirs projects/llvm-poolalloc"
1609  ;;
1610       "llvm-kernel")
1611
1612 subdirs="$subdirs projects/llvm-kernel"
1613  ;;
1614       *)
1615         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617         ;;
1618     esac
1619   fi
1620 done
1621
1622
1623 # Make sure we can run config.sub.
1624 $ac_config_sub sun4 >/dev/null 2>&1 ||
1625   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627    { (exit 1); exit 1; }; }
1628
1629 echo "$as_me:$LINENO: checking build system type" >&5
1630 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631 if test "${ac_cv_build+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   ac_cv_build_alias=$build_alias
1635 test -z "$ac_cv_build_alias" &&
1636   ac_cv_build_alias=`$ac_config_guess`
1637 test -z "$ac_cv_build_alias" &&
1638   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640    { (exit 1); exit 1; }; }
1641 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644    { (exit 1); exit 1; }; }
1645
1646 fi
1647 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648 echo "${ECHO_T}$ac_cv_build" >&6
1649 build=$ac_cv_build
1650 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655 echo "$as_me:$LINENO: checking host system type" >&5
1656 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657 if test "${ac_cv_host+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   ac_cv_host_alias=$host_alias
1661 test -z "$ac_cv_host_alias" &&
1662   ac_cv_host_alias=$ac_cv_build_alias
1663 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666    { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670 echo "${ECHO_T}$ac_cv_host" >&6
1671 host=$ac_cv_host
1672 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking target system type" >&5
1678 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679 if test "${ac_cv_target+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   ac_cv_target_alias=$target_alias
1683 test "x$ac_cv_target_alias" = "x" &&
1684   ac_cv_target_alias=$ac_cv_host_alias
1685 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692 echo "${ECHO_T}$ac_cv_target" >&6
1693 target=$ac_cv_target
1694 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 # The aliases save the names the user supplied, while $host etc.
1700 # will get canonicalized.
1701 test -n "$target_alias" &&
1702   test "$program_prefix$program_suffix$program_transform_name" = \
1703     NONENONEs,x,x, &&
1704   program_prefix=${target_alias}-
1705
1706 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708 if test "${llvm_cv_os_type+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   case $build in
1712   *-*-aix*)
1713     llvm_cv_os_type="AIX"
1714     llvm_cv_platform_type="Unix" ;;
1715   *-*-cygwin*)
1716     llvm_cv_os_type="Cygwin"
1717     llvm_cv_platform_type="Unix" ;;
1718   *-*-darwin*)
1719     llvm_cv_os_type="Darwin"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-freebsd*)
1722     llvm_cv_os_type="FreeBSD"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-hpux*)
1725     llvm_cv_os_type="HP-UX"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-interix*)
1728     llvm_cv_os_type="Interix"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-linux*)
1731     llvm_cv_os_type="Linux"
1732     llvm_cv_platform_type="Unix" ;;
1733   *-*-solaris*)
1734     llvm_cv_os_type="SunOS"
1735     llvm_cv_platform_type="Unix" ;;
1736   *-*-win32*)
1737     llvm_cv_os_type="Win32"
1738     llvm_cv_platform_type="Win32" ;;
1739   *-*-mingw*)
1740     llvm_cv_os_type="MingW"
1741     llvm_cv_platform_type="Win32" ;;
1742   *)
1743     llvm_cv_os_type="Unknown"
1744     llvm_cv_platform_type="Unknown" ;;
1745 esac
1746 fi
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1749
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 OS=$llvm_cv_os_type
1757
1758
1759 case $llvm_cv_platform_type in
1760   Unix)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1764 _ACEOF
1765
1766     LLVM_ON_UNIX=1
1767
1768     LLVM_ON_WIN32=0
1769
1770     ;;
1771   Win32)
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1775 _ACEOF
1776
1777     LLVM_ON_UNIX=0
1778
1779     LLVM_ON_WIN32=1
1780
1781     ;;
1782 esac
1783
1784 echo "$as_me:$LINENO: checking target architecture" >&5
1785 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1786 if test "${llvm_cv_target_arch+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   case $target in
1790   i?86-*)                 llvm_cv_target_arch="x86" ;;
1791   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1792   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1793   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1794   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1795   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1796   *)                      llvm_cv_target_arch="Unknown" ;;
1797 esac
1798 fi
1799 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801
1802 if test "$llvm_cv_target_arch" = "Unknown" ; then
1803   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805 fi
1806
1807 ARCH=$llvm_cv_target_arch
1808
1809
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853   ac_ct_CC=$CC
1854   # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$ac_ct_CC"; then
1862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_ac_ct_CC="gcc"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   CC=$ac_ct_CC
1890 else
1891   CC="$ac_cv_prog_CC"
1892 fi
1893
1894 if test -z "$CC"; then
1895   if test -n "$ac_tool_prefix"; then
1896   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$CC"; then
1904   ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_CC="${ac_tool_prefix}cc"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924   echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_CC"; then
1933   ac_ct_CC=$CC
1934   # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$ac_ct_CC"; then
1942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_ac_ct_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   CC=$ac_ct_CC
1970 else
1971   CC="$ac_cv_prog_CC"
1972 fi
1973
1974 fi
1975 if test -z "$CC"; then
1976   # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986   ac_prog_rejected=no
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995        ac_prog_rejected=yes
1996        continue
1997      fi
1998     ac_cv_prog_CC="cc"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005 if test $ac_prog_rejected = yes; then
2006   # We found a bogon in the path, so make sure we never use it.
2007   set dummy $ac_cv_prog_CC
2008   shift
2009   if test $# != 0; then
2010     # We chose a different compiler from the bogus one.
2011     # However, it has the same basename, so the bogon will be chosen
2012     # first if we set CC to just the basename; use the full file name.
2013     shift
2014     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015   fi
2016 fi
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021   echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 fi
2029 if test -z "$CC"; then
2030   if test -n "$ac_tool_prefix"; then
2031   for ac_prog in cl
2032   do
2033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061   echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064   echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068     test -n "$CC" && break
2069   done
2070 fi
2071 if test -z "$CC"; then
2072   ac_ct_CC=$CC
2073   for ac_prog in cl
2074 do
2075   # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_CC"; then
2083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092     ac_cv_prog_ac_ct_CC="$ac_prog"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2105 else
2106   echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2108 fi
2109
2110   test -n "$ac_ct_CC" && break
2111 done
2112
2113   CC=$ac_ct_CC
2114 fi
2115
2116 fi
2117
2118
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127      "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130   (eval $ac_compiler --version </dev/null >&5) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135   (eval $ac_compiler -v </dev/null >&5) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140   (eval $ac_compiler -V </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169   (eval $ac_link_default) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; then
2173   # Find the output, starting from the most likely.  This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # resort.
2176
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 ac_cv_exeext=
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186         ;;
2187     conftest.$ac_ext )
2188         # This is the source file.
2189         ;;
2190     [ab].out )
2191         # We found the default executable, but exeext='' is most
2192         # certainly right.
2193         break;;
2194     *.* )
2195         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196         # FIXME: I believe we export ac_cv_exeext for Libtool,
2197         # but it would be cool to find out if it's true.  Does anybody
2198         # maintain Libtool? --akim.
2199         export ac_cv_exeext
2200         break;;
2201     * )
2202         break;;
2203   esac
2204 done
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213    { (exit 77); exit 77; }; }
2214 fi
2215
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2219
2220 # Check the compiler produces executables we can run.  If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227   if { ac_try='./$ac_file'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233     cross_compiling=no
2234   else
2235     if test "$cross_compiling" = maybe; then
2236         cross_compiling=yes
2237     else
2238         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245     fi
2246   fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2259
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263   (eval $ac_link) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           export ac_cv_exeext
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323   case $ac_file in
2324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326        break;;
2327   esac
2328 done
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338 fi
2339
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362        choke me
2363 #endif
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_compiler_gnu=yes
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_compiler_gnu=no
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401 fi
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 CFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419
2420 int
2421 main ()
2422 {
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430   (eval $ac_compile) 2>conftest.er1
2431   ac_status=$?
2432   grep -v '^ *+' conftest.er1 >conftest.err
2433   rm -f conftest.er1
2434   cat conftest.err >&5
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -z "$ac_c_werror_flag"
2438                          || test ! -s conftest.err'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   ac_cv_prog_cc_g=yes
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_cv_prog_cc_g=no
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462   CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464   if test "$GCC" = yes; then
2465     CFLAGS="-g -O2"
2466   else
2467     CFLAGS="-g"
2468   fi
2469 else
2470   if test "$GCC" = yes; then
2471     CFLAGS="-O2"
2472   else
2473     CFLAGS=
2474   fi
2475 fi
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497      char **p;
2498      int i;
2499 {
2500   return p[i];
2501 }
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2503 {
2504   char *s;
2505   va_list v;
2506   va_start (v,p);
2507   s = g (p, va_arg (v,int));
2508   va_end (v);
2509   return s;
2510 }
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513    function prototypes and stuff, but not '\xHH' hex character constants.
2514    These don't provoke an error unfortunately, instead are silently treated
2515    as 'x'.  The following induces an error, until -std1 is added to get
2516    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517    array size at least.  It's necessary to write '\x00'==0 to get something
2518    that's true only with -std1.  */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2527 int
2528 main ()
2529 {
2530 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX                   -qlanglvl=ansi
2538 # Ultrix and OSF/1      -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2541 # SVR4                  -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 do
2544   CC="$ac_save_CC $ac_arg"
2545   rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   ac_cv_prog_cc_stdc=$ac_arg
2568 break
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 fi
2574 rm -f conftest.err conftest.$ac_objext
2575 done
2576 rm -f conftest.$ac_ext conftest.$ac_objext
2577 CC=$ac_save_CC
2578
2579 fi
2580
2581 case "x$ac_cv_prog_cc_stdc" in
2582   x|xno)
2583     echo "$as_me:$LINENO: result: none needed" >&5
2584 echo "${ECHO_T}none needed" >&6 ;;
2585   *)
2586     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588     CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 esac
2590
2591 # Some people use a C++ compiler to compile C.  Since we use `exit',
2592 # in C++ we need to declare it.  In case someone uses the same compiler
2593 # for both compiling C and C++ we need to have the C++ compiler decide
2594 # the declaration of exit, since it's the most demanding environment.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #ifndef __cplusplus
2597   choke me
2598 #endif
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   for ac_declaration in \
2623    '' \
2624    'extern "C" void std::exit (int) throw (); using std::exit;' \
2625    'extern "C" void std::exit (int); using std::exit;' \
2626    'extern "C" void exit (int) throw ();' \
2627    'extern "C" void exit (int);' \
2628    'void exit (int);'
2629 do
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 $ac_declaration
2637 #include <stdlib.h>
2638 int
2639 main ()
2640 {
2641 exit (42);
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_c_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   :
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 continue
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 $ac_declaration
2683 int
2684 main ()
2685 {
2686 exit (42);
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag"
2701                          || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   break
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 fi
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 rm -f conftest*
2722 if test -n "$ac_declaration"; then
2723   echo '#ifdef __cplusplus' >>confdefs.h
2724   echo $ac_declaration      >>confdefs.h
2725   echo '#endif'             >>confdefs.h
2726 fi
2727
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 fi
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743 if test "${ac_cv_c_bigendian+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   # See if sys/param.h defines the BYTE_ORDER macro.
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 #include <sys/types.h>
2754 #include <sys/param.h>
2755
2756 int
2757 main ()
2758 {
2759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760  bogus endian macros
2761 #endif
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_c_werror_flag"
2777                          || test ! -s conftest.err'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   # It does; now see whether it defined to BIG_ENDIAN or not.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796 #include <sys/types.h>
2797 #include <sys/param.h>
2798
2799 int
2800 main ()
2801 {
2802 #if BYTE_ORDER != BIG_ENDIAN
2803  not big endian
2804 #endif
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_cv_c_bigendian=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_c_bigendian=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 # It does not; compile a test program.
2845 if test "$cross_compiling" = yes; then
2846   # try to guess the endianness by grepping values into an object file
2847   ac_cv_c_bigendian=unknown
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860 int
2861 main ()
2862 {
2863  _ascii (); _ebcdic ();
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870   (eval $ac_compile) 2>conftest.er1
2871   ac_status=$?
2872   grep -v '^ *+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -z "$ac_c_werror_flag"
2878                          || test ! -s conftest.err'
2879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880   (eval $ac_try) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; } &&
2884          { ac_try='test -s conftest.$ac_objext'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891   ac_cv_c_bigendian=yes
2892 fi
2893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894   if test "$ac_cv_c_bigendian" = unknown; then
2895     ac_cv_c_bigendian=no
2896   else
2897     # finding both strings is unlikely to happen, but who knows?
2898     ac_cv_c_bigendian=unknown
2899   fi
2900 fi
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 int
2915 main ()
2916 {
2917   /* Are we little or big endian?  From Harbison&Steele.  */
2918   union
2919   {
2920     long l;
2921     char c[sizeof (long)];
2922   } u;
2923   u.l = 1;
2924   exit (u.c[sizeof (long) - 1] == 1);
2925 }
2926 _ACEOF
2927 rm -f conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929   (eval $ac_link) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_cv_c_bigendian=no
2939 else
2940   echo "$as_me: program exited with status $ac_status" >&5
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 ( exit $ac_status )
2945 ac_cv_c_bigendian=yes
2946 fi
2947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948 fi
2949 fi
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954 case $ac_cv_c_bigendian in
2955   yes)
2956     ENDIAN=big
2957  ;;
2958   no)
2959     ENDIAN=little
2960  ;;
2961   *)
2962     { { echo "$as_me:$LINENO: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964 echo "$as_me: error: unknown endianness
2965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966    { (exit 1); exit 1; }; } ;;
2967 esac
2968
2969
2970
2971 # Check whether --enable-optimized or --disable-optimized was given.
2972 if test "${enable_optimized+set}" = set; then
2973   enableval="$enable_optimized"
2974
2975 else
2976   enableval=no
2977 fi;
2978 if test ${enableval} = "no" ; then
2979   ENABLE_OPTIMIZED=
2980
2981 else
2982   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984 fi
2985
2986 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987 if test "${enable_debug_runtime+set}" = set; then
2988   enableval="$enable_debug_runtime"
2989
2990 else
2991   enableval=no
2992 fi;
2993 if test ${enableval} = "no" ; then
2994   DEBUG_RUNTIME=
2995
2996 else
2997   DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999 fi
3000
3001 # Check whether --enable-jit or --disable-jit was given.
3002 if test "${enable_jit+set}" = set; then
3003   enableval="$enable_jit"
3004
3005 else
3006   enableval=default
3007 fi;
3008 if test ${enableval} = "no"
3009 then
3010   JIT=
3011
3012 else
3013   case "$llvm_cv_target_arch" in
3014     x86)     JIT=TARGET_HAS_JIT=1
3015  ;;
3016     Sparc)   JIT=TARGET_HAS_JIT=1
3017  ;;
3018     PowerPC) JIT=TARGET_HAS_JIT=1
3019  ;;
3020     x86_64)  JIT=
3021  ;;
3022     Alpha)   JIT=TARGET_HAS_JIT=1
3023  ;;
3024     IA64)    JIT=
3025  ;;
3026     *)       JIT=
3027  ;;
3028   esac
3029 fi
3030
3031 # Check whether --enable-doxygen or --disable-doxygen was given.
3032 if test "${enable_doxygen+set}" = set; then
3033   enableval="$enable_doxygen"
3034
3035 else
3036   enableval=default
3037 fi;
3038 case "$enableval" in
3039   yes) ENABLE_DOXYGEN=1
3040  ;;
3041   no)  ENABLE_DOXYGEN=0
3042  ;;
3043   default) ENABLE_DOXYGEN=0
3044  ;;
3045   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047    { (exit 1); exit 1; }; } ;;
3048 esac
3049
3050 # Check whether --enable-threads or --disable-threads was given.
3051 if test "${enable_threads+set}" = set; then
3052   enableval="$enable_threads"
3053
3054 else
3055   enableval=yes
3056 fi;
3057 case "$enableval" in
3058   yes) ENABLE_THREADS=1
3059  ;;
3060   no)  ENABLE_THREADS=0
3061  ;;
3062   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064    { (exit 1); exit 1; }; } ;;
3065 esac
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define ENABLE_THREADS $ENABLE_THREADS
3069 _ACEOF
3070
3071
3072 TARGETS_TO_BUILD=""
3073 # Check whether --enable-targets or --disable-targets was given.
3074 if test "${enable_targets+set}" = set; then
3075   enableval="$enable_targets"
3076
3077 else
3078   enableval=all
3079 fi;
3080 case "$enableval" in
3081   all) TARGETS_TO_BUILD="X86 SparcV8 SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3082   host-only)
3083     case "$llvm_cv_target_arch" in
3084       x86)     TARGETS_TO_BUILD="X86" ;;
3085       x86_64)  TARGETS_TO_BUILD="X86" ;;
3086       Sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9" ;;
3087       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3089       IA64)    TARGETS_TO_BUILD="IA64" ;;
3090       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3091 echo "$as_me: error: Can not set target to build" >&2;}
3092    { (exit 1); exit 1; }; } ;;
3093     esac
3094     ;;
3095   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096       case "$a_target" in
3097         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099         sparc)   TARGETS_TO_BUILD="SparcV8 SparcV9 $TARGETS_TO_BUILD" ;;
3100         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3104         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3106    { (exit 1); exit 1; }; } ;;
3107       esac
3108   done
3109   ;;
3110 esac
3111 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3112 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3113
3114
3115
3116 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3117 if test "${with_llvmgccdir+set}" = set; then
3118   withval="$with_llvmgccdir"
3119
3120 else
3121   withval=default
3122 fi;
3123 case "$withval" in
3124   default) WITH_LLVMGCCDIR=default ;;
3125   /*)      WITH_LLVMGCCDIR=$withval ;;
3126   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3127 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3128    { (exit 1); exit 1; }; } ;;
3129 esac
3130
3131
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3142   CPP=
3143 fi
3144 if test -z "$CPP"; then
3145   if test "${ac_cv_prog_CPP+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148       # Double quotes because CPP needs to be expanded
3149     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150     do
3151       ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3153 do
3154   # Use a header file that comes with gcc, so configuring glibc
3155   # with a fresh cross-compiler works.
3156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157   # <limits.h> exists even on freestanding compilers.
3158   # On the NeXT, cc -E runs the code through the compiler's parser,
3159   # not just through cpp. "Syntax error" is here to catch this case.
3160   cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171                      Syntax error
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } >/dev/null; then
3181   if test -s conftest.err; then
3182     ac_cpp_err=$ac_c_preproc_warn_flag
3183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   :
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196   # Broken: fails on valid input.
3197 continue
3198 fi
3199 rm -f conftest.err conftest.$ac_ext
3200
3201   # OK, works on sane cases.  Now check whether non-existent headers
3202   # can be detected and how.
3203   cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h.  */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h.  */
3209 #include <ac_nonexistent.h>
3210 _ACEOF
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } >/dev/null; then
3219   if test -s conftest.err; then
3220     ac_cpp_err=$ac_c_preproc_warn_flag
3221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222   else
3223     ac_cpp_err=
3224   fi
3225 else
3226   ac_cpp_err=yes
3227 fi
3228 if test -z "$ac_cpp_err"; then
3229   # Broken: success on invalid input.
3230 continue
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235   # Passes both tests.
3236 ac_preproc_ok=:
3237 break
3238 fi
3239 rm -f conftest.err conftest.$ac_ext
3240
3241 done
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3245   break
3246 fi
3247
3248     done
3249     ac_cv_prog_CPP=$CPP
3250
3251 fi
3252   CPP=$ac_cv_prog_CPP
3253 else
3254   ac_cv_prog_CPP=$CPP
3255 fi
3256 echo "$as_me:$LINENO: result: $CPP" >&5
3257 echo "${ECHO_T}$CPP" >&6
3258 ac_preproc_ok=false
3259 for ac_c_preproc_warn_flag in '' yes
3260 do
3261   # Use a header file that comes with gcc, so configuring glibc
3262   # with a fresh cross-compiler works.
3263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264   # <limits.h> exists even on freestanding compilers.
3265   # On the NeXT, cc -E runs the code through the compiler's parser,
3266   # not just through cpp. "Syntax error" is here to catch this case.
3267   cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #ifdef __STDC__
3274 # include <limits.h>
3275 #else
3276 # include <assert.h>
3277 #endif
3278                      Syntax error
3279 _ACEOF
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291   else
3292     ac_cpp_err=
3293   fi
3294 else
3295   ac_cpp_err=yes
3296 fi
3297 if test -z "$ac_cpp_err"; then
3298   :
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Broken: fails on valid input.
3304 continue
3305 fi
3306 rm -f conftest.err conftest.$ac_ext
3307
3308   # OK, works on sane cases.  Now check whether non-existent headers
3309   # can be detected and how.
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346 rm -f conftest.err conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3352   :
3353 else
3354   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358    { (exit 1); exit 1; }; }
3359 fi
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 if test -n "$ac_tool_prefix"; then
3373   for ac_prog in gcc
3374   do
3375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_CC+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403   echo "$as_me:$LINENO: result: $CC" >&5
3404 echo "${ECHO_T}$CC" >&6
3405 else
3406   echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408 fi
3409
3410     test -n "$CC" && break
3411   done
3412 fi
3413 if test -z "$CC"; then
3414   ac_ct_CC=$CC
3415   for ac_prog in gcc
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_ac_ct_CC="$ac_prog"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446 echo "${ECHO_T}$ac_ct_CC" >&6
3447 else
3448   echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450 fi
3451
3452   test -n "$ac_ct_CC" && break
3453 done
3454
3455   CC=$ac_ct_CC
3456 fi
3457
3458
3459 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: no acceptable C compiler found in \$PATH
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }
3464
3465 # Provide some information about the compiler.
3466 echo "$as_me:$LINENO:" \
3467      "checking for C compiler version" >&5
3468 ac_compiler=`set X $ac_compile; echo $2`
3469 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3470   (eval $ac_compiler --version </dev/null >&5) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }
3474 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3475   (eval $ac_compiler -v </dev/null >&5) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }
3479 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3480   (eval $ac_compiler -V </dev/null >&5) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }
3484
3485 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3487 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496
3497 int
3498 main ()
3499 {
3500 #ifndef __GNUC__
3501        choke me
3502 #endif
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } &&
3517          { ac_try='test -z "$ac_c_werror_flag"
3518                          || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_compiler_gnu=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_compiler_gnu=no
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540 fi
3541 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3543 GCC=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 CFLAGS="-g"
3547 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3548 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3549 if test "${ac_cv_prog_cc_g+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"
3577                          || test ! -s conftest.err'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; } &&
3583          { ac_try='test -s conftest.$ac_objext'
3584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; }; then
3589   ac_cv_prog_cc_g=yes
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 ac_cv_prog_cc_g=no
3595 fi
3596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3600 if test "$ac_test_CFLAGS" = set; then
3601   CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603   if test "$GCC" = yes; then
3604     CFLAGS="-g -O2"
3605   else
3606     CFLAGS="-g"
3607   fi
3608 else
3609   if test "$GCC" = yes; then
3610     CFLAGS="-O2"
3611   else
3612     CFLAGS=
3613   fi
3614 fi
3615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   ac_cv_prog_cc_stdc=no
3621 ac_save_CC=$CC
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636      char **p;
3637      int i;
3638 {
3639   return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643   char *s;
3644   va_list v;
3645   va_start (v,p);
3646   s = g (p, va_arg (v,int));
3647   va_end (v);
3648   return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652    function prototypes and stuff, but not '\xHH' hex character constants.
3653    These don't provoke an error unfortunately, instead are silently treated
3654    as 'x'.  The following induces an error, until -std1 is added to get
3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656    array size at least.  It's necessary to write '\x00'==0 to get something
3657    that's true only with -std1.  */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 int argc;
3665 char **argv;
3666 int
3667 main ()
3668 {
3669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 # Don't try gcc -ansi; that turns off useful extensions and
3675 # breaks some systems' header files.
3676 # AIX                   -qlanglvl=ansi
3677 # Ultrix and OSF/1      -std1
3678 # HP-UX 10.20 and later -Ae
3679 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3680 # SVR4                  -Xc -D__EXTENSIONS__
3681 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 do
3683   CC="$ac_save_CC $ac_arg"
3684   rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686   (eval $ac_compile) 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          { ac_try='test -z "$ac_c_werror_flag"
3694                          || test ! -s conftest.err'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; } &&
3700          { ac_try='test -s conftest.$ac_objext'
3701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702   (eval $ac_try) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; }; then
3706   ac_cv_prog_cc_stdc=$ac_arg
3707 break
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 fi
3713 rm -f conftest.err conftest.$ac_objext
3714 done
3715 rm -f conftest.$ac_ext conftest.$ac_objext
3716 CC=$ac_save_CC
3717
3718 fi
3719
3720 case "x$ac_cv_prog_cc_stdc" in
3721   x|xno)
3722     echo "$as_me:$LINENO: result: none needed" >&5
3723 echo "${ECHO_T}none needed" >&6 ;;
3724   *)
3725     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3726 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3727     CC="$CC $ac_cv_prog_cc_stdc" ;;
3728 esac
3729
3730 # Some people use a C++ compiler to compile C.  Since we use `exit',
3731 # in C++ we need to declare it.  In case someone uses the same compiler
3732 # for both compiling C and C++ we need to have the C++ compiler decide
3733 # the declaration of exit, since it's the most demanding environment.
3734 cat >conftest.$ac_ext <<_ACEOF
3735 #ifndef __cplusplus
3736   choke me
3737 #endif
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741   (eval $ac_compile) 2>conftest.er1
3742   ac_status=$?
3743   grep -v '^ *+' conftest.er1 >conftest.err
3744   rm -f conftest.er1
3745   cat conftest.err >&5
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } &&
3748          { ac_try='test -z "$ac_c_werror_flag"
3749                          || test ! -s conftest.err'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; } &&
3755          { ac_try='test -s conftest.$ac_objext'
3756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   for ac_declaration in \
3762    '' \
3763    'extern "C" void std::exit (int) throw (); using std::exit;' \
3764    'extern "C" void std::exit (int); using std::exit;' \
3765    'extern "C" void exit (int) throw ();' \
3766    'extern "C" void exit (int);' \
3767    'void exit (int);'
3768 do
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 $ac_declaration
3776 #include <stdlib.h>
3777 int
3778 main ()
3779 {
3780 exit (42);
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787   (eval $ac_compile) 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -z "$ac_c_werror_flag"
3795                          || test ! -s conftest.err'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; } &&
3801          { ac_try='test -s conftest.$ac_objext'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; }; then
3807   :
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 continue
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815   cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3821 $ac_declaration
3822 int
3823 main ()
3824 {
3825 exit (42);
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832   (eval $ac_compile) 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -z "$ac_c_werror_flag"
3840                          || test ! -s conftest.err'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; } &&
3846          { ac_try='test -s conftest.$ac_objext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   break
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 done
3860 rm -f conftest*
3861 if test -n "$ac_declaration"; then
3862   echo '#ifdef __cplusplus' >>confdefs.h
3863   echo $ac_declaration      >>confdefs.h
3864   echo '#endif'             >>confdefs.h
3865 fi
3866
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 fi
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879 ac_ext=cc
3880 ac_cpp='$CXXCPP $CPPFLAGS'
3881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885   for ac_prog in $CCC g++
3886   do
3887     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_CXX+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if test -n "$CXX"; then
3895   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909 done
3910
3911 fi
3912 fi
3913 CXX=$ac_cv_prog_CXX
3914 if test -n "$CXX"; then
3915   echo "$as_me:$LINENO: result: $CXX" >&5
3916 echo "${ECHO_T}$CXX" >&6
3917 else
3918   echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3920 fi
3921
3922     test -n "$CXX" && break
3923   done
3924 fi
3925 if test -z "$CXX"; then
3926   ac_ct_CXX=$CXX
3927   for ac_prog in $CCC g++
3928 do
3929   # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   if test -n "$ac_ct_CXX"; then
3937   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for ac_exec_ext in '' $ac_executable_extensions; do
3945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946     ac_cv_prog_ac_ct_CXX="$ac_prog"
3947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951 done
3952
3953 fi
3954 fi
3955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3956 if test -n "$ac_ct_CXX"; then
3957   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3958 echo "${ECHO_T}$ac_ct_CXX" >&6
3959 else
3960   echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3962 fi
3963
3964   test -n "$ac_ct_CXX" && break
3965 done
3966 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3967
3968   CXX=$ac_ct_CXX
3969 fi
3970
3971
3972 # Provide some information about the compiler.
3973 echo "$as_me:$LINENO:" \
3974      "checking for C++ compiler version" >&5
3975 ac_compiler=`set X $ac_compile; echo $2`
3976 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3977   (eval $ac_compiler --version </dev/null >&5) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }
3981 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3982   (eval $ac_compiler -v </dev/null >&5) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }
3986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3987   (eval $ac_compiler -V </dev/null >&5) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }
3991
3992 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3993 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3994 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007 #ifndef __GNUC__
4008        choke me
4009 #endif
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } &&
4024          { ac_try='test -z "$ac_cxx_werror_flag"
4025                          || test ! -s conftest.err'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; } &&
4031          { ac_try='test -s conftest.$ac_objext'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_compiler_gnu=yes
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 ac_compiler_gnu=no
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4046
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4050 GXX=`test $ac_compiler_gnu = yes && echo yes`
4051 ac_test_CXXFLAGS=${CXXFLAGS+set}
4052 ac_save_CXXFLAGS=$CXXFLAGS
4053 CXXFLAGS="-g"
4054 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4055 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4056 if test "${ac_cv_prog_cxx_g+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065
4066 int
4067 main ()
4068 {
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076   (eval $ac_compile) 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083          { ac_try='test -z "$ac_cxx_werror_flag"
4084                          || test ! -s conftest.err'
4085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086   (eval $ac_try) 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; } &&
4090          { ac_try='test -s conftest.$ac_objext'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; }; then
4096   ac_cv_prog_cxx_g=yes
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 ac_cv_prog_cxx_g=no
4102 fi
4103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104 fi
4105 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4106 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4107 if test "$ac_test_CXXFLAGS" = set; then
4108   CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110   if test "$GXX" = yes; then
4111     CXXFLAGS="-g -O2"
4112   else
4113     CXXFLAGS="-g"
4114   fi
4115 else
4116   if test "$GXX" = yes; then
4117     CXXFLAGS="-O2"
4118   else
4119     CXXFLAGS=
4120   fi
4121 fi
4122 for ac_declaration in \
4123    '' \
4124    'extern "C" void std::exit (int) throw (); using std::exit;' \
4125    'extern "C" void std::exit (int); using std::exit;' \
4126    'extern "C" void exit (int) throw ();' \
4127    'extern "C" void exit (int);' \
4128    'void exit (int);'
4129 do
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_declaration
4137 #include <stdlib.h>
4138 int
4139 main ()
4140 {
4141 exit (42);
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148   (eval $ac_compile) 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_cxx_werror_flag"
4156                          || test ! -s conftest.err'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   :
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 continue
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 $ac_declaration
4183 int
4184 main ()
4185 {
4186 exit (42);
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } &&
4200          { ac_try='test -z "$ac_cxx_werror_flag"
4201                          || test ! -s conftest.err'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; } &&
4207          { ac_try='test -s conftest.$ac_objext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   break
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 fi
4219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220 done
4221 rm -f conftest*
4222 if test -n "$ac_declaration"; then
4223   echo '#ifdef __cplusplus' >>confdefs.h
4224   echo $ac_declaration      >>confdefs.h
4225   echo '#endif'             >>confdefs.h
4226 fi
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234 echo "$as_me:$LINENO: checking " >&5
4235 echo $ECHO_N "checking ... $ECHO_C" >&6
4236 if test "${ac_cv_has_flex+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   for ac_prog in flex lex
4240 do
4241   # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_LEX+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$LEX"; then
4249   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_LEX="$ac_prog"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264
4265 fi
4266 fi
4267 LEX=$ac_cv_prog_LEX
4268 if test -n "$LEX"; then
4269   echo "$as_me:$LINENO: result: $LEX" >&5
4270 echo "${ECHO_T}$LEX" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276   test -n "$LEX" && break
4277 done
4278 test -n "$LEX" || LEX=":"
4279
4280 if test -z "$LEXLIB"
4281 then
4282   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4283 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4284 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_check_lib_save_LIBS=$LIBS
4288 LIBS="-lfl  $LIBS"
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295
4296 /* Override any gcc2 internal prototype to avoid an error.  */
4297 #ifdef __cplusplus
4298 extern "C"
4299 #endif
4300 /* We use char because int might match the return type of a gcc2
4301    builtin and then its argument prototype would still apply.  */
4302 char yywrap ();
4303 int
4304 main ()
4305 {
4306 yywrap ();
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313   (eval $ac_link) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_lib_fl_yywrap=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_lib_fl_yywrap=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext \
4341       conftest$ac_exeext conftest.$ac_ext
4342 LIBS=$ac_check_lib_save_LIBS
4343 fi
4344 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4345 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4346 if test $ac_cv_lib_fl_yywrap = yes; then
4347   LEXLIB="-lfl"
4348 else
4349   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4350 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4351 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-ll  $LIBS"
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362
4363 /* Override any gcc2 internal prototype to avoid an error.  */
4364 #ifdef __cplusplus
4365 extern "C"
4366 #endif
4367 /* We use char because int might match the return type of a gcc2
4368    builtin and then its argument prototype would still apply.  */
4369 char yywrap ();
4370 int
4371 main ()
4372 {
4373 yywrap ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag"
4388                          || test ! -s conftest.err'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; } &&
4394          { ac_try='test -s conftest$ac_exeext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_lib_l_yywrap=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ac_cv_lib_l_yywrap=no
4406 fi
4407 rm -f conftest.err conftest.$ac_objext \
4408       conftest$ac_exeext conftest.$ac_ext
4409 LIBS=$ac_check_lib_save_LIBS
4410 fi
4411 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4412 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4413 if test $ac_cv_lib_l_yywrap = yes; then
4414   LEXLIB="-ll"
4415 fi
4416
4417 fi
4418
4419 fi
4420
4421 if test "x$LEX" != "x:"; then
4422   echo "$as_me:$LINENO: checking lex output file root" >&5
4423 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4424 if test "${ac_cv_prog_lex_root+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   # The minimal lex program is just a single line: %%.  But some broken lexes
4428 # (Solaris, I think it was) want two %% lines, so accommodate them.
4429 cat >conftest.l <<_ACEOF
4430 %%
4431 %%
4432 _ACEOF
4433 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4434   (eval $LEX conftest.l) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }
4438 if test -f lex.yy.c; then
4439   ac_cv_prog_lex_root=lex.yy
4440 elif test -f lexyy.c; then
4441   ac_cv_prog_lex_root=lexyy
4442 else
4443   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4444 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447 fi
4448 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4449 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4450 rm -f conftest.l
4451 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4452
4453 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4454 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4455 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   # POSIX says lex can declare yytext either as a pointer or an array; the
4459 # default is implementation-dependent. Figure out which it is, since
4460 # not all implementations provide the %pointer and %array declarations.
4461 ac_cv_prog_lex_yytext_pointer=no
4462 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4463 ac_save_LIBS=$LIBS
4464 LIBS="$LIBS $LEXLIB"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 `cat $LEX_OUTPUT_ROOT.c`
4467 _ACEOF
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470   (eval $ac_link) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_prog_lex_yytext_pointer=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 fi
4496 rm -f conftest.err conftest.$ac_objext \
4497       conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_save_LIBS
4499 rm -f "${LEX_OUTPUT_ROOT}.c"
4500
4501 fi
4502 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506 cat >>confdefs.h <<\_ACEOF
4507 #define YYTEXT_POINTER 1
4508 _ACEOF
4509
4510 fi
4511
4512 fi
4513
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4516 echo "${ECHO_T}$ac_cv_has_flex" >&6
4517 if test "$LEX" != "flex"; then
4518   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4519 echo "$as_me: error: flex not found but required" >&2;}
4520    { (exit 1); exit 1; }; }
4521 else
4522   FLEX=flex
4523
4524 fi
4525
4526 echo "$as_me:$LINENO: checking " >&5
4527 echo $ECHO_N "checking ... $ECHO_C" >&6
4528 if test "${llvm_cv_has_bison+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   for ac_prog in 'bison -y' byacc
4532 do
4533   # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_prog_YACC+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   if test -n "$YACC"; then
4541   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548   for ac_exec_ext in '' $ac_executable_extensions; do
4549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550     ac_cv_prog_YACC="$ac_prog"
4551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555 done
4556
4557 fi
4558 fi
4559 YACC=$ac_cv_prog_YACC
4560 if test -n "$YACC"; then
4561   echo "$as_me:$LINENO: result: $YACC" >&5
4562 echo "${ECHO_T}$YACC" >&6
4563 else
4564   echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 fi
4567
4568   test -n "$YACC" && break
4569 done
4570 test -n "$YACC" || YACC="yacc"
4571
4572 fi
4573 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4574 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4575 if test "$YACC" != "bison -y"; then
4576   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4577 echo "$as_me: error: bison not found but required" >&2;}
4578    { (exit 1); exit 1; }; }
4579 else
4580   BISON=bison
4581
4582 fi
4583
4584 echo "$as_me:$LINENO: checking for GNU make" >&5
4585 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4586 if test "${llvm_cv_gnu_make_command+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   llvm_cv_gnu_make_command=''
4590  for a in "$MAKE" make gmake gnumake ; do
4591   if test -z "$a" ; then continue ; fi ;
4592   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4593   then
4594    llvm_cv_gnu_make_command=$a ;
4595    break;
4596   fi
4597  done
4598 fi
4599 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4600 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4601  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4602    ifGNUmake='' ;
4603  else
4604    ifGNUmake='#' ;
4605    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4606 echo "${ECHO_T}\"Not found\"" >&6;
4607  fi
4608
4609
4610 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4612 LN_S=$as_ln_s
4613 if test "$LN_S" = "ln -s"; then
4614   echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6
4616 else
4617   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6
4619 fi
4620
4621 # Extract the first word of "cmp", so it can be a program name with args.
4622 set dummy cmp; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_path_CMP+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   case $CMP in
4629   [\\/]* | ?:[\\/]*)
4630   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4631   ;;
4632   *)
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_exec_ext in '' $ac_executable_extensions; do
4639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645 done
4646
4647   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4648   ;;
4649 esac
4650 fi
4651 CMP=$ac_cv_path_CMP
4652
4653 if test -n "$CMP"; then
4654   echo "$as_me:$LINENO: result: $CMP" >&5
4655 echo "${ECHO_T}$CMP" >&6
4656 else
4657   echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4659 fi
4660
4661 # Extract the first word of "cp", so it can be a program name with args.
4662 set dummy cp; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_path_CP+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   case $CP in
4669   [\\/]* | ?:[\\/]*)
4670   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4671   ;;
4672   *)
4673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686
4687   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4688   ;;
4689 esac
4690 fi
4691 CP=$ac_cv_path_CP
4692
4693 if test -n "$CP"; then
4694   echo "$as_me:$LINENO: result: $CP" >&5
4695 echo "${ECHO_T}$CP" >&6
4696 else
4697   echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4699 fi
4700
4701 # Extract the first word of "date", so it can be a program name with args.
4702 set dummy date; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_path_DATE+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   case $DATE in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726
4727   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4728   ;;
4729 esac
4730 fi
4731 DATE=$ac_cv_path_DATE
4732
4733 if test -n "$DATE"; then
4734   echo "$as_me:$LINENO: result: $DATE" >&5
4735 echo "${ECHO_T}$DATE" >&6
4736 else
4737   echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739 fi
4740
4741 # Extract the first word of "find", so it can be a program name with args.
4742 set dummy find; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_path_FIND+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   case $FIND in
4749   [\\/]* | ?:[\\/]*)
4750   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4751   ;;
4752   *)
4753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766
4767   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4768   ;;
4769 esac
4770 fi
4771 FIND=$ac_cv_path_FIND
4772
4773 if test -n "$FIND"; then
4774   echo "$as_me:$LINENO: result: $FIND" >&5
4775 echo "${ECHO_T}$FIND" >&6
4776 else
4777   echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779 fi
4780
4781 # Extract the first word of "grep", so it can be a program name with args.
4782 set dummy grep; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_path_GREP+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   case $GREP in
4789   [\\/]* | ?:[\\/]*)
4790   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4791   ;;
4792   *)
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806
4807   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4808   ;;
4809 esac
4810 fi
4811 GREP=$ac_cv_path_GREP
4812
4813 if test -n "$GREP"; then
4814   echo "$as_me:$LINENO: result: $GREP" >&5
4815 echo "${ECHO_T}$GREP" >&6
4816 else
4817   echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6
4819 fi
4820
4821 # Extract the first word of "mkdir", so it can be a program name with args.
4822 set dummy mkdir; ac_word=$2
4823 echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825 if test "${ac_cv_path_MKDIR+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   case $MKDIR in
4829   [\\/]* | ?:[\\/]*)
4830   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4831   ;;
4832   *)
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846
4847   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4848   ;;
4849 esac
4850 fi
4851 MKDIR=$ac_cv_path_MKDIR
4852
4853 if test -n "$MKDIR"; then
4854   echo "$as_me:$LINENO: result: $MKDIR" >&5
4855 echo "${ECHO_T}$MKDIR" >&6
4856 else
4857   echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4859 fi
4860
4861 # Extract the first word of "mv", so it can be a program name with args.
4862 set dummy mv; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_path_MV+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   case $MV in
4869   [\\/]* | ?:[\\/]*)
4870   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4871   ;;
4872   *)
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886
4887   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4888   ;;
4889 esac
4890 fi
4891 MV=$ac_cv_path_MV
4892
4893 if test -n "$MV"; then
4894   echo "$as_me:$LINENO: result: $MV" >&5
4895 echo "${ECHO_T}$MV" >&6
4896 else
4897   echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4899 fi
4900
4901 if test -n "$ac_tool_prefix"; then
4902   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_RANLIB+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$RANLIB"; then
4910   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926 fi
4927 fi
4928 RANLIB=$ac_cv_prog_RANLIB
4929 if test -n "$RANLIB"; then
4930   echo "$as_me:$LINENO: result: $RANLIB" >&5
4931 echo "${ECHO_T}$RANLIB" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 fi
4938 if test -z "$ac_cv_prog_RANLIB"; then
4939   ac_ct_RANLIB=$RANLIB
4940   # Extract the first word of "ranlib", so it can be a program name with args.
4941 set dummy ranlib; ac_word=$2
4942 echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   if test -n "$ac_ct_RANLIB"; then
4948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   for ac_exec_ext in '' $ac_executable_extensions; do
4956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_prog_ac_ct_RANLIB="ranlib"
4958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962 done
4963
4964   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4965 fi
4966 fi
4967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4968 if test -n "$ac_ct_RANLIB"; then
4969   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4971 else
4972   echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976   RANLIB=$ac_ct_RANLIB
4977 else
4978   RANLIB="$ac_cv_prog_RANLIB"
4979 fi
4980
4981 # Extract the first word of "rm", so it can be a program name with args.
4982 set dummy rm; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_path_RM+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   case $RM in
4989   [\\/]* | ?:[\\/]*)
4990   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4991   ;;
4992   *)
4993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998   for ac_exec_ext in '' $ac_executable_extensions; do
4999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005 done
5006
5007   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5008   ;;
5009 esac
5010 fi
5011 RM=$ac_cv_path_RM
5012
5013 if test -n "$RM"; then
5014   echo "$as_me:$LINENO: result: $RM" >&5
5015 echo "${ECHO_T}$RM" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5019 fi
5020
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_SED+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $SED in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046
5047   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5048   ;;
5049 esac
5050 fi
5051 SED=$ac_cv_path_SED
5052
5053 if test -n "$SED"; then
5054   echo "$as_me:$LINENO: result: $SED" >&5
5055 echo "${ECHO_T}$SED" >&6
5056 else
5057   echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5059 fi
5060
5061 # Extract the first word of "tar", so it can be a program name with args.
5062 set dummy tar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_path_TAR+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   case $TAR in
5069   [\\/]* | ?:[\\/]*)
5070   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5071   ;;
5072   *)
5073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for ac_exec_ext in '' $ac_executable_extensions; do
5079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086
5087   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5088   ;;
5089 esac
5090 fi
5091 TAR=$ac_cv_path_TAR
5092
5093 if test -n "$TAR"; then
5094   echo "$as_me:$LINENO: result: $TAR" >&5
5095 echo "${ECHO_T}$TAR" >&6
5096 else
5097   echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5099 fi
5100
5101 # Extract the first word of "Graphviz", so it can be a program name with args.
5102 set dummy Graphviz; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   case $GRAPHVIZ in
5109   [\\/]* | ?:[\\/]*)
5110   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5111   ;;
5112   *)
5113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118   for ac_exec_ext in '' $ac_executable_extensions; do
5119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125 done
5126
5127   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5128   ;;
5129 esac
5130 fi
5131 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5132
5133 if test -n "$GRAPHVIZ"; then
5134   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5135 echo "${ECHO_T}$GRAPHVIZ" >&6
5136 else
5137   echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5139 fi
5140
5141 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5142
5143 cat >>confdefs.h <<\_ACEOF
5144 #define HAVE_GRAPHVIZ 1
5145 _ACEOF
5146
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5150 _ACEOF
5151
5152 fi
5153 # Extract the first word of "gv", so it can be a program name with args.
5154 set dummy gv; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_path_GV+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   case $GV in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178
5179   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5180   ;;
5181 esac
5182 fi
5183 GV=$ac_cv_path_GV
5184
5185 if test -n "$GV"; then
5186   echo "$as_me:$LINENO: result: $GV" >&5
5187 echo "${ECHO_T}$GV" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193 if test "$GV" != "echo gv" ; then
5194
5195 cat >>confdefs.h <<\_ACEOF
5196 #define HAVE_GV 1
5197 _ACEOF
5198
5199
5200 cat >>confdefs.h <<_ACEOF
5201 #define LLVM_PATH_GV "$GV"
5202 _ACEOF
5203
5204 fi
5205
5206 # Find a good install program.  We prefer a C program (faster),
5207 # so one script is as good as another.  But avoid the broken or
5208 # incompatible versions:
5209 # SysV /etc/install, /usr/sbin/install
5210 # SunOS /usr/etc/install
5211 # IRIX /sbin/install
5212 # AIX /bin/install
5213 # AmigaOS /C/install, which installs bootblocks on floppy discs
5214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5217 # OS/2's system install, which has a completely different semantic
5218 # ./install, which can be erroneously created by make from ./install.sh.
5219 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5221 if test -z "$INSTALL"; then
5222 if test "${ac_cv_path_install+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   # Account for people who put trailing slashes in PATH elements.
5231 case $as_dir/ in
5232   ./ | .// | /cC/* | \
5233   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5234   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5235   /usr/ucb/* ) ;;
5236   *)
5237     # OSF1 and SCO ODT 3.0 have their own names for install.
5238     # Don't use installbsd from OSF since it installs stuff as root
5239     # by default.
5240     for ac_prog in ginstall scoinst install; do
5241       for ac_exec_ext in '' $ac_executable_extensions; do
5242         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5243           if test $ac_prog = install &&
5244             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5245             # AIX install.  It has an incompatible calling convention.
5246             :
5247           elif test $ac_prog = install &&
5248             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5249             # program-specific install script used by HP pwplus--don't use.
5250             :
5251           else
5252             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5253             break 3
5254           fi
5255         fi
5256       done
5257     done
5258     ;;
5259 esac
5260 done
5261
5262
5263 fi
5264   if test "${ac_cv_path_install+set}" = set; then
5265     INSTALL=$ac_cv_path_install
5266   else
5267     # As a last resort, use the slow shell script.  We don't cache a
5268     # path for INSTALL within a source directory, because that will
5269     # break other packages using the cache if that directory is
5270     # removed, or if the path is relative.
5271     INSTALL=$ac_install_sh
5272   fi
5273 fi
5274 echo "$as_me:$LINENO: result: $INSTALL" >&5
5275 echo "${ECHO_T}$INSTALL" >&6
5276
5277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5278 # It thinks the first close brace ends the variable substitution.
5279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5280
5281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5282
5283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5284
5285
5286 # Extract the first word of "bzip2", so it can be a program name with args.
5287 set dummy bzip2; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_BZIP2+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $BZIP2 in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311
5312   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5313   ;;
5314 esac
5315 fi
5316 BZIP2=$ac_cv_path_BZIP2
5317
5318 if test -n "$BZIP2"; then
5319   echo "$as_me:$LINENO: result: $BZIP2" >&5
5320 echo "${ECHO_T}$BZIP2" >&6
5321 else
5322   echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5324 fi
5325
5326 # Extract the first word of "dot", so it can be a program name with args.
5327 set dummy dot; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_path_DOT+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   case $DOT in
5334   [\\/]* | ?:[\\/]*)
5335   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5336   ;;
5337   *)
5338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5353   ;;
5354 esac
5355 fi
5356 DOT=$ac_cv_path_DOT
5357
5358 if test -n "$DOT"; then
5359   echo "$as_me:$LINENO: result: $DOT" >&5
5360 echo "${ECHO_T}$DOT" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365
5366 # Extract the first word of "doxygen", so it can be a program name with args.
5367 set dummy doxygen; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   case $DOXYGEN in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391
5392   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5393   ;;
5394 esac
5395 fi
5396 DOXYGEN=$ac_cv_path_DOXYGEN
5397
5398 if test -n "$DOXYGEN"; then
5399   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5400 echo "${ECHO_T}$DOXYGEN" >&6
5401 else
5402   echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404 fi
5405
5406 # Extract the first word of "etags", so it can be a program name with args.
5407 set dummy etags; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_ETAGS+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   case $ETAGS in
5414   [\\/]* | ?:[\\/]*)
5415   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5416   ;;
5417   *)
5418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423   for ac_exec_ext in '' $ac_executable_extensions; do
5424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430 done
5431
5432   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5433   ;;
5434 esac
5435 fi
5436 ETAGS=$ac_cv_path_ETAGS
5437
5438 if test -n "$ETAGS"; then
5439   echo "$as_me:$LINENO: result: $ETAGS" >&5
5440 echo "${ECHO_T}$ETAGS" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5444 fi
5445
5446 # Extract the first word of "groff", so it can be a program name with args.
5447 set dummy groff; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_GROFF+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   case $GROFF in
5454   [\\/]* | ?:[\\/]*)
5455   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5456   ;;
5457   *)
5458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471
5472   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5473   ;;
5474 esac
5475 fi
5476 GROFF=$ac_cv_path_GROFF
5477
5478 if test -n "$GROFF"; then
5479   echo "$as_me:$LINENO: result: $GROFF" >&5
5480 echo "${ECHO_T}$GROFF" >&6
5481 else
5482   echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5484 fi
5485
5486 # Extract the first word of "gzip", so it can be a program name with args.
5487 set dummy gzip; ac_word=$2
5488 echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5490 if test "${ac_cv_path_GZIP+set}" = set; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493   case $GZIP in
5494   [\\/]* | ?:[\\/]*)
5495   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5496   ;;
5497   *)
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511
5512   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5513   ;;
5514 esac
5515 fi
5516 GZIP=$ac_cv_path_GZIP
5517
5518 if test -n "$GZIP"; then
5519   echo "$as_me:$LINENO: result: $GZIP" >&5
5520 echo "${ECHO_T}$GZIP" >&6
5521 else
5522   echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5524 fi
5525
5526 # Extract the first word of "pod2html", so it can be a program name with args.
5527 set dummy pod2html; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_path_POD2HTML+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   case $POD2HTML in
5534   [\\/]* | ?:[\\/]*)
5535   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5536   ;;
5537   *)
5538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543   for ac_exec_ext in '' $ac_executable_extensions; do
5544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550 done
5551
5552   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5553   ;;
5554 esac
5555 fi
5556 POD2HTML=$ac_cv_path_POD2HTML
5557
5558 if test -n "$POD2HTML"; then
5559   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5560 echo "${ECHO_T}$POD2HTML" >&6
5561 else
5562   echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565
5566 # Extract the first word of "pod2man", so it can be a program name with args.
5567 set dummy pod2man; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_path_POD2MAN+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   case $POD2MAN in
5574   [\\/]* | ?:[\\/]*)
5575   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5576   ;;
5577   *)
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583   for ac_exec_ext in '' $ac_executable_extensions; do
5584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590 done
5591
5592   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5593   ;;
5594 esac
5595 fi
5596 POD2MAN=$ac_cv_path_POD2MAN
5597
5598 if test -n "$POD2MAN"; then
5599   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5600 echo "${ECHO_T}$POD2MAN" >&6
5601 else
5602   echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5604 fi
5605
5606 # Extract the first word of "runtest", so it can be a program name with args.
5607 set dummy runtest; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_path_RUNTEST+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   case $RUNTEST in
5614   [\\/]* | ?:[\\/]*)
5615   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5616   ;;
5617   *)
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623   for ac_exec_ext in '' $ac_executable_extensions; do
5624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630 done
5631
5632   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5633   ;;
5634 esac
5635 fi
5636 RUNTEST=$ac_cv_path_RUNTEST
5637
5638 if test -n "$RUNTEST"; then
5639   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5640 echo "${ECHO_T}$RUNTEST" >&6
5641 else
5642   echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646
5647 no_itcl=true
5648 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5649 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5650
5651 # Check whether --with-tclinclude or --without-tclinclude was given.
5652 if test "${with_tclinclude+set}" = set; then
5653   withval="$with_tclinclude"
5654   with_tclinclude=${withval}
5655 else
5656   with_tclinclude=''
5657 fi;
5658 if test "${ac_cv_path_tclsh+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661
5662 if test x"${with_tclinclude}" != x ; then
5663   if test -f ${with_tclinclude}/tclsh ; then
5664     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5665   elif test -f ${with_tclinclude}/src/tclsh ; then
5666     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5667   else
5668     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5669 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5670    { (exit 1); exit 1; }; }
5671   fi
5672 fi
5673
5674 if test x"${ac_cv_path_tclsh}" = x ; then
5675   echo "$as_me:$LINENO: result: none" >&5
5676 echo "${ECHO_T}none" >&6
5677   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
5678 do
5679   # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_path_TCLSH+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   case $TCLSH in
5687   [\\/]* | ?:[\\/]*)
5688   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5689   ;;
5690   *)
5691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696   for ac_exec_ext in '' $ac_executable_extensions; do
5697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703 done
5704
5705   ;;
5706 esac
5707 fi
5708 TCLSH=$ac_cv_path_TCLSH
5709
5710 if test -n "$TCLSH"; then
5711   echo "$as_me:$LINENO: result: $TCLSH" >&5
5712 echo "${ECHO_T}$TCLSH" >&6
5713 else
5714   echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716 fi
5717
5718   test -n "$TCLSH" && break
5719 done
5720
5721   if test x"${TCLSH}" = x ; then
5722     ac_cv_path_tclsh='';
5723   else
5724     ac_cv_path_tclsh="${TCLSH}";
5725   fi
5726 else
5727   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5728 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5729   TCLSH="${ac_cv_path_tclsh}"
5730
5731 fi
5732
5733 fi
5734
5735 # Extract the first word of "zip", so it can be a program name with args.
5736 set dummy zip; ac_word=$2
5737 echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5739 if test "${ac_cv_path_ZIP+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   case $ZIP in
5743   [\\/]* | ?:[\\/]*)
5744   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752   for ac_exec_ext in '' $ac_executable_extensions; do
5753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759 done
5760
5761   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5762   ;;
5763 esac
5764 fi
5765 ZIP=$ac_cv_path_ZIP
5766
5767 if test -n "$ZIP"; then
5768   echo "$as_me:$LINENO: result: $ZIP" >&5
5769 echo "${ECHO_T}$ZIP" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774
5775
5776 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5777 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5778 if test "${llvm_cv_link_use_r+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781    ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787   oldcflags="$CFLAGS"
5788   CFLAGS="$CFLAGS -Wl,-R."
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795
5796 int
5797 main ()
5798 {
5799 int main() { return 0; }
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   llvm_cv_link_use_r=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 llvm_cv_link_use_r=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835   CFLAGS="$oldcflags"
5836   ac_ext=c
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
5842
5843 fi
5844 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5845 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5846 if test "$llvm_cv_link_use_r" = yes ; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_LINK_R 1
5850 _ACEOF
5851
5852   fi
5853
5854
5855
5856
5857 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5858 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5859 if test "${ac_cv_c_const+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868
5869 int
5870 main ()
5871 {
5872 /* FIXME: Include the comments suggested by Paul. */
5873 #ifndef __cplusplus
5874   /* Ultrix mips cc rejects this.  */
5875   typedef int charset[2];
5876   const charset x;
5877   /* SunOS 4.1.1 cc rejects this.  */
5878   char const *const *ccp;
5879   char **p;
5880   /* NEC SVR4.0.2 mips cc rejects this.  */
5881   struct point {int x, y;};
5882   static struct point const zero = {0,0};
5883   /* AIX XL C 1.02.0.0 rejects this.
5884      It does not let you subtract one const X* pointer from another in
5885      an arm of an if-expression whose if-part is not a constant
5886      expression */
5887   const char *g = "string";
5888   ccp = &g + (g ? g-g : 0);
5889   /* HPUX 7.0 cc rejects these. */
5890   ++ccp;
5891   p = (char**) ccp;
5892   ccp = (char const *const *) p;
5893   { /* SCO 3.2v4 cc rejects this.  */
5894     char *t;
5895     char const *s = 0 ? (char *) 0 : (char const *) 0;
5896
5897     *t++ = 0;
5898   }
5899   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5900     int x[] = {25, 17};
5901     const int *foo = &x[0];
5902     ++foo;
5903   }
5904   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5905     typedef const int *iptr;
5906     iptr p = 0;
5907     ++p;
5908   }
5909   { /* AIX XL C 1.02.0.0 rejects this saying
5910        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5911     struct s { int j; const int *ap[3]; };
5912     struct s *b; b->j = 5;
5913   }
5914   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5915     const int foo = 10;
5916   }
5917 #endif
5918
5919   ;
5920   return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925   (eval $ac_compile) 2>conftest.er1
5926   ac_status=$?
5927   grep -v '^ *+' conftest.er1 >conftest.err
5928   rm -f conftest.er1
5929   cat conftest.err >&5
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); } &&
5932          { ac_try='test -z "$ac_c_werror_flag"
5933                          || test ! -s conftest.err'
5934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935   (eval $ac_try) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; } &&
5939          { ac_try='test -s conftest.$ac_objext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_c_const=yes
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_c_const=no
5951 fi
5952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5955 echo "${ECHO_T}$ac_cv_c_const" >&6
5956 if test $ac_cv_c_const = no; then
5957
5958 cat >>confdefs.h <<\_ACEOF
5959 #define const
5960 _ACEOF
5961
5962 fi
5963
5964
5965 echo "$as_me:$LINENO: checking for egrep" >&5
5966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967 if test "${ac_cv_prog_egrep+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971     then ac_cv_prog_egrep='grep -E'
5972     else ac_cv_prog_egrep='egrep'
5973     fi
5974 fi
5975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977  EGREP=$ac_cv_prog_egrep
5978
5979
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <stdlib.h>
5992 #include <stdarg.h>
5993 #include <string.h>
5994 #include <float.h>
5995
5996 int
5997 main ()
5998 {
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006   (eval $ac_compile) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -z "$ac_c_werror_flag"
6014                          || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest.$ac_objext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   ac_cv_header_stdc=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_cv_header_stdc=no
6032 fi
6033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035 if test $ac_cv_header_stdc = yes; then
6036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <string.h>
6044
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047   $EGREP "memchr" >/dev/null 2>&1; then
6048   :
6049 else
6050   ac_cv_header_stdc=no
6051 fi
6052 rm -f conftest*
6053
6054 fi
6055
6056 if test $ac_cv_header_stdc = yes; then
6057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 #include <stdlib.h>
6065
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068   $EGREP "free" >/dev/null 2>&1; then
6069   :
6070 else
6071   ac_cv_header_stdc=no
6072 fi
6073 rm -f conftest*
6074
6075 fi
6076
6077 if test $ac_cv_header_stdc = yes; then
6078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079   if test "$cross_compiling" = yes; then
6080   :
6081 else
6082   cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <ctype.h>
6089 #if ((' ' & 0x0FF) == 0x020)
6090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092 #else
6093 # define ISLOWER(c) \
6094                    (('a' <= (c) && (c) <= 'i') \
6095                      || ('j' <= (c) && (c) <= 'r') \
6096                      || ('s' <= (c) && (c) <= 'z'))
6097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #endif
6099
6100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101 int
6102 main ()
6103 {
6104   int i;
6105   for (i = 0; i < 256; i++)
6106     if (XOR (islower (i), ISLOWER (i))
6107         || toupper (i) != TOUPPER (i))
6108       exit(2);
6109   exit (0);
6110 }
6111 _ACEOF
6112 rm -f conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114   (eval $ac_link) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
6124 else
6125   echo "$as_me: program exited with status $ac_status" >&5
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ( exit $ac_status )
6130 ac_cv_header_stdc=no
6131 fi
6132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 fi
6135 fi
6136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138 if test $ac_cv_header_stdc = yes; then
6139
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6142 _ACEOF
6143
6144 fi
6145
6146
6147
6148
6149
6150
6151 ac_header_dirent=no
6152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6153   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 #include <sys/types.h>
6166 #include <$ac_hdr>
6167
6168 int
6169 main ()
6170 {
6171 if ((DIR *) 0)
6172 return 0;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   eval "$as_ac_Header=yes"
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 eval "$as_ac_Header=no"
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211   cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6213 _ACEOF
6214
6215 ac_header_dirent=$ac_hdr; break
6216 fi
6217
6218 done
6219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6220 if test $ac_header_dirent = dirent.h; then
6221   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223 if test "${ac_cv_search_opendir+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   ac_func_search_save_LIBS=$LIBS
6227 ac_cv_search_opendir=no
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234
6235 /* Override any gcc2 internal prototype to avoid an error.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 /* We use char because int might match the return type of a gcc2
6240    builtin and then its argument prototype would still apply.  */
6241 char opendir ();
6242 int
6243 main ()
6244 {
6245 opendir ();
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252   (eval $ac_link) 2>conftest.er1
6253   ac_status=$?
6254   grep -v '^ *+' conftest.er1 >conftest.err
6255   rm -f conftest.er1
6256   cat conftest.err >&5
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -z "$ac_c_werror_flag"
6260                          || test ! -s conftest.err'
6261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262   (eval $ac_try) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   ac_cv_search_opendir="none required"
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 fi
6278 rm -f conftest.err conftest.$ac_objext \
6279       conftest$ac_exeext conftest.$ac_ext
6280 if test "$ac_cv_search_opendir" = no; then
6281   for ac_lib in dir; do
6282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6283     cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295    builtin and then its argument prototype would still apply.  */
6296 char opendir ();
6297 int
6298 main ()
6299 {
6300 opendir ();
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307   (eval $ac_link) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"
6315                          || test ! -s conftest.err'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest$ac_exeext'
6322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323   (eval $ac_try) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_search_opendir="-l$ac_lib"
6328 break
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 fi
6334 rm -f conftest.err conftest.$ac_objext \
6335       conftest$ac_exeext conftest.$ac_ext
6336   done
6337 fi
6338 LIBS=$ac_func_search_save_LIBS
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342 if test "$ac_cv_search_opendir" != no; then
6343   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6344
6345 fi
6346
6347 else
6348   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6350 if test "${ac_cv_search_opendir+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_func_search_save_LIBS=$LIBS
6354 ac_cv_search_opendir=no
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361
6362 /* Override any gcc2 internal prototype to avoid an error.  */
6363 #ifdef __cplusplus
6364 extern "C"
6365 #endif
6366 /* We use char because int might match the return type of a gcc2
6367    builtin and then its argument prototype would still apply.  */
6368 char opendir ();
6369 int
6370 main ()
6371 {
6372 opendir ();
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379   (eval $ac_link) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -z "$ac_c_werror_flag"
6387                          || test ! -s conftest.err'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; } &&
6393          { ac_try='test -s conftest$ac_exeext'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }; then
6399   ac_cv_search_opendir="none required"
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 fi
6405 rm -f conftest.err conftest.$ac_objext \
6406       conftest$ac_exeext conftest.$ac_ext
6407 if test "$ac_cv_search_opendir" = no; then
6408   for ac_lib in x; do
6409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6410     cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416
6417 /* Override any gcc2 internal prototype to avoid an error.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 /* We use char because int might match the return type of a gcc2
6422    builtin and then its argument prototype would still apply.  */
6423 char opendir ();
6424 int
6425 main ()
6426 {
6427 opendir ();
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434   (eval $ac_link) 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } &&
6441          { ac_try='test -z "$ac_c_werror_flag"
6442                          || test ! -s conftest.err'
6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444   (eval $ac_try) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); }; } &&
6448          { ac_try='test -s conftest$ac_exeext'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; }; then
6454   ac_cv_search_opendir="-l$ac_lib"
6455 break
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462       conftest$ac_exeext conftest.$ac_ext
6463   done
6464 fi
6465 LIBS=$ac_func_search_save_LIBS
6466 fi
6467 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6468 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6469 if test "$ac_cv_search_opendir" != no; then
6470   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6471
6472 fi
6473
6474 fi
6475
6476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6487                   inttypes.h stdint.h unistd.h
6488 do
6489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501 $ac_includes_default
6502
6503 #include <$ac_header>
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507   (eval $ac_compile) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_c_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest.$ac_objext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   eval "$as_ac_Header=yes"
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 eval "$as_ac_Header=no"
6533 fi
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544
6545 done
6546
6547
6548
6549 for ac_header in dlfcn.h
6550 do
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553   echo "$as_me:$LINENO: checking for $ac_header" >&5
6554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 fi
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560 else
6561   # Is the header compilable?
6562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570 $ac_includes_default
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575   (eval $ac_compile) 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -z "$ac_c_werror_flag"
6583                          || test ! -s conftest.err'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   ac_header_compiler=yes
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_header_compiler=no
6601 fi
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6604 echo "${ECHO_T}$ac_header_compiler" >&6
6605
6606 # Is the header present?
6607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615 #include <$ac_header>
6616 _ACEOF
6617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } >/dev/null; then
6625   if test -s conftest.err; then
6626     ac_cpp_err=$ac_c_preproc_warn_flag
6627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628   else
6629     ac_cpp_err=
6630   fi
6631 else
6632   ac_cpp_err=yes
6633 fi
6634 if test -z "$ac_cpp_err"; then
6635   ac_header_preproc=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640   ac_header_preproc=no
6641 fi
6642 rm -f conftest.err conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6644 echo "${ECHO_T}$ac_header_preproc" >&6
6645
6646 # So?  What about this header?
6647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6648   yes:no: )
6649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6653     ac_header_preproc=yes
6654     ;;
6655   no:yes:* )
6656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668     (
6669       cat <<\_ASBOX
6670 ## ----------------------------------- ##
6671 ## Report this to llvmbugs@cs.uiuc.edu ##
6672 ## ----------------------------------- ##
6673 _ASBOX
6674     ) |
6675       sed "s/^/$as_me: WARNING:     /" >&2
6676     ;;
6677 esac
6678 echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   eval "$as_ac_Header=\$ac_header_preproc"
6684 fi
6685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6687
6688 fi
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690   cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6699 if test "${enable_ltdl_install+set}" = set; then
6700   enableval="$enable_ltdl_install"
6701
6702 fi;
6703
6704
6705
6706 if test x"${enable_ltdl_install-no}" != xno; then
6707   INSTALL_LTDL_TRUE=
6708   INSTALL_LTDL_FALSE='#'
6709 else
6710   INSTALL_LTDL_TRUE='#'
6711   INSTALL_LTDL_FALSE=
6712 fi
6713
6714
6715
6716 if test x"${enable_ltdl_convenience-no}" != xno; then
6717   CONVENIENCE_LTDL_TRUE=
6718   CONVENIENCE_LTDL_FALSE='#'
6719 else
6720   CONVENIENCE_LTDL_TRUE='#'
6721   CONVENIENCE_LTDL_FALSE=
6722 fi
6723
6724
6725 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6727 library_names_spec=
6728 libname_spec='lib$name'
6729 soname_spec=
6730 shrext_cmds=".so"
6731 postinstall_cmds=
6732 postuninstall_cmds=
6733 finish_cmds=
6734 finish_eval=
6735 shlibpath_var=
6736 shlibpath_overrides_runpath=unknown
6737 version_type=none
6738 dynamic_linker="$host_os ld.so"
6739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6740 if test "$GCC" = yes; then
6741   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6742   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6743     # if the path contains ";" then we assume it to be the separator
6744     # otherwise default to the standard path separator (i.e. ":") - it is
6745     # assumed that no part of a normal pathname contains ";" but that should
6746     # okay in the real world where ";" in dirpaths is itself problematic.
6747     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6748   else
6749     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6750   fi
6751 else
6752   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6753 fi
6754 need_lib_prefix=unknown
6755 hardcode_into_libs=no
6756
6757 # when you set need_version to no, make sure it does not cause -set_version
6758 # flags to be left without arguments
6759 need_version=unknown
6760
6761 case $host_os in
6762 aix3*)
6763   version_type=linux
6764   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6765   shlibpath_var=LIBPATH
6766
6767   # AIX 3 has no versioning support, so we append a major version to the name.
6768   soname_spec='${libname}${release}${shared_ext}$major'
6769   ;;
6770
6771 aix4* | aix5*)
6772   version_type=linux
6773   need_lib_prefix=no
6774   need_version=no
6775   hardcode_into_libs=yes
6776   if test "$host_cpu" = ia64; then
6777     # AIX 5 supports IA64
6778     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6779     shlibpath_var=LD_LIBRARY_PATH
6780   else
6781     # With GCC up to 2.95.x, collect2 would create an import file
6782     # for dependence libraries.  The import file would start with
6783     # the line `#! .'.  This would cause the generated library to
6784     # depend on `.', always an invalid library.  This was fixed in
6785     # development snapshots of GCC prior to 3.0.
6786     case $host_os in
6787       aix4 | aix4.[01] | aix4.[01].*)
6788       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789            echo ' yes '
6790            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6791         :
6792       else
6793         can_build_shared=no
6794       fi
6795       ;;
6796     esac
6797     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6798     # soname into executable. Probably we can add versioning support to
6799     # collect2, so additional links can be useful in future.
6800     if test "$aix_use_runtimelinking" = yes; then
6801       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802       # instead of lib<name>.a to let people know that these are not
6803       # typical AIX shared libraries.
6804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6805     else
6806       # We preserve .a as extension for shared libraries through AIX4.2
6807       # and later when we are not doing run time linking.
6808       library_names_spec='${libname}${release}.a $libname.a'
6809       soname_spec='${libname}${release}${shared_ext}$major'
6810     fi
6811     shlibpath_var=LIBPATH
6812   fi
6813   ;;
6814
6815 amigaos*)
6816   library_names_spec='$libname.ixlibrary $libname.a'
6817   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6818   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'
6819   ;;
6820
6821 beos*)
6822   library_names_spec='${libname}${shared_ext}'
6823   dynamic_linker="$host_os ld.so"
6824   shlibpath_var=LIBRARY_PATH
6825   ;;
6826
6827 bsdi[45]*)
6828   version_type=linux
6829   need_version=no
6830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831   soname_spec='${libname}${release}${shared_ext}$major'
6832   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6833   shlibpath_var=LD_LIBRARY_PATH
6834   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6835   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6836   # the default ld.so.conf also contains /usr/contrib/lib and
6837   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6838   # libtool to hard-code these into programs
6839   ;;
6840
6841 cygwin* | mingw* | pw32*)
6842   version_type=windows
6843   shrext_cmds=".dll"
6844   need_version=no
6845   need_lib_prefix=no
6846
6847   case $GCC,$host_os in
6848   yes,cygwin* | yes,mingw* | yes,pw32*)
6849     library_names_spec='$libname.dll.a'
6850     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6851     postinstall_cmds='base_file=`basename \${file}`~
6852       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6853       dldir=$destdir/`dirname \$dlpath`~
6854       test -d \$dldir || mkdir -p \$dldir~
6855       $install_prog $dir/$dlname \$dldir/$dlname'
6856     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6857       dlpath=$dir/\$dldll~
6858        $rm \$dlpath'
6859     shlibpath_overrides_runpath=yes
6860
6861     case $host_os in
6862     cygwin*)
6863       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6864       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6865       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6866       ;;
6867     mingw*)
6868       # MinGW DLLs use traditional 'lib' prefix
6869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6870       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6871       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6872         # It is most probably a Windows format PATH printed by
6873         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6874         # path with ; separators, and with drive letters. We can handle the
6875         # drive letters (cygwin fileutils understands them), so leave them,
6876         # especially as we might pass files found there to a mingw objdump,
6877         # which wouldn't understand a cygwinified path. Ahh.
6878         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6879       else
6880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6881       fi
6882       ;;
6883     pw32*)
6884       # pw32 DLLs use 'pw' prefix rather than 'lib'
6885       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6886       ;;
6887     esac
6888     ;;
6889
6890   *)
6891     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6892     ;;
6893   esac
6894   dynamic_linker='Win32 ld.exe'
6895   # FIXME: first we should search . and the directory the executable is in
6896   shlibpath_var=PATH
6897   ;;
6898
6899 darwin* | rhapsody*)
6900   dynamic_linker="$host_os dyld"
6901   version_type=darwin
6902   need_lib_prefix=no
6903   need_version=no
6904   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6905   soname_spec='${libname}${release}${major}$shared_ext'
6906   shlibpath_overrides_runpath=yes
6907   shlibpath_var=DYLD_LIBRARY_PATH
6908   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6909   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6910   if test "$GCC" = yes; then
6911     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"`
6912   else
6913     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6914   fi
6915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6916   ;;
6917
6918 dgux*)
6919   version_type=linux
6920   need_lib_prefix=no
6921   need_version=no
6922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6923   soname_spec='${libname}${release}${shared_ext}$major'
6924   shlibpath_var=LD_LIBRARY_PATH
6925   ;;
6926
6927 freebsd1*)
6928   dynamic_linker=no
6929   ;;
6930
6931 kfreebsd*-gnu)
6932   version_type=linux
6933   need_lib_prefix=no
6934   need_version=no
6935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936   soname_spec='${libname}${release}${shared_ext}$major'
6937   shlibpath_var=LD_LIBRARY_PATH
6938   shlibpath_overrides_runpath=no
6939   hardcode_into_libs=yes
6940   dynamic_linker='GNU ld.so'
6941   ;;
6942
6943 freebsd*)
6944   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6945   version_type=freebsd-$objformat
6946   case $version_type in
6947     freebsd-elf*)
6948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6949       need_version=no
6950       need_lib_prefix=no
6951       ;;
6952     freebsd-*)
6953       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6954       need_version=yes
6955       ;;
6956   esac
6957   shlibpath_var=LD_LIBRARY_PATH
6958   case $host_os in
6959   freebsd2*)
6960     shlibpath_overrides_runpath=yes
6961     ;;
6962   freebsd3.01* | freebsdelf3.01*)
6963     shlibpath_overrides_runpath=yes
6964     hardcode_into_libs=yes
6965     ;;
6966   *) # from 3.2 on
6967     shlibpath_overrides_runpath=no
6968     hardcode_into_libs=yes
6969     ;;
6970   esac
6971   ;;
6972
6973 gnu*)
6974   version_type=linux
6975   need_lib_prefix=no
6976   need_version=no
6977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6978   soname_spec='${libname}${release}${shared_ext}$major'
6979   shlibpath_var=LD_LIBRARY_PATH
6980   hardcode_into_libs=yes
6981   ;;
6982
6983 hpux9* | hpux10* | hpux11*)
6984   # Give a soname corresponding to the major version so that dld.sl refuses to
6985   # link against other versions.
6986   version_type=sunos
6987   need_lib_prefix=no
6988   need_version=no
6989   case "$host_cpu" in
6990   ia64*)
6991     shrext_cmds='.so'
6992     hardcode_into_libs=yes
6993     dynamic_linker="$host_os dld.so"
6994     shlibpath_var=LD_LIBRARY_PATH
6995     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997     soname_spec='${libname}${release}${shared_ext}$major'
6998     if test "X$HPUX_IA64_MODE" = X32; then
6999       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7000     else
7001       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7002     fi
7003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7004     ;;
7005    hppa*64*)
7006      shrext_cmds='.sl'
7007      hardcode_into_libs=yes
7008      dynamic_linker="$host_os dld.sl"
7009      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7010      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7011      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012      soname_spec='${libname}${release}${shared_ext}$major'
7013      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7014      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7015      ;;
7016    *)
7017     shrext_cmds='.sl'
7018     dynamic_linker="$host_os dld.sl"
7019     shlibpath_var=SHLIB_PATH
7020     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022     soname_spec='${libname}${release}${shared_ext}$major'
7023     ;;
7024   esac
7025   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7026   postinstall_cmds='chmod 555 $lib'
7027   ;;
7028
7029 irix5* | irix6* | nonstopux*)
7030   case $host_os in
7031     nonstopux*) version_type=nonstopux ;;
7032     *)
7033         if test "$lt_cv_prog_gnu_ld" = yes; then
7034                 version_type=linux
7035         else
7036                 version_type=irix
7037         fi ;;
7038   esac
7039   need_lib_prefix=no
7040   need_version=no
7041   soname_spec='${libname}${release}${shared_ext}$major'
7042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7043   case $host_os in
7044   irix5* | nonstopux*)
7045     libsuff= shlibsuff=
7046     ;;
7047   *)
7048     case $LD in # libtool.m4 will add one of these switches to LD
7049     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7050       libsuff= shlibsuff= libmagic=32-bit;;
7051     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7052       libsuff=32 shlibsuff=N32 libmagic=N32;;
7053     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7054       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7055     *) libsuff= shlibsuff= libmagic=never-match;;
7056     esac
7057     ;;
7058   esac
7059   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7060   shlibpath_overrides_runpath=no
7061   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7062   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7063   hardcode_into_libs=yes
7064   ;;
7065
7066 # No shared lib support for Linux oldld, aout, or coff.
7067 linux*oldld* | linux*aout* | linux*coff*)
7068   dynamic_linker=no
7069   ;;
7070
7071 # This must be Linux ELF.
7072 linux*)
7073   version_type=linux
7074   need_lib_prefix=no
7075   need_version=no
7076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7077   soname_spec='${libname}${release}${shared_ext}$major'
7078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7079   shlibpath_var=LD_LIBRARY_PATH
7080   shlibpath_overrides_runpath=no
7081   # This implies no fast_install, which is unacceptable.
7082   # Some rework will be needed to allow for fast_install
7083   # before this can be enabled.
7084   hardcode_into_libs=yes
7085
7086   # Append ld.so.conf contents to the search path
7087   if test -f /etc/ld.so.conf; then
7088     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7089     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7090   fi
7091
7092   # We used to test for /lib/ld.so.1 and disable shared libraries on
7093   # powerpc, because MkLinux only supported shared libraries with the
7094   # GNU dynamic linker.  Since this was broken with cross compilers,
7095   # most powerpc-linux boxes support dynamic linking these days and
7096   # people can always --disable-shared, the test was removed, and we
7097   # assume the GNU/Linux dynamic linker is in use.
7098   dynamic_linker='GNU/Linux ld.so'
7099   ;;
7100
7101 knetbsd*-gnu)
7102   version_type=linux
7103   need_lib_prefix=no
7104   need_version=no
7105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7106   soname_spec='${libname}${release}${shared_ext}$major'
7107   shlibpath_var=LD_LIBRARY_PATH
7108   shlibpath_overrides_runpath=no
7109   hardcode_into_libs=yes
7110   dynamic_linker='GNU ld.so'
7111   ;;
7112
7113 netbsd*)
7114   version_type=sunos
7115   need_lib_prefix=no
7116   need_version=no
7117   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120     dynamic_linker='NetBSD (a.out) ld.so'
7121   else
7122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7123     soname_spec='${libname}${release}${shared_ext}$major'
7124     dynamic_linker='NetBSD ld.elf_so'
7125   fi
7126   shlibpath_var=LD_LIBRARY_PATH
7127   shlibpath_overrides_runpath=yes
7128   hardcode_into_libs=yes
7129   ;;
7130
7131 newsos6)
7132   version_type=linux
7133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7134   shlibpath_var=LD_LIBRARY_PATH
7135   shlibpath_overrides_runpath=yes
7136   ;;
7137
7138 nto-qnx*)
7139   version_type=linux
7140   need_lib_prefix=no
7141   need_version=no
7142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7143   soname_spec='${libname}${release}${shared_ext}$major'
7144   shlibpath_var=LD_LIBRARY_PATH
7145   shlibpath_overrides_runpath=yes
7146   ;;
7147
7148 openbsd*)
7149   version_type=sunos
7150   need_lib_prefix=no
7151   need_version=no
7152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7154   shlibpath_var=LD_LIBRARY_PATH
7155   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156     case $host_os in
7157       openbsd2.[89] | openbsd2.[89].*)
7158         shlibpath_overrides_runpath=no
7159         ;;
7160       *)
7161         shlibpath_overrides_runpath=yes
7162         ;;
7163       esac
7164   else
7165     shlibpath_overrides_runpath=yes
7166   fi
7167   ;;
7168
7169 os2*)
7170   libname_spec='$name'
7171   shrext_cmds=".dll"
7172   need_lib_prefix=no
7173   library_names_spec='$libname${shared_ext} $libname.a'
7174   dynamic_linker='OS/2 ld.exe'
7175   shlibpath_var=LIBPATH
7176   ;;
7177
7178 osf3* | osf4* | osf5*)
7179   version_type=osf
7180   need_lib_prefix=no
7181   need_version=no
7182   soname_spec='${libname}${release}${shared_ext}$major'
7183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7184   shlibpath_var=LD_LIBRARY_PATH
7185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7187   ;;
7188
7189 sco3.2v5*)
7190   version_type=osf
7191   soname_spec='${libname}${release}${shared_ext}$major'
7192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7193   shlibpath_var=LD_LIBRARY_PATH
7194   ;;
7195
7196 solaris*)
7197   version_type=linux
7198   need_lib_prefix=no
7199   need_version=no
7200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201   soname_spec='${libname}${release}${shared_ext}$major'
7202   shlibpath_var=LD_LIBRARY_PATH
7203   shlibpath_overrides_runpath=yes
7204   hardcode_into_libs=yes
7205   # ldd complains unless libraries are executable
7206   postinstall_cmds='chmod +x $lib'
7207   ;;
7208
7209 sunos4*)
7210   version_type=sunos
7211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7213   shlibpath_var=LD_LIBRARY_PATH
7214   shlibpath_overrides_runpath=yes
7215   if test "$with_gnu_ld" = yes; then
7216     need_lib_prefix=no
7217   fi
7218   need_version=yes
7219   ;;
7220
7221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7222   version_type=linux
7223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224   soname_spec='${libname}${release}${shared_ext}$major'
7225   shlibpath_var=LD_LIBRARY_PATH
7226   case $host_vendor in
7227     sni)
7228       shlibpath_overrides_runpath=no
7229       need_lib_prefix=no
7230       export_dynamic_flag_spec='${wl}-Blargedynsym'
7231       runpath_var=LD_RUN_PATH
7232       ;;
7233     siemens)
7234       need_lib_prefix=no
7235       ;;
7236     motorola)
7237       need_lib_prefix=no
7238       need_version=no
7239       shlibpath_overrides_runpath=no
7240       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7241       ;;
7242   esac
7243   ;;
7244
7245 sysv4*MP*)
7246   if test -d /usr/nec ;then
7247     version_type=linux
7248     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7249     soname_spec='$libname${shared_ext}.$major'
7250     shlibpath_var=LD_LIBRARY_PATH
7251   fi
7252   ;;
7253
7254 uts4*)
7255   version_type=linux
7256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257   soname_spec='${libname}${release}${shared_ext}$major'
7258   shlibpath_var=LD_LIBRARY_PATH
7259   ;;
7260
7261 *)
7262   dynamic_linker=no
7263   ;;
7264 esac
7265 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7266 echo "${ECHO_T}$dynamic_linker" >&6
7267 test "$dynamic_linker" = no && can_build_shared=no
7268
7269
7270 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7271 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7272 if test "${libltdl_cv_shlibext+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275
7276 module=yes
7277 eval libltdl_cv_shlibext=$shrext_cmds
7278
7279 fi
7280 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7281 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7282 if test -n "$libltdl_cv_shlibext"; then
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7286 _ACEOF
7287
7288 fi
7289
7290
7291 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7292 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7293 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   libltdl_cv_shlibpath_var="$shlibpath_var"
7297 fi
7298 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7299 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7300 if test -n "$libltdl_cv_shlibpath_var"; then
7301
7302 cat >>confdefs.h <<_ACEOF
7303 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7304 _ACEOF
7305
7306 fi
7307
7308
7309 echo "$as_me:$LINENO: checking for the default library search path" >&5
7310 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7311 if test "${libltdl_cv_sys_search_path+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7315 fi
7316 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7317 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7318 if test -n "$libltdl_cv_sys_search_path"; then
7319   sys_search_path=
7320   for dir in $libltdl_cv_sys_search_path; do
7321     if test -z "$sys_search_path"; then
7322       sys_search_path="$dir"
7323     else
7324       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7325     fi
7326   done
7327
7328 cat >>confdefs.h <<_ACEOF
7329 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7330 _ACEOF
7331
7332 fi
7333
7334 echo "$as_me:$LINENO: checking for objdir" >&5
7335 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7336 if test "${libltdl_cv_objdir+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   libltdl_cv_objdir="$objdir"
7340   if test -n "$objdir"; then
7341     :
7342   else
7343     rm -f .libs 2>/dev/null
7344     mkdir .libs 2>/dev/null
7345     if test -d .libs; then
7346       libltdl_cv_objdir=.libs
7347     else
7348       # MS-DOS does not allow filenames that begin with a dot.
7349       libltdl_cv_objdir=_libs
7350     fi
7351   rmdir .libs 2>/dev/null
7352   fi
7353
7354 fi
7355 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7356 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7357
7358 cat >>confdefs.h <<_ACEOF
7359 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7360 _ACEOF
7361
7362
7363 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7364 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7365 if test "${lt_cv_path_NM+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   if test -n "$NM"; then
7369   # Let the user override the test.
7370   lt_cv_path_NM="$NM"
7371 else
7372   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7374     IFS="$lt_save_ifs"
7375     test -z "$ac_dir" && ac_dir=.
7376     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7377     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378       # Check to see if the nm accepts a BSD-compat flag.
7379       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380       #   nm: unknown option "B" ignored
7381       # Tru64's nm complains that /dev/null is an invalid object file
7382       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383       */dev/null* | *'Invalid file or object type'*)
7384         lt_cv_path_NM="$tmp_nm -B"
7385         break
7386         ;;
7387       *)
7388         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389         */dev/null*)
7390           lt_cv_path_NM="$tmp_nm -p"
7391           break
7392           ;;
7393         *)
7394           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395           continue # so that we can try to find one that supports BSD flags
7396           ;;
7397         esac
7398       esac
7399     fi
7400   done
7401   IFS="$lt_save_ifs"
7402   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7403 fi
7404 fi
7405 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7406 echo "${ECHO_T}$lt_cv_path_NM" >&6
7407 NM="$lt_cv_path_NM"
7408
7409
7410
7411
7412
7413 # Check for command to grab the raw symbol name followed by C symbol from nm.
7414 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7415 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419
7420 # These are sane defaults that work on at least a few old systems.
7421 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7422
7423 # Character class describing NM global symbol codes.
7424 symcode='[BCDEGRST]'
7425
7426 # Regexp to match symbols that can be accessed directly from C.
7427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7428
7429 # Transform the above into a raw symbol and a C symbol.
7430 symxfrm='\1 \2\3 \3'
7431
7432 # Transform an extracted symbol line into a proper C declaration
7433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7434
7435 # Transform an extracted symbol line into symbol name and symbol address
7436 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'"
7437
7438 # Define system-specific variables.
7439 case $host_os in
7440 aix*)
7441   symcode='[BCDT]'
7442   ;;
7443 cygwin* | mingw* | pw32*)
7444   symcode='[ABCDGISTW]'
7445   ;;
7446 hpux*) # Its linker distinguishes data from code symbols
7447   if test "$host_cpu" = ia64; then
7448     symcode='[ABCDEGRST]'
7449   fi
7450   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7451   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'"
7452   ;;
7453 linux*)
7454   if test "$host_cpu" = ia64; then
7455     symcode='[ABCDGIRSTW]'
7456     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457     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'"
7458   fi
7459   ;;
7460 irix* | nonstopux*)
7461   symcode='[BCDEGRST]'
7462   ;;
7463 osf*)
7464   symcode='[BCDEGQRST]'
7465   ;;
7466 solaris* | sysv5*)
7467   symcode='[BDRT]'
7468   ;;
7469 sysv4)
7470   symcode='[DFNSTU]'
7471   ;;
7472 esac
7473
7474 # Handle CRLF in mingw tool chain
7475 opt_cr=
7476 case $build_os in
7477 mingw*)
7478   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479   ;;
7480 esac
7481
7482 # If we're using GNU nm, then use its standard symbol codes.
7483 case `$NM -V 2>&1` in
7484 *GNU* | *'with BFD'*)
7485   symcode='[ABCDGIRSTW]' ;;
7486 esac
7487
7488 # Try without a prefix undercore, then with it.
7489 for ac_symprfx in "" "_"; do
7490
7491   # Write the raw and C identifiers.
7492   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7493
7494   # Check to see that the pipe works correctly.
7495   pipe_works=no
7496
7497   rm -f conftest*
7498   cat > conftest.$ac_ext <<EOF
7499 #ifdef __cplusplus
7500 extern "C" {
7501 #endif
7502 char nm_test_var;
7503 void nm_test_func(){}
7504 #ifdef __cplusplus
7505 }
7506 #endif
7507 int main(){nm_test_var='a';nm_test_func();return(0);}
7508 EOF
7509
7510   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511   (eval $ac_compile) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; then
7515     # Now try to grab the symbols.
7516     nlist=conftest.nm
7517     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7518   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } && test -s "$nlist"; then
7522       # Try sorting and uniquifying the output.
7523       if sort "$nlist" | uniq > "$nlist"T; then
7524         mv -f "$nlist"T "$nlist"
7525       else
7526         rm -f "$nlist"T
7527       fi
7528
7529       # Make sure that we snagged all the symbols we need.
7530       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7531         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7532           cat <<EOF > conftest.$ac_ext
7533 #ifdef __cplusplus
7534 extern "C" {
7535 #endif
7536
7537 EOF
7538           # Now generate the symbol file.
7539           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7540
7541           cat <<EOF >> conftest.$ac_ext
7542 #if defined (__STDC__) && __STDC__
7543 # define lt_ptr_t void *
7544 #else
7545 # define lt_ptr_t char *
7546 # define const
7547 #endif
7548
7549 /* The mapping between symbol names and symbols. */
7550 const struct {
7551   const char *name;
7552   lt_ptr_t address;
7553 }
7554 lt_preloaded_symbols[] =
7555 {
7556 EOF
7557           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7558           cat <<\EOF >> conftest.$ac_ext
7559   {0, (lt_ptr_t) 0}
7560 };
7561
7562 #ifdef __cplusplus
7563 }
7564 #endif
7565 EOF
7566           # Now try linking the two files.
7567           mv conftest.$ac_objext conftstm.$ac_objext
7568           lt_save_LIBS="$LIBS"
7569           lt_save_CFLAGS="$CFLAGS"
7570           LIBS="conftstm.$ac_objext"
7571           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7572           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573   (eval $ac_link) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7577             pipe_works=yes
7578           fi
7579           LIBS="$lt_save_LIBS"
7580           CFLAGS="$lt_save_CFLAGS"
7581         else
7582           echo "cannot find nm_test_func in $nlist" >&5
7583         fi
7584       else
7585         echo "cannot find nm_test_var in $nlist" >&5
7586       fi
7587     else
7588       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7589     fi
7590   else
7591     echo "$progname: failed program was:" >&5
7592     cat conftest.$ac_ext >&5
7593   fi
7594   rm -f conftest* conftst*
7595
7596   # Do not use the global_symbol_pipe unless it works.
7597   if test "$pipe_works" = yes; then
7598     break
7599   else
7600     lt_cv_sys_global_symbol_pipe=
7601   fi
7602 done
7603
7604 fi
7605
7606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7607   lt_cv_sys_global_symbol_to_cdecl=
7608 fi
7609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7610   echo "$as_me:$LINENO: result: failed" >&5
7611 echo "${ECHO_T}failed" >&6
7612 else
7613   echo "$as_me:$LINENO: result: ok" >&5
7614 echo "${ECHO_T}ok" >&6
7615 fi
7616
7617
7618 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7624     libltdl_cv_preloaded_symbols=yes
7625   else
7626     libltdl_cv_preloaded_symbols=no
7627   fi
7628
7629 fi
7630 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define HAVE_PRELOADED_SYMBOLS 1
7636 _ACEOF
7637
7638 fi
7639
7640 LIBADD_DL=
7641
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649 echo "$as_me:$LINENO: checking for shl_load" >&5
7650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7651 if test "${ac_cv_func_shl_load+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h.  */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h.  */
7660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7662 #define shl_load innocuous_shl_load
7663
7664 /* System header to define __stub macros and hopefully few prototypes,
7665     which can conflict with char shl_load (); below.
7666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667     <limits.h> exists even on freestanding compilers.  */
7668
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7674
7675 #undef shl_load
7676
7677 /* Override any gcc2 internal prototype to avoid an error.  */
7678 #ifdef __cplusplus
7679 extern "C"
7680 {
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683    builtin and then its argument prototype would still apply.  */
7684 char shl_load ();
7685 /* The GNU C library defines this for functions which it implements
7686     to always fail with ENOSYS.  Some functions are actually named
7687     something starting with __ and the normal name is an alias.  */
7688 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7689 choke me
7690 #else
7691 char (*f) () = shl_load;
7692 #endif
7693 #ifdef __cplusplus
7694 }
7695 #endif
7696
7697 int
7698 main ()
7699 {
7700 return f != shl_load;
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } &&
7714          { ac_try='test -z "$ac_c_werror_flag"
7715                          || test ! -s conftest.err'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; } &&
7721          { ac_try='test -s conftest$ac_exeext'
7722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723   (eval $ac_try) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }; }; then
7727   ac_cv_func_shl_load=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_func_shl_load=no
7733 fi
7734 rm -f conftest.err conftest.$ac_objext \
7735       conftest$ac_exeext conftest.$ac_ext
7736 fi
7737 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7738 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7739 if test $ac_cv_func_shl_load = yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_SHL_LOAD 1
7743 _ACEOF
7744
7745 else
7746   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7747 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   ac_check_lib_save_LIBS=$LIBS
7752 LIBS="-ldld  $LIBS"
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759
7760 /* Override any gcc2 internal prototype to avoid an error.  */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 /* We use char because int might match the return type of a gcc2
7765    builtin and then its argument prototype would still apply.  */
7766 char shl_load ();
7767 int
7768 main ()
7769 {
7770 shl_load ();
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777   (eval $ac_link) 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -z "$ac_c_werror_flag"
7785                          || test ! -s conftest.err'
7786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787   (eval $ac_try) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; } &&
7791          { ac_try='test -s conftest$ac_exeext'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; }; then
7797   ac_cv_lib_dld_shl_load=yes
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802 ac_cv_lib_dld_shl_load=no
7803 fi
7804 rm -f conftest.err conftest.$ac_objext \
7805       conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7810 if test $ac_cv_lib_dld_shl_load = yes; then
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_SHL_LOAD 1
7814 _ACEOF
7815
7816         LIBADD_DL="$LIBADD_DL -ldld"
7817 else
7818   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7819 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   ac_check_lib_save_LIBS=$LIBS
7824 LIBS="-ldl  $LIBS"
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 /* Override any gcc2 internal prototype to avoid an error.  */
7833 #ifdef __cplusplus
7834 extern "C"
7835 #endif
7836 /* We use char because int might match the return type of a gcc2
7837    builtin and then its argument prototype would still apply.  */
7838 char dlopen ();
7839 int
7840 main ()
7841 {
7842 dlopen ();
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849   (eval $ac_link) 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } &&
7856          { ac_try='test -z "$ac_c_werror_flag"
7857                          || test ! -s conftest.err'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; } &&
7863          { ac_try='test -s conftest$ac_exeext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   ac_cv_lib_dl_dlopen=yes
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874 ac_cv_lib_dl_dlopen=no
7875 fi
7876 rm -f conftest.err conftest.$ac_objext \
7877       conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7879 fi
7880 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7881 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7882 if test $ac_cv_lib_dl_dlopen = yes; then
7883
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_LIBDL 1
7886 _ACEOF
7887
7888                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #if HAVE_DLFCN_H
7897 #  include <dlfcn.h>
7898 #endif
7899
7900 int
7901 main ()
7902 {
7903 dlopen(0, 0);
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910   (eval $ac_link) 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
7914   cat conftest.err >&5
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -z "$ac_c_werror_flag"
7918                          || test ! -s conftest.err'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_LIBDL 1
7933 _ACEOF
7934  libltdl_cv_func_dlopen="yes"
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7940 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7941 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   ac_check_lib_save_LIBS=$LIBS
7945 LIBS="-lsvld  $LIBS"
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952
7953 /* Override any gcc2 internal prototype to avoid an error.  */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 /* We use char because int might match the return type of a gcc2
7958    builtin and then its argument prototype would still apply.  */
7959 char dlopen ();
7960 int
7961 main ()
7962 {
7963 dlopen ();
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970   (eval $ac_link) 2>conftest.er1
7971   ac_status=$?
7972   grep -v '^ *+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } &&
7977          { ac_try='test -z "$ac_c_werror_flag"
7978                          || test ! -s conftest.err'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest$ac_exeext'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; }; then
7990   ac_cv_lib_svld_dlopen=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 ac_cv_lib_svld_dlopen=no
7996 fi
7997 rm -f conftest.err conftest.$ac_objext \
7998       conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8000 fi
8001 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8003 if test $ac_cv_lib_svld_dlopen = yes; then
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_LIBDL 1
8007 _ACEOF
8008
8009                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8010 else
8011   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-ldld  $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 /* Override any gcc2 internal prototype to avoid an error.  */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030    builtin and then its argument prototype would still apply.  */
8031 char dld_link ();
8032 int
8033 main ()
8034 {
8035 dld_link ();
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag"
8050                          || test ! -s conftest.err'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest$ac_exeext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_cv_lib_dld_dld_link=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_cv_lib_dld_dld_link=no
8068 fi
8069 rm -f conftest.err conftest.$ac_objext \
8070       conftest$ac_exeext conftest.$ac_ext
8071 LIBS=$ac_check_lib_save_LIBS
8072 fi
8073 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8075 if test $ac_cv_lib_dld_dld_link = yes; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_DLD 1
8079 _ACEOF
8080
8081                 LIBADD_DL="$LIBADD_DL -ldld"
8082 else
8083   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8084 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8085 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8096 #define _dyld_func_lookup innocuous__dyld_func_lookup
8097
8098 /* System header to define __stub macros and hopefully few prototypes,
8099     which can conflict with char _dyld_func_lookup (); below.
8100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101     <limits.h> exists even on freestanding compilers.  */
8102
8103 #ifdef __STDC__
8104 # include <limits.h>
8105 #else
8106 # include <assert.h>
8107 #endif
8108
8109 #undef _dyld_func_lookup
8110
8111 /* Override any gcc2 internal prototype to avoid an error.  */
8112 #ifdef __cplusplus
8113 extern "C"
8114 {
8115 #endif
8116 /* We use char because int might match the return type of a gcc2
8117    builtin and then its argument prototype would still apply.  */
8118 char _dyld_func_lookup ();
8119 /* The GNU C library defines this for functions which it implements
8120     to always fail with ENOSYS.  Some functions are actually named
8121     something starting with __ and the normal name is an alias.  */
8122 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8123 choke me
8124 #else
8125 char (*f) () = _dyld_func_lookup;
8126 #endif
8127 #ifdef __cplusplus
8128 }
8129 #endif
8130
8131 int
8132 main ()
8133 {
8134 return f != _dyld_func_lookup;
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141   (eval $ac_link) 2>conftest.er1
8142   ac_status=$?
8143   grep -v '^ *+' conftest.er1 >conftest.err
8144   rm -f conftest.er1
8145   cat conftest.err >&5
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -z "$ac_c_werror_flag"
8149                          || test ! -s conftest.err'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; } &&
8155          { ac_try='test -s conftest$ac_exeext'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; }; then
8161   ac_cv_func__dyld_func_lookup=yes
8162 else
8163   echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 ac_cv_func__dyld_func_lookup=no
8167 fi
8168 rm -f conftest.err conftest.$ac_objext \
8169       conftest$ac_exeext conftest.$ac_ext
8170 fi
8171 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8172 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8173 if test $ac_cv_func__dyld_func_lookup = yes; then
8174
8175 cat >>confdefs.h <<\_ACEOF
8176 #define HAVE_DYLD 1
8177 _ACEOF
8178
8179 fi
8180
8181
8182 fi
8183
8184
8185 fi
8186
8187
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191
8192 fi
8193
8194
8195 fi
8196
8197
8198 fi
8199
8200
8201 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8202 then
8203   lt_save_LIBS="$LIBS"
8204   LIBS="$LIBS $LIBADD_DL"
8205
8206 for ac_func in dlerror
8207 do
8208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209 echo "$as_me:$LINENO: checking for $ac_func" >&5
8210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8211 if eval "test \"\${$as_ac_var+set}\" = set"; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8222 #define $ac_func innocuous_$ac_func
8223
8224 /* System header to define __stub macros and hopefully few prototypes,
8225     which can conflict with char $ac_func (); below.
8226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8227     <limits.h> exists even on freestanding compilers.  */
8228
8229 #ifdef __STDC__
8230 # include <limits.h>
8231 #else
8232 # include <assert.h>
8233 #endif
8234
8235 #undef $ac_func
8236
8237 /* Override any gcc2 internal prototype to avoid an error.  */
8238 #ifdef __cplusplus
8239 extern "C"
8240 {
8241 #endif
8242 /* We use char because int might match the return type of a gcc2
8243    builtin and then its argument prototype would still apply.  */
8244 char $ac_func ();
8245 /* The GNU C library defines this for functions which it implements
8246     to always fail with ENOSYS.  Some functions are actually named
8247     something starting with __ and the normal name is an alias.  */
8248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249 choke me
8250 #else
8251 char (*f) () = $ac_func;
8252 #endif
8253 #ifdef __cplusplus
8254 }
8255 #endif
8256
8257 int
8258 main ()
8259 {
8260 return f != $ac_func;
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } &&
8274          { ac_try='test -z "$ac_c_werror_flag"
8275                          || test ! -s conftest.err'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; } &&
8281          { ac_try='test -s conftest$ac_exeext'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; }; then
8287   eval "$as_ac_var=yes"
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 eval "$as_ac_var=no"
8293 fi
8294 rm -f conftest.err conftest.$ac_objext \
8295       conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8299 if test `eval echo '${'$as_ac_var'}'` = yes; then
8300   cat >>confdefs.h <<_ACEOF
8301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302 _ACEOF
8303
8304 fi
8305 done
8306
8307   LIBS="$lt_save_LIBS"
8308 fi
8309 ac_ext=c
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314
8315
8316
8317 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8318 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8319 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   ac_cv_sys_symbol_underscore=no
8323   cat > conftest.$ac_ext <<EOF
8324 void nm_test_func(){}
8325 int main(){nm_test_func;return 0;}
8326 EOF
8327   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328   (eval $ac_compile) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; then
8332     # Now try to grab the symbols.
8333     ac_nlist=conftest.nm
8334     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8335   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } && test -s "$ac_nlist"; then
8339       # See whether the symbols have a leading underscore.
8340       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8341         ac_cv_sys_symbol_underscore=yes
8342       else
8343         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8344           :
8345         else
8346           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8347         fi
8348       fi
8349     else
8350       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8351     fi
8352   else
8353     echo "configure: failed program was:" >&5
8354     cat conftest.c >&5
8355   fi
8356   rm -rf conftest*
8357
8358 fi
8359 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8360 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8361
8362
8363 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8364   if test x"$libltdl_cv_func_dlopen" = xyes ||
8365      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8366         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8367 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8368 if test "${libltdl_cv_need_uscore+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   libltdl_cv_need_uscore=unknown
8372           save_LIBS="$LIBS"
8373           LIBS="$LIBS $LIBADD_DL"
8374           if test "$cross_compiling" = yes; then :
8375   libltdl_cv_need_uscore=cross
8376 else
8377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8378   lt_status=$lt_dlunknown
8379   cat > conftest.$ac_ext <<EOF
8380 #line 8380 "configure"
8381 #include "confdefs.h"
8382
8383 #if HAVE_DLFCN_H
8384 #include <dlfcn.h>
8385 #endif
8386
8387 #include <stdio.h>
8388
8389 #ifdef RTLD_GLOBAL
8390 #  define LT_DLGLOBAL           RTLD_GLOBAL
8391 #else
8392 #  ifdef DL_GLOBAL
8393 #    define LT_DLGLOBAL         DL_GLOBAL
8394 #  else
8395 #    define LT_DLGLOBAL         0
8396 #  endif
8397 #endif
8398
8399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8400    find out it does not work in some platform. */
8401 #ifndef LT_DLLAZY_OR_NOW
8402 #  ifdef RTLD_LAZY
8403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8404 #  else
8405 #    ifdef DL_LAZY
8406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8407 #    else
8408 #      ifdef RTLD_NOW
8409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8410 #      else
8411 #        ifdef DL_NOW
8412 #          define LT_DLLAZY_OR_NOW      DL_NOW
8413 #        else
8414 #          define LT_DLLAZY_OR_NOW      0
8415 #        endif
8416 #      endif
8417 #    endif
8418 #  endif
8419 #endif
8420
8421 #ifdef __cplusplus
8422 extern "C" void exit (int);
8423 #endif
8424
8425 void fnord() { int i=42;}
8426 int main ()
8427 {
8428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8429   int status = $lt_dlunknown;
8430
8431   if (self)
8432     {
8433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8434       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8435       /* dlclose (self); */
8436     }
8437
8438     exit (status);
8439 }
8440 EOF
8441   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442   (eval $ac_link) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8446     (./conftest; exit; ) 2>/dev/null
8447     lt_status=$?
8448     case x$lt_status in
8449       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8450       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8451       x$lt_unknown|x*)  ;;
8452     esac
8453   else :
8454     # compilation failed
8455
8456   fi
8457 fi
8458 rm -fr conftest*
8459
8460           LIBS="$save_LIBS"
8461
8462 fi
8463 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8464 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8465   fi
8466 fi
8467
8468 if test x"$libltdl_cv_need_uscore" = xyes; then
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define NEED_USCORE 1
8472 _ACEOF
8473
8474 fi
8475
8476
8477 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8478 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8479 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   # PORTME does your system automatically load deplibs for dlopen?
8483   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8484   # For now, we just catch OSes we know something about -- in the
8485   # future, we'll try test this programmatically.
8486   libltdl_cv_sys_dlopen_deplibs=unknown
8487   case "$host_os" in
8488   aix3*|aix4.1.*|aix4.2.*)
8489     # Unknown whether this is true for these versions of AIX, but
8490     # we want this `case' here to explicitly catch those versions.
8491     libltdl_cv_sys_dlopen_deplibs=unknown
8492     ;;
8493   aix[45]*)
8494     libltdl_cv_sys_dlopen_deplibs=yes
8495     ;;
8496   darwin*)
8497     # Assuming the user has installed a libdl from somewhere, this is true
8498     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8499     libltdl_cv_sys_dlopen_deplibs=yes
8500     ;;
8501   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8502     # GNU and its variants, using gnu ld.so (Glibc)
8503     libltdl_cv_sys_dlopen_deplibs=yes
8504     ;;
8505   hpux10*|hpux11*)
8506     libltdl_cv_sys_dlopen_deplibs=yes
8507     ;;
8508   irix[12345]*|irix6.[01]*)
8509     # Catch all versions of IRIX before 6.2, and indicate that we don't
8510     # know how it worked for any of those versions.
8511     libltdl_cv_sys_dlopen_deplibs=unknown
8512     ;;
8513   irix*)
8514     # The case above catches anything before 6.2, and it's known that
8515     # at 6.2 and later dlopen does load deplibs.
8516     libltdl_cv_sys_dlopen_deplibs=yes
8517     ;;
8518   netbsd*)
8519     libltdl_cv_sys_dlopen_deplibs=yes
8520     ;;
8521   openbsd*)
8522     libltdl_cv_sys_dlopen_deplibs=yes
8523     ;;
8524   osf[1234]*)
8525     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8526     # it did *not* use an RPATH in a shared library to find objects the
8527     # library depends on, so we explictly say `no'.
8528     libltdl_cv_sys_dlopen_deplibs=no
8529     ;;
8530   osf5.0|osf5.0a|osf5.1)
8531     # dlopen *does* load deplibs and with the right loader patch applied
8532     # it even uses RPATH in a shared library to search for shared objects
8533     # that the library depends on, but there's no easy way to know if that
8534     # patch is installed.  Since this is the case, all we can really
8535     # say is unknown -- it depends on the patch being installed.  If
8536     # it is, this changes to `yes'.  Without it, it would be `no'.
8537     libltdl_cv_sys_dlopen_deplibs=unknown
8538     ;;
8539   osf*)
8540     # the two cases above should catch all versions of osf <= 5.1.  Read
8541     # the comments above for what we know about them.
8542     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8543     # is used to find them so we can finally say `yes'.
8544     libltdl_cv_sys_dlopen_deplibs=yes
8545     ;;
8546   solaris*)
8547     libltdl_cv_sys_dlopen_deplibs=yes
8548     ;;
8549   esac
8550
8551 fi
8552 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8553 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8554 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define LTDL_DLOPEN_DEPLIBS 1
8558 _ACEOF
8559
8560 fi
8561
8562
8563 for ac_header in argz.h
8564 do
8565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567   echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 fi
8572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574 else
8575   # Is the header compilable?
8576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 $ac_includes_default
8585 #include <$ac_header>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589   (eval $ac_compile) 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } &&
8596          { ac_try='test -z "$ac_c_werror_flag"
8597                          || test ! -s conftest.err'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; } &&
8603          { ac_try='test -s conftest.$ac_objext'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_header_compiler=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_header_compiler=no
8615 fi
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 #include <$ac_header>
8630 _ACEOF
8631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } >/dev/null; then
8639   if test -s conftest.err; then
8640     ac_cpp_err=$ac_c_preproc_warn_flag
8641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8642   else
8643     ac_cpp_err=
8644   fi
8645 else
8646   ac_cpp_err=yes
8647 fi
8648 if test -z "$ac_cpp_err"; then
8649   ac_header_preproc=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654   ac_header_preproc=no
8655 fi
8656 rm -f conftest.err conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6
8659
8660 # So?  What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662   yes:no: )
8663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667     ac_header_preproc=yes
8668     ;;
8669   no:yes:* )
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682     (
8683       cat <<\_ASBOX
8684 ## ----------------------------------- ##
8685 ## Report this to llvmbugs@cs.uiuc.edu ##
8686 ## ----------------------------------- ##
8687 _ASBOX
8688     ) |
8689       sed "s/^/$as_me: WARNING:     /" >&2
8690     ;;
8691 esac
8692 echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   eval "$as_ac_Header=\$ac_header_preproc"
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701
8702 fi
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704   cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706 _ACEOF
8707
8708 fi
8709
8710 done
8711
8712
8713 echo "$as_me:$LINENO: checking for error_t" >&5
8714 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8715 if test "${ac_cv_type_error_t+set}" = set; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #if HAVE_ARGZ_H
8725 #  include <argz.h>
8726 #endif
8727
8728 int
8729 main ()
8730 {
8731 if ((error_t *) 0)
8732   return 0;
8733 if (sizeof (error_t))
8734   return 0;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741   (eval $ac_compile) 2>conftest.er1
8742   ac_status=$?
8743   grep -v '^ *+' conftest.er1 >conftest.err
8744   rm -f conftest.er1
8745   cat conftest.err >&5
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } &&
8748          { ac_try='test -z "$ac_c_werror_flag"
8749                          || test ! -s conftest.err'
8750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751   (eval $ac_try) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }; } &&
8755          { ac_try='test -s conftest.$ac_objext'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; }; then
8761   ac_cv_type_error_t=yes
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 ac_cv_type_error_t=no
8767 fi
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8771 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8772 if test $ac_cv_type_error_t = yes; then
8773
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_ERROR_T 1
8776 _ACEOF
8777
8778
8779 else
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define error_t int
8783 _ACEOF
8784
8785 fi
8786
8787
8788
8789
8790
8791
8792
8793 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8794 do
8795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_func" >&5
8797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_var+set}\" = set"; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8809 #define $ac_func innocuous_$ac_func
8810
8811 /* System header to define __stub macros and hopefully few prototypes,
8812     which can conflict with char $ac_func (); below.
8813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814     <limits.h> exists even on freestanding compilers.  */
8815
8816 #ifdef __STDC__
8817 # include <limits.h>
8818 #else
8819 # include <assert.h>
8820 #endif
8821
8822 #undef $ac_func
8823
8824 /* Override any gcc2 internal prototype to avoid an error.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 {
8828 #endif
8829 /* We use char because int might match the return type of a gcc2
8830    builtin and then its argument prototype would still apply.  */
8831 char $ac_func ();
8832 /* The GNU C library defines this for functions which it implements
8833     to always fail with ENOSYS.  Some functions are actually named
8834     something starting with __ and the normal name is an alias.  */
8835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8836 choke me
8837 #else
8838 char (*f) () = $ac_func;
8839 #endif
8840 #ifdef __cplusplus
8841 }
8842 #endif
8843
8844 int
8845 main ()
8846 {
8847 return f != $ac_func;
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854   (eval $ac_link) 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag"
8862                          || test ! -s conftest.err'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest$ac_exeext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   eval "$as_ac_var=yes"
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 eval "$as_ac_var=no"
8880 fi
8881 rm -f conftest.err conftest.$ac_objext \
8882       conftest$ac_exeext conftest.$ac_ext
8883 fi
8884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8886 if test `eval echo '${'$as_ac_var'}'` = yes; then
8887   cat >>confdefs.h <<_ACEOF
8888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8889 _ACEOF
8890
8891 fi
8892 done
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8922                   stdio.h unistd.h
8923 do
8924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926   echo "$as_me:$LINENO: checking for $ac_header" >&5
8927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 fi
8931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8933 else
8934   # Is the header compilable?
8935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943 $ac_includes_default
8944 #include <$ac_header>
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948   (eval $ac_compile) 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -z "$ac_c_werror_flag"
8956                          || test ! -s conftest.err'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; } &&
8962          { ac_try='test -s conftest.$ac_objext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_header_compiler=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973 ac_header_compiler=no
8974 fi
8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8977 echo "${ECHO_T}$ac_header_compiler" >&6
8978
8979 # Is the header present?
8980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 #include <$ac_header>
8989 _ACEOF
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } >/dev/null; then
8998   if test -s conftest.err; then
8999     ac_cpp_err=$ac_c_preproc_warn_flag
9000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9001   else
9002     ac_cpp_err=
9003   fi
9004 else
9005   ac_cpp_err=yes
9006 fi
9007 if test -z "$ac_cpp_err"; then
9008   ac_header_preproc=yes
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013   ac_header_preproc=no
9014 fi
9015 rm -f conftest.err conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9017 echo "${ECHO_T}$ac_header_preproc" >&6
9018
9019 # So?  What about this header?
9020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9021   yes:no: )
9022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9026     ac_header_preproc=yes
9027     ;;
9028   no:yes:* )
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9041     (
9042       cat <<\_ASBOX
9043 ## ----------------------------------- ##
9044 ## Report this to llvmbugs@cs.uiuc.edu ##
9045 ## ----------------------------------- ##
9046 _ASBOX
9047     ) |
9048       sed "s/^/$as_me: WARNING:     /" >&2
9049     ;;
9050 esac
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   eval "$as_ac_Header=\$ac_header_preproc"
9057 fi
9058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060
9061 fi
9062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9063   cat >>confdefs.h <<_ACEOF
9064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065 _ACEOF
9066
9067 fi
9068
9069 done
9070
9071
9072
9073
9074
9075 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9076 do
9077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079   echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 fi
9084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 else
9087   # Is the header compilable?
9088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9090 cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 $ac_includes_default
9097 #include <$ac_header>
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -z "$ac_c_werror_flag"
9109                          || test ! -s conftest.err'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest.$ac_objext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_header_compiler=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_header_compiler=no
9127 fi
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 #include <$ac_header>
9142 _ACEOF
9143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } >/dev/null; then
9151   if test -s conftest.err; then
9152     ac_cpp_err=$ac_c_preproc_warn_flag
9153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154   else
9155     ac_cpp_err=
9156   fi
9157 else
9158   ac_cpp_err=yes
9159 fi
9160 if test -z "$ac_cpp_err"; then
9161   ac_header_preproc=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166   ac_header_preproc=no
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172 # So?  What about this header?
9173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174   yes:no: )
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179     ac_header_preproc=yes
9180     ;;
9181   no:yes:* )
9182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194     (
9195       cat <<\_ASBOX
9196 ## ----------------------------------- ##
9197 ## Report this to llvmbugs@cs.uiuc.edu ##
9198 ## ----------------------------------- ##
9199 _ASBOX
9200     ) |
9201       sed "s/^/$as_me: WARNING:     /" >&2
9202     ;;
9203 esac
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   eval "$as_ac_Header=\$ac_header_preproc"
9210 fi
9211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214 fi
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216   cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 _ACEOF
9219
9220 fi
9221
9222 done
9223
9224
9225
9226 for ac_header in string.h strings.h
9227 do
9228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230   echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 fi
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 else
9238   # Is the header compilable?
9239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 $ac_includes_default
9248 #include <$ac_header>
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252   (eval $ac_compile) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest.$ac_objext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_header_compiler=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_header_compiler=no
9278 fi
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281 echo "${ECHO_T}$ac_header_compiler" >&6
9282
9283 # Is the header present?
9284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <$ac_header>
9293 _ACEOF
9294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } >/dev/null; then
9302   if test -s conftest.err; then
9303     ac_cpp_err=$ac_c_preproc_warn_flag
9304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305   else
9306     ac_cpp_err=
9307   fi
9308 else
9309   ac_cpp_err=yes
9310 fi
9311 if test -z "$ac_cpp_err"; then
9312   ac_header_preproc=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317   ac_header_preproc=no
9318 fi
9319 rm -f conftest.err conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6
9322
9323 # So?  What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325   yes:no: )
9326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330     ac_header_preproc=yes
9331     ;;
9332   no:yes:* )
9333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345     (
9346       cat <<\_ASBOX
9347 ## ----------------------------------- ##
9348 ## Report this to llvmbugs@cs.uiuc.edu ##
9349 ## ----------------------------------- ##
9350 _ASBOX
9351     ) |
9352       sed "s/^/$as_me: WARNING:     /" >&2
9353     ;;
9354 esac
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   eval "$as_ac_Header=\$ac_header_preproc"
9361 fi
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365 fi
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367   cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 _ACEOF
9370  break
9371 fi
9372
9373 done
9374
9375
9376
9377
9378 for ac_func in strchr index
9379 do
9380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381 echo "$as_me:$LINENO: checking for $ac_func" >&5
9382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383 if eval "test \"\${$as_ac_var+set}\" = set"; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9394 #define $ac_func innocuous_$ac_func
9395
9396 /* System header to define __stub macros and hopefully few prototypes,
9397     which can conflict with char $ac_func (); below.
9398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399     <limits.h> exists even on freestanding compilers.  */
9400
9401 #ifdef __STDC__
9402 # include <limits.h>
9403 #else
9404 # include <assert.h>
9405 #endif
9406
9407 #undef $ac_func
9408
9409 /* Override any gcc2 internal prototype to avoid an error.  */
9410 #ifdef __cplusplus
9411 extern "C"
9412 {
9413 #endif
9414 /* We use char because int might match the return type of a gcc2
9415    builtin and then its argument prototype would still apply.  */
9416 char $ac_func ();
9417 /* The GNU C library defines this for functions which it implements
9418     to always fail with ENOSYS.  Some functions are actually named
9419     something starting with __ and the normal name is an alias.  */
9420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421 choke me
9422 #else
9423 char (*f) () = $ac_func;
9424 #endif
9425 #ifdef __cplusplus
9426 }
9427 #endif
9428
9429 int
9430 main ()
9431 {
9432 return f != $ac_func;
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439   (eval $ac_link) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag"
9447                          || test ! -s conftest.err'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; } &&
9453          { ac_try='test -s conftest$ac_exeext'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459   eval "$as_ac_var=yes"
9460 else
9461   echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 eval "$as_ac_var=no"
9465 fi
9466 rm -f conftest.err conftest.$ac_objext \
9467       conftest$ac_exeext conftest.$ac_ext
9468 fi
9469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9471 if test `eval echo '${'$as_ac_var'}'` = yes; then
9472   cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9474 _ACEOF
9475  break
9476 fi
9477 done
9478
9479
9480
9481 for ac_func in strrchr rindex
9482 do
9483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484 echo "$as_me:$LINENO: checking for $ac_func" >&5
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486 if eval "test \"\${$as_ac_var+set}\" = set"; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497 #define $ac_func innocuous_$ac_func
9498
9499 /* System header to define __stub macros and hopefully few prototypes,
9500     which can conflict with char $ac_func (); below.
9501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502     <limits.h> exists even on freestanding compilers.  */
9503
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9509
9510 #undef $ac_func
9511
9512 /* Override any gcc2 internal prototype to avoid an error.  */
9513 #ifdef __cplusplus
9514 extern "C"
9515 {
9516 #endif
9517 /* We use char because int might match the return type of a gcc2
9518    builtin and then its argument prototype would still apply.  */
9519 char $ac_func ();
9520 /* The GNU C library defines this for functions which it implements
9521     to always fail with ENOSYS.  Some functions are actually named
9522     something starting with __ and the normal name is an alias.  */
9523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9524 choke me
9525 #else
9526 char (*f) () = $ac_func;
9527 #endif
9528 #ifdef __cplusplus
9529 }
9530 #endif
9531
9532 int
9533 main ()
9534 {
9535 return f != $ac_func;
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542   (eval $ac_link) 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -z "$ac_c_werror_flag"
9550                          || test ! -s conftest.err'
9551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552   (eval $ac_try) 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; } &&
9556          { ac_try='test -s conftest$ac_exeext'
9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558   (eval $ac_try) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; }; then
9562   eval "$as_ac_var=yes"
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 eval "$as_ac_var=no"
9568 fi
9569 rm -f conftest.err conftest.$ac_objext \
9570       conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9574 if test `eval echo '${'$as_ac_var'}'` = yes; then
9575   cat >>confdefs.h <<_ACEOF
9576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577 _ACEOF
9578  break
9579 fi
9580 done
9581
9582
9583
9584 for ac_func in memcpy bcopy
9585 do
9586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9587 echo "$as_me:$LINENO: checking for $ac_func" >&5
9588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9589 if eval "test \"\${$as_ac_var+set}\" = set"; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9600 #define $ac_func innocuous_$ac_func
9601
9602 /* System header to define __stub macros and hopefully few prototypes,
9603     which can conflict with char $ac_func (); below.
9604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605     <limits.h> exists even on freestanding compilers.  */
9606
9607 #ifdef __STDC__
9608 # include <limits.h>
9609 #else
9610 # include <assert.h>
9611 #endif
9612
9613 #undef $ac_func
9614
9615 /* Override any gcc2 internal prototype to avoid an error.  */
9616 #ifdef __cplusplus
9617 extern "C"
9618 {
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621    builtin and then its argument prototype would still apply.  */
9622 char $ac_func ();
9623 /* The GNU C library defines this for functions which it implements
9624     to always fail with ENOSYS.  Some functions are actually named
9625     something starting with __ and the normal name is an alias.  */
9626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9627 choke me
9628 #else
9629 char (*f) () = $ac_func;
9630 #endif
9631 #ifdef __cplusplus
9632 }
9633 #endif
9634
9635 int
9636 main ()
9637 {
9638 return f != $ac_func;
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645   (eval $ac_link) 2>conftest.er1
9646   ac_status=$?
9647   grep -v '^ *+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } &&
9652          { ac_try='test -z "$ac_c_werror_flag"
9653                          || test ! -s conftest.err'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; } &&
9659          { ac_try='test -s conftest$ac_exeext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   eval "$as_ac_var=yes"
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 eval "$as_ac_var=no"
9671 fi
9672 rm -f conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9677 if test `eval echo '${'$as_ac_var'}'` = yes; then
9678   cat >>confdefs.h <<_ACEOF
9679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9680 _ACEOF
9681  break
9682 fi
9683 done
9684
9685
9686
9687 for ac_func in memmove strcmp
9688 do
9689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690 echo "$as_me:$LINENO: checking for $ac_func" >&5
9691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_var+set}\" = set"; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9703 #define $ac_func innocuous_$ac_func
9704
9705 /* System header to define __stub macros and hopefully few prototypes,
9706     which can conflict with char $ac_func (); below.
9707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708     <limits.h> exists even on freestanding compilers.  */
9709
9710 #ifdef __STDC__
9711 # include <limits.h>
9712 #else
9713 # include <assert.h>
9714 #endif
9715
9716 #undef $ac_func
9717
9718 /* Override any gcc2 internal prototype to avoid an error.  */
9719 #ifdef __cplusplus
9720 extern "C"
9721 {
9722 #endif
9723 /* We use char because int might match the return type of a gcc2
9724    builtin and then its argument prototype would still apply.  */
9725 char $ac_func ();
9726 /* The GNU C library defines this for functions which it implements
9727     to always fail with ENOSYS.  Some functions are actually named
9728     something starting with __ and the normal name is an alias.  */
9729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9730 choke me
9731 #else
9732 char (*f) () = $ac_func;
9733 #endif
9734 #ifdef __cplusplus
9735 }
9736 #endif
9737
9738 int
9739 main ()
9740 {
9741 return f != $ac_func;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   eval "$as_ac_var=yes"
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 eval "$as_ac_var=no"
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9780 if test `eval echo '${'$as_ac_var'}'` = yes; then
9781   cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783 _ACEOF
9784
9785 fi
9786 done
9787
9788
9789
9790
9791 for ac_func in closedir opendir readdir
9792 do
9793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794 echo "$as_me:$LINENO: checking for $ac_func" >&5
9795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_var+set}\" = set"; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807 #define $ac_func innocuous_$ac_func
9808
9809 /* System header to define __stub macros and hopefully few prototypes,
9810     which can conflict with char $ac_func (); below.
9811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812     <limits.h> exists even on freestanding compilers.  */
9813
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9819
9820 #undef $ac_func
9821
9822 /* Override any gcc2 internal prototype to avoid an error.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 {
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char $ac_func ();
9830 /* The GNU C library defines this for functions which it implements
9831     to always fail with ENOSYS.  Some functions are actually named
9832     something starting with __ and the normal name is an alias.  */
9833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9834 choke me
9835 #else
9836 char (*f) () = $ac_func;
9837 #endif
9838 #ifdef __cplusplus
9839 }
9840 #endif
9841
9842 int
9843 main ()
9844 {
9845 return f != $ac_func;
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852   (eval $ac_link) 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -z "$ac_c_werror_flag"
9860                          || test ! -s conftest.err'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   eval "$as_ac_var=yes"
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 eval "$as_ac_var=no"
9878 fi
9879 rm -f conftest.err conftest.$ac_objext \
9880       conftest$ac_exeext conftest.$ac_ext
9881 fi
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884 if test `eval echo '${'$as_ac_var'}'` = yes; then
9885   cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887 _ACEOF
9888
9889 fi
9890 done
9891
9892
9893 # Check whether --enable-shared or --disable-shared was given.
9894 if test "${enable_shared+set}" = set; then
9895   enableval="$enable_shared"
9896   p=${PACKAGE-default}
9897     case $enableval in
9898     yes) enable_shared=yes ;;
9899     no) enable_shared=no ;;
9900     *)
9901       enable_shared=no
9902       # Look at the argument we got.  We use all the common list separators.
9903       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904       for pkg in $enableval; do
9905         IFS="$lt_save_ifs"
9906         if test "X$pkg" = "X$p"; then
9907           enable_shared=yes
9908         fi
9909       done
9910       IFS="$lt_save_ifs"
9911       ;;
9912     esac
9913 else
9914   enable_shared=yes
9915 fi;
9916
9917 # Check whether --enable-static or --disable-static was given.
9918 if test "${enable_static+set}" = set; then
9919   enableval="$enable_static"
9920   p=${PACKAGE-default}
9921     case $enableval in
9922     yes) enable_static=yes ;;
9923     no) enable_static=no ;;
9924     *)
9925      enable_static=no
9926       # Look at the argument we got.  We use all the common list separators.
9927       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928       for pkg in $enableval; do
9929         IFS="$lt_save_ifs"
9930         if test "X$pkg" = "X$p"; then
9931           enable_static=yes
9932         fi
9933       done
9934       IFS="$lt_save_ifs"
9935       ;;
9936     esac
9937 else
9938   enable_static=yes
9939 fi;
9940
9941 # Check whether --enable-fast-install or --disable-fast-install was given.
9942 if test "${enable_fast_install+set}" = set; then
9943   enableval="$enable_fast_install"
9944   p=${PACKAGE-default}
9945     case $enableval in
9946     yes) enable_fast_install=yes ;;
9947     no) enable_fast_install=no ;;
9948     *)
9949       enable_fast_install=no
9950       # Look at the argument we got.  We use all the common list separators.
9951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9952       for pkg in $enableval; do
9953         IFS="$lt_save_ifs"
9954         if test "X$pkg" = "X$p"; then
9955           enable_fast_install=yes
9956         fi
9957       done
9958       IFS="$lt_save_ifs"
9959       ;;
9960     esac
9961 else
9962   enable_fast_install=yes
9963 fi;
9964
9965 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9966 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9967 if test "${lt_cv_path_SED+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   # Loop through the user's path and test for sed and gsed.
9971 # Then use that list of sed's as ones to test for truncation.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977   for lt_ac_prog in sed gsed; do
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9980         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9981       fi
9982     done
9983   done
9984 done
9985 lt_ac_max=0
9986 lt_ac_count=0
9987 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9988 # along with /bin/sed that truncates output.
9989 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9990   test ! -f $lt_ac_sed && break
9991   cat /dev/null > conftest.in
9992   lt_ac_count=0
9993   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9994   # Check for GNU sed and select it if it is found.
9995   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9996     lt_cv_path_SED=$lt_ac_sed
9997     break
9998   fi
9999   while true; do
10000     cat conftest.in conftest.in >conftest.tmp
10001     mv conftest.tmp conftest.in
10002     cp conftest.in conftest.nl
10003     echo >>conftest.nl
10004     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10005     cmp -s conftest.out conftest.nl || break
10006     # 10000 chars as input seems more than enough
10007     test $lt_ac_count -gt 10 && break
10008     lt_ac_count=`expr $lt_ac_count + 1`
10009     if test $lt_ac_count -gt $lt_ac_max; then
10010       lt_ac_max=$lt_ac_count
10011       lt_cv_path_SED=$lt_ac_sed
10012     fi
10013   done
10014 done
10015
10016 fi
10017
10018 SED=$lt_cv_path_SED
10019 echo "$as_me:$LINENO: result: $SED" >&5
10020 echo "${ECHO_T}$SED" >&6
10021
10022
10023 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10024 if test "${with_gnu_ld+set}" = set; then
10025   withval="$with_gnu_ld"
10026   test "$withval" = no || with_gnu_ld=yes
10027 else
10028   with_gnu_ld=no
10029 fi;
10030 ac_prog=ld
10031 if test "$GCC" = yes; then
10032   # Check if gcc -print-prog-name=ld gives a path.
10033   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10034 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10035   case $host in
10036   *-*-mingw*)
10037     # gcc leaves a trailing carriage return which upsets mingw
10038     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10039   *)
10040     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10041   esac
10042   case $ac_prog in
10043     # Accept absolute paths.
10044     [\\/]* | ?:[\\/]*)
10045       re_direlt='/[^/][^/]*/\.\./'
10046       # Canonicalize the pathname of ld
10047       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10048       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10049         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10050       done
10051       test -z "$LD" && LD="$ac_prog"
10052       ;;
10053   "")
10054     # If it fails, then pretend we aren't using GCC.
10055     ac_prog=ld
10056     ;;
10057   *)
10058     # If it is relative, then search for the first ld in PATH.
10059     with_gnu_ld=unknown
10060     ;;
10061   esac
10062 elif test "$with_gnu_ld" = yes; then
10063   echo "$as_me:$LINENO: checking for GNU ld" >&5
10064 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10065 else
10066   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10067 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10068 fi
10069 if test "${lt_cv_path_LD+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   if test -z "$LD"; then
10073   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10074   for ac_dir in $PATH; do
10075     IFS="$lt_save_ifs"
10076     test -z "$ac_dir" && ac_dir=.
10077     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10078       lt_cv_path_LD="$ac_dir/$ac_prog"
10079       # Check to see if the program is GNU ld.  I'd rather use --version,
10080       # but apparently some GNU ld's only accept -v.
10081       # Break only if it was the GNU/non-GNU ld that we prefer.
10082       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10083       *GNU* | *'with BFD'*)
10084         test "$with_gnu_ld" != no && break
10085         ;;
10086       *)
10087         test "$with_gnu_ld" != yes && break
10088         ;;
10089       esac
10090     fi
10091   done
10092   IFS="$lt_save_ifs"
10093 else
10094   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10095 fi
10096 fi
10097
10098 LD="$lt_cv_path_LD"
10099 if test -n "$LD"; then
10100   echo "$as_me:$LINENO: result: $LD" >&5
10101 echo "${ECHO_T}$LD" >&6
10102 else
10103   echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10105 fi
10106 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10107 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10108    { (exit 1); exit 1; }; }
10109 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10110 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10111 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10115 case `$LD -v 2>&1 </dev/null` in
10116 *GNU* | *'with BFD'*)
10117   lt_cv_prog_gnu_ld=yes
10118   ;;
10119 *)
10120   lt_cv_prog_gnu_ld=no
10121   ;;
10122 esac
10123 fi
10124 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10125 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10126 with_gnu_ld=$lt_cv_prog_gnu_ld
10127
10128
10129 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10130 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10131 if test "${lt_cv_ld_reload_flag+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   lt_cv_ld_reload_flag='-r'
10135 fi
10136 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10137 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10138 reload_flag=$lt_cv_ld_reload_flag
10139 case $reload_flag in
10140 "" | " "*) ;;
10141 *) reload_flag=" $reload_flag" ;;
10142 esac
10143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10144 case $host_os in
10145   darwin*)
10146     if test "$GCC" = yes; then
10147       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10148     else
10149       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10150     fi
10151     ;;
10152 esac
10153
10154 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10155 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10156 if test "${lt_cv_deplibs_check_method+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   lt_cv_file_magic_cmd='$MAGIC_CMD'
10160 lt_cv_file_magic_test_file=
10161 lt_cv_deplibs_check_method='unknown'
10162 # Need to set the preceding variable on all platforms that support
10163 # interlibrary dependencies.
10164 # 'none' -- dependencies not supported.
10165 # `unknown' -- same as none, but documents that we really don't know.
10166 # 'pass_all' -- all dependencies passed with no checks.
10167 # 'test_compile' -- check by making test program.
10168 # 'file_magic [[regex]]' -- check by looking for files in library path
10169 # which responds to the $file_magic_cmd with a given extended regex.
10170 # If you have `file' or equivalent on your system and you're not sure
10171 # whether `pass_all' will *always* work, you probably want this one.
10172
10173 case $host_os in
10174 aix4* | aix5*)
10175   lt_cv_deplibs_check_method=pass_all
10176   ;;
10177
10178 beos*)
10179   lt_cv_deplibs_check_method=pass_all
10180   ;;
10181
10182 bsdi[45]*)
10183   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10184   lt_cv_file_magic_cmd='/usr/bin/file -L'
10185   lt_cv_file_magic_test_file=/shlib/libc.so
10186   ;;
10187
10188 cygwin*)
10189   # func_win32_libid is a shell function defined in ltmain.sh
10190   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10191   lt_cv_file_magic_cmd='func_win32_libid'
10192   ;;
10193
10194 mingw* | pw32*)
10195   # Base MSYS/MinGW do not provide the 'file' command needed by
10196   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10197   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10198   lt_cv_file_magic_cmd='$OBJDUMP -f'
10199   ;;
10200
10201 darwin* | rhapsody*)
10202   lt_cv_deplibs_check_method=pass_all
10203   ;;
10204
10205 freebsd* | kfreebsd*-gnu)
10206   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10207     case $host_cpu in
10208     i*86 )
10209       # Not sure whether the presence of OpenBSD here was a mistake.
10210       # Let's accept both of them until this is cleared up.
10211       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10212       lt_cv_file_magic_cmd=/usr/bin/file
10213       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10214       ;;
10215     esac
10216   else
10217     lt_cv_deplibs_check_method=pass_all
10218   fi
10219   ;;
10220
10221 gnu*)
10222   lt_cv_deplibs_check_method=pass_all
10223   ;;
10224
10225 hpux10.20* | hpux11*)
10226   lt_cv_file_magic_cmd=/usr/bin/file
10227   case "$host_cpu" in
10228   ia64*)
10229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231     ;;
10232   hppa*64*)
10233     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]'
10234     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235     ;;
10236   *)
10237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10238     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239     ;;
10240   esac
10241   ;;
10242
10243 irix5* | irix6* | nonstopux*)
10244   case $LD in
10245   *-32|*"-32 ") libmagic=32-bit;;
10246   *-n32|*"-n32 ") libmagic=N32;;
10247   *-64|*"-64 ") libmagic=64-bit;;
10248   *) libmagic=never-match;;
10249   esac
10250   lt_cv_deplibs_check_method=pass_all
10251   ;;
10252
10253 # This must be Linux ELF.
10254 linux*)
10255   lt_cv_deplibs_check_method=pass_all
10256   ;;
10257
10258 netbsd*)
10259   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10260     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10261   else
10262     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10263   fi
10264   ;;
10265
10266 newos6*)
10267   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10268   lt_cv_file_magic_cmd=/usr/bin/file
10269   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10270   ;;
10271
10272 nto-qnx*)
10273   lt_cv_deplibs_check_method=unknown
10274   ;;
10275
10276 openbsd*)
10277   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10279   else
10280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10281   fi
10282   ;;
10283
10284 osf3* | osf4* | osf5*)
10285   lt_cv_deplibs_check_method=pass_all
10286   ;;
10287
10288 sco3.2v5*)
10289   lt_cv_deplibs_check_method=pass_all
10290   ;;
10291
10292 solaris*)
10293   lt_cv_deplibs_check_method=pass_all
10294   ;;
10295
10296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297   case $host_vendor in
10298   motorola)
10299     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]'
10300     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10301     ;;
10302   ncr)
10303     lt_cv_deplibs_check_method=pass_all
10304     ;;
10305   sequent)
10306     lt_cv_file_magic_cmd='/bin/file'
10307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10308     ;;
10309   sni)
10310     lt_cv_file_magic_cmd='/bin/file'
10311     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10312     lt_cv_file_magic_test_file=/lib/libc.so
10313     ;;
10314   siemens)
10315     lt_cv_deplibs_check_method=pass_all
10316     ;;
10317   esac
10318   ;;
10319
10320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10321   lt_cv_deplibs_check_method=pass_all
10322   ;;
10323 esac
10324
10325 fi
10326 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10328 file_magic_cmd=$lt_cv_file_magic_cmd
10329 deplibs_check_method=$lt_cv_deplibs_check_method
10330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10331
10332
10333
10334 # If no C compiler was specified, use CC.
10335 LTCC=${LTCC-"$CC"}
10336
10337 # Allow CC to be a program name with arguments.
10338 compiler=$CC
10339
10340 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10341 if test "${enable_libtool_lock+set}" = set; then
10342   enableval="$enable_libtool_lock"
10343
10344 fi;
10345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10346
10347 # Some flags need to be propagated to the compiler or linker for good
10348 # libtool support.
10349 case $host in
10350 ia64-*-hpux*)
10351   # Find out which ABI we are using.
10352   echo 'int i;' > conftest.$ac_ext
10353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; then
10358     case `/usr/bin/file conftest.$ac_objext` in
10359     *ELF-32*)
10360       HPUX_IA64_MODE="32"
10361       ;;
10362     *ELF-64*)
10363       HPUX_IA64_MODE="64"
10364       ;;
10365     esac
10366   fi
10367   rm -rf conftest*
10368   ;;
10369 *-*-irix6*)
10370   # Find out which ABI we are using.
10371   echo '#line 10371 "configure"' > conftest.$ac_ext
10372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10373   (eval $ac_compile) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; then
10377    if test "$lt_cv_prog_gnu_ld" = yes; then
10378     case `/usr/bin/file conftest.$ac_objext` in
10379     *32-bit*)
10380       LD="${LD-ld} -melf32bsmip"
10381       ;;
10382     *N32*)
10383       LD="${LD-ld} -melf32bmipn32"
10384       ;;
10385     *64-bit*)
10386       LD="${LD-ld} -melf64bmip"
10387       ;;
10388     esac
10389    else
10390     case `/usr/bin/file conftest.$ac_objext` in
10391     *32-bit*)
10392       LD="${LD-ld} -32"
10393       ;;
10394     *N32*)
10395       LD="${LD-ld} -n32"
10396       ;;
10397     *64-bit*)
10398       LD="${LD-ld} -64"
10399       ;;
10400     esac
10401    fi
10402   fi
10403   rm -rf conftest*
10404   ;;
10405
10406 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10407   # Find out which ABI we are using.
10408   echo 'int i;' > conftest.$ac_ext
10409   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; then
10414     case "`/usr/bin/file conftest.o`" in
10415     *32-bit*)
10416       case $host in
10417         x86_64-*linux*)
10418           LD="${LD-ld} -m elf_i386"
10419           ;;
10420         ppc64-*linux*|powerpc64-*linux*)
10421           LD="${LD-ld} -m elf32ppclinux"
10422           ;;
10423         s390x-*linux*)
10424           LD="${LD-ld} -m elf_s390"
10425           ;;
10426         sparc64-*linux*)
10427           LD="${LD-ld} -m elf32_sparc"
10428           ;;
10429       esac
10430       ;;
10431     *64-bit*)
10432       case $host in
10433         x86_64-*linux*)
10434           LD="${LD-ld} -m elf_x86_64"
10435           ;;
10436         ppc*-*linux*|powerpc*-*linux*)
10437           LD="${LD-ld} -m elf64ppc"
10438           ;;
10439         s390*-*linux*)
10440           LD="${LD-ld} -m elf64_s390"
10441           ;;
10442         sparc*-*linux*)
10443           LD="${LD-ld} -m elf64_sparc"
10444           ;;
10445       esac
10446       ;;
10447     esac
10448   fi
10449   rm -rf conftest*
10450   ;;
10451
10452 *-*-sco3.2v5*)
10453   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10454   SAVE_CFLAGS="$CFLAGS"
10455   CFLAGS="$CFLAGS -belf"
10456   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10457 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10458 if test "${lt_cv_cc_needs_belf+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   ac_ext=c
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467      cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477   (eval $ac_link) 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -z "$ac_c_werror_flag"
10485                          || test ! -s conftest.err'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; } &&
10491          { ac_try='test -s conftest$ac_exeext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   lt_cv_cc_needs_belf=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 lt_cv_cc_needs_belf=no
10503 fi
10504 rm -f conftest.err conftest.$ac_objext \
10505       conftest$ac_exeext conftest.$ac_ext
10506      ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512 fi
10513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10515   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10516     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10517     CFLAGS="$SAVE_CFLAGS"
10518   fi
10519   ;;
10520
10521 esac
10522
10523 need_locks="$enable_libtool_lock"
10524
10525
10526
10527
10528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530     (test "X$CXX" != "Xg++"))) ; then
10531   ac_ext=cc
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10537 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10538 if test -z "$CXXCPP"; then
10539   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542       # Double quotes because CXXCPP needs to be expanded
10543     for CXXCPP in "$CXX -E" "/lib/cpp"
10544     do
10545       ac_preproc_ok=false
10546 for ac_cxx_preproc_warn_flag in '' yes
10547 do
10548   # Use a header file that comes with gcc, so configuring glibc
10549   # with a fresh cross-compiler works.
10550   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551   # <limits.h> exists even on freestanding compilers.
10552   # On the NeXT, cc -E runs the code through the compiler's parser,
10553   # not just through cpp. "Syntax error" is here to catch this case.
10554   cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h.  */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h.  */
10560 #ifdef __STDC__
10561 # include <limits.h>
10562 #else
10563 # include <assert.h>
10564 #endif
10565                      Syntax error
10566 _ACEOF
10567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } >/dev/null; then
10575   if test -s conftest.err; then
10576     ac_cpp_err=$ac_cxx_preproc_warn_flag
10577     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578   else
10579     ac_cpp_err=
10580   fi
10581 else
10582   ac_cpp_err=yes
10583 fi
10584 if test -z "$ac_cpp_err"; then
10585   :
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590   # Broken: fails on valid input.
10591 continue
10592 fi
10593 rm -f conftest.err conftest.$ac_ext
10594
10595   # OK, works on sane cases.  Now check whether non-existent headers
10596   # can be detected and how.
10597   cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 #include <ac_nonexistent.h>
10604 _ACEOF
10605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } >/dev/null; then
10613   if test -s conftest.err; then
10614     ac_cpp_err=$ac_cxx_preproc_warn_flag
10615     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10616   else
10617     ac_cpp_err=
10618   fi
10619 else
10620   ac_cpp_err=yes
10621 fi
10622 if test -z "$ac_cpp_err"; then
10623   # Broken: success on invalid input.
10624 continue
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629   # Passes both tests.
10630 ac_preproc_ok=:
10631 break
10632 fi
10633 rm -f conftest.err conftest.$ac_ext
10634
10635 done
10636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10637 rm -f conftest.err conftest.$ac_ext
10638 if $ac_preproc_ok; then
10639   break
10640 fi
10641
10642     done
10643     ac_cv_prog_CXXCPP=$CXXCPP
10644
10645 fi
10646   CXXCPP=$ac_cv_prog_CXXCPP
10647 else
10648   ac_cv_prog_CXXCPP=$CXXCPP
10649 fi
10650 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10651 echo "${ECHO_T}$CXXCPP" >&6
10652 ac_preproc_ok=false
10653 for ac_cxx_preproc_warn_flag in '' yes
10654 do
10655   # Use a header file that comes with gcc, so configuring glibc
10656   # with a fresh cross-compiler works.
10657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658   # <limits.h> exists even on freestanding compilers.
10659   # On the NeXT, cc -E runs the code through the compiler's parser,
10660   # not just through cpp. "Syntax error" is here to catch this case.
10661   cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667 #ifdef __STDC__
10668 # include <limits.h>
10669 #else
10670 # include <assert.h>
10671 #endif
10672                      Syntax error
10673 _ACEOF
10674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } >/dev/null; then
10682   if test -s conftest.err; then
10683     ac_cpp_err=$ac_cxx_preproc_warn_flag
10684     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10685   else
10686     ac_cpp_err=
10687   fi
10688 else
10689   ac_cpp_err=yes
10690 fi
10691 if test -z "$ac_cpp_err"; then
10692   :
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697   # Broken: fails on valid input.
10698 continue
10699 fi
10700 rm -f conftest.err conftest.$ac_ext
10701
10702   # OK, works on sane cases.  Now check whether non-existent headers
10703   # can be detected and how.
10704   cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 #include <ac_nonexistent.h>
10711 _ACEOF
10712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } >/dev/null; then
10720   if test -s conftest.err; then
10721     ac_cpp_err=$ac_cxx_preproc_warn_flag
10722     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10723   else
10724     ac_cpp_err=
10725   fi
10726 else
10727   ac_cpp_err=yes
10728 fi
10729 if test -z "$ac_cpp_err"; then
10730   # Broken: success on invalid input.
10731 continue
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736   # Passes both tests.
10737 ac_preproc_ok=:
10738 break
10739 fi
10740 rm -f conftest.err conftest.$ac_ext
10741
10742 done
10743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10744 rm -f conftest.err conftest.$ac_ext
10745 if $ac_preproc_ok; then
10746   :
10747 else
10748   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10749 See \`config.log' for more details." >&5
10750 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10751 See \`config.log' for more details." >&2;}
10752    { (exit 1); exit 1; }; }
10753 fi
10754
10755 ac_ext=cc
10756 ac_cpp='$CXXCPP $CPPFLAGS'
10757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
10761 fi
10762
10763
10764 ac_ext=f
10765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10768 if test -n "$ac_tool_prefix"; then
10769   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10770   do
10771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10773 echo "$as_me:$LINENO: checking for $ac_word" >&5
10774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10775 if test "${ac_cv_prog_F77+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   if test -n "$F77"; then
10779   ac_cv_prog_F77="$F77" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10783 do
10784   IFS=$as_save_IFS
10785   test -z "$as_dir" && as_dir=.
10786   for ac_exec_ext in '' $ac_executable_extensions; do
10787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10790     break 2
10791   fi
10792 done
10793 done
10794
10795 fi
10796 fi
10797 F77=$ac_cv_prog_F77
10798 if test -n "$F77"; then
10799   echo "$as_me:$LINENO: result: $F77" >&5
10800 echo "${ECHO_T}$F77" >&6
10801 else
10802   echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805
10806     test -n "$F77" && break
10807   done
10808 fi
10809 if test -z "$F77"; then
10810   ac_ct_F77=$F77
10811   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10812 do
10813   # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820   if test -n "$ac_ct_F77"; then
10821   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826   IFS=$as_save_IFS
10827   test -z "$as_dir" && as_dir=.
10828   for ac_exec_ext in '' $ac_executable_extensions; do
10829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830     ac_cv_prog_ac_ct_F77="$ac_prog"
10831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832     break 2
10833   fi
10834 done
10835 done
10836
10837 fi
10838 fi
10839 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10840 if test -n "$ac_ct_F77"; then
10841   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10842 echo "${ECHO_T}$ac_ct_F77" >&6
10843 else
10844   echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10846 fi
10847
10848   test -n "$ac_ct_F77" && break
10849 done
10850
10851   F77=$ac_ct_F77
10852 fi
10853
10854
10855 # Provide some information about the compiler.
10856 echo "$as_me:10856:" \
10857      "checking for Fortran 77 compiler version" >&5
10858 ac_compiler=`set X $ac_compile; echo $2`
10859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10860   (eval $ac_compiler --version </dev/null >&5) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }
10864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10865   (eval $ac_compiler -v </dev/null >&5) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }
10869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10870   (eval $ac_compiler -V </dev/null >&5) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }
10874 rm -f a.out
10875
10876 # If we don't use `.F' as extension, the preprocessor is not run on the
10877 # input file.  (Note that this only needs to work for GNU compilers.)
10878 ac_save_ext=$ac_ext
10879 ac_ext=F
10880 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10881 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10882 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   cat >conftest.$ac_ext <<_ACEOF
10886       program main
10887 #ifndef __GNUC__
10888        choke me
10889 #endif
10890
10891       end
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895   (eval $ac_compile) 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -z "$ac_f77_werror_flag"
10903                          || test ! -s conftest.err'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; } &&
10909          { ac_try='test -s conftest.$ac_objext'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_compiler_gnu=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_compiler_gnu=no
10921 fi
10922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10923 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10924
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10927 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10928 ac_ext=$ac_save_ext
10929 ac_test_FFLAGS=${FFLAGS+set}
10930 ac_save_FFLAGS=$FFLAGS
10931 FFLAGS=
10932 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10933 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10934 if test "${ac_cv_prog_f77_g+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   FFLAGS=-g
10938 cat >conftest.$ac_ext <<_ACEOF
10939       program main
10940
10941       end
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945   (eval $ac_compile) 2>conftest.er1
10946   ac_status=$?
10947   grep -v '^ *+' conftest.er1 >conftest.err
10948   rm -f conftest.er1
10949   cat conftest.err >&5
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } &&
10952          { ac_try='test -z "$ac_f77_werror_flag"
10953                          || test ! -s conftest.err'
10954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955   (eval $ac_try) 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961   (eval $ac_try) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; }; then
10965   ac_cv_prog_f77_g=yes
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 ac_cv_prog_f77_g=no
10971 fi
10972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10976 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10977 if test "$ac_test_FFLAGS" = set; then
10978   FFLAGS=$ac_save_FFLAGS
10979 elif test $ac_cv_prog_f77_g = yes; then
10980   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10981     FFLAGS="-g -O2"
10982   else
10983     FFLAGS="-g"
10984   fi
10985 else
10986   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10987     FFLAGS="-O2"
10988   else
10989     FFLAGS=
10990   fi
10991 fi
10992
10993 G77=`test $ac_compiler_gnu = yes && echo yes`
10994 ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001
11002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11003
11004 # find the maximum length of command line arguments
11005 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11006 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11007 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010     i=0
11011   teststring="ABCD"
11012
11013   case $build_os in
11014   msdosdjgpp*)
11015     # On DJGPP, this test can blow up pretty badly due to problems in libc
11016     # (any single argument exceeding 2000 bytes causes a buffer overrun
11017     # during glob expansion).  Even if it were fixed, the result of this
11018     # check would be larger than it should be.
11019     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11020     ;;
11021
11022   gnu*)
11023     # Under GNU Hurd, this test is not required because there is
11024     # no limit to the length of command line arguments.
11025     # Libtool will interpret -1 as no limit whatsoever
11026     lt_cv_sys_max_cmd_len=-1;
11027     ;;
11028
11029   cygwin* | mingw*)
11030     # On Win9x/ME, this test blows up -- it succeeds, but takes
11031     # about 5 minutes as the teststring grows exponentially.
11032     # Worse, since 9x/ME are not pre-emptively multitasking,
11033     # you end up with a "frozen" computer, even though with patience
11034     # the test eventually succeeds (with a max line length of 256k).
11035     # Instead, let's just punt: use the minimum linelength reported by
11036     # all of the supported platforms: 8192 (on NT/2K/XP).
11037     lt_cv_sys_max_cmd_len=8192;
11038     ;;
11039
11040   amigaos*)
11041     # On AmigaOS with pdksh, this test takes hours, literally.
11042     # So we just punt and use a minimum line length of 8192.
11043     lt_cv_sys_max_cmd_len=8192;
11044     ;;
11045
11046   netbsd* | freebsd* | openbsd* | darwin* )
11047     # This has been around since 386BSD, at least.  Likely further.
11048     if test -x /sbin/sysctl; then
11049       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11050     elif test -x /usr/sbin/sysctl; then
11051       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11052     else
11053       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11054     fi
11055     # And add a safety zone
11056     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11057     ;;
11058
11059  *)
11060     # If test is not a shell built-in, we'll probably end up computing a
11061     # maximum length that is only half of the actual maximum length, but
11062     # we can't tell.
11063     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11064     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11065                = "XX$teststring") >/dev/null 2>&1 &&
11066             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11067             lt_cv_sys_max_cmd_len=$new_result &&
11068             test $i != 17 # 1/2 MB should be enough
11069     do
11070       i=`expr $i + 1`
11071       teststring=$teststring$teststring
11072     done
11073     teststring=
11074     # Add a significant safety factor because C++ compilers can tack on massive
11075     # amounts of additional arguments before passing them to the linker.
11076     # It appears as though 1/2 is a usable value.
11077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11078     ;;
11079   esac
11080
11081 fi
11082
11083 if test -n $lt_cv_sys_max_cmd_len ; then
11084   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11086 else
11087   echo "$as_me:$LINENO: result: none" >&5
11088 echo "${ECHO_T}none" >&6
11089 fi
11090
11091
11092
11093
11094 # Check for command to grab the raw symbol name followed by C symbol from nm.
11095 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11096 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11097 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100
11101 # These are sane defaults that work on at least a few old systems.
11102 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11103
11104 # Character class describing NM global symbol codes.
11105 symcode='[BCDEGRST]'
11106
11107 # Regexp to match symbols that can be accessed directly from C.
11108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11109
11110 # Transform the above into a raw symbol and a C symbol.
11111 symxfrm='\1 \2\3 \3'
11112
11113 # Transform an extracted symbol line into a proper C declaration
11114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11115
11116 # Transform an extracted symbol line into symbol name and symbol address
11117 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'"
11118
11119 # Define system-specific variables.
11120 case $host_os in
11121 aix*)
11122   symcode='[BCDT]'
11123   ;;
11124 cygwin* | mingw* | pw32*)
11125   symcode='[ABCDGISTW]'
11126   ;;
11127 hpux*) # Its linker distinguishes data from code symbols
11128   if test "$host_cpu" = ia64; then
11129     symcode='[ABCDEGRST]'
11130   fi
11131   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11132   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'"
11133   ;;
11134 linux*)
11135   if test "$host_cpu" = ia64; then
11136     symcode='[ABCDGIRSTW]'
11137     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11138     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'"
11139   fi
11140   ;;
11141 irix* | nonstopux*)
11142   symcode='[BCDEGRST]'
11143   ;;
11144 osf*)
11145   symcode='[BCDEGQRST]'
11146   ;;
11147 solaris* | sysv5*)
11148   symcode='[BDRT]'
11149   ;;
11150 sysv4)
11151   symcode='[DFNSTU]'
11152   ;;
11153 esac
11154
11155 # Handle CRLF in mingw tool chain
11156 opt_cr=
11157 case $build_os in
11158 mingw*)
11159   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11160   ;;
11161 esac
11162
11163 # If we're using GNU nm, then use its standard symbol codes.
11164 case `$NM -V 2>&1` in
11165 *GNU* | *'with BFD'*)
11166   symcode='[ABCDGIRSTW]' ;;
11167 esac
11168
11169 # Try without a prefix undercore, then with it.
11170 for ac_symprfx in "" "_"; do
11171
11172   # Write the raw and C identifiers.
11173   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11174
11175   # Check to see that the pipe works correctly.
11176   pipe_works=no
11177
11178   rm -f conftest*
11179   cat > conftest.$ac_ext <<EOF
11180 #ifdef __cplusplus
11181 extern "C" {
11182 #endif
11183 char nm_test_var;
11184 void nm_test_func(){}
11185 #ifdef __cplusplus
11186 }
11187 #endif
11188 int main(){nm_test_var='a';nm_test_func();return(0);}
11189 EOF
11190
11191   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192   (eval $ac_compile) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; then
11196     # Now try to grab the symbols.
11197     nlist=conftest.nm
11198     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11199   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && test -s "$nlist"; then
11203       # Try sorting and uniquifying the output.
11204       if sort "$nlist" | uniq > "$nlist"T; then
11205         mv -f "$nlist"T "$nlist"
11206       else
11207         rm -f "$nlist"T
11208       fi
11209
11210       # Make sure that we snagged all the symbols we need.
11211       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11212         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11213           cat <<EOF > conftest.$ac_ext
11214 #ifdef __cplusplus
11215 extern "C" {
11216 #endif
11217
11218 EOF
11219           # Now generate the symbol file.
11220           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11221
11222           cat <<EOF >> conftest.$ac_ext
11223 #if defined (__STDC__) && __STDC__
11224 # define lt_ptr_t void *
11225 #else
11226 # define lt_ptr_t char *
11227 # define const
11228 #endif
11229
11230 /* The mapping between symbol names and symbols. */
11231 const struct {
11232   const char *name;
11233   lt_ptr_t address;
11234 }
11235 lt_preloaded_symbols[] =
11236 {
11237 EOF
11238           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11239           cat <<\EOF >> conftest.$ac_ext
11240   {0, (lt_ptr_t) 0}
11241 };
11242
11243 #ifdef __cplusplus
11244 }
11245 #endif
11246 EOF
11247           # Now try linking the two files.
11248           mv conftest.$ac_objext conftstm.$ac_objext
11249           lt_save_LIBS="$LIBS"
11250           lt_save_CFLAGS="$CFLAGS"
11251           LIBS="conftstm.$ac_objext"
11252           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11253           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11258             pipe_works=yes
11259           fi
11260           LIBS="$lt_save_LIBS"
11261           CFLAGS="$lt_save_CFLAGS"
11262         else
11263           echo "cannot find nm_test_func in $nlist" >&5
11264         fi
11265       else
11266         echo "cannot find nm_test_var in $nlist" >&5
11267       fi
11268     else
11269       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11270     fi
11271   else
11272     echo "$progname: failed program was:" >&5
11273     cat conftest.$ac_ext >&5
11274   fi
11275   rm -f conftest* conftst*
11276
11277   # Do not use the global_symbol_pipe unless it works.
11278   if test "$pipe_works" = yes; then
11279     break
11280   else
11281     lt_cv_sys_global_symbol_pipe=
11282   fi
11283 done
11284
11285 fi
11286
11287 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11288   lt_cv_sys_global_symbol_to_cdecl=
11289 fi
11290 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11291   echo "$as_me:$LINENO: result: failed" >&5
11292 echo "${ECHO_T}failed" >&6
11293 else
11294   echo "$as_me:$LINENO: result: ok" >&5
11295 echo "${ECHO_T}ok" >&6
11296 fi
11297
11298 echo "$as_me:$LINENO: checking for objdir" >&5
11299 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11300 if test "${lt_cv_objdir+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   rm -f .libs 2>/dev/null
11304 mkdir .libs 2>/dev/null
11305 if test -d .libs; then
11306   lt_cv_objdir=.libs
11307 else
11308   # MS-DOS does not allow filenames that begin with a dot.
11309   lt_cv_objdir=_libs
11310 fi
11311 rmdir .libs 2>/dev/null
11312 fi
11313 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11314 echo "${ECHO_T}$lt_cv_objdir" >&6
11315 objdir=$lt_cv_objdir
11316
11317
11318
11319
11320
11321 case $host_os in
11322 aix3*)
11323   # AIX sometimes has problems with the GCC collect2 program.  For some
11324   # reason, if we set the COLLECT_NAMES environment variable, the problems
11325   # vanish in a puff of smoke.
11326   if test "X${COLLECT_NAMES+set}" != Xset; then
11327     COLLECT_NAMES=
11328     export COLLECT_NAMES
11329   fi
11330   ;;
11331 esac
11332
11333 # Sed substitution that helps us do robust quoting.  It backslashifies
11334 # metacharacters that are still active within double-quoted strings.
11335 Xsed='sed -e s/^X//'
11336 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11337
11338 # Same as above, but do not quote variable references.
11339 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11340
11341 # Sed substitution to delay expansion of an escaped shell variable in a
11342 # double_quote_subst'ed string.
11343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345 # Sed substitution to avoid accidental globbing in evaled expressions
11346 no_glob_subst='s/\*/\\\*/g'
11347
11348 # Constants:
11349 rm="rm -f"
11350
11351 # Global variables:
11352 default_ofile=mklib
11353 can_build_shared=yes
11354
11355 # All known linkers require a `.a' archive for static linking (except M$VC,
11356 # which needs '.lib').
11357 libext=a
11358 ltmain="$ac_aux_dir/ltmain.sh"
11359 ofile="$default_ofile"
11360 with_gnu_ld="$lt_cv_prog_gnu_ld"
11361
11362 if test -n "$ac_tool_prefix"; then
11363   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11364 set dummy ${ac_tool_prefix}ar; ac_word=$2
11365 echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 if test "${ac_cv_prog_AR+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   if test -n "$AR"; then
11371   ac_cv_prog_AR="$AR" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378   for ac_exec_ext in '' $ac_executable_extensions; do
11379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380     ac_cv_prog_AR="${ac_tool_prefix}ar"
11381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385 done
11386
11387 fi
11388 fi
11389 AR=$ac_cv_prog_AR
11390 if test -n "$AR"; then
11391   echo "$as_me:$LINENO: result: $AR" >&5
11392 echo "${ECHO_T}$AR" >&6
11393 else
11394   echo "$as_me:$LINENO: result: no" >&5
11395 echo "${ECHO_T}no" >&6
11396 fi
11397
11398 fi
11399 if test -z "$ac_cv_prog_AR"; then
11400   ac_ct_AR=$AR
11401   # Extract the first word of "ar", so it can be a program name with args.
11402 set dummy ar; ac_word=$2
11403 echo "$as_me:$LINENO: checking for $ac_word" >&5
11404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   if test -n "$ac_ct_AR"; then
11409   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410 else
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414   IFS=$as_save_IFS
11415   test -z "$as_dir" && as_dir=.
11416   for ac_exec_ext in '' $ac_executable_extensions; do
11417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418     ac_cv_prog_ac_ct_AR="ar"
11419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420     break 2
11421   fi
11422 done
11423 done
11424
11425   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11426 fi
11427 fi
11428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11429 if test -n "$ac_ct_AR"; then
11430   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11431 echo "${ECHO_T}$ac_ct_AR" >&6
11432 else
11433   echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11435 fi
11436
11437   AR=$ac_ct_AR
11438 else
11439   AR="$ac_cv_prog_AR"
11440 fi
11441
11442 if test -n "$ac_tool_prefix"; then
11443   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11445 echo "$as_me:$LINENO: checking for $ac_word" >&5
11446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11447 if test "${ac_cv_prog_RANLIB+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   if test -n "$RANLIB"; then
11451   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452 else
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456   IFS=$as_save_IFS
11457   test -z "$as_dir" && as_dir=.
11458   for ac_exec_ext in '' $ac_executable_extensions; do
11459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11462     break 2
11463   fi
11464 done
11465 done
11466
11467 fi
11468 fi
11469 RANLIB=$ac_cv_prog_RANLIB
11470 if test -n "$RANLIB"; then
11471   echo "$as_me:$LINENO: result: $RANLIB" >&5
11472 echo "${ECHO_T}$RANLIB" >&6
11473 else
11474   echo "$as_me:$LINENO: result: no" >&5
11475 echo "${ECHO_T}no" >&6
11476 fi
11477
11478 fi
11479 if test -z "$ac_cv_prog_RANLIB"; then
11480   ac_ct_RANLIB=$RANLIB
11481   # Extract the first word of "ranlib", so it can be a program name with args.
11482 set dummy ranlib; ac_word=$2
11483 echo "$as_me:$LINENO: checking for $ac_word" >&5
11484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   if test -n "$ac_ct_RANLIB"; then
11489   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494   IFS=$as_save_IFS
11495   test -z "$as_dir" && as_dir=.
11496   for ac_exec_ext in '' $ac_executable_extensions; do
11497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498     ac_cv_prog_ac_ct_RANLIB="ranlib"
11499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11500     break 2
11501   fi
11502 done
11503 done
11504
11505   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11506 fi
11507 fi
11508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11509 if test -n "$ac_ct_RANLIB"; then
11510   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11511 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11512 else
11513   echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6
11515 fi
11516
11517   RANLIB=$ac_ct_RANLIB
11518 else
11519   RANLIB="$ac_cv_prog_RANLIB"
11520 fi
11521
11522 if test -n "$ac_tool_prefix"; then
11523   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11524 set dummy ${ac_tool_prefix}strip; ac_word=$2
11525 echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11527 if test "${ac_cv_prog_STRIP+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   if test -n "$STRIP"; then
11531   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11535 do
11536   IFS=$as_save_IFS
11537   test -z "$as_dir" && as_dir=.
11538   for ac_exec_ext in '' $ac_executable_extensions; do
11539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542     break 2
11543   fi
11544 done
11545 done
11546
11547 fi
11548 fi
11549 STRIP=$ac_cv_prog_STRIP
11550 if test -n "$STRIP"; then
11551   echo "$as_me:$LINENO: result: $STRIP" >&5
11552 echo "${ECHO_T}$STRIP" >&6
11553 else
11554   echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11556 fi
11557
11558 fi
11559 if test -z "$ac_cv_prog_STRIP"; then
11560   ac_ct_STRIP=$STRIP
11561   # Extract the first word of "strip", so it can be a program name with args.
11562 set dummy strip; ac_word=$2
11563 echo "$as_me:$LINENO: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   if test -n "$ac_ct_STRIP"; then
11569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11570 else
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11573 do
11574   IFS=$as_save_IFS
11575   test -z "$as_dir" && as_dir=.
11576   for ac_exec_ext in '' $ac_executable_extensions; do
11577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578     ac_cv_prog_ac_ct_STRIP="strip"
11579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580     break 2
11581   fi
11582 done
11583 done
11584
11585   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11586 fi
11587 fi
11588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11589 if test -n "$ac_ct_STRIP"; then
11590   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11591 echo "${ECHO_T}$ac_ct_STRIP" >&6
11592 else
11593   echo "$as_me:$LINENO: result: no" >&5
11594 echo "${ECHO_T}no" >&6
11595 fi
11596
11597   STRIP=$ac_ct_STRIP
11598 else
11599   STRIP="$ac_cv_prog_STRIP"
11600 fi
11601
11602
11603 old_CC="$CC"
11604 old_CFLAGS="$CFLAGS"
11605
11606 # Set sane defaults for various variables
11607 test -z "$AR" && AR=ar
11608 test -z "$AR_FLAGS" && AR_FLAGS=cru
11609 test -z "$AS" && AS=as
11610 test -z "$CC" && CC=cc
11611 test -z "$LTCC" && LTCC=$CC
11612 test -z "$DLLTOOL" && DLLTOOL=dlltool
11613 test -z "$LD" && LD=ld
11614 test -z "$LN_S" && LN_S="ln -s"
11615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11616 test -z "$NM" && NM=nm
11617 test -z "$SED" && SED=sed
11618 test -z "$OBJDUMP" && OBJDUMP=objdump
11619 test -z "$RANLIB" && RANLIB=:
11620 test -z "$STRIP" && STRIP=:
11621 test -z "$ac_objext" && ac_objext=o
11622
11623 # Determine commands to create old-style static archives.
11624 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11625 old_postinstall_cmds='chmod 644 $oldlib'
11626 old_postuninstall_cmds=
11627
11628 if test -n "$RANLIB"; then
11629   case $host_os in
11630   openbsd*)
11631     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11632     ;;
11633   *)
11634     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11635     ;;
11636   esac
11637   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11638 fi
11639
11640 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11641
11642 # Only perform the check for file, if the check method requires it
11643 case $deplibs_check_method in
11644 file_magic*)
11645   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11646     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11647 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   case $MAGIC_CMD in
11652 [\\/*] |  ?:[\\/]*)
11653   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11654   ;;
11655 *)
11656   lt_save_MAGIC_CMD="$MAGIC_CMD"
11657   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11658   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11659   for ac_dir in $ac_dummy; do
11660     IFS="$lt_save_ifs"
11661     test -z "$ac_dir" && ac_dir=.
11662     if test -f $ac_dir/${ac_tool_prefix}file; then
11663       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11664       if test -n "$file_magic_test_file"; then
11665         case $deplibs_check_method in
11666         "file_magic "*)
11667           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11668           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11669           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11670             $EGREP "$file_magic_regex" > /dev/null; then
11671             :
11672           else
11673             cat <<EOF 1>&2
11674
11675 *** Warning: the command libtool uses to detect shared libraries,
11676 *** $file_magic_cmd, produces output that libtool cannot recognize.
11677 *** The result is that libtool may fail to recognize shared libraries
11678 *** as such.  This will affect the creation of libtool libraries that
11679 *** depend on shared libraries, but programs linked with such libtool
11680 *** libraries will work regardless of this problem.  Nevertheless, you
11681 *** may want to report the problem to your system manager and/or to
11682 *** bug-libtool@gnu.org
11683
11684 EOF
11685           fi ;;
11686         esac
11687       fi
11688       break
11689     fi
11690   done
11691   IFS="$lt_save_ifs"
11692   MAGIC_CMD="$lt_save_MAGIC_CMD"
11693   ;;
11694 esac
11695 fi
11696
11697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11698 if test -n "$MAGIC_CMD"; then
11699   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11700 echo "${ECHO_T}$MAGIC_CMD" >&6
11701 else
11702   echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6
11704 fi
11705
11706 if test -z "$lt_cv_path_MAGIC_CMD"; then
11707   if test -n "$ac_tool_prefix"; then
11708     echo "$as_me:$LINENO: checking for file" >&5
11709 echo $ECHO_N "checking for file... $ECHO_C" >&6
11710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   case $MAGIC_CMD in
11714 [\\/*] |  ?:[\\/]*)
11715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716   ;;
11717 *)
11718   lt_save_MAGIC_CMD="$MAGIC_CMD"
11719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721   for ac_dir in $ac_dummy; do
11722     IFS="$lt_save_ifs"
11723     test -z "$ac_dir" && ac_dir=.
11724     if test -f $ac_dir/file; then
11725       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11726       if test -n "$file_magic_test_file"; then
11727         case $deplibs_check_method in
11728         "file_magic "*)
11729           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732             $EGREP "$file_magic_regex" > /dev/null; then
11733             :
11734           else
11735             cat <<EOF 1>&2
11736
11737 *** Warning: the command libtool uses to detect shared libraries,
11738 *** $file_magic_cmd, produces output that libtool cannot recognize.
11739 *** The result is that libtool may fail to recognize shared libraries
11740 *** as such.  This will affect the creation of libtool libraries that
11741 *** depend on shared libraries, but programs linked with such libtool
11742 *** libraries will work regardless of this problem.  Nevertheless, you
11743 *** may want to report the problem to your system manager and/or to
11744 *** bug-libtool@gnu.org
11745
11746 EOF
11747           fi ;;
11748         esac
11749       fi
11750       break
11751     fi
11752   done
11753   IFS="$lt_save_ifs"
11754   MAGIC_CMD="$lt_save_MAGIC_CMD"
11755   ;;
11756 esac
11757 fi
11758
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if test -n "$MAGIC_CMD"; then
11761   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762 echo "${ECHO_T}$MAGIC_CMD" >&6
11763 else
11764   echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11766 fi
11767
11768   else
11769     MAGIC_CMD=:
11770   fi
11771 fi
11772
11773   fi
11774   ;;
11775 esac
11776
11777 enable_dlopen=yes
11778 enable_win32_dll=no
11779
11780 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11781 if test "${enable_libtool_lock+set}" = set; then
11782   enableval="$enable_libtool_lock"
11783
11784 fi;
11785 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11786
11787
11788 # Check whether --with-pic or --without-pic was given.
11789 if test "${with_pic+set}" = set; then
11790   withval="$with_pic"
11791   pic_mode="$withval"
11792 else
11793   pic_mode=default
11794 fi;
11795 test -z "$pic_mode" && pic_mode=default
11796
11797 # Use C for the default configuration in the libtool script
11798 tagname=
11799 lt_save_CC="$CC"
11800 ac_ext=c
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805
11806
11807 # Source file extension for C test sources.
11808 ac_ext=c
11809
11810 # Object file extension for compiled C test sources.
11811 objext=o
11812 objext=$objext
11813
11814 # Code to be used in simple compile tests
11815 lt_simple_compile_test_code="int some_variable = 0;\n"
11816
11817 # Code to be used in simple link tests
11818 lt_simple_link_test_code='int main(){return(0);}\n'
11819
11820
11821 # If no C compiler was specified, use CC.
11822 LTCC=${LTCC-"$CC"}
11823
11824 # Allow CC to be a program name with arguments.
11825 compiler=$CC
11826
11827
11828 #
11829 # Check for any special shared library compilation flags.
11830 #
11831 lt_prog_cc_shlib=
11832 if test "$GCC" = no; then
11833   case $host_os in
11834   sco3.2v5*)
11835     lt_prog_cc_shlib='-belf'
11836     ;;
11837   esac
11838 fi
11839 if test -n "$lt_prog_cc_shlib"; then
11840   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11841 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11842   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11843   else
11844     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11845 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11846     lt_cv_prog_cc_can_build_shared=no
11847   fi
11848 fi
11849
11850
11851 #
11852 # Check to make sure the static flag actually works.
11853 #
11854 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11855 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11856 if test "${lt_prog_compiler_static_works+set}" = set; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   lt_prog_compiler_static_works=no
11860    save_LDFLAGS="$LDFLAGS"
11861    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11862    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11863    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11864      # The compiler can only warn and ignore the option if not recognized
11865      # So say no if there are warnings
11866      if test -s conftest.err; then
11867        # Append any errors to the config.log.
11868        cat conftest.err 1>&5
11869      else
11870        lt_prog_compiler_static_works=yes
11871      fi
11872    fi
11873    $rm conftest*
11874    LDFLAGS="$save_LDFLAGS"
11875
11876 fi
11877 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11878 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11879
11880 if test x"$lt_prog_compiler_static_works" = xyes; then
11881     :
11882 else
11883     lt_prog_compiler_static=
11884 fi
11885
11886
11887
11888
11889 lt_prog_compiler_no_builtin_flag=
11890
11891 if test "$GCC" = yes; then
11892   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11893
11894
11895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   lt_cv_prog_compiler_rtti_exceptions=no
11901   ac_outfile=conftest.$ac_objext
11902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11903    lt_compiler_flag="-fno-rtti -fno-exceptions"
11904    # Insert the option either (1) after the last *FLAGS variable, or
11905    # (2) before a word containing "conftest.", or (3) at the end.
11906    # Note that $ac_compile itself does not contain backslashes and begins
11907    # with a dollar sign (not a hyphen), so the echo should work correctly.
11908    # The option is referenced via a variable to avoid confusing sed.
11909    lt_compile=`echo "$ac_compile" | $SED \
11910    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912    -e 's:$: $lt_compiler_flag:'`
11913    (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
11914    (eval "$lt_compile" 2>conftest.err)
11915    ac_status=$?
11916    cat conftest.err >&5
11917    echo "$as_me:11917: \$? = $ac_status" >&5
11918    if (exit $ac_status) && test -s "$ac_outfile"; then
11919      # The compiler can only warn and ignore the option if not recognized
11920      # So say no if there are warnings
11921      if test ! -s conftest.err; then
11922        lt_cv_prog_compiler_rtti_exceptions=yes
11923      fi
11924    fi
11925    $rm conftest*
11926
11927 fi
11928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11929 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11930
11931 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11932     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11933 else
11934     :
11935 fi
11936
11937 fi
11938
11939 lt_prog_compiler_wl=
11940 lt_prog_compiler_pic=
11941 lt_prog_compiler_static=
11942
11943 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11944 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11945
11946   if test "$GCC" = yes; then
11947     lt_prog_compiler_wl='-Wl,'
11948     lt_prog_compiler_static='-static'
11949
11950     case $host_os in
11951       aix*)
11952       # All AIX code is PIC.
11953       if test "$host_cpu" = ia64; then
11954         # AIX 5 now supports IA64 processor
11955         lt_prog_compiler_static='-Bstatic'
11956       fi
11957       ;;
11958
11959     amigaos*)
11960       # FIXME: we need at least 68020 code to build shared libraries, but
11961       # adding the `-m68020' flag to GCC prevents building anything better,
11962       # like `-m68040'.
11963       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11964       ;;
11965
11966     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967       # PIC is the default for these OSes.
11968       ;;
11969
11970     mingw* | pw32* | os2*)
11971       # This hack is so that the source file can tell whether it is being
11972       # built for inclusion in a dll (and should export symbols for example).
11973       lt_prog_compiler_pic='-DDLL_EXPORT'
11974       ;;
11975
11976     darwin* | rhapsody*)
11977       # PIC is the default on this platform
11978       # Common symbols not allowed in MH_DYLIB files
11979       lt_prog_compiler_pic='-fno-common'
11980       ;;
11981
11982     msdosdjgpp*)
11983       # Just because we use GCC doesn't mean we suddenly get shared libraries
11984       # on systems that don't support them.
11985       lt_prog_compiler_can_build_shared=no
11986       enable_shared=no
11987       ;;
11988
11989     sysv4*MP*)
11990       if test -d /usr/nec; then
11991         lt_prog_compiler_pic=-Kconform_pic
11992       fi
11993       ;;
11994
11995     hpux*)
11996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997       # not for PA HP-UX.
11998       case "$host_cpu" in
11999       hppa*64*|ia64*)
12000         # +Z the default
12001         ;;
12002       *)
12003         lt_prog_compiler_pic='-fPIC'
12004         ;;
12005       esac
12006       ;;
12007
12008     *)
12009       lt_prog_compiler_pic='-fPIC'
12010       ;;
12011     esac
12012   else
12013     # PORTME Check for flag to pass linker flags through the system compiler.
12014     case $host_os in
12015     aix*)
12016       lt_prog_compiler_wl='-Wl,'
12017       if test "$host_cpu" = ia64; then
12018         # AIX 5 now supports IA64 processor
12019         lt_prog_compiler_static='-Bstatic'
12020       else
12021         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12022       fi
12023       ;;
12024       darwin*)
12025         # PIC is the default on this platform
12026         # Common symbols not allowed in MH_DYLIB files
12027        case "$cc_basename" in
12028          xlc*)
12029          lt_prog_compiler_pic='-qnocommon'
12030          lt_prog_compiler_wl='-Wl,'
12031          ;;
12032        esac
12033        ;;
12034
12035     mingw* | pw32* | os2*)
12036       # This hack is so that the source file can tell whether it is being
12037       # built for inclusion in a dll (and should export symbols for example).
12038       lt_prog_compiler_pic='-DDLL_EXPORT'
12039       ;;
12040
12041     hpux9* | hpux10* | hpux11*)
12042       lt_prog_compiler_wl='-Wl,'
12043       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12044       # not for PA HP-UX.
12045       case "$host_cpu" in
12046       hppa*64*|ia64*)
12047         # +Z the default
12048         ;;
12049       *)
12050         lt_prog_compiler_pic='+Z'
12051         ;;
12052       esac
12053       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12054       lt_prog_compiler_static='${wl}-a ${wl}archive'
12055       ;;
12056
12057     irix5* | irix6* | nonstopux*)
12058       lt_prog_compiler_wl='-Wl,'
12059       # PIC (with -KPIC) is the default.
12060       lt_prog_compiler_static='-non_shared'
12061       ;;
12062
12063     newsos6)
12064       lt_prog_compiler_pic='-KPIC'
12065       lt_prog_compiler_static='-Bstatic'
12066       ;;
12067
12068     linux*)
12069       case $CC in
12070       icc* | ecc*)
12071         lt_prog_compiler_wl='-Wl,'
12072         lt_prog_compiler_pic='-KPIC'
12073         lt_prog_compiler_static='-static'
12074         ;;
12075       ccc*)
12076         lt_prog_compiler_wl='-Wl,'
12077         # All Alpha code is PIC.
12078         lt_prog_compiler_static='-non_shared'
12079         ;;
12080       esac
12081       ;;
12082
12083     osf3* | osf4* | osf5*)
12084       lt_prog_compiler_wl='-Wl,'
12085       # All OSF/1 code is PIC.
12086       lt_prog_compiler_static='-non_shared'
12087       ;;
12088
12089     sco3.2v5*)
12090       lt_prog_compiler_pic='-Kpic'
12091       lt_prog_compiler_static='-dn'
12092       ;;
12093
12094     solaris*)
12095       lt_prog_compiler_wl='-Wl,'
12096       lt_prog_compiler_pic='-KPIC'
12097       lt_prog_compiler_static='-Bstatic'
12098       ;;
12099
12100     sunos4*)
12101       lt_prog_compiler_wl='-Qoption ld '
12102       lt_prog_compiler_pic='-PIC'
12103       lt_prog_compiler_static='-Bstatic'
12104       ;;
12105
12106     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12107       lt_prog_compiler_wl='-Wl,'
12108       lt_prog_compiler_pic='-KPIC'
12109       lt_prog_compiler_static='-Bstatic'
12110       ;;
12111
12112     sysv4*MP*)
12113       if test -d /usr/nec ;then
12114         lt_prog_compiler_pic='-Kconform_pic'
12115         lt_prog_compiler_static='-Bstatic'
12116       fi
12117       ;;
12118
12119     uts4*)
12120       lt_prog_compiler_pic='-pic'
12121       lt_prog_compiler_static='-Bstatic'
12122       ;;
12123
12124     *)
12125       lt_prog_compiler_can_build_shared=no
12126       ;;
12127     esac
12128   fi
12129
12130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12131 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12132
12133 #
12134 # Check to make sure the PIC flag actually works.
12135 #
12136 if test -n "$lt_prog_compiler_pic"; then
12137
12138 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12139 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12140 if test "${lt_prog_compiler_pic_works+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   lt_prog_compiler_pic_works=no
12144   ac_outfile=conftest.$ac_objext
12145    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12147    # Insert the option either (1) after the last *FLAGS variable, or
12148    # (2) before a word containing "conftest.", or (3) at the end.
12149    # Note that $ac_compile itself does not contain backslashes and begins
12150    # with a dollar sign (not a hyphen), so the echo should work correctly.
12151    # The option is referenced via a variable to avoid confusing sed.
12152    lt_compile=`echo "$ac_compile" | $SED \
12153    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155    -e 's:$: $lt_compiler_flag:'`
12156    (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12157    (eval "$lt_compile" 2>conftest.err)
12158    ac_status=$?
12159    cat conftest.err >&5
12160    echo "$as_me:12160: \$? = $ac_status" >&5
12161    if (exit $ac_status) && test -s "$ac_outfile"; then
12162      # The compiler can only warn and ignore the option if not recognized
12163      # So say no if there are warnings
12164      if test ! -s conftest.err; then
12165        lt_prog_compiler_pic_works=yes
12166      fi
12167    fi
12168    $rm conftest*
12169
12170 fi
12171 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12172 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12173
12174 if test x"$lt_prog_compiler_pic_works" = xyes; then
12175     case $lt_prog_compiler_pic in
12176      "" | " "*) ;;
12177      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12178      esac
12179 else
12180     lt_prog_compiler_pic=
12181      lt_prog_compiler_can_build_shared=no
12182 fi
12183
12184 fi
12185 case "$host_os" in
12186   # For platforms which do not support PIC, -DPIC is meaningless:
12187   *djgpp*)
12188     lt_prog_compiler_pic=
12189     ;;
12190   *)
12191     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12192     ;;
12193 esac
12194
12195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12197 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   lt_cv_prog_compiler_c_o=no
12201    $rm -r conftest 2>/dev/null
12202    mkdir conftest
12203    cd conftest
12204    mkdir out
12205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206
12207    lt_compiler_flag="-o out/conftest2.$ac_objext"
12208    # Insert the option either (1) after the last *FLAGS variable, or
12209    # (2) before a word containing "conftest.", or (3) at the end.
12210    # Note that $ac_compile itself does not contain backslashes and begins
12211    # with a dollar sign (not a hyphen), so the echo should work correctly.
12212    lt_compile=`echo "$ac_compile" | $SED \
12213    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215    -e 's:$: $lt_compiler_flag:'`
12216    (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12217    (eval "$lt_compile" 2>out/conftest.err)
12218    ac_status=$?
12219    cat out/conftest.err >&5
12220    echo "$as_me:12220: \$? = $ac_status" >&5
12221    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12222    then
12223      # The compiler can only warn and ignore the option if not recognized
12224      # So say no if there are warnings
12225      if test ! -s out/conftest.err; then
12226        lt_cv_prog_compiler_c_o=yes
12227      fi
12228    fi
12229    chmod u+w .
12230    $rm conftest*
12231    # SGI C++ compiler will create directory out/ii_files/ for
12232    # template instantiation
12233    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12234    $rm out/* && rmdir out
12235    cd ..
12236    rmdir conftest
12237    $rm conftest*
12238
12239 fi
12240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12241 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12242
12243
12244 hard_links="nottested"
12245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12246   # do not overwrite the value of need_locks provided by the user
12247   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12249   hard_links=yes
12250   $rm conftest*
12251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12252   touch conftest.a
12253   ln conftest.a conftest.b 2>&5 || hard_links=no
12254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12255   echo "$as_me:$LINENO: result: $hard_links" >&5
12256 echo "${ECHO_T}$hard_links" >&6
12257   if test "$hard_links" = no; then
12258     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12260     need_locks=warn
12261   fi
12262 else
12263   need_locks=no
12264 fi
12265
12266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12268
12269   runpath_var=
12270   allow_undefined_flag=
12271   enable_shared_with_static_runtimes=no
12272   archive_cmds=
12273   archive_expsym_cmds=
12274   old_archive_From_new_cmds=
12275   old_archive_from_expsyms_cmds=
12276   export_dynamic_flag_spec=
12277   whole_archive_flag_spec=
12278   thread_safe_flag_spec=
12279   hardcode_libdir_flag_spec=
12280   hardcode_libdir_flag_spec_ld=
12281   hardcode_libdir_separator=
12282   hardcode_direct=no
12283   hardcode_minus_L=no
12284   hardcode_shlibpath_var=unsupported
12285   link_all_deplibs=unknown
12286   hardcode_automatic=no
12287   module_cmds=
12288   module_expsym_cmds=
12289   always_export_symbols=no
12290   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291   # include_expsyms should be a list of space-separated symbols to be *always*
12292   # included in the symbol list
12293   include_expsyms=
12294   # exclude_expsyms can be an extended regexp of symbols to exclude
12295   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12296   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12297   # as well as any symbol that contains `d'.
12298   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12299   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12300   # platforms (ab)use it in PIC code, but their linkers get confused if
12301   # the symbol is explicitly referenced.  Since portable code cannot
12302   # rely on this symbol name, it's probably fine to never include it in
12303   # preloaded symbol tables.
12304   extract_expsyms_cmds=
12305
12306   case $host_os in
12307   cygwin* | mingw* | pw32*)
12308     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12309     # When not using gcc, we currently assume that we are using
12310     # Microsoft Visual C++.
12311     if test "$GCC" != yes; then
12312       with_gnu_ld=no
12313     fi
12314     ;;
12315   openbsd*)
12316     with_gnu_ld=no
12317     ;;
12318   esac
12319
12320   ld_shlibs=yes
12321   if test "$with_gnu_ld" = yes; then
12322     # If archive_cmds runs LD, not CC, wlarc should be empty
12323     wlarc='${wl}'
12324
12325     # See if GNU ld supports shared libraries.
12326     case $host_os in
12327     aix3* | aix4* | aix5*)
12328       # On AIX/PPC, the GNU linker is very broken
12329       if test "$host_cpu" != ia64; then
12330         ld_shlibs=no
12331         cat <<EOF 1>&2
12332
12333 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12334 *** to be unable to reliably create shared libraries on AIX.
12335 *** Therefore, libtool is disabling shared libraries support.  If you
12336 *** really care for shared libraries, you may want to modify your PATH
12337 *** so that a non-GNU linker is found, and then restart.
12338
12339 EOF
12340       fi
12341       ;;
12342
12343     amigaos*)
12344       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)'
12345       hardcode_libdir_flag_spec='-L$libdir'
12346       hardcode_minus_L=yes
12347
12348       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12349       # that the semantics of dynamic libraries on AmigaOS, at least up
12350       # to version 4, is to share data among multiple programs linked
12351       # with the same dynamic library.  Since this doesn't match the
12352       # behavior of shared libraries on other platforms, we can't use
12353       # them.
12354       ld_shlibs=no
12355       ;;
12356
12357     beos*)
12358       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12359         allow_undefined_flag=unsupported
12360         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12361         # support --undefined.  This deserves some investigation.  FIXME
12362         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363       else
12364         ld_shlibs=no
12365       fi
12366       ;;
12367
12368     cygwin* | mingw* | pw32*)
12369       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12370       # as there is no search path for DLLs.
12371       hardcode_libdir_flag_spec='-L$libdir'
12372       allow_undefined_flag=unsupported
12373       always_export_symbols=no
12374       enable_shared_with_static_runtimes=yes
12375       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12376
12377       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12378         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379         # If the export-symbols file already is a .def file (1st line
12380         # is EXPORTS), use it as is; otherwise, prepend...
12381         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12382           cp $export_symbols $output_objdir/$soname.def;
12383         else
12384           echo EXPORTS > $output_objdir/$soname.def;
12385           cat $export_symbols >> $output_objdir/$soname.def;
12386         fi~
12387         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12388       else
12389         ld_shlibs=no
12390       fi
12391       ;;
12392
12393     netbsd*)
12394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12396         wlarc=
12397       else
12398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400       fi
12401       ;;
12402
12403     solaris* | sysv5*)
12404       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12405         ld_shlibs=no
12406         cat <<EOF 1>&2
12407
12408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409 *** create shared libraries on Solaris systems.  Therefore, libtool
12410 *** is disabling shared libraries support.  We urge you to upgrade GNU
12411 *** binutils to release 2.9.1 or newer.  Another option is to modify
12412 *** your PATH or compiler configuration so that the native linker is
12413 *** used, and then restart.
12414
12415 EOF
12416       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419       else
12420         ld_shlibs=no
12421       fi
12422       ;;
12423
12424     sunos4*)
12425       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12426       wlarc=
12427       hardcode_direct=yes
12428       hardcode_shlibpath_var=no
12429       ;;
12430
12431   linux*)
12432     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434         archive_cmds="$tmp_archive_cmds"
12435       supports_anon_versioning=no
12436       case `$LD -v 2>/dev/null` in
12437         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440         *\ 2.11.*) ;; # other 2.11 versions
12441         *) supports_anon_versioning=yes ;;
12442       esac
12443       if test $supports_anon_versioning = yes; then
12444         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446 $echo "local: *; };" >> $output_objdir/$libname.ver~
12447         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12448       else
12449         archive_expsym_cmds="$tmp_archive_cmds"
12450       fi
12451     else
12452       ld_shlibs=no
12453     fi
12454     ;;
12455
12456     *)
12457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12458         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460       else
12461         ld_shlibs=no
12462       fi
12463       ;;
12464     esac
12465
12466     if test "$ld_shlibs" = yes; then
12467       runpath_var=LD_RUN_PATH
12468       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12469       export_dynamic_flag_spec='${wl}--export-dynamic'
12470       # ancient GNU ld didn't support --whole-archive et. al.
12471       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12472         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473       else
12474         whole_archive_flag_spec=
12475       fi
12476     fi
12477   else
12478     # PORTME fill in a description of your system's linker (not GNU ld)
12479     case $host_os in
12480     aix3*)
12481       allow_undefined_flag=unsupported
12482       always_export_symbols=yes
12483       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'
12484       # Note: this linker hardcodes the directories in LIBPATH if there
12485       # are no directories specified by -L.
12486       hardcode_minus_L=yes
12487       if test "$GCC" = yes && test -z "$link_static_flag"; then
12488         # Neither direct hardcoding nor static linking is supported with a
12489         # broken collect2.
12490         hardcode_direct=unsupported
12491       fi
12492       ;;
12493
12494     aix4* | aix5*)
12495       if test "$host_cpu" = ia64; then
12496         # On IA64, the linker does run time linking by default, so we don't
12497         # have to do anything special.
12498         aix_use_runtimelinking=no
12499         exp_sym_flag='-Bexport'
12500         no_entry_flag=""
12501       else
12502         # If we're using GNU nm, then we don't want the "-C" option.
12503         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12505           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'
12506         else
12507           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'
12508         fi
12509         aix_use_runtimelinking=no
12510
12511         # Test if we are trying to use run time linking or normal
12512         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12513         # need to do runtime linking.
12514         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12515           for ld_flag in $LDFLAGS; do
12516           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12517             aix_use_runtimelinking=yes
12518             break
12519           fi
12520           done
12521         esac
12522
12523         exp_sym_flag='-bexport'
12524         no_entry_flag='-bnoentry'
12525       fi
12526
12527       # When large executables or shared objects are built, AIX ld can
12528       # have problems creating the table of contents.  If linking a library
12529       # or program results in "error TOC overflow" add -mminimal-toc to
12530       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12531       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12532
12533       archive_cmds=''
12534       hardcode_direct=yes
12535       hardcode_libdir_separator=':'
12536       link_all_deplibs=yes
12537
12538       if test "$GCC" = yes; then
12539         case $host_os in aix4.012|aix4.012.*)
12540         # We only want to do this on AIX 4.2 and lower, the check
12541         # below for broken collect2 doesn't work under 4.3+
12542           collect2name=`${CC} -print-prog-name=collect2`
12543           if test -f "$collect2name" && \
12544            strings "$collect2name" | grep resolve_lib_name >/dev/null
12545           then
12546           # We have reworked collect2
12547           hardcode_direct=yes
12548           else
12549           # We have old collect2
12550           hardcode_direct=unsupported
12551           # It fails to find uninstalled libraries when the uninstalled
12552           # path is not listed in the libpath.  Setting hardcode_minus_L
12553           # to unsupported forces relinking
12554           hardcode_minus_L=yes
12555           hardcode_libdir_flag_spec='-L$libdir'
12556           hardcode_libdir_separator=
12557           fi
12558         esac
12559         shared_flag='-shared'
12560       else
12561         # not using gcc
12562         if test "$host_cpu" = ia64; then
12563         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12564         # chokes on -Wl,-G. The following line is correct:
12565           shared_flag='-G'
12566         else
12567         if test "$aix_use_runtimelinking" = yes; then
12568             shared_flag='${wl}-G'
12569           else
12570             shared_flag='${wl}-bM:SRE'
12571         fi
12572         fi
12573       fi
12574
12575       # It seems that -bexpall does not export symbols beginning with
12576       # underscore (_), so it is better to generate a list of symbols to export.
12577       always_export_symbols=yes
12578       if test "$aix_use_runtimelinking" = yes; then
12579         # Warning - without using the other runtime loading flags (-brtl),
12580         # -berok will link without error, but may produce a broken library.
12581         allow_undefined_flag='-berok'
12582        # Determine the default libpath from the value encoded in an empty executable.
12583        cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589
12590 int
12591 main ()
12592 {
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600   (eval $ac_link) 2>conftest.er1
12601   ac_status=$?
12602   grep -v '^ *+' conftest.er1 >conftest.err
12603   rm -f conftest.er1
12604   cat conftest.err >&5
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -z "$ac_c_werror_flag"
12608                          || test ! -s conftest.err'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; } &&
12614          { ac_try='test -s conftest$ac_exeext'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12622 }'`
12623 # Check for a 64-bit object if we didn't find anything.
12624 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; }
12625 }'`; fi
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 fi
12631 rm -f conftest.err conftest.$ac_objext \
12632       conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634
12635        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12636         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"
12637        else
12638         if test "$host_cpu" = ia64; then
12639           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12640           allow_undefined_flag="-z nodefs"
12641           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"
12642         else
12643          # Determine the default libpath from the value encoded in an empty executable.
12644          cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h.  */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h.  */
12650
12651 int
12652 main ()
12653 {
12654
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661   (eval $ac_link) 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_c_werror_flag"
12669                          || test ! -s conftest.err'
12670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671   (eval $ac_try) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; } &&
12675          { ac_try='test -s conftest$ac_exeext'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; }; then
12681
12682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12683 }'`
12684 # Check for a 64-bit object if we didn't find anything.
12685 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; }
12686 }'`; fi
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695
12696          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697           # Warning - without using the other run time loading flags,
12698           # -berok will link without error, but may produce a broken library.
12699           no_undefined_flag=' ${wl}-bernotok'
12700           allow_undefined_flag=' ${wl}-berok'
12701           # -bexpall does not export symbols beginning with underscore (_)
12702           always_export_symbols=yes
12703           # Exported symbols can be pulled into shared objects from archives
12704           whole_archive_flag_spec=' '
12705           archive_cmds_need_lc=yes
12706           # This is similar to how AIX traditionally builds it's shared libraries.
12707           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'
12708         fi
12709       fi
12710       ;;
12711
12712     amigaos*)
12713       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)'
12714       hardcode_libdir_flag_spec='-L$libdir'
12715       hardcode_minus_L=yes
12716       # see comment about different semantics on the GNU ld section
12717       ld_shlibs=no
12718       ;;
12719
12720     bsdi[45]*)
12721       export_dynamic_flag_spec=-rdynamic
12722       ;;
12723
12724     cygwin* | mingw* | pw32*)
12725       # When not using gcc, we currently assume that we are using
12726       # Microsoft Visual C++.
12727       # hardcode_libdir_flag_spec is actually meaningless, as there is
12728       # no search path for DLLs.
12729       hardcode_libdir_flag_spec=' '
12730       allow_undefined_flag=unsupported
12731       # Tell ltmain to make .lib files, not .a files.
12732       libext=lib
12733       # Tell ltmain to make .dll files, not .so files.
12734       shrext_cmds=".dll"
12735       # FIXME: Setting linknames here is a bad hack.
12736       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12737       # The linker will automatically build a .lib file if we build a DLL.
12738       old_archive_From_new_cmds='true'
12739       # FIXME: Should let the user specify the lib program.
12740       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12741       fix_srcfile_path='`cygpath -w "$srcfile"`'
12742       enable_shared_with_static_runtimes=yes
12743       ;;
12744
12745     darwin* | rhapsody*)
12746       case "$host_os" in
12747         rhapsody* | darwin1.[012])
12748          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12749          ;;
12750        *) # Darwin 1.3 on
12751          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12752            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12753          else
12754            case ${MACOSX_DEPLOYMENT_TARGET} in
12755              10.[012])
12756                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12757                ;;
12758              10.*)
12759                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12760                ;;
12761            esac
12762          fi
12763          ;;
12764       esac
12765       archive_cmds_need_lc=no
12766       hardcode_direct=no
12767       hardcode_automatic=yes
12768       hardcode_shlibpath_var=unsupported
12769       whole_archive_flag_spec=''
12770       link_all_deplibs=yes
12771     if test "$GCC" = yes ; then
12772         output_verbose_link_cmd='echo'
12773         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12774       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12775       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12776       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}'
12777       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}'
12778     else
12779       case "$cc_basename" in
12780         xlc*)
12781          output_verbose_link_cmd='echo'
12782          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12783          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12784           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12785          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}'
12786           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}'
12787           ;;
12788        *)
12789          ld_shlibs=no
12790           ;;
12791       esac
12792     fi
12793       ;;
12794
12795     dgux*)
12796       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797       hardcode_libdir_flag_spec='-L$libdir'
12798       hardcode_shlibpath_var=no
12799       ;;
12800
12801     freebsd1*)
12802       ld_shlibs=no
12803       ;;
12804
12805     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12806     # support.  Future versions do this automatically, but an explicit c++rt0.o
12807     # does not break anything, and helps significantly (at the cost of a little
12808     # extra space).
12809     freebsd2.2*)
12810       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12811       hardcode_libdir_flag_spec='-R$libdir'
12812       hardcode_direct=yes
12813       hardcode_shlibpath_var=no
12814       ;;
12815
12816     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12817     freebsd2*)
12818       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819       hardcode_direct=yes
12820       hardcode_minus_L=yes
12821       hardcode_shlibpath_var=no
12822       ;;
12823
12824     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12825     freebsd* | kfreebsd*-gnu)
12826       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12827       hardcode_libdir_flag_spec='-R$libdir'
12828       hardcode_direct=yes
12829       hardcode_shlibpath_var=no
12830       ;;
12831
12832     hpux9*)
12833       if test "$GCC" = yes; then
12834         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'
12835       else
12836         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'
12837       fi
12838       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12839       hardcode_libdir_separator=:
12840       hardcode_direct=yes
12841
12842       # hardcode_minus_L: Not really in the search PATH,
12843       # but as the default location of the library.
12844       hardcode_minus_L=yes
12845       export_dynamic_flag_spec='${wl}-E'
12846       ;;
12847
12848     hpux10* | hpux11*)
12849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12850         case "$host_cpu" in
12851         hppa*64*|ia64*)
12852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12853           ;;
12854         *)
12855           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12856           ;;
12857         esac
12858       else
12859         case "$host_cpu" in
12860         hppa*64*|ia64*)
12861           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12862           ;;
12863         *)
12864           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12865           ;;
12866         esac
12867       fi
12868       if test "$with_gnu_ld" = no; then
12869         case "$host_cpu" in
12870         hppa*64*)
12871           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872           hardcode_libdir_flag_spec_ld='+b $libdir'
12873           hardcode_libdir_separator=:
12874           hardcode_direct=no
12875           hardcode_shlibpath_var=no
12876           ;;
12877         ia64*)
12878           hardcode_libdir_flag_spec='-L$libdir'
12879           hardcode_direct=no
12880           hardcode_shlibpath_var=no
12881
12882           # hardcode_minus_L: Not really in the search PATH,
12883           # but as the default location of the library.
12884           hardcode_minus_L=yes
12885           ;;
12886         *)
12887           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12888           hardcode_libdir_separator=:
12889           hardcode_direct=yes
12890           export_dynamic_flag_spec='${wl}-E'
12891
12892           # hardcode_minus_L: Not really in the search PATH,
12893           # but as the default location of the library.
12894           hardcode_minus_L=yes
12895           ;;
12896         esac
12897       fi
12898       ;;
12899
12900     irix5* | irix6* | nonstopux*)
12901       if test "$GCC" = yes; then
12902         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'
12903       else
12904         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'
12905         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12906       fi
12907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12908       hardcode_libdir_separator=:
12909       link_all_deplibs=yes
12910       ;;
12911
12912     netbsd*)
12913       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12914         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12915       else
12916         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12917       fi
12918       hardcode_libdir_flag_spec='-R$libdir'
12919       hardcode_direct=yes
12920       hardcode_shlibpath_var=no
12921       ;;
12922
12923     newsos6)
12924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925       hardcode_direct=yes
12926       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927       hardcode_libdir_separator=:
12928       hardcode_shlibpath_var=no
12929       ;;
12930
12931     openbsd*)
12932       hardcode_direct=yes
12933       hardcode_shlibpath_var=no
12934       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12936         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12937         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938         export_dynamic_flag_spec='${wl}-E'
12939       else
12940        case $host_os in
12941          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943            hardcode_libdir_flag_spec='-R$libdir'
12944            ;;
12945          *)
12946            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12948            ;;
12949        esac
12950       fi
12951       ;;
12952
12953     os2*)
12954       hardcode_libdir_flag_spec='-L$libdir'
12955       hardcode_minus_L=yes
12956       allow_undefined_flag=unsupported
12957       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'
12958       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12959       ;;
12960
12961     osf3*)
12962       if test "$GCC" = yes; then
12963         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12964         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'
12965       else
12966         allow_undefined_flag=' -expect_unresolved \*'
12967         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'
12968       fi
12969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970       hardcode_libdir_separator=:
12971       ;;
12972
12973     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12974       if test "$GCC" = yes; then
12975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12976         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'
12977         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12978       else
12979         allow_undefined_flag=' -expect_unresolved \*'
12980         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'
12981         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12982         $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'
12983
12984         # Both c and cxx compiler support -rpath directly
12985         hardcode_libdir_flag_spec='-rpath $libdir'
12986       fi
12987       hardcode_libdir_separator=:
12988       ;;
12989
12990     sco3.2v5*)
12991       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992       hardcode_shlibpath_var=no
12993       export_dynamic_flag_spec='${wl}-Bexport'
12994       runpath_var=LD_RUN_PATH
12995       hardcode_runpath_var=yes
12996       ;;
12997
12998     solaris*)
12999       no_undefined_flag=' -z text'
13000       if test "$GCC" = yes; then
13001         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13004       else
13005         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13007         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13008       fi
13009       hardcode_libdir_flag_spec='-R$libdir'
13010       hardcode_shlibpath_var=no
13011       case $host_os in
13012       solaris2.[0-5] | solaris2.[0-5].*) ;;
13013       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13014         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13015       esac
13016       link_all_deplibs=yes
13017       ;;
13018
13019     sunos4*)
13020       if test "x$host_vendor" = xsequent; then
13021         # Use $CC to link under sequent, because it throws in some extra .o
13022         # files that make .init and .fini sections work.
13023         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024       else
13025         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026       fi
13027       hardcode_libdir_flag_spec='-L$libdir'
13028       hardcode_direct=yes
13029       hardcode_minus_L=yes
13030       hardcode_shlibpath_var=no
13031       ;;
13032
13033     sysv4)
13034       case $host_vendor in
13035         sni)
13036           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037           hardcode_direct=yes # is this really true???
13038         ;;
13039         siemens)
13040           ## LD is ld it makes a PLAMLIB
13041           ## CC just makes a GrossModule.
13042           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043           reload_cmds='$CC -r -o $output$reload_objs'
13044           hardcode_direct=no
13045         ;;
13046         motorola)
13047           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13049         ;;
13050       esac
13051       runpath_var='LD_RUN_PATH'
13052       hardcode_shlibpath_var=no
13053       ;;
13054
13055     sysv4.3*)
13056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057       hardcode_shlibpath_var=no
13058       export_dynamic_flag_spec='-Bexport'
13059       ;;
13060
13061     sysv4*MP*)
13062       if test -d /usr/nec; then
13063         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064         hardcode_shlibpath_var=no
13065         runpath_var=LD_RUN_PATH
13066         hardcode_runpath_var=yes
13067         ld_shlibs=yes
13068       fi
13069       ;;
13070
13071     sysv4.2uw2*)
13072       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13073       hardcode_direct=yes
13074       hardcode_minus_L=no
13075       hardcode_shlibpath_var=no
13076       hardcode_runpath_var=yes
13077       runpath_var=LD_RUN_PATH
13078       ;;
13079
13080    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13081       no_undefined_flag='${wl}-z ${wl}text'
13082       if test "$GCC" = yes; then
13083         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084       else
13085         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13086       fi
13087       runpath_var='LD_RUN_PATH'
13088       hardcode_shlibpath_var=no
13089       ;;
13090
13091     sysv5*)
13092       no_undefined_flag=' -z text'
13093       # $CC -shared without GNU ld will not create a library from C++
13094       # object files and a static libstdc++, better avoid it by now
13095       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13098       hardcode_libdir_flag_spec=
13099       hardcode_shlibpath_var=no
13100       runpath_var='LD_RUN_PATH'
13101       ;;
13102
13103     uts4*)
13104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105       hardcode_libdir_flag_spec='-L$libdir'
13106       hardcode_shlibpath_var=no
13107       ;;
13108
13109     *)
13110       ld_shlibs=no
13111       ;;
13112     esac
13113   fi
13114
13115 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13116 echo "${ECHO_T}$ld_shlibs" >&6
13117 test "$ld_shlibs" = no && can_build_shared=no
13118
13119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13120 if test "$GCC" = yes; then
13121   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 fi
13123
13124 #
13125 # Do we need to explicitly link libc?
13126 #
13127 case "x$archive_cmds_need_lc" in
13128 x|xyes)
13129   # Assume -lc should be added
13130   archive_cmds_need_lc=yes
13131
13132   if test "$enable_shared" = yes && test "$GCC" = yes; then
13133     case $archive_cmds in
13134     *'~'*)
13135       # FIXME: we may have to deal with multi-command sequences.
13136       ;;
13137     '$CC '*)
13138       # Test whether the compiler implicitly links with -lc since on some
13139       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13140       # to ld, don't add -lc before -lgcc.
13141       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13142 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13143       $rm conftest*
13144       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13145
13146       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147   (eval $ac_compile) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } 2>conftest.err; then
13151         soname=conftest
13152         lib=conftest
13153         libobjs=conftest.$ac_objext
13154         deplibs=
13155         wl=$lt_prog_compiler_wl
13156         compiler_flags=-v
13157         linker_flags=-v
13158         verstring=
13159         output_objdir=.
13160         libname=conftest
13161         lt_save_allow_undefined_flag=$allow_undefined_flag
13162         allow_undefined_flag=
13163         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }
13168         then
13169           archive_cmds_need_lc=no
13170         else
13171           archive_cmds_need_lc=yes
13172         fi
13173         allow_undefined_flag=$lt_save_allow_undefined_flag
13174       else
13175         cat conftest.err 1>&5
13176       fi
13177       $rm conftest*
13178       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13179 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13180       ;;
13181     esac
13182   fi
13183   ;;
13184 esac
13185
13186 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13188 library_names_spec=
13189 libname_spec='lib$name'
13190 soname_spec=
13191 shrext_cmds=".so"
13192 postinstall_cmds=
13193 postuninstall_cmds=
13194 finish_cmds=
13195 finish_eval=
13196 shlibpath_var=
13197 shlibpath_overrides_runpath=unknown
13198 version_type=none
13199 dynamic_linker="$host_os ld.so"
13200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13201 if test "$GCC" = yes; then
13202   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13204     # if the path contains ";" then we assume it to be the separator
13205     # otherwise default to the standard path separator (i.e. ":") - it is
13206     # assumed that no part of a normal pathname contains ";" but that should
13207     # okay in the real world where ";" in dirpaths is itself problematic.
13208     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13209   else
13210     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13211   fi
13212 else
13213   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214 fi
13215 need_lib_prefix=unknown
13216 hardcode_into_libs=no
13217
13218 # when you set need_version to no, make sure it does not cause -set_version
13219 # flags to be left without arguments
13220 need_version=unknown
13221
13222 case $host_os in
13223 aix3*)
13224   version_type=linux
13225   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13226   shlibpath_var=LIBPATH
13227
13228   # AIX 3 has no versioning support, so we append a major version to the name.
13229   soname_spec='${libname}${release}${shared_ext}$major'
13230   ;;
13231
13232 aix4* | aix5*)
13233   version_type=linux
13234   need_lib_prefix=no
13235   need_version=no
13236   hardcode_into_libs=yes
13237   if test "$host_cpu" = ia64; then
13238     # AIX 5 supports IA64
13239     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13240     shlibpath_var=LD_LIBRARY_PATH
13241   else
13242     # With GCC up to 2.95.x, collect2 would create an import file
13243     # for dependence libraries.  The import file would start with
13244     # the line `#! .'.  This would cause the generated library to
13245     # depend on `.', always an invalid library.  This was fixed in
13246     # development snapshots of GCC prior to 3.0.
13247     case $host_os in
13248       aix4 | aix4.[01] | aix4.[01].*)
13249       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13250            echo ' yes '
13251            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13252         :
13253       else
13254         can_build_shared=no
13255       fi
13256       ;;
13257     esac
13258     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13259     # soname into executable. Probably we can add versioning support to
13260     # collect2, so additional links can be useful in future.
13261     if test "$aix_use_runtimelinking" = yes; then
13262       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263       # instead of lib<name>.a to let people know that these are not
13264       # typical AIX shared libraries.
13265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266     else
13267       # We preserve .a as extension for shared libraries through AIX4.2
13268       # and later when we are not doing run time linking.
13269       library_names_spec='${libname}${release}.a $libname.a'
13270       soname_spec='${libname}${release}${shared_ext}$major'
13271     fi
13272     shlibpath_var=LIBPATH
13273   fi
13274   ;;
13275
13276 amigaos*)
13277   library_names_spec='$libname.ixlibrary $libname.a'
13278   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13279   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'
13280   ;;
13281
13282 beos*)
13283   library_names_spec='${libname}${shared_ext}'
13284   dynamic_linker="$host_os ld.so"
13285   shlibpath_var=LIBRARY_PATH
13286   ;;
13287
13288 bsdi[45]*)
13289   version_type=linux
13290   need_version=no
13291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292   soname_spec='${libname}${release}${shared_ext}$major'
13293   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13294   shlibpath_var=LD_LIBRARY_PATH
13295   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13296   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13297   # the default ld.so.conf also contains /usr/contrib/lib and
13298   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13299   # libtool to hard-code these into programs
13300   ;;
13301
13302 cygwin* | mingw* | pw32*)
13303   version_type=windows
13304   shrext_cmds=".dll"
13305   need_version=no
13306   need_lib_prefix=no
13307
13308   case $GCC,$host_os in
13309   yes,cygwin* | yes,mingw* | yes,pw32*)
13310     library_names_spec='$libname.dll.a'
13311     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13312     postinstall_cmds='base_file=`basename \${file}`~
13313       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13314       dldir=$destdir/`dirname \$dlpath`~
13315       test -d \$dldir || mkdir -p \$dldir~
13316       $install_prog $dir/$dlname \$dldir/$dlname'
13317     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318       dlpath=$dir/\$dldll~
13319        $rm \$dlpath'
13320     shlibpath_overrides_runpath=yes
13321
13322     case $host_os in
13323     cygwin*)
13324       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13327       ;;
13328     mingw*)
13329       # MinGW DLLs use traditional 'lib' prefix
13330       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333         # It is most probably a Windows format PATH printed by
13334         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335         # path with ; separators, and with drive letters. We can handle the
13336         # drive letters (cygwin fileutils understands them), so leave them,
13337         # especially as we might pass files found there to a mingw objdump,
13338         # which wouldn't understand a cygwinified path. Ahh.
13339         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340       else
13341         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13342       fi
13343       ;;
13344     pw32*)
13345       # pw32 DLLs use 'pw' prefix rather than 'lib'
13346       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13347       ;;
13348     esac
13349     ;;
13350
13351   *)
13352     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13353     ;;
13354   esac
13355   dynamic_linker='Win32 ld.exe'
13356   # FIXME: first we should search . and the directory the executable is in
13357   shlibpath_var=PATH
13358   ;;
13359
13360 darwin* | rhapsody*)
13361   dynamic_linker="$host_os dyld"
13362   version_type=darwin
13363   need_lib_prefix=no
13364   need_version=no
13365   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13366   soname_spec='${libname}${release}${major}$shared_ext'
13367   shlibpath_overrides_runpath=yes
13368   shlibpath_var=DYLD_LIBRARY_PATH
13369   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13370   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13371   if test "$GCC" = yes; then
13372     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"`
13373   else
13374     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13375   fi
13376   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13377   ;;
13378
13379 dgux*)
13380   version_type=linux
13381   need_lib_prefix=no
13382   need_version=no
13383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   ;;
13387
13388 freebsd1*)
13389   dynamic_linker=no
13390   ;;
13391
13392 kfreebsd*-gnu)
13393   version_type=linux
13394   need_lib_prefix=no
13395   need_version=no
13396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397   soname_spec='${libname}${release}${shared_ext}$major'
13398   shlibpath_var=LD_LIBRARY_PATH
13399   shlibpath_overrides_runpath=no
13400   hardcode_into_libs=yes
13401   dynamic_linker='GNU ld.so'
13402   ;;
13403
13404 freebsd*)
13405   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13406   version_type=freebsd-$objformat
13407   case $version_type in
13408     freebsd-elf*)
13409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13410       need_version=no
13411       need_lib_prefix=no
13412       ;;
13413     freebsd-*)
13414       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13415       need_version=yes
13416       ;;
13417   esac
13418   shlibpath_var=LD_LIBRARY_PATH
13419   case $host_os in
13420   freebsd2*)
13421     shlibpath_overrides_runpath=yes
13422     ;;
13423   freebsd3.01* | freebsdelf3.01*)
13424     shlibpath_overrides_runpath=yes
13425     hardcode_into_libs=yes
13426     ;;
13427   *) # from 3.2 on
13428     shlibpath_overrides_runpath=no
13429     hardcode_into_libs=yes
13430     ;;
13431   esac
13432   ;;
13433
13434 gnu*)
13435   version_type=linux
13436   need_lib_prefix=no
13437   need_version=no
13438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439   soname_spec='${libname}${release}${shared_ext}$major'
13440   shlibpath_var=LD_LIBRARY_PATH
13441   hardcode_into_libs=yes
13442   ;;
13443
13444 hpux9* | hpux10* | hpux11*)
13445   # Give a soname corresponding to the major version so that dld.sl refuses to
13446   # link against other versions.
13447   version_type=sunos
13448   need_lib_prefix=no
13449   need_version=no
13450   case "$host_cpu" in
13451   ia64*)
13452     shrext_cmds='.so'
13453     hardcode_into_libs=yes
13454     dynamic_linker="$host_os dld.so"
13455     shlibpath_var=LD_LIBRARY_PATH
13456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458     soname_spec='${libname}${release}${shared_ext}$major'
13459     if test "X$HPUX_IA64_MODE" = X32; then
13460       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461     else
13462       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463     fi
13464     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465     ;;
13466    hppa*64*)
13467      shrext_cmds='.sl'
13468      hardcode_into_libs=yes
13469      dynamic_linker="$host_os dld.sl"
13470      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473      soname_spec='${libname}${release}${shared_ext}$major'
13474      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476      ;;
13477    *)
13478     shrext_cmds='.sl'
13479     dynamic_linker="$host_os dld.sl"
13480     shlibpath_var=SHLIB_PATH
13481     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483     soname_spec='${libname}${release}${shared_ext}$major'
13484     ;;
13485   esac
13486   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487   postinstall_cmds='chmod 555 $lib'
13488   ;;
13489
13490 irix5* | irix6* | nonstopux*)
13491   case $host_os in
13492     nonstopux*) version_type=nonstopux ;;
13493     *)
13494         if test "$lt_cv_prog_gnu_ld" = yes; then
13495                 version_type=linux
13496         else
13497                 version_type=irix
13498         fi ;;
13499   esac
13500   need_lib_prefix=no
13501   need_version=no
13502   soname_spec='${libname}${release}${shared_ext}$major'
13503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13504   case $host_os in
13505   irix5* | nonstopux*)
13506     libsuff= shlibsuff=
13507     ;;
13508   *)
13509     case $LD in # libtool.m4 will add one of these switches to LD
13510     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13511       libsuff= shlibsuff= libmagic=32-bit;;
13512     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13513       libsuff=32 shlibsuff=N32 libmagic=N32;;
13514     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13515       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13516     *) libsuff= shlibsuff= libmagic=never-match;;
13517     esac
13518     ;;
13519   esac
13520   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13521   shlibpath_overrides_runpath=no
13522   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13523   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13524   hardcode_into_libs=yes
13525   ;;
13526
13527 # No shared lib support for Linux oldld, aout, or coff.
13528 linux*oldld* | linux*aout* | linux*coff*)
13529   dynamic_linker=no
13530   ;;
13531
13532 # This must be Linux ELF.
13533 linux*)
13534   version_type=linux
13535   need_lib_prefix=no
13536   need_version=no
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   shlibpath_overrides_runpath=no
13542   # This implies no fast_install, which is unacceptable.
13543   # Some rework will be needed to allow for fast_install
13544   # before this can be enabled.
13545   hardcode_into_libs=yes
13546
13547   # Append ld.so.conf contents to the search path
13548   if test -f /etc/ld.so.conf; then
13549     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13550     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13551   fi
13552
13553   # We used to test for /lib/ld.so.1 and disable shared libraries on
13554   # powerpc, because MkLinux only supported shared libraries with the
13555   # GNU dynamic linker.  Since this was broken with cross compilers,
13556   # most powerpc-linux boxes support dynamic linking these days and
13557   # people can always --disable-shared, the test was removed, and we
13558   # assume the GNU/Linux dynamic linker is in use.
13559   dynamic_linker='GNU/Linux ld.so'
13560   ;;
13561
13562 knetbsd*-gnu)
13563   version_type=linux
13564   need_lib_prefix=no
13565   need_version=no
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567   soname_spec='${libname}${release}${shared_ext}$major'
13568   shlibpath_var=LD_LIBRARY_PATH
13569   shlibpath_overrides_runpath=no
13570   hardcode_into_libs=yes
13571   dynamic_linker='GNU ld.so'
13572   ;;
13573
13574 netbsd*)
13575   version_type=sunos
13576   need_lib_prefix=no
13577   need_version=no
13578   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581     dynamic_linker='NetBSD (a.out) ld.so'
13582   else
13583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584     soname_spec='${libname}${release}${shared_ext}$major'
13585     dynamic_linker='NetBSD ld.elf_so'
13586   fi
13587   shlibpath_var=LD_LIBRARY_PATH
13588   shlibpath_overrides_runpath=yes
13589   hardcode_into_libs=yes
13590   ;;
13591
13592 newsos6)
13593   version_type=linux
13594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595   shlibpath_var=LD_LIBRARY_PATH
13596   shlibpath_overrides_runpath=yes
13597   ;;
13598
13599 nto-qnx*)
13600   version_type=linux
13601   need_lib_prefix=no
13602   need_version=no
13603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604   soname_spec='${libname}${release}${shared_ext}$major'
13605   shlibpath_var=LD_LIBRARY_PATH
13606   shlibpath_overrides_runpath=yes
13607   ;;
13608
13609 openbsd*)
13610   version_type=sunos
13611   need_lib_prefix=no
13612   need_version=no
13613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13615   shlibpath_var=LD_LIBRARY_PATH
13616   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617     case $host_os in
13618       openbsd2.[89] | openbsd2.[89].*)
13619         shlibpath_overrides_runpath=no
13620         ;;
13621       *)
13622         shlibpath_overrides_runpath=yes
13623         ;;
13624       esac
13625   else
13626     shlibpath_overrides_runpath=yes
13627   fi
13628   ;;
13629
13630 os2*)
13631   libname_spec='$name'
13632   shrext_cmds=".dll"
13633   need_lib_prefix=no
13634   library_names_spec='$libname${shared_ext} $libname.a'
13635   dynamic_linker='OS/2 ld.exe'
13636   shlibpath_var=LIBPATH
13637   ;;
13638
13639 osf3* | osf4* | osf5*)
13640   version_type=osf
13641   need_lib_prefix=no
13642   need_version=no
13643   soname_spec='${libname}${release}${shared_ext}$major'
13644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645   shlibpath_var=LD_LIBRARY_PATH
13646   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13647   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13648   ;;
13649
13650 sco3.2v5*)
13651   version_type=osf
13652   soname_spec='${libname}${release}${shared_ext}$major'
13653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   ;;
13656
13657 solaris*)
13658   version_type=linux
13659   need_lib_prefix=no
13660   need_version=no
13661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662   soname_spec='${libname}${release}${shared_ext}$major'
13663   shlibpath_var=LD_LIBRARY_PATH
13664   shlibpath_overrides_runpath=yes
13665   hardcode_into_libs=yes
13666   # ldd complains unless libraries are executable
13667   postinstall_cmds='chmod +x $lib'
13668   ;;
13669
13670 sunos4*)
13671   version_type=sunos
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13673   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13674   shlibpath_var=LD_LIBRARY_PATH
13675   shlibpath_overrides_runpath=yes
13676   if test "$with_gnu_ld" = yes; then
13677     need_lib_prefix=no
13678   fi
13679   need_version=yes
13680   ;;
13681
13682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13683   version_type=linux
13684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685   soname_spec='${libname}${release}${shared_ext}$major'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   case $host_vendor in
13688     sni)
13689       shlibpath_overrides_runpath=no
13690       need_lib_prefix=no
13691       export_dynamic_flag_spec='${wl}-Blargedynsym'
13692       runpath_var=LD_RUN_PATH
13693       ;;
13694     siemens)
13695       need_lib_prefix=no
13696       ;;
13697     motorola)
13698       need_lib_prefix=no
13699       need_version=no
13700       shlibpath_overrides_runpath=no
13701       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13702       ;;
13703   esac
13704   ;;
13705
13706 sysv4*MP*)
13707   if test -d /usr/nec ;then
13708     version_type=linux
13709     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13710     soname_spec='$libname${shared_ext}.$major'
13711     shlibpath_var=LD_LIBRARY_PATH
13712   fi
13713   ;;
13714
13715 uts4*)
13716   version_type=linux
13717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   shlibpath_var=LD_LIBRARY_PATH
13720   ;;
13721
13722 *)
13723   dynamic_linker=no
13724   ;;
13725 esac
13726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13727 echo "${ECHO_T}$dynamic_linker" >&6
13728 test "$dynamic_linker" = no && can_build_shared=no
13729
13730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13732 hardcode_action=
13733 if test -n "$hardcode_libdir_flag_spec" || \
13734    test -n "$runpath_var" || \
13735    test "X$hardcode_automatic" = "Xyes" ; then
13736
13737   # We can hardcode non-existant directories.
13738   if test "$hardcode_direct" != no &&
13739      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740      # have to relink, otherwise we might link with an installed library
13741      # when we should be linking with a yet-to-be-installed one
13742      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743      test "$hardcode_minus_L" != no; then
13744     # Linking always hardcodes the temporary library directory.
13745     hardcode_action=relink
13746   else
13747     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748     hardcode_action=immediate
13749   fi
13750 else
13751   # We cannot hardcode anything, or else we can only hardcode existing
13752   # directories.
13753   hardcode_action=unsupported
13754 fi
13755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13756 echo "${ECHO_T}$hardcode_action" >&6
13757
13758 if test "$hardcode_action" = relink; then
13759   # Fast installation is not supported
13760   enable_fast_install=no
13761 elif test "$shlibpath_overrides_runpath" = yes ||
13762      test "$enable_shared" = no; then
13763   # Fast installation is not necessary
13764   enable_fast_install=needless
13765 fi
13766
13767 striplib=
13768 old_striplib=
13769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13772   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13773   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13774   echo "$as_me:$LINENO: result: yes" >&5
13775 echo "${ECHO_T}yes" >&6
13776 else
13777 # FIXME - insert some real tests, host_os isn't really good enough
13778   case $host_os in
13779    darwin*)
13780        if test -n "$STRIP" ; then
13781          striplib="$STRIP -x"
13782          echo "$as_me:$LINENO: result: yes" >&5
13783 echo "${ECHO_T}yes" >&6
13784        else
13785   echo "$as_me:$LINENO: result: no" >&5
13786 echo "${ECHO_T}no" >&6
13787 fi
13788        ;;
13789    *)
13790   echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6
13792     ;;
13793   esac
13794 fi
13795
13796 if test "x$enable_dlopen" != xyes; then
13797   enable_dlopen=unknown
13798   enable_dlopen_self=unknown
13799   enable_dlopen_self_static=unknown
13800 else
13801   lt_cv_dlopen=no
13802   lt_cv_dlopen_libs=
13803
13804   case $host_os in
13805   beos*)
13806     lt_cv_dlopen="load_add_on"
13807     lt_cv_dlopen_libs=
13808     lt_cv_dlopen_self=yes
13809     ;;
13810
13811   mingw* | pw32*)
13812     lt_cv_dlopen="LoadLibrary"
13813     lt_cv_dlopen_libs=
13814    ;;
13815
13816   cygwin*)
13817     lt_cv_dlopen="dlopen"
13818     lt_cv_dlopen_libs=
13819    ;;
13820
13821   darwin*)
13822   # if libdl is installed we need to link against it
13823     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   ac_check_lib_save_LIBS=$LIBS
13829 LIBS="-ldl  $LIBS"
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836
13837 /* Override any gcc2 internal prototype to avoid an error.  */
13838 #ifdef __cplusplus
13839 extern "C"
13840 #endif
13841 /* We use char because int might match the return type of a gcc2
13842    builtin and then its argument prototype would still apply.  */
13843 char dlopen ();
13844 int
13845 main ()
13846 {
13847 dlopen ();
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854   (eval $ac_link) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag"
13862                          || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest$ac_exeext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_lib_dl_dlopen=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_lib_dl_dlopen=no
13880 fi
13881 rm -f conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13884 fi
13885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13887 if test $ac_cv_lib_dl_dlopen = yes; then
13888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13889 else
13890
13891     lt_cv_dlopen="dyld"
13892     lt_cv_dlopen_libs=
13893     lt_cv_dlopen_self=yes
13894
13895 fi
13896
13897    ;;
13898
13899   *)
13900     echo "$as_me:$LINENO: checking for shl_load" >&5
13901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13902 if test "${ac_cv_func_shl_load+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13913 #define shl_load innocuous_shl_load
13914
13915 /* System header to define __stub macros and hopefully few prototypes,
13916     which can conflict with char shl_load (); below.
13917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918     <limits.h> exists even on freestanding compilers.  */
13919
13920 #ifdef __STDC__
13921 # include <limits.h>
13922 #else
13923 # include <assert.h>
13924 #endif
13925
13926 #undef shl_load
13927
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 {
13932 #endif
13933 /* We use char because int might match the return type of a gcc2
13934    builtin and then its argument prototype would still apply.  */
13935 char shl_load ();
13936 /* The GNU C library defines this for functions which it implements
13937     to always fail with ENOSYS.  Some functions are actually named
13938     something starting with __ and the normal name is an alias.  */
13939 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13940 choke me
13941 #else
13942 char (*f) () = shl_load;
13943 #endif
13944 #ifdef __cplusplus
13945 }
13946 #endif
13947
13948 int
13949 main ()
13950 {
13951 return f != shl_load;
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958   (eval $ac_link) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag"
13966                          || test ! -s conftest.err'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; } &&
13972          { ac_try='test -s conftest$ac_exeext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_cv_func_shl_load=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_cv_func_shl_load=no
13984 fi
13985 rm -f conftest.err conftest.$ac_objext \
13986       conftest$ac_exeext conftest.$ac_ext
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13990 if test $ac_cv_func_shl_load = yes; then
13991   lt_cv_dlopen="shl_load"
13992 else
13993   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-ldld  $LIBS"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 /* Override any gcc2 internal prototype to avoid an error.  */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012    builtin and then its argument prototype would still apply.  */
14013 char shl_load ();
14014 int
14015 main ()
14016 {
14017 shl_load ();
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_lib_dld_shl_load=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_lib_dld_shl_load=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext \
14052       conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14054 fi
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14057 if test $ac_cv_lib_dld_shl_load = yes; then
14058   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14059 else
14060   echo "$as_me:$LINENO: checking for dlopen" >&5
14061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14062 if test "${ac_cv_func_dlopen+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14073 #define dlopen innocuous_dlopen
14074
14075 /* System header to define __stub macros and hopefully few prototypes,
14076     which can conflict with char dlopen (); below.
14077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078     <limits.h> exists even on freestanding compilers.  */
14079
14080 #ifdef __STDC__
14081 # include <limits.h>
14082 #else
14083 # include <assert.h>
14084 #endif
14085
14086 #undef dlopen
14087
14088 /* Override any gcc2 internal prototype to avoid an error.  */
14089 #ifdef __cplusplus
14090 extern "C"
14091 {
14092 #endif
14093 /* We use char because int might match the return type of a gcc2
14094    builtin and then its argument prototype would still apply.  */
14095 char dlopen ();
14096 /* The GNU C library defines this for functions which it implements
14097     to always fail with ENOSYS.  Some functions are actually named
14098     something starting with __ and the normal name is an alias.  */
14099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14100 choke me
14101 #else
14102 char (*f) () = dlopen;
14103 #endif
14104 #ifdef __cplusplus
14105 }
14106 #endif
14107
14108 int
14109 main ()
14110 {
14111 return f != dlopen;
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118   (eval $ac_link) 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_c_werror_flag"
14126                          || test ! -s conftest.err'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest$ac_exeext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_cv_func_dlopen=yes
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 ac_cv_func_dlopen=no
14144 fi
14145 rm -f conftest.err conftest.$ac_objext \
14146       conftest$ac_exeext conftest.$ac_ext
14147 fi
14148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14150 if test $ac_cv_func_dlopen = yes; then
14151   lt_cv_dlopen="dlopen"
14152 else
14153   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   ac_check_lib_save_LIBS=$LIBS
14159 LIBS="-ldl  $LIBS"
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166
14167 /* Override any gcc2 internal prototype to avoid an error.  */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 /* We use char because int might match the return type of a gcc2
14172    builtin and then its argument prototype would still apply.  */
14173 char dlopen ();
14174 int
14175 main ()
14176 {
14177 dlopen ();
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_cv_lib_dl_dlopen=yes
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 ac_cv_lib_dl_dlopen=no
14210 fi
14211 rm -f conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14214 fi
14215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14217 if test $ac_cv_lib_dl_dlopen = yes; then
14218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14219 else
14220   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   ac_check_lib_save_LIBS=$LIBS
14226 LIBS="-lsvld  $LIBS"
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233
14234 /* Override any gcc2 internal prototype to avoid an error.  */
14235 #ifdef __cplusplus
14236 extern "C"
14237 #endif
14238 /* We use char because int might match the return type of a gcc2
14239    builtin and then its argument prototype would still apply.  */
14240 char dlopen ();
14241 int
14242 main ()
14243 {
14244 dlopen ();
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251   (eval $ac_link) 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -z "$ac_c_werror_flag"
14259                          || test ! -s conftest.err'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; } &&
14265          { ac_try='test -s conftest$ac_exeext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_cv_lib_svld_dlopen=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_cv_lib_svld_dlopen=no
14277 fi
14278 rm -f conftest.err conftest.$ac_objext \
14279       conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14281 fi
14282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14284 if test $ac_cv_lib_svld_dlopen = yes; then
14285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14286 else
14287   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-ldld  $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any gcc2 internal prototype to avoid an error.  */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 /* We use char because int might match the return type of a gcc2
14306    builtin and then its argument prototype would still apply.  */
14307 char dld_link ();
14308 int
14309 main ()
14310 {
14311 dld_link ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318   (eval $ac_link) 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -z "$ac_c_werror_flag"
14326                          || test ! -s conftest.err'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; } &&
14332          { ac_try='test -s conftest$ac_exeext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   ac_cv_lib_dld_dld_link=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_cv_lib_dld_dld_link=no
14344 fi
14345 rm -f conftest.err conftest.$ac_objext \
14346       conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14348 fi
14349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351 if test $ac_cv_lib_dld_dld_link = yes; then
14352   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14353 fi
14354
14355
14356 fi
14357
14358
14359 fi
14360
14361
14362 fi
14363
14364
14365 fi
14366
14367
14368 fi
14369
14370     ;;
14371   esac
14372
14373   if test "x$lt_cv_dlopen" != xno; then
14374     enable_dlopen=yes
14375   else
14376     enable_dlopen=no
14377   fi
14378
14379   case $lt_cv_dlopen in
14380   dlopen)
14381     save_CPPFLAGS="$CPPFLAGS"
14382     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14383
14384     save_LDFLAGS="$LDFLAGS"
14385     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14386
14387     save_LIBS="$LIBS"
14388     LIBS="$lt_cv_dlopen_libs $LIBS"
14389
14390     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392 if test "${lt_cv_dlopen_self+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395           if test "$cross_compiling" = yes; then :
14396   lt_cv_dlopen_self=cross
14397 else
14398   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399   lt_status=$lt_dlunknown
14400   cat > conftest.$ac_ext <<EOF
14401 #line 14401 "configure"
14402 #include "confdefs.h"
14403
14404 #if HAVE_DLFCN_H
14405 #include <dlfcn.h>
14406 #endif
14407
14408 #include <stdio.h>
14409
14410 #ifdef RTLD_GLOBAL
14411 #  define LT_DLGLOBAL           RTLD_GLOBAL
14412 #else
14413 #  ifdef DL_GLOBAL
14414 #    define LT_DLGLOBAL         DL_GLOBAL
14415 #  else
14416 #    define LT_DLGLOBAL         0
14417 #  endif
14418 #endif
14419
14420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421    find out it does not work in some platform. */
14422 #ifndef LT_DLLAZY_OR_NOW
14423 #  ifdef RTLD_LAZY
14424 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14425 #  else
14426 #    ifdef DL_LAZY
14427 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14428 #    else
14429 #      ifdef RTLD_NOW
14430 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14431 #      else
14432 #        ifdef DL_NOW
14433 #          define LT_DLLAZY_OR_NOW      DL_NOW
14434 #        else
14435 #          define LT_DLLAZY_OR_NOW      0
14436 #        endif
14437 #      endif
14438 #    endif
14439 #  endif
14440 #endif
14441
14442 #ifdef __cplusplus
14443 extern "C" void exit (int);
14444 #endif
14445
14446 void fnord() { int i=42;}
14447 int main ()
14448 {
14449   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450   int status = $lt_dlunknown;
14451
14452   if (self)
14453     {
14454       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14455       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456       /* dlclose (self); */
14457     }
14458
14459     exit (status);
14460 }
14461 EOF
14462   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467     (./conftest; exit; ) 2>/dev/null
14468     lt_status=$?
14469     case x$lt_status in
14470       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14473     esac
14474   else :
14475     # compilation failed
14476     lt_cv_dlopen_self=no
14477   fi
14478 fi
14479 rm -fr conftest*
14480
14481
14482 fi
14483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14485
14486     if test "x$lt_cv_dlopen_self" = xyes; then
14487       LDFLAGS="$LDFLAGS $link_static_flag"
14488       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490 if test "${lt_cv_dlopen_self_static+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493           if test "$cross_compiling" = yes; then :
14494   lt_cv_dlopen_self_static=cross
14495 else
14496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14497   lt_status=$lt_dlunknown
14498   cat > conftest.$ac_ext <<EOF
14499 #line 14499 "configure"
14500 #include "confdefs.h"
14501
14502 #if HAVE_DLFCN_H
14503 #include <dlfcn.h>
14504 #endif
14505
14506 #include <stdio.h>
14507
14508 #ifdef RTLD_GLOBAL
14509 #  define LT_DLGLOBAL           RTLD_GLOBAL
14510 #else
14511 #  ifdef DL_GLOBAL
14512 #    define LT_DLGLOBAL         DL_GLOBAL
14513 #  else
14514 #    define LT_DLGLOBAL         0
14515 #  endif
14516 #endif
14517
14518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519    find out it does not work in some platform. */
14520 #ifndef LT_DLLAZY_OR_NOW
14521 #  ifdef RTLD_LAZY
14522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14523 #  else
14524 #    ifdef DL_LAZY
14525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14526 #    else
14527 #      ifdef RTLD_NOW
14528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14529 #      else
14530 #        ifdef DL_NOW
14531 #          define LT_DLLAZY_OR_NOW      DL_NOW
14532 #        else
14533 #          define LT_DLLAZY_OR_NOW      0
14534 #        endif
14535 #      endif
14536 #    endif
14537 #  endif
14538 #endif
14539
14540 #ifdef __cplusplus
14541 extern "C" void exit (int);
14542 #endif
14543
14544 void fnord() { int i=42;}
14545 int main ()
14546 {
14547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548   int status = $lt_dlunknown;
14549
14550   if (self)
14551     {
14552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14553       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554       /* dlclose (self); */
14555     }
14556
14557     exit (status);
14558 }
14559 EOF
14560   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561   (eval $ac_link) 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565     (./conftest; exit; ) 2>/dev/null
14566     lt_status=$?
14567     case x$lt_status in
14568       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14571     esac
14572   else :
14573     # compilation failed
14574     lt_cv_dlopen_self_static=no
14575   fi
14576 fi
14577 rm -fr conftest*
14578
14579
14580 fi
14581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14583     fi
14584
14585     CPPFLAGS="$save_CPPFLAGS"
14586     LDFLAGS="$save_LDFLAGS"
14587     LIBS="$save_LIBS"
14588     ;;
14589   esac
14590
14591   case $lt_cv_dlopen_self in
14592   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593   *) enable_dlopen_self=unknown ;;
14594   esac
14595
14596   case $lt_cv_dlopen_self_static in
14597   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598   *) enable_dlopen_self_static=unknown ;;
14599   esac
14600 fi
14601
14602
14603 # Report which librarie types wil actually be built
14604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14607 echo "${ECHO_T}$can_build_shared" >&6
14608
14609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14611 test "$can_build_shared" = "no" && enable_shared=no
14612
14613 # On AIX, shared libraries and static libraries use the same namespace, and
14614 # are all built from PIC.
14615 case "$host_os" in
14616 aix3*)
14617   test "$enable_shared" = yes && enable_static=no
14618   if test -n "$RANLIB"; then
14619     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14620     postinstall_cmds='$RANLIB $lib'
14621   fi
14622   ;;
14623
14624 aix4* | aix5*)
14625   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14626     test "$enable_shared" = yes && enable_static=no
14627   fi
14628     ;;
14629 esac
14630 echo "$as_me:$LINENO: result: $enable_shared" >&5
14631 echo "${ECHO_T}$enable_shared" >&6
14632
14633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14635 # Make sure either enable_shared or enable_static is yes.
14636 test "$enable_shared" = yes || enable_static=yes
14637 echo "$as_me:$LINENO: result: $enable_static" >&5
14638 echo "${ECHO_T}$enable_static" >&6
14639
14640 # The else clause should only fire when bootstrapping the
14641 # libtool distribution, otherwise you forgot to ship ltmain.sh
14642 # with your package, and you will get complaints that there are
14643 # no rules to generate ltmain.sh.
14644 if test -f "$ltmain"; then
14645   # See if we are running on zsh, and set the options which allow our commands through
14646   # without removal of \ escapes.
14647   if test -n "${ZSH_VERSION+set}" ; then
14648     setopt NO_GLOB_SUBST
14649   fi
14650   # Now quote all the things that may contain metacharacters while being
14651   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14652   # variables and quote the copies for generation of the libtool script.
14653   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14654     SED SHELL STRIP \
14655     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14656     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14657     deplibs_check_method reload_flag reload_cmds need_locks \
14658     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14659     lt_cv_sys_global_symbol_to_c_name_address \
14660     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14661     old_postinstall_cmds old_postuninstall_cmds \
14662     compiler \
14663     CC \
14664     LD \
14665     lt_prog_compiler_wl \
14666     lt_prog_compiler_pic \
14667     lt_prog_compiler_static \
14668     lt_prog_compiler_no_builtin_flag \
14669     export_dynamic_flag_spec \
14670     thread_safe_flag_spec \
14671     whole_archive_flag_spec \
14672     enable_shared_with_static_runtimes \
14673     old_archive_cmds \
14674     old_archive_from_new_cmds \
14675     predep_objects \
14676     postdep_objects \
14677     predeps \
14678     postdeps \
14679     compiler_lib_search_path \
14680     archive_cmds \
14681     archive_expsym_cmds \
14682     postinstall_cmds \
14683     postuninstall_cmds \
14684     old_archive_from_expsyms_cmds \
14685     allow_undefined_flag \
14686     no_undefined_flag \
14687     export_symbols_cmds \
14688     hardcode_libdir_flag_spec \
14689     hardcode_libdir_flag_spec_ld \
14690     hardcode_libdir_separator \
14691     hardcode_automatic \
14692     module_cmds \
14693     module_expsym_cmds \
14694     lt_cv_prog_compiler_c_o \
14695     exclude_expsyms \
14696     include_expsyms; do
14697
14698     case $var in
14699     old_archive_cmds | \
14700     old_archive_from_new_cmds | \
14701     archive_cmds | \
14702     archive_expsym_cmds | \
14703     module_cmds | \
14704     module_expsym_cmds | \
14705     old_archive_from_expsyms_cmds | \
14706     export_symbols_cmds | \
14707     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14708     postinstall_cmds | postuninstall_cmds | \
14709     old_postinstall_cmds | old_postuninstall_cmds | \
14710     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14711       # Double-quote double-evaled strings.
14712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14713       ;;
14714     *)
14715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14716       ;;
14717     esac
14718   done
14719
14720   case $lt_echo in
14721   *'\$0 --fallback-echo"')
14722     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14723     ;;
14724   esac
14725
14726 cfgfile="${ofile}T"
14727   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14728   $rm -f "$cfgfile"
14729   { echo "$as_me:$LINENO: creating $ofile" >&5
14730 echo "$as_me: creating $ofile" >&6;}
14731
14732   cat <<__EOF__ >> "$cfgfile"
14733 #! $SHELL
14734
14735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14738 #
14739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14740 # Free Software Foundation, Inc.
14741 #
14742 # This file is part of GNU Libtool:
14743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14744 #
14745 # This program is free software; you can redistribute it and/or modify
14746 # it under the terms of the GNU General Public License as published by
14747 # the Free Software Foundation; either version 2 of the License, or
14748 # (at your option) any later version.
14749 #
14750 # This program is distributed in the hope that it will be useful, but
14751 # WITHOUT ANY WARRANTY; without even the implied warranty of
14752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14753 # General Public License for more details.
14754 #
14755 # You should have received a copy of the GNU General Public License
14756 # along with this program; if not, write to the Free Software
14757 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14758 #
14759 # As a special exception to the GNU General Public License, if you
14760 # distribute this file as part of a program that contains a
14761 # configuration script generated by Autoconf, you may include it under
14762 # the same distribution terms that you use for the rest of that program.
14763
14764 # A sed program that does not truncate output.
14765 SED=$lt_SED
14766
14767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14768 Xsed="$SED -e s/^X//"
14769
14770 # The HP-UX ksh and POSIX shell print the target directory to stdout
14771 # if CDPATH is set.
14772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14773
14774 # The names of the tagged configurations supported by this script.
14775 available_tags=
14776
14777 # ### BEGIN LIBTOOL CONFIG
14778
14779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780
14781 # Shell to use when invoking shell scripts.
14782 SHELL=$lt_SHELL
14783
14784 # Whether or not to build shared libraries.
14785 build_libtool_libs=$enable_shared
14786
14787 # Whether or not to build static libraries.
14788 build_old_libs=$enable_static
14789
14790 # Whether or not to add -lc for building shared libraries.
14791 build_libtool_need_lc=$archive_cmds_need_lc
14792
14793 # Whether or not to disallow shared libs when runtime libs are static
14794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14795
14796 # Whether or not to optimize for fast installation.
14797 fast_install=$enable_fast_install
14798
14799 # The host system.
14800 host_alias=$host_alias
14801 host=$host
14802
14803 # An echo program that does not interpret backslashes.
14804 echo=$lt_echo
14805
14806 # The archiver.
14807 AR=$lt_AR
14808 AR_FLAGS=$lt_AR_FLAGS
14809
14810 # A C compiler.
14811 LTCC=$lt_LTCC
14812
14813 # A language-specific compiler.
14814 CC=$lt_compiler
14815
14816 # Is the compiler the GNU C compiler?
14817 with_gcc=$GCC
14818
14819 # An ERE matcher.
14820 EGREP=$lt_EGREP
14821
14822 # The linker used to build libraries.
14823 LD=$lt_LD
14824
14825 # Whether we need hard or soft links.
14826 LN_S=$lt_LN_S
14827
14828 # A BSD-compatible nm program.
14829 NM=$lt_NM
14830
14831 # A symbol stripping program
14832 STRIP=$lt_STRIP
14833
14834 # Used to examine libraries when file_magic_cmd begins "file"
14835 MAGIC_CMD=$MAGIC_CMD
14836
14837 # Used on cygwin: DLL creation program.
14838 DLLTOOL="$DLLTOOL"
14839
14840 # Used on cygwin: object dumper.
14841 OBJDUMP="$OBJDUMP"
14842
14843 # Used on cygwin: assembler.
14844 AS="$AS"
14845
14846 # The name of the directory that contains temporary libtool files.
14847 objdir=$objdir
14848
14849 # How to create reloadable object files.
14850 reload_flag=$lt_reload_flag
14851 reload_cmds=$lt_reload_cmds
14852
14853 # How to pass a linker flag through the compiler.
14854 wl=$lt_lt_prog_compiler_wl
14855
14856 # Object file suffix (normally "o").
14857 objext="$ac_objext"
14858
14859 # Old archive suffix (normally "a").
14860 libext="$libext"
14861
14862 # Shared library suffix (normally ".so").
14863 shrext_cmds='$shrext_cmds'
14864
14865 # Executable file suffix (normally "").
14866 exeext="$exeext"
14867
14868 # Additional compiler flags for building library objects.
14869 pic_flag=$lt_lt_prog_compiler_pic
14870 pic_mode=$pic_mode
14871
14872 # What is the maximum length of a command?
14873 max_cmd_len=$lt_cv_sys_max_cmd_len
14874
14875 # Does compiler simultaneously support -c and -o options?
14876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14877
14878 # Must we lock files when doing compilation ?
14879 need_locks=$lt_need_locks
14880
14881 # Do we need the lib prefix for modules?
14882 need_lib_prefix=$need_lib_prefix
14883
14884 # Do we need a version for libraries?
14885 need_version=$need_version
14886
14887 # Whether dlopen is supported.
14888 dlopen_support=$enable_dlopen
14889
14890 # Whether dlopen of programs is supported.
14891 dlopen_self=$enable_dlopen_self
14892
14893 # Whether dlopen of statically linked programs is supported.
14894 dlopen_self_static=$enable_dlopen_self_static
14895
14896 # Compiler flag to prevent dynamic linking.
14897 link_static_flag=$lt_lt_prog_compiler_static
14898
14899 # Compiler flag to turn off builtin functions.
14900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14901
14902 # Compiler flag to allow reflexive dlopens.
14903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904
14905 # Compiler flag to generate shared objects directly from archives.
14906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907
14908 # Compiler flag to generate thread-safe objects.
14909 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14910
14911 # Library versioning type.
14912 version_type=$version_type
14913
14914 # Format of library name prefix.
14915 libname_spec=$lt_libname_spec
14916
14917 # List of archive names.  First name is the real one, the rest are links.
14918 # The last name is the one that the linker finds with -lNAME.
14919 library_names_spec=$lt_library_names_spec
14920
14921 # The coded name of the library, if different from the real name.
14922 soname_spec=$lt_soname_spec
14923
14924 # Commands used to build and install an old-style archive.
14925 RANLIB=$lt_RANLIB
14926 old_archive_cmds=$lt_old_archive_cmds
14927 old_postinstall_cmds=$lt_old_postinstall_cmds
14928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14929
14930 # Create an old-style archive from a shared archive.
14931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14932
14933 # Create a temporary old-style archive to link instead of a shared archive.
14934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14935
14936 # Commands used to build and install a shared archive.
14937 archive_cmds=$lt_archive_cmds
14938 archive_expsym_cmds=$lt_archive_expsym_cmds
14939 postinstall_cmds=$lt_postinstall_cmds
14940 postuninstall_cmds=$lt_postuninstall_cmds
14941
14942 # Commands used to build a loadable module (assumed same as above if empty)
14943 module_cmds=$lt_module_cmds
14944 module_expsym_cmds=$lt_module_expsym_cmds
14945
14946 # Commands to strip libraries.
14947 old_striplib=$lt_old_striplib
14948 striplib=$lt_striplib
14949
14950 # Dependencies to place before the objects being linked to create a
14951 # shared library.
14952 predep_objects=$lt_predep_objects
14953
14954 # Dependencies to place after the objects being linked to create a
14955 # shared library.
14956 postdep_objects=$lt_postdep_objects
14957
14958 # Dependencies to place before the objects being linked to create a
14959 # shared library.
14960 predeps=$lt_predeps
14961
14962 # Dependencies to place after the objects being linked to create a
14963 # shared library.
14964 postdeps=$lt_postdeps
14965
14966 # The library search path used internally by the compiler when linking
14967 # a shared library.
14968 compiler_lib_search_path=$lt_compiler_lib_search_path
14969
14970 # Method to check whether dependent libraries are shared objects.
14971 deplibs_check_method=$lt_deplibs_check_method
14972
14973 # Command to use when deplibs_check_method == file_magic.
14974 file_magic_cmd=$lt_file_magic_cmd
14975
14976 # Flag that allows shared libraries with undefined symbols to be built.
14977 allow_undefined_flag=$lt_allow_undefined_flag
14978
14979 # Flag that forces no undefined symbols.
14980 no_undefined_flag=$lt_no_undefined_flag
14981
14982 # Commands used to finish a libtool library installation in a directory.
14983 finish_cmds=$lt_finish_cmds
14984
14985 # Same as above, but a single script fragment to be evaled but not shown.
14986 finish_eval=$lt_finish_eval
14987
14988 # Take the output of nm and produce a listing of raw symbols and C names.
14989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14990
14991 # Transform the output of nm in a proper C declaration
14992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14993
14994 # Transform the output of nm in a C name address pair
14995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14996
14997 # This is the shared library runtime path variable.
14998 runpath_var=$runpath_var
14999
15000 # This is the shared library path variable.
15001 shlibpath_var=$shlibpath_var
15002
15003 # Is shlibpath searched before the hard-coded library search path?
15004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15005
15006 # How to hardcode a shared library path into an executable.
15007 hardcode_action=$hardcode_action
15008
15009 # Whether we should hardcode library paths into libraries.
15010 hardcode_into_libs=$hardcode_into_libs
15011
15012 # Flag to hardcode \$libdir into a binary during linking.
15013 # This must work even if \$libdir does not exist.
15014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15015
15016 # If ld is used when linking, flag to hardcode \$libdir into
15017 # a binary during linking. This must work even if \$libdir does
15018 # not exist.
15019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15020
15021 # Whether we need a single -rpath flag with a separated argument.
15022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15023
15024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15025 # resulting binary.
15026 hardcode_direct=$hardcode_direct
15027
15028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15029 # resulting binary.
15030 hardcode_minus_L=$hardcode_minus_L
15031
15032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15033 # the resulting binary.
15034 hardcode_shlibpath_var=$hardcode_shlibpath_var
15035
15036 # Set to yes if building a shared library automatically hardcodes DIR into the library
15037 # and all subsequent libraries and executables linked against it.
15038 hardcode_automatic=$hardcode_automatic
15039
15040 # Variables whose values should be saved in libtool wrapper scripts and
15041 # restored at relink time.
15042 variables_saved_for_relink="$variables_saved_for_relink"
15043
15044 # Whether libtool must link a program against all its dependency libraries.
15045 link_all_deplibs=$link_all_deplibs
15046
15047 # Compile-time system search path for libraries
15048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15049
15050 # Run-time system search path for libraries
15051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15052
15053 # Fix the shell variable \$srcfile for the compiler.
15054 fix_srcfile_path="$fix_srcfile_path"
15055
15056 # Set to yes if exported symbols are required.
15057 always_export_symbols=$always_export_symbols
15058
15059 # The commands to list exported symbols.
15060 export_symbols_cmds=$lt_export_symbols_cmds
15061
15062 # The commands to extract the exported symbol list from a shared archive.
15063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15064
15065 # Symbols that should not be listed in the preloaded symbols.
15066 exclude_expsyms=$lt_exclude_expsyms
15067
15068 # Symbols that must always be exported.
15069 include_expsyms=$lt_include_expsyms
15070
15071 # ### END LIBTOOL CONFIG
15072
15073 __EOF__
15074
15075
15076   case $host_os in
15077   aix3*)
15078     cat <<\EOF >> "$cfgfile"
15079
15080 # AIX sometimes has problems with the GCC collect2 program.  For some
15081 # reason, if we set the COLLECT_NAMES environment variable, the problems
15082 # vanish in a puff of smoke.
15083 if test "X${COLLECT_NAMES+set}" != Xset; then
15084   COLLECT_NAMES=
15085   export COLLECT_NAMES
15086 fi
15087 EOF
15088     ;;
15089   esac
15090
15091   # We use sed instead of cat because bash on DJGPP gets confused if
15092   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15093   # text mode, it properly converts lines to CR/LF.  This bash problem
15094   # is reportedly fixed, but why not run on old versions too?
15095   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15096
15097   mv -f "$cfgfile" "$ofile" || \
15098     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15099   chmod +x "$ofile"
15100
15101 else
15102   # If there is no Makefile yet, we rely on a make rule to execute
15103   # `config.status --recheck' to rerun these tests and create the
15104   # libtool script then.
15105   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106   if test -f "$ltmain_in"; then
15107     test -f Makefile && make "$ltmain"
15108   fi
15109 fi
15110
15111
15112 ac_ext=c
15113 ac_cpp='$CPP $CPPFLAGS'
15114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118 CC="$lt_save_CC"
15119
15120
15121 # Check whether --with-tags or --without-tags was given.
15122 if test "${with_tags+set}" = set; then
15123   withval="$with_tags"
15124   tagnames="$withval"
15125 fi;
15126
15127 if test -f "$ltmain" && test -n "$tagnames"; then
15128   if test ! -f "${ofile}"; then
15129     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15130 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15131   fi
15132
15133   if test -z "$LTCC"; then
15134     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15135     if test -z "$LTCC"; then
15136       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15137 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15138     else
15139       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15140 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15141     fi
15142   fi
15143
15144   # Extract list of available tagged configurations in $ofile.
15145   # Note that this assumes the entire list is on one line.
15146   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15147
15148   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15149   for tagname in $tagnames; do
15150     IFS="$lt_save_ifs"
15151     # Check whether tagname contains only valid characters
15152     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15153     "") ;;
15154     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15155 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15156    { (exit 1); exit 1; }; }
15157         ;;
15158     esac
15159
15160     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15161     then
15162       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15163 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15164    { (exit 1); exit 1; }; }
15165     fi
15166
15167     # Update the list of available tags.
15168     if test -n "$tagname"; then
15169       echo appending configuration tag "$tagname" to $ofile
15170
15171       case $tagname in
15172       CXX)
15173         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15174             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15175             (test "X$CXX" != "Xg++"))) ; then
15176           ac_ext=cc
15177 ac_cpp='$CXXCPP $CPPFLAGS'
15178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15181
15182
15183
15184
15185 archive_cmds_need_lc_CXX=no
15186 allow_undefined_flag_CXX=
15187 always_export_symbols_CXX=no
15188 archive_expsym_cmds_CXX=
15189 export_dynamic_flag_spec_CXX=
15190 hardcode_direct_CXX=no
15191 hardcode_libdir_flag_spec_CXX=
15192 hardcode_libdir_flag_spec_ld_CXX=
15193 hardcode_libdir_separator_CXX=
15194 hardcode_minus_L_CXX=no
15195 hardcode_automatic_CXX=no
15196 module_cmds_CXX=
15197 module_expsym_cmds_CXX=
15198 link_all_deplibs_CXX=unknown
15199 old_archive_cmds_CXX=$old_archive_cmds
15200 no_undefined_flag_CXX=
15201 whole_archive_flag_spec_CXX=
15202 enable_shared_with_static_runtimes_CXX=no
15203
15204 # Dependencies to place before and after the object being linked:
15205 predep_objects_CXX=
15206 postdep_objects_CXX=
15207 predeps_CXX=
15208 postdeps_CXX=
15209 compiler_lib_search_path_CXX=
15210
15211 # Source file extension for C++ test sources.
15212 ac_ext=cc
15213
15214 # Object file extension for compiled C++ test sources.
15215 objext=o
15216 objext_CXX=$objext
15217
15218 # Code to be used in simple compile tests
15219 lt_simple_compile_test_code="int some_variable = 0;\n"
15220
15221 # Code to be used in simple link tests
15222 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15223
15224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225
15226 # If no C compiler was specified, use CC.
15227 LTCC=${LTCC-"$CC"}
15228
15229 # Allow CC to be a program name with arguments.
15230 compiler=$CC
15231
15232
15233 # Allow CC to be a program name with arguments.
15234 lt_save_CC=$CC
15235 lt_save_LD=$LD
15236 lt_save_GCC=$GCC
15237 GCC=$GXX
15238 lt_save_with_gnu_ld=$with_gnu_ld
15239 lt_save_path_LD=$lt_cv_path_LD
15240 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15241   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15242 else
15243   unset lt_cv_prog_gnu_ld
15244 fi
15245 if test -n "${lt_cv_path_LDCXX+set}"; then
15246   lt_cv_path_LD=$lt_cv_path_LDCXX
15247 else
15248   unset lt_cv_path_LD
15249 fi
15250 test -z "${LDCXX+set}" || LD=$LDCXX
15251 CC=${CXX-"c++"}
15252 compiler=$CC
15253 compiler_CXX=$CC
15254 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15255
15256 # We don't want -fno-exception wen compiling C++ code, so set the
15257 # no_builtin_flag separately
15258 if test "$GXX" = yes; then
15259   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15260 else
15261   lt_prog_compiler_no_builtin_flag_CXX=
15262 fi
15263
15264 if test "$GXX" = yes; then
15265   # Set up default GNU C++ configuration
15266
15267
15268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15269 if test "${with_gnu_ld+set}" = set; then
15270   withval="$with_gnu_ld"
15271   test "$withval" = no || with_gnu_ld=yes
15272 else
15273   with_gnu_ld=no
15274 fi;
15275 ac_prog=ld
15276 if test "$GCC" = yes; then
15277   # Check if gcc -print-prog-name=ld gives a path.
15278   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15280   case $host in
15281   *-*-mingw*)
15282     # gcc leaves a trailing carriage return which upsets mingw
15283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15284   *)
15285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15286   esac
15287   case $ac_prog in
15288     # Accept absolute paths.
15289     [\\/]* | ?:[\\/]*)
15290       re_direlt='/[^/][^/]*/\.\./'
15291       # Canonicalize the pathname of ld
15292       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15293       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15294         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15295       done
15296       test -z "$LD" && LD="$ac_prog"
15297       ;;
15298   "")
15299     # If it fails, then pretend we aren't using GCC.
15300     ac_prog=ld
15301     ;;
15302   *)
15303     # If it is relative, then search for the first ld in PATH.
15304     with_gnu_ld=unknown
15305     ;;
15306   esac
15307 elif test "$with_gnu_ld" = yes; then
15308   echo "$as_me:$LINENO: checking for GNU ld" >&5
15309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15310 else
15311   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15313 fi
15314 if test "${lt_cv_path_LD+set}" = set; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   if test -z "$LD"; then
15318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15319   for ac_dir in $PATH; do
15320     IFS="$lt_save_ifs"
15321     test -z "$ac_dir" && ac_dir=.
15322     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15323       lt_cv_path_LD="$ac_dir/$ac_prog"
15324       # Check to see if the program is GNU ld.  I'd rather use --version,
15325       # but apparently some GNU ld's only accept -v.
15326       # Break only if it was the GNU/non-GNU ld that we prefer.
15327       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15328       *GNU* | *'with BFD'*)
15329         test "$with_gnu_ld" != no && break
15330         ;;
15331       *)
15332         test "$with_gnu_ld" != yes && break
15333         ;;
15334       esac
15335     fi
15336   done
15337   IFS="$lt_save_ifs"
15338 else
15339   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15340 fi
15341 fi
15342
15343 LD="$lt_cv_path_LD"
15344 if test -n "$LD"; then
15345   echo "$as_me:$LINENO: result: $LD" >&5
15346 echo "${ECHO_T}$LD" >&6
15347 else
15348   echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15350 fi
15351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15353    { (exit 1); exit 1; }; }
15354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15360 case `$LD -v 2>&1 </dev/null` in
15361 *GNU* | *'with BFD'*)
15362   lt_cv_prog_gnu_ld=yes
15363   ;;
15364 *)
15365   lt_cv_prog_gnu_ld=no
15366   ;;
15367 esac
15368 fi
15369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15371 with_gnu_ld=$lt_cv_prog_gnu_ld
15372
15373
15374
15375   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15376   # archiving commands below assume that GNU ld is being used.
15377   if test "$with_gnu_ld" = yes; then
15378     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379     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'
15380
15381     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15382     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15383
15384     # If archive_cmds runs LD, not CC, wlarc should be empty
15385     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15386     #     investigate it a little bit more. (MM)
15387     wlarc='${wl}'
15388
15389     # ancient GNU ld didn't support --whole-archive et. al.
15390     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15391         grep 'no-whole-archive' > /dev/null; then
15392       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15393     else
15394       whole_archive_flag_spec_CXX=
15395     fi
15396   else
15397     with_gnu_ld=no
15398     wlarc=
15399
15400     # A generic and very simple default shared library creation
15401     # command for GNU C++ for the case where it uses the native
15402     # linker, instead of GNU ld.  If possible, this setting should
15403     # overridden to take advantage of the native linker features on
15404     # the platform it is being used on.
15405     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15406   fi
15407
15408   # Commands to make compiler produce verbose output that lists
15409   # what "hidden" libraries, object files and flags are used when
15410   # linking a shared library.
15411   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15412
15413 else
15414   GXX=no
15415   with_gnu_ld=no
15416   wlarc=
15417 fi
15418
15419 # PORTME: fill in a description of your system's C++ link characteristics
15420 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15422 ld_shlibs_CXX=yes
15423 case $host_os in
15424   aix3*)
15425     # FIXME: insert proper C++ library support
15426     ld_shlibs_CXX=no
15427     ;;
15428   aix4* | aix5*)
15429     if test "$host_cpu" = ia64; then
15430       # On IA64, the linker does run time linking by default, so we don't
15431       # have to do anything special.
15432       aix_use_runtimelinking=no
15433       exp_sym_flag='-Bexport'
15434       no_entry_flag=""
15435     else
15436       aix_use_runtimelinking=no
15437
15438       # Test if we are trying to use run time linking or normal
15439       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440       # need to do runtime linking.
15441       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15442         for ld_flag in $LDFLAGS; do
15443           case $ld_flag in
15444           *-brtl*)
15445             aix_use_runtimelinking=yes
15446             break
15447             ;;
15448           esac
15449         done
15450       esac
15451
15452       exp_sym_flag='-bexport'
15453       no_entry_flag='-bnoentry'
15454     fi
15455
15456     # When large executables or shared objects are built, AIX ld can
15457     # have problems creating the table of contents.  If linking a library
15458     # or program results in "error TOC overflow" add -mminimal-toc to
15459     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15460     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462     archive_cmds_CXX=''
15463     hardcode_direct_CXX=yes
15464     hardcode_libdir_separator_CXX=':'
15465     link_all_deplibs_CXX=yes
15466
15467     if test "$GXX" = yes; then
15468       case $host_os in aix4.012|aix4.012.*)
15469       # We only want to do this on AIX 4.2 and lower, the check
15470       # below for broken collect2 doesn't work under 4.3+
15471         collect2name=`${CC} -print-prog-name=collect2`
15472         if test -f "$collect2name" && \
15473            strings "$collect2name" | grep resolve_lib_name >/dev/null
15474         then
15475           # We have reworked collect2
15476           hardcode_direct_CXX=yes
15477         else
15478           # We have old collect2
15479           hardcode_direct_CXX=unsupported
15480           # It fails to find uninstalled libraries when the uninstalled
15481           # path is not listed in the libpath.  Setting hardcode_minus_L
15482           # to unsupported forces relinking
15483           hardcode_minus_L_CXX=yes
15484           hardcode_libdir_flag_spec_CXX='-L$libdir'
15485           hardcode_libdir_separator_CXX=
15486         fi
15487       esac
15488       shared_flag='-shared'
15489     else
15490       # not using gcc
15491       if test "$host_cpu" = ia64; then
15492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15493         # chokes on -Wl,-G. The following line is correct:
15494         shared_flag='-G'
15495       else
15496         if test "$aix_use_runtimelinking" = yes; then
15497           shared_flag='${wl}-G'
15498         else
15499           shared_flag='${wl}-bM:SRE'
15500         fi
15501       fi
15502     fi
15503
15504     # It seems that -bexpall does not export symbols beginning with
15505     # underscore (_), so it is better to generate a list of symbols to export.
15506     always_export_symbols_CXX=yes
15507     if test "$aix_use_runtimelinking" = yes; then
15508       # Warning - without using the other runtime loading flags (-brtl),
15509       # -berok will link without error, but may produce a broken library.
15510       allow_undefined_flag_CXX='-berok'
15511       # Determine the default libpath from the value encoded in an empty executable.
15512       cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518
15519 int
15520 main ()
15521 {
15522
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529   (eval $ac_link) 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } &&
15536          { ac_try='test -z "$ac_cxx_werror_flag"
15537                          || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest$ac_exeext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549
15550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15551 }'`
15552 # Check for a 64-bit object if we didn't find anything.
15553 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; }
15554 }'`; fi
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 fi
15560 rm -f conftest.err conftest.$ac_objext \
15561       conftest$ac_exeext conftest.$ac_ext
15562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563
15564       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15565
15566       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"
15567      else
15568       if test "$host_cpu" = ia64; then
15569         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15570         allow_undefined_flag_CXX="-z nodefs"
15571         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"
15572       else
15573         # Determine the default libpath from the value encoded in an empty executable.
15574         cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580
15581 int
15582 main ()
15583 {
15584
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591   (eval $ac_link) 2>conftest.er1
15592   ac_status=$?
15593   grep -v '^ *+' conftest.er1 >conftest.err
15594   rm -f conftest.er1
15595   cat conftest.err >&5
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -z "$ac_cxx_werror_flag"
15599                          || test ! -s conftest.err'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; } &&
15605          { ac_try='test -s conftest$ac_exeext'
15606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607   (eval $ac_try) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611
15612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15613 }'`
15614 # Check for a 64-bit object if we didn't find anything.
15615 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; }
15616 }'`; fi
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 fi
15622 rm -f conftest.err conftest.$ac_objext \
15623       conftest$ac_exeext conftest.$ac_ext
15624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627         # Warning - without using the other run time loading flags,
15628         # -berok will link without error, but may produce a broken library.
15629         no_undefined_flag_CXX=' ${wl}-bernotok'
15630         allow_undefined_flag_CXX=' ${wl}-berok'
15631         # -bexpall does not export symbols beginning with underscore (_)
15632         always_export_symbols_CXX=yes
15633         # Exported symbols can be pulled into shared objects from archives
15634         whole_archive_flag_spec_CXX=' '
15635         archive_cmds_need_lc_CXX=yes
15636         # This is similar to how AIX traditionally builds it's shared libraries.
15637         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'
15638       fi
15639     fi
15640     ;;
15641   chorus*)
15642     case $cc_basename in
15643       *)
15644         # FIXME: insert proper C++ library support
15645         ld_shlibs_CXX=no
15646         ;;
15647     esac
15648     ;;
15649
15650
15651   cygwin* | mingw* | pw32*)
15652     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15653     # as there is no search path for DLLs.
15654     hardcode_libdir_flag_spec_CXX='-L$libdir'
15655     allow_undefined_flag_CXX=unsupported
15656     always_export_symbols_CXX=no
15657     enable_shared_with_static_runtimes_CXX=yes
15658
15659     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15660       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'
15661       # If the export-symbols file already is a .def file (1st line
15662       # is EXPORTS), use it as is; otherwise, prepend...
15663       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15664         cp $export_symbols $output_objdir/$soname.def;
15665       else
15666         echo EXPORTS > $output_objdir/$soname.def;
15667         cat $export_symbols >> $output_objdir/$soname.def;
15668       fi~
15669       $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'
15670     else
15671       ld_shlibs_CXX=no
15672     fi
15673   ;;
15674       darwin* | rhapsody*)
15675         case "$host_os" in
15676         rhapsody* | darwin1.[012])
15677          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15678          ;;
15679        *) # Darwin 1.3 on
15680          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15681            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15682          else
15683            case ${MACOSX_DEPLOYMENT_TARGET} in
15684              10.[012])
15685                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15686                ;;
15687              10.*)
15688                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15689                ;;
15690            esac
15691          fi
15692          ;;
15693         esac
15694       archive_cmds_need_lc_CXX=no
15695       hardcode_direct_CXX=no
15696       hardcode_automatic_CXX=yes
15697       hardcode_shlibpath_var_CXX=unsupported
15698       whole_archive_flag_spec_CXX=''
15699       link_all_deplibs_CXX=yes
15700
15701     if test "$GXX" = yes ; then
15702       lt_int_apple_cc_single_mod=no
15703       output_verbose_link_cmd='echo'
15704       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15705        lt_int_apple_cc_single_mod=yes
15706       fi
15707       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15708        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15709       else
15710           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'
15711         fi
15712         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15713         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15714           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15715             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}'
15716           else
15717             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}'
15718           fi
15719             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}'
15720       else
15721       case "$cc_basename" in
15722         xlc*)
15723          output_verbose_link_cmd='echo'
15724           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'
15725           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15726           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15727           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}'
15728           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}'
15729           ;;
15730        *)
15731          ld_shlibs_CXX=no
15732           ;;
15733       esac
15734       fi
15735         ;;
15736
15737   dgux*)
15738     case $cc_basename in
15739       ec++)
15740         # FIXME: insert proper C++ library support
15741         ld_shlibs_CXX=no
15742         ;;
15743       ghcx)
15744         # Green Hills C++ Compiler
15745         # FIXME: insert proper C++ library support
15746         ld_shlibs_CXX=no
15747         ;;
15748       *)
15749         # FIXME: insert proper C++ library support
15750         ld_shlibs_CXX=no
15751         ;;
15752     esac
15753     ;;
15754   freebsd12*)
15755     # C++ shared libraries reported to be fairly broken before switch to ELF
15756     ld_shlibs_CXX=no
15757     ;;
15758   freebsd-elf*)
15759     archive_cmds_need_lc_CXX=no
15760     ;;
15761   freebsd* | kfreebsd*-gnu)
15762     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15763     # conventions
15764     ld_shlibs_CXX=yes
15765     ;;
15766   gnu*)
15767     ;;
15768   hpux9*)
15769     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15770     hardcode_libdir_separator_CXX=:
15771     export_dynamic_flag_spec_CXX='${wl}-E'
15772     hardcode_direct_CXX=yes
15773     hardcode_minus_L_CXX=yes # Not in the search PATH,
15774                                 # but as the default
15775                                 # location of the library.
15776
15777     case $cc_basename in
15778     CC)
15779       # FIXME: insert proper C++ library support
15780       ld_shlibs_CXX=no
15781       ;;
15782     aCC)
15783       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'
15784       # Commands to make compiler produce verbose output that lists
15785       # what "hidden" libraries, object files and flags are used when
15786       # linking a shared library.
15787       #
15788       # There doesn't appear to be a way to prevent this compiler from
15789       # explicitly linking system object files so we need to strip them
15790       # from the output so that they don't get included in the library
15791       # dependencies.
15792       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'
15793       ;;
15794     *)
15795       if test "$GXX" = yes; then
15796         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'
15797       else
15798         # FIXME: insert proper C++ library support
15799         ld_shlibs_CXX=no
15800       fi
15801       ;;
15802     esac
15803     ;;
15804   hpux10*|hpux11*)
15805     if test $with_gnu_ld = no; then
15806       case "$host_cpu" in
15807       hppa*64*)
15808         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15809         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15810         hardcode_libdir_separator_CXX=:
15811         ;;
15812       ia64*)
15813         hardcode_libdir_flag_spec_CXX='-L$libdir'
15814         ;;
15815       *)
15816         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15817         hardcode_libdir_separator_CXX=:
15818         export_dynamic_flag_spec_CXX='${wl}-E'
15819         ;;
15820       esac
15821     fi
15822     case "$host_cpu" in
15823     hppa*64*)
15824       hardcode_direct_CXX=no
15825       hardcode_shlibpath_var_CXX=no
15826       ;;
15827     ia64*)
15828       hardcode_direct_CXX=no
15829       hardcode_shlibpath_var_CXX=no
15830       hardcode_minus_L_CXX=yes # Not in the search PATH,
15831                                               # but as the default
15832                                               # location of the library.
15833       ;;
15834     *)
15835       hardcode_direct_CXX=yes
15836       hardcode_minus_L_CXX=yes # Not in the search PATH,
15837                                               # but as the default
15838                                               # location of the library.
15839       ;;
15840     esac
15841
15842     case $cc_basename in
15843       CC)
15844         # FIXME: insert proper C++ library support
15845         ld_shlibs_CXX=no
15846         ;;
15847       aCC)
15848         case "$host_cpu" in
15849         hppa*64*|ia64*)
15850           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851           ;;
15852         *)
15853           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15854           ;;
15855         esac
15856         # Commands to make compiler produce verbose output that lists
15857         # what "hidden" libraries, object files and flags are used when
15858         # linking a shared library.
15859         #
15860         # There doesn't appear to be a way to prevent this compiler from
15861         # explicitly linking system object files so we need to strip them
15862         # from the output so that they don't get included in the library
15863         # dependencies.
15864         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'
15865         ;;
15866       *)
15867         if test "$GXX" = yes; then
15868           if test $with_gnu_ld = no; then
15869             case "$host_cpu" in
15870             ia64*|hppa*64*)
15871               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15872               ;;
15873             *)
15874               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'
15875               ;;
15876             esac
15877           fi
15878         else
15879           # FIXME: insert proper C++ library support
15880           ld_shlibs_CXX=no
15881         fi
15882         ;;
15883     esac
15884     ;;
15885   irix5* | irix6*)
15886     case $cc_basename in
15887       CC)
15888         # SGI C++
15889         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'
15890
15891         # Archives containing C++ object files must be created using
15892         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15893         # necessary to make sure instantiated templates are included
15894         # in the archive.
15895         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15896         ;;
15897       *)
15898         if test "$GXX" = yes; then
15899           if test "$with_gnu_ld" = no; then
15900             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'
15901           else
15902             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'
15903           fi
15904         fi
15905         link_all_deplibs_CXX=yes
15906         ;;
15907     esac
15908     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15909     hardcode_libdir_separator_CXX=:
15910     ;;
15911   linux*)
15912     case $cc_basename in
15913       KCC)
15914         # Kuck and Associates, Inc. (KAI) C++ Compiler
15915
15916         # KCC will only create a shared library if the output file
15917         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15918         # to its proper name (with version) after linking.
15919         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'
15920         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'
15921         # Commands to make compiler produce verbose output that lists
15922         # what "hidden" libraries, object files and flags are used when
15923         # linking a shared library.
15924         #
15925         # There doesn't appear to be a way to prevent this compiler from
15926         # explicitly linking system object files so we need to strip them
15927         # from the output so that they don't get included in the library
15928         # dependencies.
15929         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'
15930
15931         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15932         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933
15934         # Archives containing C++ object files must be created using
15935         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15936         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15937         ;;
15938       icpc)
15939         # Intel C++
15940         with_gnu_ld=yes
15941         # version 8.0 and above of icpc choke on multiply defined symbols
15942         # if we add $predep_objects and $postdep_objects, however 7.1 and
15943         # earlier do not add the objects themselves.
15944         case `$CC -V 2>&1` in
15945         *"Version 7."*)
15946           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947           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'
15948           ;;
15949         *)  # Version 8.0 or newer
15950           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952           ;;
15953         esac
15954         archive_cmds_need_lc_CXX=no
15955         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15957         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15958         ;;
15959       cxx)
15960         # Compaq C++
15961         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962         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'
15963
15964         runpath_var=LD_RUN_PATH
15965         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966         hardcode_libdir_separator_CXX=:
15967
15968         # Commands to make compiler produce verbose output that lists
15969         # what "hidden" libraries, object files and flags are used when
15970         # linking a shared library.
15971         #
15972         # There doesn't appear to be a way to prevent this compiler from
15973         # explicitly linking system object files so we need to strip them
15974         # from the output so that they don't get included in the library
15975         # dependencies.
15976         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'
15977         ;;
15978     esac
15979     ;;
15980   lynxos*)
15981     # FIXME: insert proper C++ library support
15982     ld_shlibs_CXX=no
15983     ;;
15984   m88k*)
15985     # FIXME: insert proper C++ library support
15986     ld_shlibs_CXX=no
15987     ;;
15988   mvs*)
15989     case $cc_basename in
15990       cxx)
15991         # FIXME: insert proper C++ library support
15992         ld_shlibs_CXX=no
15993         ;;
15994       *)
15995         # FIXME: insert proper C++ library support
15996         ld_shlibs_CXX=no
15997         ;;
15998     esac
15999     ;;
16000   netbsd*)
16001     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16003       wlarc=
16004       hardcode_libdir_flag_spec_CXX='-R$libdir'
16005       hardcode_direct_CXX=yes
16006       hardcode_shlibpath_var_CXX=no
16007     fi
16008     # Workaround some broken pre-1.5 toolchains
16009     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16010     ;;
16011   openbsd2*)
16012     # C++ shared libraries are fairly broken
16013     ld_shlibs_CXX=no
16014     ;;
16015   openbsd*)
16016     hardcode_direct_CXX=yes
16017     hardcode_shlibpath_var_CXX=no
16018     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16020     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16022       export_dynamic_flag_spec_CXX='${wl}-E'
16023       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024     fi
16025     output_verbose_link_cmd='echo'
16026     ;;
16027   osf3*)
16028     case $cc_basename in
16029       KCC)
16030         # Kuck and Associates, Inc. (KAI) C++ Compiler
16031
16032         # KCC will only create a shared library if the output file
16033         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16034         # to its proper name (with version) after linking.
16035         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'
16036
16037         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16038         hardcode_libdir_separator_CXX=:
16039
16040         # Archives containing C++ object files must be created using
16041         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16042         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16043
16044         ;;
16045       RCC)
16046         # Rational C++ 2.4.1
16047         # FIXME: insert proper C++ library support
16048         ld_shlibs_CXX=no
16049         ;;
16050       cxx)
16051         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16052         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'
16053
16054         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16055         hardcode_libdir_separator_CXX=:
16056
16057         # Commands to make compiler produce verbose output that lists
16058         # what "hidden" libraries, object files and flags are used when
16059         # linking a shared library.
16060         #
16061         # There doesn't appear to be a way to prevent this compiler from
16062         # explicitly linking system object files so we need to strip them
16063         # from the output so that they don't get included in the library
16064         # dependencies.
16065         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'
16066         ;;
16067       *)
16068         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16069           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16070           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'
16071
16072           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16073           hardcode_libdir_separator_CXX=:
16074
16075           # Commands to make compiler produce verbose output that lists
16076           # what "hidden" libraries, object files and flags are used when
16077           # linking a shared library.
16078           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16079
16080         else
16081           # FIXME: insert proper C++ library support
16082           ld_shlibs_CXX=no
16083         fi
16084         ;;
16085     esac
16086     ;;
16087   osf4* | osf5*)
16088     case $cc_basename in
16089       KCC)
16090         # Kuck and Associates, Inc. (KAI) C++ Compiler
16091
16092         # KCC will only create a shared library if the output file
16093         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094         # to its proper name (with version) after linking.
16095         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'
16096
16097         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16098         hardcode_libdir_separator_CXX=:
16099
16100         # Archives containing C++ object files must be created using
16101         # the KAI C++ compiler.
16102         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16103         ;;
16104       RCC)
16105         # Rational C++ 2.4.1
16106         # FIXME: insert proper C++ library support
16107         ld_shlibs_CXX=no
16108         ;;
16109       cxx)
16110         allow_undefined_flag_CXX=' -expect_unresolved \*'
16111         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'
16112         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16113           echo "-hidden">> $lib.exp~
16114           $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~
16115           $rm $lib.exp'
16116
16117         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16118         hardcode_libdir_separator_CXX=:
16119
16120         # Commands to make compiler produce verbose output that lists
16121         # what "hidden" libraries, object files and flags are used when
16122         # linking a shared library.
16123         #
16124         # There doesn't appear to be a way to prevent this compiler from
16125         # explicitly linking system object files so we need to strip them
16126         # from the output so that they don't get included in the library
16127         # dependencies.
16128         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'
16129         ;;
16130       *)
16131         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16132           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16133          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'
16134
16135           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16136           hardcode_libdir_separator_CXX=:
16137
16138           # Commands to make compiler produce verbose output that lists
16139           # what "hidden" libraries, object files and flags are used when
16140           # linking a shared library.
16141           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16142
16143         else
16144           # FIXME: insert proper C++ library support
16145           ld_shlibs_CXX=no
16146         fi
16147         ;;
16148     esac
16149     ;;
16150   psos*)
16151     # FIXME: insert proper C++ library support
16152     ld_shlibs_CXX=no
16153     ;;
16154   sco*)
16155     archive_cmds_need_lc_CXX=no
16156     case $cc_basename in
16157       CC)
16158         # FIXME: insert proper C++ library support
16159         ld_shlibs_CXX=no
16160         ;;
16161       *)
16162         # FIXME: insert proper C++ library support
16163         ld_shlibs_CXX=no
16164         ;;
16165     esac
16166     ;;
16167   sunos4*)
16168     case $cc_basename in
16169       CC)
16170         # Sun C++ 4.x
16171         # FIXME: insert proper C++ library support
16172         ld_shlibs_CXX=no
16173         ;;
16174       lcc)
16175         # Lucid
16176         # FIXME: insert proper C++ library support
16177         ld_shlibs_CXX=no
16178         ;;
16179       *)
16180         # FIXME: insert proper C++ library support
16181         ld_shlibs_CXX=no
16182         ;;
16183     esac
16184     ;;
16185   solaris*)
16186     case $cc_basename in
16187       CC)
16188         # Sun C++ 4.2, 5.x and Centerline C++
16189         no_undefined_flag_CXX=' -zdefs'
16190         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16191         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16192         $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'
16193
16194         hardcode_libdir_flag_spec_CXX='-R$libdir'
16195         hardcode_shlibpath_var_CXX=no
16196         case $host_os in
16197           solaris2.0-5 | solaris2.0-5.*) ;;
16198           *)
16199             # The C++ compiler is used as linker so we must use $wl
16200             # flag to pass the commands to the underlying system
16201             # linker.
16202             # Supported since Solaris 2.6 (maybe 2.5.1?)
16203             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16204             ;;
16205         esac
16206         link_all_deplibs_CXX=yes
16207
16208         # Commands to make compiler produce verbose output that lists
16209         # what "hidden" libraries, object files and flags are used when
16210         # linking a shared library.
16211         #
16212         # There doesn't appear to be a way to prevent this compiler from
16213         # explicitly linking system object files so we need to strip them
16214         # from the output so that they don't get included in the library
16215         # dependencies.
16216         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'
16217
16218         # Archives containing C++ object files must be created using
16219         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16220         # necessary to make sure instantiated templates are included
16221         # in the archive.
16222         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223         ;;
16224       gcx)
16225         # Green Hills C++ Compiler
16226         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227
16228         # The C++ compiler must be used to create the archive.
16229         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16230         ;;
16231       *)
16232         # GNU C++ compiler with Solaris linker
16233         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16234           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16235           if $CC --version | grep -v '^2\.7' > /dev/null; then
16236             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16237             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16238                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16239
16240             # Commands to make compiler produce verbose output that lists
16241             # what "hidden" libraries, object files and flags are used when
16242             # linking a shared library.
16243             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16244           else
16245             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16246             # platform.
16247             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16248             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16249                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16250
16251             # Commands to make compiler produce verbose output that lists
16252             # what "hidden" libraries, object files and flags are used when
16253             # linking a shared library.
16254             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16255           fi
16256
16257           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16258         fi
16259         ;;
16260     esac
16261     ;;
16262   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16263     archive_cmds_need_lc_CXX=no
16264     ;;
16265   tandem*)
16266     case $cc_basename in
16267       NCC)
16268         # NonStop-UX NCC 3.20
16269         # FIXME: insert proper C++ library support
16270         ld_shlibs_CXX=no
16271         ;;
16272       *)
16273         # FIXME: insert proper C++ library support
16274         ld_shlibs_CXX=no
16275         ;;
16276     esac
16277     ;;
16278   vxworks*)
16279     # FIXME: insert proper C++ library support
16280     ld_shlibs_CXX=no
16281     ;;
16282   *)
16283     # FIXME: insert proper C++ library support
16284     ld_shlibs_CXX=no
16285     ;;
16286 esac
16287 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16288 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16289 test "$ld_shlibs_CXX" = no && can_build_shared=no
16290
16291 GCC_CXX="$GXX"
16292 LD_CXX="$LD"
16293
16294
16295 cat > conftest.$ac_ext <<EOF
16296 class Foo
16297 {
16298 public:
16299   Foo (void) { a = 0; }
16300 private:
16301   int a;
16302 };
16303 EOF
16304
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; then
16310   # Parse the compiler output and extract the necessary
16311   # objects, libraries and library flags.
16312
16313   # Sentinel used to keep track of whether or not we are before
16314   # the conftest object file.
16315   pre_test_object_deps_done=no
16316
16317   # The `*' in the case matches for architectures that use `case' in
16318   # $output_verbose_cmd can trigger glob expansion during the loop
16319   # eval without this substitution.
16320   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16321
16322   for p in `eval $output_verbose_link_cmd`; do
16323     case $p in
16324
16325     -L* | -R* | -l*)
16326        # Some compilers place space between "-{L,R}" and the path.
16327        # Remove the space.
16328        if test $p = "-L" \
16329           || test $p = "-R"; then
16330          prev=$p
16331          continue
16332        else
16333          prev=
16334        fi
16335
16336        if test "$pre_test_object_deps_done" = no; then
16337          case $p in
16338          -L* | -R*)
16339            # Internal compiler library paths should come after those
16340            # provided the user.  The postdeps already come after the
16341            # user supplied libs so there is no need to process them.
16342            if test -z "$compiler_lib_search_path_CXX"; then
16343              compiler_lib_search_path_CXX="${prev}${p}"
16344            else
16345              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16346            fi
16347            ;;
16348          # The "-l" case would never come before the object being
16349          # linked, so don't bother handling this case.
16350          esac
16351        else
16352          if test -z "$postdeps_CXX"; then
16353            postdeps_CXX="${prev}${p}"
16354          else
16355            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16356          fi
16357        fi
16358        ;;
16359
16360     *.$objext)
16361        # This assumes that the test object file only shows up
16362        # once in the compiler output.
16363        if test "$p" = "conftest.$objext"; then
16364          pre_test_object_deps_done=yes
16365          continue
16366        fi
16367
16368        if test "$pre_test_object_deps_done" = no; then
16369          if test -z "$predep_objects_CXX"; then
16370            predep_objects_CXX="$p"
16371          else
16372            predep_objects_CXX="$predep_objects_CXX $p"
16373          fi
16374        else
16375          if test -z "$postdep_objects_CXX"; then
16376            postdep_objects_CXX="$p"
16377          else
16378            postdep_objects_CXX="$postdep_objects_CXX $p"
16379          fi
16380        fi
16381        ;;
16382
16383     *) ;; # Ignore the rest.
16384
16385     esac
16386   done
16387
16388   # Clean up.
16389   rm -f a.out a.exe
16390 else
16391   echo "libtool.m4: error: problem compiling CXX test program"
16392 fi
16393
16394 $rm -f confest.$objext
16395
16396 case " $postdeps_CXX " in
16397 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16398 esac
16399
16400 lt_prog_compiler_wl_CXX=
16401 lt_prog_compiler_pic_CXX=
16402 lt_prog_compiler_static_CXX=
16403
16404 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16406
16407   # C++ specific cases for pic, static, wl, etc.
16408   if test "$GXX" = yes; then
16409     lt_prog_compiler_wl_CXX='-Wl,'
16410     lt_prog_compiler_static_CXX='-static'
16411
16412     case $host_os in
16413     aix*)
16414       # All AIX code is PIC.
16415       if test "$host_cpu" = ia64; then
16416         # AIX 5 now supports IA64 processor
16417         lt_prog_compiler_static_CXX='-Bstatic'
16418       fi
16419       ;;
16420     amigaos*)
16421       # FIXME: we need at least 68020 code to build shared libraries, but
16422       # adding the `-m68020' flag to GCC prevents building anything better,
16423       # like `-m68040'.
16424       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16425       ;;
16426     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427       # PIC is the default for these OSes.
16428       ;;
16429     mingw* | os2* | pw32*)
16430       # This hack is so that the source file can tell whether it is being
16431       # built for inclusion in a dll (and should export symbols for example).
16432       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16433       ;;
16434     darwin* | rhapsody*)
16435       # PIC is the default on this platform
16436       # Common symbols not allowed in MH_DYLIB files
16437       lt_prog_compiler_pic_CXX='-fno-common'
16438       ;;
16439     *djgpp*)
16440       # DJGPP does not support shared libraries at all
16441       lt_prog_compiler_pic_CXX=
16442       ;;
16443     sysv4*MP*)
16444       if test -d /usr/nec; then
16445         lt_prog_compiler_pic_CXX=-Kconform_pic
16446       fi
16447       ;;
16448     hpux*)
16449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16450       # not for PA HP-UX.
16451       case "$host_cpu" in
16452       hppa*64*|ia64*)
16453         ;;
16454       *)
16455         lt_prog_compiler_pic_CXX='-fPIC'
16456         ;;
16457       esac
16458       ;;
16459     *)
16460       lt_prog_compiler_pic_CXX='-fPIC'
16461       ;;
16462     esac
16463   else
16464     case $host_os in
16465       aix4* | aix5*)
16466         # All AIX code is PIC.
16467         if test "$host_cpu" = ia64; then
16468           # AIX 5 now supports IA64 processor
16469           lt_prog_compiler_static_CXX='-Bstatic'
16470         else
16471           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16472         fi
16473         ;;
16474       chorus*)
16475         case $cc_basename in
16476         cxch68)
16477           # Green Hills C++ Compiler
16478           # _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"
16479           ;;
16480         esac
16481         ;;
16482        darwin*)
16483          # PIC is the default on this platform
16484          # Common symbols not allowed in MH_DYLIB files
16485          case "$cc_basename" in
16486            xlc*)
16487            lt_prog_compiler_pic_CXX='-qnocommon'
16488            lt_prog_compiler_wl_CXX='-Wl,'
16489            ;;
16490          esac
16491        ;;
16492       dgux*)
16493         case $cc_basename in
16494           ec++)
16495             lt_prog_compiler_pic_CXX='-KPIC'
16496             ;;
16497           ghcx)
16498             # Green Hills C++ Compiler
16499             lt_prog_compiler_pic_CXX='-pic'
16500             ;;
16501           *)
16502             ;;
16503         esac
16504         ;;
16505       freebsd* | kfreebsd*-gnu)
16506         # FreeBSD uses GNU C++
16507         ;;
16508       hpux9* | hpux10* | hpux11*)
16509         case $cc_basename in
16510           CC)
16511             lt_prog_compiler_wl_CXX='-Wl,'
16512             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16513             if test "$host_cpu" != ia64; then
16514               lt_prog_compiler_pic_CXX='+Z'
16515             fi
16516             ;;
16517           aCC)
16518             lt_prog_compiler_wl_CXX='-Wl,'
16519             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16520             case "$host_cpu" in
16521             hppa*64*|ia64*)
16522               # +Z the default
16523               ;;
16524             *)
16525               lt_prog_compiler_pic_CXX='+Z'
16526               ;;
16527             esac
16528             ;;
16529           *)
16530             ;;
16531         esac
16532         ;;
16533       irix5* | irix6* | nonstopux*)
16534         case $cc_basename in
16535           CC)
16536             lt_prog_compiler_wl_CXX='-Wl,'
16537             lt_prog_compiler_static_CXX='-non_shared'
16538             # CC pic flag -KPIC is the default.
16539             ;;
16540           *)
16541             ;;
16542         esac
16543         ;;
16544       linux*)
16545         case $cc_basename in
16546           KCC)
16547             # KAI C++ Compiler
16548             lt_prog_compiler_wl_CXX='--backend -Wl,'
16549             lt_prog_compiler_pic_CXX='-fPIC'
16550             ;;
16551           icpc)
16552             # Intel C++
16553             lt_prog_compiler_wl_CXX='-Wl,'
16554             lt_prog_compiler_pic_CXX='-KPIC'
16555             lt_prog_compiler_static_CXX='-static'
16556             ;;
16557           cxx)
16558             # Compaq C++
16559             # Make sure the PIC flag is empty.  It appears that all Alpha
16560             # Linux and Compaq Tru64 Unix objects are PIC.
16561             lt_prog_compiler_pic_CXX=
16562             lt_prog_compiler_static_CXX='-non_shared'
16563             ;;
16564           *)
16565             ;;
16566         esac
16567         ;;
16568       lynxos*)
16569         ;;
16570       m88k*)
16571         ;;
16572       mvs*)
16573         case $cc_basename in
16574           cxx)
16575             lt_prog_compiler_pic_CXX='-W c,exportall'
16576             ;;
16577           *)
16578             ;;
16579         esac
16580         ;;
16581       netbsd*)
16582         ;;
16583       osf3* | osf4* | osf5*)
16584         case $cc_basename in
16585           KCC)
16586             lt_prog_compiler_wl_CXX='--backend -Wl,'
16587             ;;
16588           RCC)
16589             # Rational C++ 2.4.1
16590             lt_prog_compiler_pic_CXX='-pic'
16591             ;;
16592           cxx)
16593             # Digital/Compaq C++
16594             lt_prog_compiler_wl_CXX='-Wl,'
16595             # Make sure the PIC flag is empty.  It appears that all Alpha
16596             # Linux and Compaq Tru64 Unix objects are PIC.
16597             lt_prog_compiler_pic_CXX=
16598             lt_prog_compiler_static_CXX='-non_shared'
16599             ;;
16600           *)
16601             ;;
16602         esac
16603         ;;
16604       psos*)
16605         ;;
16606       sco*)
16607         case $cc_basename in
16608           CC)
16609             lt_prog_compiler_pic_CXX='-fPIC'
16610             ;;
16611           *)
16612             ;;
16613         esac
16614         ;;
16615       solaris*)
16616         case $cc_basename in
16617           CC)
16618             # Sun C++ 4.2, 5.x and Centerline C++
16619             lt_prog_compiler_pic_CXX='-KPIC'
16620             lt_prog_compiler_static_CXX='-Bstatic'
16621             lt_prog_compiler_wl_CXX='-Qoption ld '
16622             ;;
16623           gcx)
16624             # Green Hills C++ Compiler
16625             lt_prog_compiler_pic_CXX='-PIC'
16626             ;;
16627           *)
16628             ;;
16629         esac
16630         ;;
16631       sunos4*)
16632         case $cc_basename in
16633           CC)
16634             # Sun C++ 4.x
16635             lt_prog_compiler_pic_CXX='-pic'
16636             lt_prog_compiler_static_CXX='-Bstatic'
16637             ;;
16638           lcc)
16639             # Lucid
16640             lt_prog_compiler_pic_CXX='-pic'
16641             ;;
16642           *)
16643             ;;
16644         esac
16645         ;;
16646       tandem*)
16647         case $cc_basename in
16648           NCC)
16649             # NonStop-UX NCC 3.20
16650             lt_prog_compiler_pic_CXX='-KPIC'
16651             ;;
16652           *)
16653             ;;
16654         esac
16655         ;;
16656       unixware*)
16657         ;;
16658       vxworks*)
16659         ;;
16660       *)
16661         lt_prog_compiler_can_build_shared_CXX=no
16662         ;;
16663     esac
16664   fi
16665
16666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16667 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16668
16669 #
16670 # Check to make sure the PIC flag actually works.
16671 #
16672 if test -n "$lt_prog_compiler_pic_CXX"; then
16673
16674 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16676 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   lt_prog_compiler_pic_works_CXX=no
16680   ac_outfile=conftest.$ac_objext
16681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16683    # Insert the option either (1) after the last *FLAGS variable, or
16684    # (2) before a word containing "conftest.", or (3) at the end.
16685    # Note that $ac_compile itself does not contain backslashes and begins
16686    # with a dollar sign (not a hyphen), so the echo should work correctly.
16687    # The option is referenced via a variable to avoid confusing sed.
16688    lt_compile=`echo "$ac_compile" | $SED \
16689    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691    -e 's:$: $lt_compiler_flag:'`
16692    (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693    (eval "$lt_compile" 2>conftest.err)
16694    ac_status=$?
16695    cat conftest.err >&5
16696    echo "$as_me:16696: \$? = $ac_status" >&5
16697    if (exit $ac_status) && test -s "$ac_outfile"; then
16698      # The compiler can only warn and ignore the option if not recognized
16699      # So say no if there are warnings
16700      if test ! -s conftest.err; then
16701        lt_prog_compiler_pic_works_CXX=yes
16702      fi
16703    fi
16704    $rm conftest*
16705
16706 fi
16707 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16709
16710 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16711     case $lt_prog_compiler_pic_CXX in
16712      "" | " "*) ;;
16713      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16714      esac
16715 else
16716     lt_prog_compiler_pic_CXX=
16717      lt_prog_compiler_can_build_shared_CXX=no
16718 fi
16719
16720 fi
16721 case "$host_os" in
16722   # For platforms which do not support PIC, -DPIC is meaningless:
16723   *djgpp*)
16724     lt_prog_compiler_pic_CXX=
16725     ;;
16726   *)
16727     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16728     ;;
16729 esac
16730
16731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   lt_cv_prog_compiler_c_o_CXX=no
16737    $rm -r conftest 2>/dev/null
16738    mkdir conftest
16739    cd conftest
16740    mkdir out
16741    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
16743    lt_compiler_flag="-o out/conftest2.$ac_objext"
16744    # Insert the option either (1) after the last *FLAGS variable, or
16745    # (2) before a word containing "conftest.", or (3) at the end.
16746    # Note that $ac_compile itself does not contain backslashes and begins
16747    # with a dollar sign (not a hyphen), so the echo should work correctly.
16748    lt_compile=`echo "$ac_compile" | $SED \
16749    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751    -e 's:$: $lt_compiler_flag:'`
16752    (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
16753    (eval "$lt_compile" 2>out/conftest.err)
16754    ac_status=$?
16755    cat out/conftest.err >&5
16756    echo "$as_me:16756: \$? = $ac_status" >&5
16757    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758    then
16759      # The compiler can only warn and ignore the option if not recognized
16760      # So say no if there are warnings
16761      if test ! -s out/conftest.err; then
16762        lt_cv_prog_compiler_c_o_CXX=yes
16763      fi
16764    fi
16765    chmod u+w .
16766    $rm conftest*
16767    # SGI C++ compiler will create directory out/ii_files/ for
16768    # template instantiation
16769    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770    $rm out/* && rmdir out
16771    cd ..
16772    rmdir conftest
16773    $rm conftest*
16774
16775 fi
16776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16778
16779
16780 hard_links="nottested"
16781 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16782   # do not overwrite the value of need_locks provided by the user
16783   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16785   hard_links=yes
16786   $rm conftest*
16787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788   touch conftest.a
16789   ln conftest.a conftest.b 2>&5 || hard_links=no
16790   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791   echo "$as_me:$LINENO: result: $hard_links" >&5
16792 echo "${ECHO_T}$hard_links" >&6
16793   if test "$hard_links" = no; then
16794     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16796     need_locks=warn
16797   fi
16798 else
16799   need_locks=no
16800 fi
16801
16802 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16804
16805   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806   case $host_os in
16807   aix4* | aix5*)
16808     # If we're using GNU nm, then we don't want the "-C" option.
16809     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16810     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16811       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'
16812     else
16813       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'
16814     fi
16815     ;;
16816   pw32*)
16817     export_symbols_cmds_CXX="$ltdll_cmds"
16818   ;;
16819   cygwin* | mingw*)
16820     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16821   ;;
16822   *)
16823     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16824   ;;
16825   esac
16826
16827 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16828 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16829 test "$ld_shlibs_CXX" = no && can_build_shared=no
16830
16831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832 if test "$GCC" = yes; then
16833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16834 fi
16835
16836 #
16837 # Do we need to explicitly link libc?
16838 #
16839 case "x$archive_cmds_need_lc_CXX" in
16840 x|xyes)
16841   # Assume -lc should be added
16842   archive_cmds_need_lc_CXX=yes
16843
16844   if test "$enable_shared" = yes && test "$GCC" = yes; then
16845     case $archive_cmds_CXX in
16846     *'~'*)
16847       # FIXME: we may have to deal with multi-command sequences.
16848       ;;
16849     '$CC '*)
16850       # Test whether the compiler implicitly links with -lc since on some
16851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852       # to ld, don't add -lc before -lgcc.
16853       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855       $rm conftest*
16856       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857
16858       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859   (eval $ac_compile) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } 2>conftest.err; then
16863         soname=conftest
16864         lib=conftest
16865         libobjs=conftest.$ac_objext
16866         deplibs=
16867         wl=$lt_prog_compiler_wl_CXX
16868         compiler_flags=-v
16869         linker_flags=-v
16870         verstring=
16871         output_objdir=.
16872         libname=conftest
16873         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16874         allow_undefined_flag_CXX=
16875         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }
16880         then
16881           archive_cmds_need_lc_CXX=no
16882         else
16883           archive_cmds_need_lc_CXX=yes
16884         fi
16885         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16886       else
16887         cat conftest.err 1>&5
16888       fi
16889       $rm conftest*
16890       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16891 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16892       ;;
16893     esac
16894   fi
16895   ;;
16896 esac
16897
16898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900 library_names_spec=
16901 libname_spec='lib$name'
16902 soname_spec=
16903 shrext_cmds=".so"
16904 postinstall_cmds=
16905 postuninstall_cmds=
16906 finish_cmds=
16907 finish_eval=
16908 shlibpath_var=
16909 shlibpath_overrides_runpath=unknown
16910 version_type=none
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 if test "$GCC" = yes; then
16914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916     # if the path contains ";" then we assume it to be the separator
16917     # otherwise default to the standard path separator (i.e. ":") - it is
16918     # assumed that no part of a normal pathname contains ";" but that should
16919     # okay in the real world where ";" in dirpaths is itself problematic.
16920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921   else
16922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16923   fi
16924 else
16925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926 fi
16927 need_lib_prefix=unknown
16928 hardcode_into_libs=no
16929
16930 # when you set need_version to no, make sure it does not cause -set_version
16931 # flags to be left without arguments
16932 need_version=unknown
16933
16934 case $host_os in
16935 aix3*)
16936   version_type=linux
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938   shlibpath_var=LIBPATH
16939
16940   # AIX 3 has no versioning support, so we append a major version to the name.
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   ;;
16943
16944 aix4* | aix5*)
16945   version_type=linux
16946   need_lib_prefix=no
16947   need_version=no
16948   hardcode_into_libs=yes
16949   if test "$host_cpu" = ia64; then
16950     # AIX 5 supports IA64
16951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952     shlibpath_var=LD_LIBRARY_PATH
16953   else
16954     # With GCC up to 2.95.x, collect2 would create an import file
16955     # for dependence libraries.  The import file would start with
16956     # the line `#! .'.  This would cause the generated library to
16957     # depend on `.', always an invalid library.  This was fixed in
16958     # development snapshots of GCC prior to 3.0.
16959     case $host_os in
16960       aix4 | aix4.[01] | aix4.[01].*)
16961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962            echo ' yes '
16963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16964         :
16965       else
16966         can_build_shared=no
16967       fi
16968       ;;
16969     esac
16970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971     # soname into executable. Probably we can add versioning support to
16972     # collect2, so additional links can be useful in future.
16973     if test "$aix_use_runtimelinking" = yes; then
16974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975       # instead of lib<name>.a to let people know that these are not
16976       # typical AIX shared libraries.
16977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978     else
16979       # We preserve .a as extension for shared libraries through AIX4.2
16980       # and later when we are not doing run time linking.
16981       library_names_spec='${libname}${release}.a $libname.a'
16982       soname_spec='${libname}${release}${shared_ext}$major'
16983     fi
16984     shlibpath_var=LIBPATH
16985   fi
16986   ;;
16987
16988 amigaos*)
16989   library_names_spec='$libname.ixlibrary $libname.a'
16990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991   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'
16992   ;;
16993
16994 beos*)
16995   library_names_spec='${libname}${shared_ext}'
16996   dynamic_linker="$host_os ld.so"
16997   shlibpath_var=LIBRARY_PATH
16998   ;;
16999
17000 bsdi[45]*)
17001   version_type=linux
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009   # the default ld.so.conf also contains /usr/contrib/lib and
17010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011   # libtool to hard-code these into programs
17012   ;;
17013
17014 cygwin* | mingw* | pw32*)
17015   version_type=windows
17016   shrext_cmds=".dll"
17017   need_version=no
17018   need_lib_prefix=no
17019
17020   case $GCC,$host_os in
17021   yes,cygwin* | yes,mingw* | yes,pw32*)
17022     library_names_spec='$libname.dll.a'
17023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024     postinstall_cmds='base_file=`basename \${file}`~
17025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026       dldir=$destdir/`dirname \$dlpath`~
17027       test -d \$dldir || mkdir -p \$dldir~
17028       $install_prog $dir/$dlname \$dldir/$dlname'
17029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030       dlpath=$dir/\$dldll~
17031        $rm \$dlpath'
17032     shlibpath_overrides_runpath=yes
17033
17034     case $host_os in
17035     cygwin*)
17036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17039       ;;
17040     mingw*)
17041       # MinGW DLLs use traditional 'lib' prefix
17042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045         # It is most probably a Windows format PATH printed by
17046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047         # path with ; separators, and with drive letters. We can handle the
17048         # drive letters (cygwin fileutils understands them), so leave them,
17049         # especially as we might pass files found there to a mingw objdump,
17050         # which wouldn't understand a cygwinified path. Ahh.
17051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052       else
17053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17054       fi
17055       ;;
17056     pw32*)
17057       # pw32 DLLs use 'pw' prefix rather than 'lib'
17058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17059       ;;
17060     esac
17061     ;;
17062
17063   *)
17064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17065     ;;
17066   esac
17067   dynamic_linker='Win32 ld.exe'
17068   # FIXME: first we should search . and the directory the executable is in
17069   shlibpath_var=PATH
17070   ;;
17071
17072 darwin* | rhapsody*)
17073   dynamic_linker="$host_os dyld"
17074   version_type=darwin
17075   need_lib_prefix=no
17076   need_version=no
17077   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078   soname_spec='${libname}${release}${major}$shared_ext'
17079   shlibpath_overrides_runpath=yes
17080   shlibpath_var=DYLD_LIBRARY_PATH
17081   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083   if test "$GCC" = yes; then
17084     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"`
17085   else
17086     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17087   fi
17088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089   ;;
17090
17091 dgux*)
17092   version_type=linux
17093   need_lib_prefix=no
17094   need_version=no
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   ;;
17099
17100 freebsd1*)
17101   dynamic_linker=no
17102   ;;
17103
17104 kfreebsd*-gnu)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   shlibpath_overrides_runpath=no
17112   hardcode_into_libs=yes
17113   dynamic_linker='GNU ld.so'
17114   ;;
17115
17116 freebsd*)
17117   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17118   version_type=freebsd-$objformat
17119   case $version_type in
17120     freebsd-elf*)
17121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17122       need_version=no
17123       need_lib_prefix=no
17124       ;;
17125     freebsd-*)
17126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17127       need_version=yes
17128       ;;
17129   esac
17130   shlibpath_var=LD_LIBRARY_PATH
17131   case $host_os in
17132   freebsd2*)
17133     shlibpath_overrides_runpath=yes
17134     ;;
17135   freebsd3.01* | freebsdelf3.01*)
17136     shlibpath_overrides_runpath=yes
17137     hardcode_into_libs=yes
17138     ;;
17139   *) # from 3.2 on
17140     shlibpath_overrides_runpath=no
17141     hardcode_into_libs=yes
17142     ;;
17143   esac
17144   ;;
17145
17146 gnu*)
17147   version_type=linux
17148   need_lib_prefix=no
17149   need_version=no
17150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17151   soname_spec='${libname}${release}${shared_ext}$major'
17152   shlibpath_var=LD_LIBRARY_PATH
17153   hardcode_into_libs=yes
17154   ;;
17155
17156 hpux9* | hpux10* | hpux11*)
17157   # Give a soname corresponding to the major version so that dld.sl refuses to
17158   # link against other versions.
17159   version_type=sunos
17160   need_lib_prefix=no
17161   need_version=no
17162   case "$host_cpu" in
17163   ia64*)
17164     shrext_cmds='.so'
17165     hardcode_into_libs=yes
17166     dynamic_linker="$host_os dld.so"
17167     shlibpath_var=LD_LIBRARY_PATH
17168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170     soname_spec='${libname}${release}${shared_ext}$major'
17171     if test "X$HPUX_IA64_MODE" = X32; then
17172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173     else
17174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175     fi
17176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177     ;;
17178    hppa*64*)
17179      shrext_cmds='.sl'
17180      hardcode_into_libs=yes
17181      dynamic_linker="$host_os dld.sl"
17182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185      soname_spec='${libname}${release}${shared_ext}$major'
17186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188      ;;
17189    *)
17190     shrext_cmds='.sl'
17191     dynamic_linker="$host_os dld.sl"
17192     shlibpath_var=SHLIB_PATH
17193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195     soname_spec='${libname}${release}${shared_ext}$major'
17196     ;;
17197   esac
17198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17199   postinstall_cmds='chmod 555 $lib'
17200   ;;
17201
17202 irix5* | irix6* | nonstopux*)
17203   case $host_os in
17204     nonstopux*) version_type=nonstopux ;;
17205     *)
17206         if test "$lt_cv_prog_gnu_ld" = yes; then
17207                 version_type=linux
17208         else
17209                 version_type=irix
17210         fi ;;
17211   esac
17212   need_lib_prefix=no
17213   need_version=no
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216   case $host_os in
17217   irix5* | nonstopux*)
17218     libsuff= shlibsuff=
17219     ;;
17220   *)
17221     case $LD in # libtool.m4 will add one of these switches to LD
17222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223       libsuff= shlibsuff= libmagic=32-bit;;
17224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225       libsuff=32 shlibsuff=N32 libmagic=N32;;
17226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228     *) libsuff= shlibsuff= libmagic=never-match;;
17229     esac
17230     ;;
17231   esac
17232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233   shlibpath_overrides_runpath=no
17234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236   hardcode_into_libs=yes
17237   ;;
17238
17239 # No shared lib support for Linux oldld, aout, or coff.
17240 linux*oldld* | linux*aout* | linux*coff*)
17241   dynamic_linker=no
17242   ;;
17243
17244 # This must be Linux ELF.
17245 linux*)
17246   version_type=linux
17247   need_lib_prefix=no
17248   need_version=no
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250   soname_spec='${libname}${release}${shared_ext}$major'
17251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252   shlibpath_var=LD_LIBRARY_PATH
17253   shlibpath_overrides_runpath=no
17254   # This implies no fast_install, which is unacceptable.
17255   # Some rework will be needed to allow for fast_install
17256   # before this can be enabled.
17257   hardcode_into_libs=yes
17258
17259   # Append ld.so.conf contents to the search path
17260   if test -f /etc/ld.so.conf; then
17261     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263   fi
17264
17265   # We used to test for /lib/ld.so.1 and disable shared libraries on
17266   # powerpc, because MkLinux only supported shared libraries with the
17267   # GNU dynamic linker.  Since this was broken with cross compilers,
17268   # most powerpc-linux boxes support dynamic linking these days and
17269   # people can always --disable-shared, the test was removed, and we
17270   # assume the GNU/Linux dynamic linker is in use.
17271   dynamic_linker='GNU/Linux ld.so'
17272   ;;
17273
17274 knetbsd*-gnu)
17275   version_type=linux
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=no
17282   hardcode_into_libs=yes
17283   dynamic_linker='GNU ld.so'
17284   ;;
17285
17286 netbsd*)
17287   version_type=sunos
17288   need_lib_prefix=no
17289   need_version=no
17290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293     dynamic_linker='NetBSD (a.out) ld.so'
17294   else
17295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17296     soname_spec='${libname}${release}${shared_ext}$major'
17297     dynamic_linker='NetBSD ld.elf_so'
17298   fi
17299   shlibpath_var=LD_LIBRARY_PATH
17300   shlibpath_overrides_runpath=yes
17301   hardcode_into_libs=yes
17302   ;;
17303
17304 newsos6)
17305   version_type=linux
17306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307   shlibpath_var=LD_LIBRARY_PATH
17308   shlibpath_overrides_runpath=yes
17309   ;;
17310
17311 nto-qnx*)
17312   version_type=linux
17313   need_lib_prefix=no
17314   need_version=no
17315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316   soname_spec='${libname}${release}${shared_ext}$major'
17317   shlibpath_var=LD_LIBRARY_PATH
17318   shlibpath_overrides_runpath=yes
17319   ;;
17320
17321 openbsd*)
17322   version_type=sunos
17323   need_lib_prefix=no
17324   need_version=no
17325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329     case $host_os in
17330       openbsd2.[89] | openbsd2.[89].*)
17331         shlibpath_overrides_runpath=no
17332         ;;
17333       *)
17334         shlibpath_overrides_runpath=yes
17335         ;;
17336       esac
17337   else
17338     shlibpath_overrides_runpath=yes
17339   fi
17340   ;;
17341
17342 os2*)
17343   libname_spec='$name'
17344   shrext_cmds=".dll"
17345   need_lib_prefix=no
17346   library_names_spec='$libname${shared_ext} $libname.a'
17347   dynamic_linker='OS/2 ld.exe'
17348   shlibpath_var=LIBPATH
17349   ;;
17350
17351 osf3* | osf4* | osf5*)
17352   version_type=osf
17353   need_lib_prefix=no
17354   need_version=no
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17360   ;;
17361
17362 sco3.2v5*)
17363   version_type=osf
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   ;;
17368
17369 solaris*)
17370   version_type=linux
17371   need_lib_prefix=no
17372   need_version=no
17373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374   soname_spec='${libname}${release}${shared_ext}$major'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   shlibpath_overrides_runpath=yes
17377   hardcode_into_libs=yes
17378   # ldd complains unless libraries are executable
17379   postinstall_cmds='chmod +x $lib'
17380   ;;
17381
17382 sunos4*)
17383   version_type=sunos
17384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17386   shlibpath_var=LD_LIBRARY_PATH
17387   shlibpath_overrides_runpath=yes
17388   if test "$with_gnu_ld" = yes; then
17389     need_lib_prefix=no
17390   fi
17391   need_version=yes
17392   ;;
17393
17394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17395   version_type=linux
17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397   soname_spec='${libname}${release}${shared_ext}$major'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   case $host_vendor in
17400     sni)
17401       shlibpath_overrides_runpath=no
17402       need_lib_prefix=no
17403       export_dynamic_flag_spec='${wl}-Blargedynsym'
17404       runpath_var=LD_RUN_PATH
17405       ;;
17406     siemens)
17407       need_lib_prefix=no
17408       ;;
17409     motorola)
17410       need_lib_prefix=no
17411       need_version=no
17412       shlibpath_overrides_runpath=no
17413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17414       ;;
17415   esac
17416   ;;
17417
17418 sysv4*MP*)
17419   if test -d /usr/nec ;then
17420     version_type=linux
17421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17422     soname_spec='$libname${shared_ext}.$major'
17423     shlibpath_var=LD_LIBRARY_PATH
17424   fi
17425   ;;
17426
17427 uts4*)
17428   version_type=linux
17429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   shlibpath_var=LD_LIBRARY_PATH
17432   ;;
17433
17434 *)
17435   dynamic_linker=no
17436   ;;
17437 esac
17438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439 echo "${ECHO_T}$dynamic_linker" >&6
17440 test "$dynamic_linker" = no && can_build_shared=no
17441
17442 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17444 hardcode_action_CXX=
17445 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17446    test -n "$runpath_var_CXX" || \
17447    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17448
17449   # We can hardcode non-existant directories.
17450   if test "$hardcode_direct_CXX" != no &&
17451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452      # have to relink, otherwise we might link with an installed library
17453      # when we should be linking with a yet-to-be-installed one
17454      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17455      test "$hardcode_minus_L_CXX" != no; then
17456     # Linking always hardcodes the temporary library directory.
17457     hardcode_action_CXX=relink
17458   else
17459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460     hardcode_action_CXX=immediate
17461   fi
17462 else
17463   # We cannot hardcode anything, or else we can only hardcode existing
17464   # directories.
17465   hardcode_action_CXX=unsupported
17466 fi
17467 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17468 echo "${ECHO_T}$hardcode_action_CXX" >&6
17469
17470 if test "$hardcode_action_CXX" = relink; then
17471   # Fast installation is not supported
17472   enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474      test "$enable_shared" = no; then
17475   # Fast installation is not necessary
17476   enable_fast_install=needless
17477 fi
17478
17479 striplib=
17480 old_striplib=
17481 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17482 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17483 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17484   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17485   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17486   echo "$as_me:$LINENO: result: yes" >&5
17487 echo "${ECHO_T}yes" >&6
17488 else
17489 # FIXME - insert some real tests, host_os isn't really good enough
17490   case $host_os in
17491    darwin*)
17492        if test -n "$STRIP" ; then
17493          striplib="$STRIP -x"
17494          echo "$as_me:$LINENO: result: yes" >&5
17495 echo "${ECHO_T}yes" >&6
17496        else
17497   echo "$as_me:$LINENO: result: no" >&5
17498 echo "${ECHO_T}no" >&6
17499 fi
17500        ;;
17501    *)
17502   echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6
17504     ;;
17505   esac
17506 fi
17507
17508 if test "x$enable_dlopen" != xyes; then
17509   enable_dlopen=unknown
17510   enable_dlopen_self=unknown
17511   enable_dlopen_self_static=unknown
17512 else
17513   lt_cv_dlopen=no
17514   lt_cv_dlopen_libs=
17515
17516   case $host_os in
17517   beos*)
17518     lt_cv_dlopen="load_add_on"
17519     lt_cv_dlopen_libs=
17520     lt_cv_dlopen_self=yes
17521     ;;
17522
17523   mingw* | pw32*)
17524     lt_cv_dlopen="LoadLibrary"
17525     lt_cv_dlopen_libs=
17526    ;;
17527
17528   cygwin*)
17529     lt_cv_dlopen="dlopen"
17530     lt_cv_dlopen_libs=
17531    ;;
17532
17533   darwin*)
17534   # if libdl is installed we need to link against it
17535     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   ac_check_lib_save_LIBS=$LIBS
17541 LIBS="-ldl  $LIBS"
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548
17549 /* Override any gcc2 internal prototype to avoid an error.  */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 /* We use char because int might match the return type of a gcc2
17554    builtin and then its argument prototype would still apply.  */
17555 char dlopen ();
17556 int
17557 main ()
17558 {
17559 dlopen ();
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566   (eval $ac_link) 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_cxx_werror_flag"
17574                          || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest$ac_exeext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_lib_dl_dlopen=yes
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_lib_dl_dlopen=no
17592 fi
17593 rm -f conftest.err conftest.$ac_objext \
17594       conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17596 fi
17597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17599 if test $ac_cv_lib_dl_dlopen = yes; then
17600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601 else
17602
17603     lt_cv_dlopen="dyld"
17604     lt_cv_dlopen_libs=
17605     lt_cv_dlopen_self=yes
17606
17607 fi
17608
17609    ;;
17610
17611   *)
17612     echo "$as_me:$LINENO: checking for shl_load" >&5
17613 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17614 if test "${ac_cv_func_shl_load+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625 #define shl_load innocuous_shl_load
17626
17627 /* System header to define __stub macros and hopefully few prototypes,
17628     which can conflict with char shl_load (); below.
17629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630     <limits.h> exists even on freestanding compilers.  */
17631
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17637
17638 #undef shl_load
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 {
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char shl_load ();
17648 /* The GNU C library defines this for functions which it implements
17649     to always fail with ENOSYS.  Some functions are actually named
17650     something starting with __ and the normal name is an alias.  */
17651 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17652 choke me
17653 #else
17654 char (*f) () = shl_load;
17655 #endif
17656 #ifdef __cplusplus
17657 }
17658 #endif
17659
17660 int
17661 main ()
17662 {
17663 return f != shl_load;
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670   (eval $ac_link) 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_cxx_werror_flag"
17678                          || test ! -s conftest.err'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; } &&
17684          { ac_try='test -s conftest$ac_exeext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_func_shl_load=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_func_shl_load=no
17696 fi
17697 rm -f conftest.err conftest.$ac_objext \
17698       conftest$ac_exeext conftest.$ac_ext
17699 fi
17700 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17701 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17702 if test $ac_cv_func_shl_load = yes; then
17703   lt_cv_dlopen="shl_load"
17704 else
17705   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17706 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17707 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-ldld  $LIBS"
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718
17719 /* Override any gcc2 internal prototype to avoid an error.  */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 /* We use char because int might match the return type of a gcc2
17724    builtin and then its argument prototype would still apply.  */
17725 char shl_load ();
17726 int
17727 main ()
17728 {
17729 shl_load ();
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736   (eval $ac_link) 2>conftest.er1
17737   ac_status=$?
17738   grep -v '^ *+' conftest.er1 >conftest.err
17739   rm -f conftest.er1
17740   cat conftest.err >&5
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -z "$ac_cxx_werror_flag"
17744                          || test ! -s conftest.err'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest$ac_exeext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_lib_dld_shl_load=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ac_cv_lib_dld_shl_load=no
17762 fi
17763 rm -f conftest.err conftest.$ac_objext \
17764       conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17768 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17769 if test $ac_cv_lib_dld_shl_load = yes; then
17770   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17771 else
17772   echo "$as_me:$LINENO: checking for dlopen" >&5
17773 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17774 if test "${ac_cv_func_dlopen+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777   cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17785 #define dlopen innocuous_dlopen
17786
17787 /* System header to define __stub macros and hopefully few prototypes,
17788     which can conflict with char dlopen (); below.
17789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790     <limits.h> exists even on freestanding compilers.  */
17791
17792 #ifdef __STDC__
17793 # include <limits.h>
17794 #else
17795 # include <assert.h>
17796 #endif
17797
17798 #undef dlopen
17799
17800 /* Override any gcc2 internal prototype to avoid an error.  */
17801 #ifdef __cplusplus
17802 extern "C"
17803 {
17804 #endif
17805 /* We use char because int might match the return type of a gcc2
17806    builtin and then its argument prototype would still apply.  */
17807 char dlopen ();
17808 /* The GNU C library defines this for functions which it implements
17809     to always fail with ENOSYS.  Some functions are actually named
17810     something starting with __ and the normal name is an alias.  */
17811 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17812 choke me
17813 #else
17814 char (*f) () = dlopen;
17815 #endif
17816 #ifdef __cplusplus
17817 }
17818 #endif
17819
17820 int
17821 main ()
17822 {
17823 return f != dlopen;
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830   (eval $ac_link) 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_cxx_werror_flag"
17838                          || test ! -s conftest.err'
17839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840   (eval $ac_try) 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; } &&
17844          { ac_try='test -s conftest$ac_exeext'
17845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846   (eval $ac_try) 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; }; then
17850   ac_cv_func_dlopen=yes
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855 ac_cv_func_dlopen=no
17856 fi
17857 rm -f conftest.err conftest.$ac_objext \
17858       conftest$ac_exeext conftest.$ac_ext
17859 fi
17860 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17861 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17862 if test $ac_cv_func_dlopen = yes; then
17863   lt_cv_dlopen="dlopen"
17864 else
17865   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-ldl  $LIBS"
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878
17879 /* Override any gcc2 internal prototype to avoid an error.  */
17880 #ifdef __cplusplus
17881 extern "C"
17882 #endif
17883 /* We use char because int might match the return type of a gcc2
17884    builtin and then its argument prototype would still apply.  */
17885 char dlopen ();
17886 int
17887 main ()
17888 {
17889 dlopen ();
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896   (eval $ac_link) 2>conftest.er1
17897   ac_status=$?
17898   grep -v '^ *+' conftest.er1 >conftest.err
17899   rm -f conftest.er1
17900   cat conftest.err >&5
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); } &&
17903          { ac_try='test -z "$ac_cxx_werror_flag"
17904                          || test ! -s conftest.err'
17905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906   (eval $ac_try) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; } &&
17910          { ac_try='test -s conftest$ac_exeext'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; }; then
17916   ac_cv_lib_dl_dlopen=yes
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 ac_cv_lib_dl_dlopen=no
17922 fi
17923 rm -f conftest.err conftest.$ac_objext \
17924       conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17926 fi
17927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17929 if test $ac_cv_lib_dl_dlopen = yes; then
17930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17931 else
17932   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lsvld  $LIBS"
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 /* Override any gcc2 internal prototype to avoid an error.  */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 /* We use char because int might match the return type of a gcc2
17951    builtin and then its argument prototype would still apply.  */
17952 char dlopen ();
17953 int
17954 main ()
17955 {
17956 dlopen ();
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963   (eval $ac_link) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_cxx_werror_flag"
17971                          || test ! -s conftest.err'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   ac_cv_lib_svld_dlopen=yes
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 ac_cv_lib_svld_dlopen=no
17989 fi
17990 rm -f conftest.err conftest.$ac_objext \
17991       conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17993 fi
17994 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17995 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17996 if test $ac_cv_lib_svld_dlopen = yes; then
17997   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17998 else
17999   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   ac_check_lib_save_LIBS=$LIBS
18005 LIBS="-ldld  $LIBS"
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012
18013 /* Override any gcc2 internal prototype to avoid an error.  */
18014 #ifdef __cplusplus
18015 extern "C"
18016 #endif
18017 /* We use char because int might match the return type of a gcc2
18018    builtin and then its argument prototype would still apply.  */
18019 char dld_link ();
18020 int
18021 main ()
18022 {
18023 dld_link ();
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030   (eval $ac_link) 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } &&
18037          { ac_try='test -z "$ac_cxx_werror_flag"
18038                          || test ! -s conftest.err'
18039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040   (eval $ac_try) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; } &&
18044          { ac_try='test -s conftest$ac_exeext'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   ac_cv_lib_dld_dld_link=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_cv_lib_dld_dld_link=no
18056 fi
18057 rm -f conftest.err conftest.$ac_objext \
18058       conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18060 fi
18061 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18062 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18063 if test $ac_cv_lib_dld_dld_link = yes; then
18064   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18065 fi
18066
18067
18068 fi
18069
18070
18071 fi
18072
18073
18074 fi
18075
18076
18077 fi
18078
18079
18080 fi
18081
18082     ;;
18083   esac
18084
18085   if test "x$lt_cv_dlopen" != xno; then
18086     enable_dlopen=yes
18087   else
18088     enable_dlopen=no
18089   fi
18090
18091   case $lt_cv_dlopen in
18092   dlopen)
18093     save_CPPFLAGS="$CPPFLAGS"
18094     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18095
18096     save_LDFLAGS="$LDFLAGS"
18097     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18098
18099     save_LIBS="$LIBS"
18100     LIBS="$lt_cv_dlopen_libs $LIBS"
18101
18102     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18103 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18104 if test "${lt_cv_dlopen_self+set}" = set; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107           if test "$cross_compiling" = yes; then :
18108   lt_cv_dlopen_self=cross
18109 else
18110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18111   lt_status=$lt_dlunknown
18112   cat > conftest.$ac_ext <<EOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18115
18116 #if HAVE_DLFCN_H
18117 #include <dlfcn.h>
18118 #endif
18119
18120 #include <stdio.h>
18121
18122 #ifdef RTLD_GLOBAL
18123 #  define LT_DLGLOBAL           RTLD_GLOBAL
18124 #else
18125 #  ifdef DL_GLOBAL
18126 #    define LT_DLGLOBAL         DL_GLOBAL
18127 #  else
18128 #    define LT_DLGLOBAL         0
18129 #  endif
18130 #endif
18131
18132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18133    find out it does not work in some platform. */
18134 #ifndef LT_DLLAZY_OR_NOW
18135 #  ifdef RTLD_LAZY
18136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18137 #  else
18138 #    ifdef DL_LAZY
18139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18140 #    else
18141 #      ifdef RTLD_NOW
18142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18143 #      else
18144 #        ifdef DL_NOW
18145 #          define LT_DLLAZY_OR_NOW      DL_NOW
18146 #        else
18147 #          define LT_DLLAZY_OR_NOW      0
18148 #        endif
18149 #      endif
18150 #    endif
18151 #  endif
18152 #endif
18153
18154 #ifdef __cplusplus
18155 extern "C" void exit (int);
18156 #endif
18157
18158 void fnord() { int i=42;}
18159 int main ()
18160 {
18161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18162   int status = $lt_dlunknown;
18163
18164   if (self)
18165     {
18166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18167       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168       /* dlclose (self); */
18169     }
18170
18171     exit (status);
18172 }
18173 EOF
18174   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175   (eval $ac_link) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18179     (./conftest; exit; ) 2>/dev/null
18180     lt_status=$?
18181     case x$lt_status in
18182       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18183       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18184       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18185     esac
18186   else :
18187     # compilation failed
18188     lt_cv_dlopen_self=no
18189   fi
18190 fi
18191 rm -fr conftest*
18192
18193
18194 fi
18195 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18196 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18197
18198     if test "x$lt_cv_dlopen_self" = xyes; then
18199       LDFLAGS="$LDFLAGS $link_static_flag"
18200       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18201 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18202 if test "${lt_cv_dlopen_self_static+set}" = set; then
18203   echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205           if test "$cross_compiling" = yes; then :
18206   lt_cv_dlopen_self_static=cross
18207 else
18208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18209   lt_status=$lt_dlunknown
18210   cat > conftest.$ac_ext <<EOF
18211 #line 18211 "configure"
18212 #include "confdefs.h"
18213
18214 #if HAVE_DLFCN_H
18215 #include <dlfcn.h>
18216 #endif
18217
18218 #include <stdio.h>
18219
18220 #ifdef RTLD_GLOBAL
18221 #  define LT_DLGLOBAL           RTLD_GLOBAL
18222 #else
18223 #  ifdef DL_GLOBAL
18224 #    define LT_DLGLOBAL         DL_GLOBAL
18225 #  else
18226 #    define LT_DLGLOBAL         0
18227 #  endif
18228 #endif
18229
18230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18231    find out it does not work in some platform. */
18232 #ifndef LT_DLLAZY_OR_NOW
18233 #  ifdef RTLD_LAZY
18234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18235 #  else
18236 #    ifdef DL_LAZY
18237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18238 #    else
18239 #      ifdef RTLD_NOW
18240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18241 #      else
18242 #        ifdef DL_NOW
18243 #          define LT_DLLAZY_OR_NOW      DL_NOW
18244 #        else
18245 #          define LT_DLLAZY_OR_NOW      0
18246 #        endif
18247 #      endif
18248 #    endif
18249 #  endif
18250 #endif
18251
18252 #ifdef __cplusplus
18253 extern "C" void exit (int);
18254 #endif
18255
18256 void fnord() { int i=42;}
18257 int main ()
18258 {
18259   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260   int status = $lt_dlunknown;
18261
18262   if (self)
18263     {
18264       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18265       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18266       /* dlclose (self); */
18267     }
18268
18269     exit (status);
18270 }
18271 EOF
18272   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273   (eval $ac_link) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18277     (./conftest; exit; ) 2>/dev/null
18278     lt_status=$?
18279     case x$lt_status in
18280       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18283     esac
18284   else :
18285     # compilation failed
18286     lt_cv_dlopen_self_static=no
18287   fi
18288 fi
18289 rm -fr conftest*
18290
18291
18292 fi
18293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18295     fi
18296
18297     CPPFLAGS="$save_CPPFLAGS"
18298     LDFLAGS="$save_LDFLAGS"
18299     LIBS="$save_LIBS"
18300     ;;
18301   esac
18302
18303   case $lt_cv_dlopen_self in
18304   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305   *) enable_dlopen_self=unknown ;;
18306   esac
18307
18308   case $lt_cv_dlopen_self_static in
18309   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310   *) enable_dlopen_self_static=unknown ;;
18311   esac
18312 fi
18313
18314
18315 # The else clause should only fire when bootstrapping the
18316 # libtool distribution, otherwise you forgot to ship ltmain.sh
18317 # with your package, and you will get complaints that there are
18318 # no rules to generate ltmain.sh.
18319 if test -f "$ltmain"; then
18320   # See if we are running on zsh, and set the options which allow our commands through
18321   # without removal of \ escapes.
18322   if test -n "${ZSH_VERSION+set}" ; then
18323     setopt NO_GLOB_SUBST
18324   fi
18325   # Now quote all the things that may contain metacharacters while being
18326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18327   # variables and quote the copies for generation of the libtool script.
18328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18329     SED SHELL STRIP \
18330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332     deplibs_check_method reload_flag reload_cmds need_locks \
18333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334     lt_cv_sys_global_symbol_to_c_name_address \
18335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336     old_postinstall_cmds old_postuninstall_cmds \
18337     compiler_CXX \
18338     CC_CXX \
18339     LD_CXX \
18340     lt_prog_compiler_wl_CXX \
18341     lt_prog_compiler_pic_CXX \
18342     lt_prog_compiler_static_CXX \
18343     lt_prog_compiler_no_builtin_flag_CXX \
18344     export_dynamic_flag_spec_CXX \
18345     thread_safe_flag_spec_CXX \
18346     whole_archive_flag_spec_CXX \
18347     enable_shared_with_static_runtimes_CXX \
18348     old_archive_cmds_CXX \
18349     old_archive_from_new_cmds_CXX \
18350     predep_objects_CXX \
18351     postdep_objects_CXX \
18352     predeps_CXX \
18353     postdeps_CXX \
18354     compiler_lib_search_path_CXX \
18355     archive_cmds_CXX \
18356     archive_expsym_cmds_CXX \
18357     postinstall_cmds_CXX \
18358     postuninstall_cmds_CXX \
18359     old_archive_from_expsyms_cmds_CXX \
18360     allow_undefined_flag_CXX \
18361     no_undefined_flag_CXX \
18362     export_symbols_cmds_CXX \
18363     hardcode_libdir_flag_spec_CXX \
18364     hardcode_libdir_flag_spec_ld_CXX \
18365     hardcode_libdir_separator_CXX \
18366     hardcode_automatic_CXX \
18367     module_cmds_CXX \
18368     module_expsym_cmds_CXX \
18369     lt_cv_prog_compiler_c_o_CXX \
18370     exclude_expsyms_CXX \
18371     include_expsyms_CXX; do
18372
18373     case $var in
18374     old_archive_cmds_CXX | \
18375     old_archive_from_new_cmds_CXX | \
18376     archive_cmds_CXX | \
18377     archive_expsym_cmds_CXX | \
18378     module_cmds_CXX | \
18379     module_expsym_cmds_CXX | \
18380     old_archive_from_expsyms_cmds_CXX | \
18381     export_symbols_cmds_CXX | \
18382     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383     postinstall_cmds | postuninstall_cmds | \
18384     old_postinstall_cmds | old_postuninstall_cmds | \
18385     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386       # Double-quote double-evaled strings.
18387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18388       ;;
18389     *)
18390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18391       ;;
18392     esac
18393   done
18394
18395   case $lt_echo in
18396   *'\$0 --fallback-echo"')
18397     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18398     ;;
18399   esac
18400
18401 cfgfile="$ofile"
18402
18403   cat <<__EOF__ >> "$cfgfile"
18404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18405
18406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18407
18408 # Shell to use when invoking shell scripts.
18409 SHELL=$lt_SHELL
18410
18411 # Whether or not to build shared libraries.
18412 build_libtool_libs=$enable_shared
18413
18414 # Whether or not to build static libraries.
18415 build_old_libs=$enable_static
18416
18417 # Whether or not to add -lc for building shared libraries.
18418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18419
18420 # Whether or not to disallow shared libs when runtime libs are static
18421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18422
18423 # Whether or not to optimize for fast installation.
18424 fast_install=$enable_fast_install
18425
18426 # The host system.
18427 host_alias=$host_alias
18428 host=$host
18429
18430 # An echo program that does not interpret backslashes.
18431 echo=$lt_echo
18432
18433 # The archiver.
18434 AR=$lt_AR
18435 AR_FLAGS=$lt_AR_FLAGS
18436
18437 # A C compiler.
18438 LTCC=$lt_LTCC
18439
18440 # A language-specific compiler.
18441 CC=$lt_compiler_CXX
18442
18443 # Is the compiler the GNU C compiler?
18444 with_gcc=$GCC_CXX
18445
18446 # An ERE matcher.
18447 EGREP=$lt_EGREP
18448
18449 # The linker used to build libraries.
18450 LD=$lt_LD_CXX
18451
18452 # Whether we need hard or soft links.
18453 LN_S=$lt_LN_S
18454
18455 # A BSD-compatible nm program.
18456 NM=$lt_NM
18457
18458 # A symbol stripping program
18459 STRIP=$lt_STRIP
18460
18461 # Used to examine libraries when file_magic_cmd begins "file"
18462 MAGIC_CMD=$MAGIC_CMD
18463
18464 # Used on cygwin: DLL creation program.
18465 DLLTOOL="$DLLTOOL"
18466
18467 # Used on cygwin: object dumper.
18468 OBJDUMP="$OBJDUMP"
18469
18470 # Used on cygwin: assembler.
18471 AS="$AS"
18472
18473 # The name of the directory that contains temporary libtool files.
18474 objdir=$objdir
18475
18476 # How to create reloadable object files.
18477 reload_flag=$lt_reload_flag
18478 reload_cmds=$lt_reload_cmds
18479
18480 # How to pass a linker flag through the compiler.
18481 wl=$lt_lt_prog_compiler_wl_CXX
18482
18483 # Object file suffix (normally "o").
18484 objext="$ac_objext"
18485
18486 # Old archive suffix (normally "a").
18487 libext="$libext"
18488
18489 # Shared library suffix (normally ".so").
18490 shrext_cmds='$shrext_cmds'
18491
18492 # Executable file suffix (normally "").
18493 exeext="$exeext"
18494
18495 # Additional compiler flags for building library objects.
18496 pic_flag=$lt_lt_prog_compiler_pic_CXX
18497 pic_mode=$pic_mode
18498
18499 # What is the maximum length of a command?
18500 max_cmd_len=$lt_cv_sys_max_cmd_len
18501
18502 # Does compiler simultaneously support -c and -o options?
18503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18504
18505 # Must we lock files when doing compilation ?
18506 need_locks=$lt_need_locks
18507
18508 # Do we need the lib prefix for modules?
18509 need_lib_prefix=$need_lib_prefix
18510
18511 # Do we need a version for libraries?
18512 need_version=$need_version
18513
18514 # Whether dlopen is supported.
18515 dlopen_support=$enable_dlopen
18516
18517 # Whether dlopen of programs is supported.
18518 dlopen_self=$enable_dlopen_self
18519
18520 # Whether dlopen of statically linked programs is supported.
18521 dlopen_self_static=$enable_dlopen_self_static
18522
18523 # Compiler flag to prevent dynamic linking.
18524 link_static_flag=$lt_lt_prog_compiler_static_CXX
18525
18526 # Compiler flag to turn off builtin functions.
18527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18528
18529 # Compiler flag to allow reflexive dlopens.
18530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18531
18532 # Compiler flag to generate shared objects directly from archives.
18533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18534
18535 # Compiler flag to generate thread-safe objects.
18536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18537
18538 # Library versioning type.
18539 version_type=$version_type
18540
18541 # Format of library name prefix.
18542 libname_spec=$lt_libname_spec
18543
18544 # List of archive names.  First name is the real one, the rest are links.
18545 # The last name is the one that the linker finds with -lNAME.
18546 library_names_spec=$lt_library_names_spec
18547
18548 # The coded name of the library, if different from the real name.
18549 soname_spec=$lt_soname_spec
18550
18551 # Commands used to build and install an old-style archive.
18552 RANLIB=$lt_RANLIB
18553 old_archive_cmds=$lt_old_archive_cmds_CXX
18554 old_postinstall_cmds=$lt_old_postinstall_cmds
18555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18556
18557 # Create an old-style archive from a shared archive.
18558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18559
18560 # Create a temporary old-style archive to link instead of a shared archive.
18561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18562
18563 # Commands used to build and install a shared archive.
18564 archive_cmds=$lt_archive_cmds_CXX
18565 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18566 postinstall_cmds=$lt_postinstall_cmds
18567 postuninstall_cmds=$lt_postuninstall_cmds
18568
18569 # Commands used to build a loadable module (assumed same as above if empty)
18570 module_cmds=$lt_module_cmds_CXX
18571 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18572
18573 # Commands to strip libraries.
18574 old_striplib=$lt_old_striplib
18575 striplib=$lt_striplib
18576
18577 # Dependencies to place before the objects being linked to create a
18578 # shared library.
18579 predep_objects=$lt_predep_objects_CXX
18580
18581 # Dependencies to place after the objects being linked to create a
18582 # shared library.
18583 postdep_objects=$lt_postdep_objects_CXX
18584
18585 # Dependencies to place before the objects being linked to create a
18586 # shared library.
18587 predeps=$lt_predeps_CXX
18588
18589 # Dependencies to place after the objects being linked to create a
18590 # shared library.
18591 postdeps=$lt_postdeps_CXX
18592
18593 # The library search path used internally by the compiler when linking
18594 # a shared library.
18595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18596
18597 # Method to check whether dependent libraries are shared objects.
18598 deplibs_check_method=$lt_deplibs_check_method
18599
18600 # Command to use when deplibs_check_method == file_magic.
18601 file_magic_cmd=$lt_file_magic_cmd
18602
18603 # Flag that allows shared libraries with undefined symbols to be built.
18604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18605
18606 # Flag that forces no undefined symbols.
18607 no_undefined_flag=$lt_no_undefined_flag_CXX
18608
18609 # Commands used to finish a libtool library installation in a directory.
18610 finish_cmds=$lt_finish_cmds
18611
18612 # Same as above, but a single script fragment to be evaled but not shown.
18613 finish_eval=$lt_finish_eval
18614
18615 # Take the output of nm and produce a listing of raw symbols and C names.
18616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18617
18618 # Transform the output of nm in a proper C declaration
18619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18620
18621 # Transform the output of nm in a C name address pair
18622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18623
18624 # This is the shared library runtime path variable.
18625 runpath_var=$runpath_var
18626
18627 # This is the shared library path variable.
18628 shlibpath_var=$shlibpath_var
18629
18630 # Is shlibpath searched before the hard-coded library search path?
18631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18632
18633 # How to hardcode a shared library path into an executable.
18634 hardcode_action=$hardcode_action_CXX
18635
18636 # Whether we should hardcode library paths into libraries.
18637 hardcode_into_libs=$hardcode_into_libs
18638
18639 # Flag to hardcode \$libdir into a binary during linking.
18640 # This must work even if \$libdir does not exist.
18641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18642
18643 # If ld is used when linking, flag to hardcode \$libdir into
18644 # a binary during linking. This must work even if \$libdir does
18645 # not exist.
18646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18647
18648 # Whether we need a single -rpath flag with a separated argument.
18649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18650
18651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18652 # resulting binary.
18653 hardcode_direct=$hardcode_direct_CXX
18654
18655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18656 # resulting binary.
18657 hardcode_minus_L=$hardcode_minus_L_CXX
18658
18659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18660 # the resulting binary.
18661 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18662
18663 # Set to yes if building a shared library automatically hardcodes DIR into the library
18664 # and all subsequent libraries and executables linked against it.
18665 hardcode_automatic=$hardcode_automatic_CXX
18666
18667 # Variables whose values should be saved in libtool wrapper scripts and
18668 # restored at relink time.
18669 variables_saved_for_relink="$variables_saved_for_relink"
18670
18671 # Whether libtool must link a program against all its dependency libraries.
18672 link_all_deplibs=$link_all_deplibs_CXX
18673
18674 # Compile-time system search path for libraries
18675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676
18677 # Run-time system search path for libraries
18678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679
18680 # Fix the shell variable \$srcfile for the compiler.
18681 fix_srcfile_path="$fix_srcfile_path_CXX"
18682
18683 # Set to yes if exported symbols are required.
18684 always_export_symbols=$always_export_symbols_CXX
18685
18686 # The commands to list exported symbols.
18687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18688
18689 # The commands to extract the exported symbol list from a shared archive.
18690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692 # Symbols that should not be listed in the preloaded symbols.
18693 exclude_expsyms=$lt_exclude_expsyms_CXX
18694
18695 # Symbols that must always be exported.
18696 include_expsyms=$lt_include_expsyms_CXX
18697
18698 # ### END LIBTOOL TAG CONFIG: $tagname
18699
18700 __EOF__
18701
18702
18703 else
18704   # If there is no Makefile yet, we rely on a make rule to execute
18705   # `config.status --recheck' to rerun these tests and create the
18706   # libtool script then.
18707   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18708   if test -f "$ltmain_in"; then
18709     test -f Makefile && make "$ltmain"
18710   fi
18711 fi
18712
18713
18714 ac_ext=c
18715 ac_cpp='$CPP $CPPFLAGS'
18716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18719
18720 CC=$lt_save_CC
18721 LDCXX=$LD
18722 LD=$lt_save_LD
18723 GCC=$lt_save_GCC
18724 with_gnu_ldcxx=$with_gnu_ld
18725 with_gnu_ld=$lt_save_with_gnu_ld
18726 lt_cv_path_LDCXX=$lt_cv_path_LD
18727 lt_cv_path_LD=$lt_save_path_LD
18728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18730
18731         else
18732           tagname=""
18733         fi
18734         ;;
18735
18736       F77)
18737         if test -n "$F77" && test "X$F77" != "Xno"; then
18738
18739 ac_ext=f
18740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18743
18744
18745 archive_cmds_need_lc_F77=no
18746 allow_undefined_flag_F77=
18747 always_export_symbols_F77=no
18748 archive_expsym_cmds_F77=
18749 export_dynamic_flag_spec_F77=
18750 hardcode_direct_F77=no
18751 hardcode_libdir_flag_spec_F77=
18752 hardcode_libdir_flag_spec_ld_F77=
18753 hardcode_libdir_separator_F77=
18754 hardcode_minus_L_F77=no
18755 hardcode_automatic_F77=no
18756 module_cmds_F77=
18757 module_expsym_cmds_F77=
18758 link_all_deplibs_F77=unknown
18759 old_archive_cmds_F77=$old_archive_cmds
18760 no_undefined_flag_F77=
18761 whole_archive_flag_spec_F77=
18762 enable_shared_with_static_runtimes_F77=no
18763
18764 # Source file extension for f77 test sources.
18765 ac_ext=f
18766
18767 # Object file extension for compiled f77 test sources.
18768 objext=o
18769 objext_F77=$objext
18770
18771 # Code to be used in simple compile tests
18772 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18773
18774 # Code to be used in simple link tests
18775 lt_simple_link_test_code="      program t\n      end\n"
18776
18777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18778
18779 # If no C compiler was specified, use CC.
18780 LTCC=${LTCC-"$CC"}
18781
18782 # Allow CC to be a program name with arguments.
18783 compiler=$CC
18784
18785
18786 # Allow CC to be a program name with arguments.
18787 lt_save_CC="$CC"
18788 CC=${F77-"f77"}
18789 compiler=$CC
18790 compiler_F77=$CC
18791 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18792
18793 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18794 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18795 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18796 echo "${ECHO_T}$can_build_shared" >&6
18797
18798 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18799 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18800 test "$can_build_shared" = "no" && enable_shared=no
18801
18802 # On AIX, shared libraries and static libraries use the same namespace, and
18803 # are all built from PIC.
18804 case "$host_os" in
18805 aix3*)
18806   test "$enable_shared" = yes && enable_static=no
18807   if test -n "$RANLIB"; then
18808     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18809     postinstall_cmds='$RANLIB $lib'
18810   fi
18811   ;;
18812 aix4* | aix5*)
18813   test "$enable_shared" = yes && enable_static=no
18814   ;;
18815 esac
18816 echo "$as_me:$LINENO: result: $enable_shared" >&5
18817 echo "${ECHO_T}$enable_shared" >&6
18818
18819 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18820 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18821 # Make sure either enable_shared or enable_static is yes.
18822 test "$enable_shared" = yes || enable_static=yes
18823 echo "$as_me:$LINENO: result: $enable_static" >&5
18824 echo "${ECHO_T}$enable_static" >&6
18825
18826 test "$ld_shlibs_F77" = no && can_build_shared=no
18827
18828 GCC_F77="$G77"
18829 LD_F77="$LD"
18830
18831 lt_prog_compiler_wl_F77=
18832 lt_prog_compiler_pic_F77=
18833 lt_prog_compiler_static_F77=
18834
18835 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18837
18838   if test "$GCC" = yes; then
18839     lt_prog_compiler_wl_F77='-Wl,'
18840     lt_prog_compiler_static_F77='-static'
18841
18842     case $host_os in
18843       aix*)
18844       # All AIX code is PIC.
18845       if test "$host_cpu" = ia64; then
18846         # AIX 5 now supports IA64 processor
18847         lt_prog_compiler_static_F77='-Bstatic'
18848       fi
18849       ;;
18850
18851     amigaos*)
18852       # FIXME: we need at least 68020 code to build shared libraries, but
18853       # adding the `-m68020' flag to GCC prevents building anything better,
18854       # like `-m68040'.
18855       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18856       ;;
18857
18858     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18859       # PIC is the default for these OSes.
18860       ;;
18861
18862     mingw* | pw32* | os2*)
18863       # This hack is so that the source file can tell whether it is being
18864       # built for inclusion in a dll (and should export symbols for example).
18865       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18866       ;;
18867
18868     darwin* | rhapsody*)
18869       # PIC is the default on this platform
18870       # Common symbols not allowed in MH_DYLIB files
18871       lt_prog_compiler_pic_F77='-fno-common'
18872       ;;
18873
18874     msdosdjgpp*)
18875       # Just because we use GCC doesn't mean we suddenly get shared libraries
18876       # on systems that don't support them.
18877       lt_prog_compiler_can_build_shared_F77=no
18878       enable_shared=no
18879       ;;
18880
18881     sysv4*MP*)
18882       if test -d /usr/nec; then
18883         lt_prog_compiler_pic_F77=-Kconform_pic
18884       fi
18885       ;;
18886
18887     hpux*)
18888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18889       # not for PA HP-UX.
18890       case "$host_cpu" in
18891       hppa*64*|ia64*)
18892         # +Z the default
18893         ;;
18894       *)
18895         lt_prog_compiler_pic_F77='-fPIC'
18896         ;;
18897       esac
18898       ;;
18899
18900     *)
18901       lt_prog_compiler_pic_F77='-fPIC'
18902       ;;
18903     esac
18904   else
18905     # PORTME Check for flag to pass linker flags through the system compiler.
18906     case $host_os in
18907     aix*)
18908       lt_prog_compiler_wl_F77='-Wl,'
18909       if test "$host_cpu" = ia64; then
18910         # AIX 5 now supports IA64 processor
18911         lt_prog_compiler_static_F77='-Bstatic'
18912       else
18913         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18914       fi
18915       ;;
18916       darwin*)
18917         # PIC is the default on this platform
18918         # Common symbols not allowed in MH_DYLIB files
18919        case "$cc_basename" in
18920          xlc*)
18921          lt_prog_compiler_pic_F77='-qnocommon'
18922          lt_prog_compiler_wl_F77='-Wl,'
18923          ;;
18924        esac
18925        ;;
18926
18927     mingw* | pw32* | os2*)
18928       # This hack is so that the source file can tell whether it is being
18929       # built for inclusion in a dll (and should export symbols for example).
18930       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18931       ;;
18932
18933     hpux9* | hpux10* | hpux11*)
18934       lt_prog_compiler_wl_F77='-Wl,'
18935       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18936       # not for PA HP-UX.
18937       case "$host_cpu" in
18938       hppa*64*|ia64*)
18939         # +Z the default
18940         ;;
18941       *)
18942         lt_prog_compiler_pic_F77='+Z'
18943         ;;
18944       esac
18945       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18946       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18947       ;;
18948
18949     irix5* | irix6* | nonstopux*)
18950       lt_prog_compiler_wl_F77='-Wl,'
18951       # PIC (with -KPIC) is the default.
18952       lt_prog_compiler_static_F77='-non_shared'
18953       ;;
18954
18955     newsos6)
18956       lt_prog_compiler_pic_F77='-KPIC'
18957       lt_prog_compiler_static_F77='-Bstatic'
18958       ;;
18959
18960     linux*)
18961       case $CC in
18962       icc* | ecc*)
18963         lt_prog_compiler_wl_F77='-Wl,'
18964         lt_prog_compiler_pic_F77='-KPIC'
18965         lt_prog_compiler_static_F77='-static'
18966         ;;
18967       ccc*)
18968         lt_prog_compiler_wl_F77='-Wl,'
18969         # All Alpha code is PIC.
18970         lt_prog_compiler_static_F77='-non_shared'
18971         ;;
18972       esac
18973       ;;
18974
18975     osf3* | osf4* | osf5*)
18976       lt_prog_compiler_wl_F77='-Wl,'
18977       # All OSF/1 code is PIC.
18978       lt_prog_compiler_static_F77='-non_shared'
18979       ;;
18980
18981     sco3.2v5*)
18982       lt_prog_compiler_pic_F77='-Kpic'
18983       lt_prog_compiler_static_F77='-dn'
18984       ;;
18985
18986     solaris*)
18987       lt_prog_compiler_wl_F77='-Wl,'
18988       lt_prog_compiler_pic_F77='-KPIC'
18989       lt_prog_compiler_static_F77='-Bstatic'
18990       ;;
18991
18992     sunos4*)
18993       lt_prog_compiler_wl_F77='-Qoption ld '
18994       lt_prog_compiler_pic_F77='-PIC'
18995       lt_prog_compiler_static_F77='-Bstatic'
18996       ;;
18997
18998     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18999       lt_prog_compiler_wl_F77='-Wl,'
19000       lt_prog_compiler_pic_F77='-KPIC'
19001       lt_prog_compiler_static_F77='-Bstatic'
19002       ;;
19003
19004     sysv4*MP*)
19005       if test -d /usr/nec ;then
19006         lt_prog_compiler_pic_F77='-Kconform_pic'
19007         lt_prog_compiler_static_F77='-Bstatic'
19008       fi
19009       ;;
19010
19011     uts4*)
19012       lt_prog_compiler_pic_F77='-pic'
19013       lt_prog_compiler_static_F77='-Bstatic'
19014       ;;
19015
19016     *)
19017       lt_prog_compiler_can_build_shared_F77=no
19018       ;;
19019     esac
19020   fi
19021
19022 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19023 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19024
19025 #
19026 # Check to make sure the PIC flag actually works.
19027 #
19028 if test -n "$lt_prog_compiler_pic_F77"; then
19029
19030 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19031 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19032 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   lt_prog_compiler_pic_works_F77=no
19036   ac_outfile=conftest.$ac_objext
19037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19038    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19039    # Insert the option either (1) after the last *FLAGS variable, or
19040    # (2) before a word containing "conftest.", or (3) at the end.
19041    # Note that $ac_compile itself does not contain backslashes and begins
19042    # with a dollar sign (not a hyphen), so the echo should work correctly.
19043    # The option is referenced via a variable to avoid confusing sed.
19044    lt_compile=`echo "$ac_compile" | $SED \
19045    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19047    -e 's:$: $lt_compiler_flag:'`
19048    (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
19049    (eval "$lt_compile" 2>conftest.err)
19050    ac_status=$?
19051    cat conftest.err >&5
19052    echo "$as_me:19052: \$? = $ac_status" >&5
19053    if (exit $ac_status) && test -s "$ac_outfile"; then
19054      # The compiler can only warn and ignore the option if not recognized
19055      # So say no if there are warnings
19056      if test ! -s conftest.err; then
19057        lt_prog_compiler_pic_works_F77=yes
19058      fi
19059    fi
19060    $rm conftest*
19061
19062 fi
19063 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19064 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19065
19066 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19067     case $lt_prog_compiler_pic_F77 in
19068      "" | " "*) ;;
19069      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19070      esac
19071 else
19072     lt_prog_compiler_pic_F77=
19073      lt_prog_compiler_can_build_shared_F77=no
19074 fi
19075
19076 fi
19077 case "$host_os" in
19078   # For platforms which do not support PIC, -DPIC is meaningless:
19079   *djgpp*)
19080     lt_prog_compiler_pic_F77=
19081     ;;
19082   *)
19083     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19084     ;;
19085 esac
19086
19087 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19088 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19089 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   lt_cv_prog_compiler_c_o_F77=no
19093    $rm -r conftest 2>/dev/null
19094    mkdir conftest
19095    cd conftest
19096    mkdir out
19097    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19098
19099    lt_compiler_flag="-o out/conftest2.$ac_objext"
19100    # Insert the option either (1) after the last *FLAGS variable, or
19101    # (2) before a word containing "conftest.", or (3) at the end.
19102    # Note that $ac_compile itself does not contain backslashes and begins
19103    # with a dollar sign (not a hyphen), so the echo should work correctly.
19104    lt_compile=`echo "$ac_compile" | $SED \
19105    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19107    -e 's:$: $lt_compiler_flag:'`
19108    (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
19109    (eval "$lt_compile" 2>out/conftest.err)
19110    ac_status=$?
19111    cat out/conftest.err >&5
19112    echo "$as_me:19112: \$? = $ac_status" >&5
19113    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19114    then
19115      # The compiler can only warn and ignore the option if not recognized
19116      # So say no if there are warnings
19117      if test ! -s out/conftest.err; then
19118        lt_cv_prog_compiler_c_o_F77=yes
19119      fi
19120    fi
19121    chmod u+w .
19122    $rm conftest*
19123    # SGI C++ compiler will create directory out/ii_files/ for
19124    # template instantiation
19125    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19126    $rm out/* && rmdir out
19127    cd ..
19128    rmdir conftest
19129    $rm conftest*
19130
19131 fi
19132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19133 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19134
19135
19136 hard_links="nottested"
19137 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19138   # do not overwrite the value of need_locks provided by the user
19139   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19140 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19141   hard_links=yes
19142   $rm conftest*
19143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19144   touch conftest.a
19145   ln conftest.a conftest.b 2>&5 || hard_links=no
19146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19147   echo "$as_me:$LINENO: result: $hard_links" >&5
19148 echo "${ECHO_T}$hard_links" >&6
19149   if test "$hard_links" = no; then
19150     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19151 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19152     need_locks=warn
19153   fi
19154 else
19155   need_locks=no
19156 fi
19157
19158 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19160
19161   runpath_var=
19162   allow_undefined_flag_F77=
19163   enable_shared_with_static_runtimes_F77=no
19164   archive_cmds_F77=
19165   archive_expsym_cmds_F77=
19166   old_archive_From_new_cmds_F77=
19167   old_archive_from_expsyms_cmds_F77=
19168   export_dynamic_flag_spec_F77=
19169   whole_archive_flag_spec_F77=
19170   thread_safe_flag_spec_F77=
19171   hardcode_libdir_flag_spec_F77=
19172   hardcode_libdir_flag_spec_ld_F77=
19173   hardcode_libdir_separator_F77=
19174   hardcode_direct_F77=no
19175   hardcode_minus_L_F77=no
19176   hardcode_shlibpath_var_F77=unsupported
19177   link_all_deplibs_F77=unknown
19178   hardcode_automatic_F77=no
19179   module_cmds_F77=
19180   module_expsym_cmds_F77=
19181   always_export_symbols_F77=no
19182   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19183   # include_expsyms should be a list of space-separated symbols to be *always*
19184   # included in the symbol list
19185   include_expsyms_F77=
19186   # exclude_expsyms can be an extended regexp of symbols to exclude
19187   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19188   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19189   # as well as any symbol that contains `d'.
19190   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19191   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19192   # platforms (ab)use it in PIC code, but their linkers get confused if
19193   # the symbol is explicitly referenced.  Since portable code cannot
19194   # rely on this symbol name, it's probably fine to never include it in
19195   # preloaded symbol tables.
19196   extract_expsyms_cmds=
19197
19198   case $host_os in
19199   cygwin* | mingw* | pw32*)
19200     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19201     # When not using gcc, we currently assume that we are using
19202     # Microsoft Visual C++.
19203     if test "$GCC" != yes; then
19204       with_gnu_ld=no
19205     fi
19206     ;;
19207   openbsd*)
19208     with_gnu_ld=no
19209     ;;
19210   esac
19211
19212   ld_shlibs_F77=yes
19213   if test "$with_gnu_ld" = yes; then
19214     # If archive_cmds runs LD, not CC, wlarc should be empty
19215     wlarc='${wl}'
19216
19217     # See if GNU ld supports shared libraries.
19218     case $host_os in
19219     aix3* | aix4* | aix5*)
19220       # On AIX/PPC, the GNU linker is very broken
19221       if test "$host_cpu" != ia64; then
19222         ld_shlibs_F77=no
19223         cat <<EOF 1>&2
19224
19225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19226 *** to be unable to reliably create shared libraries on AIX.
19227 *** Therefore, libtool is disabling shared libraries support.  If you
19228 *** really care for shared libraries, you may want to modify your PATH
19229 *** so that a non-GNU linker is found, and then restart.
19230
19231 EOF
19232       fi
19233       ;;
19234
19235     amigaos*)
19236       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)'
19237       hardcode_libdir_flag_spec_F77='-L$libdir'
19238       hardcode_minus_L_F77=yes
19239
19240       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19241       # that the semantics of dynamic libraries on AmigaOS, at least up
19242       # to version 4, is to share data among multiple programs linked
19243       # with the same dynamic library.  Since this doesn't match the
19244       # behavior of shared libraries on other platforms, we can't use
19245       # them.
19246       ld_shlibs_F77=no
19247       ;;
19248
19249     beos*)
19250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19251         allow_undefined_flag_F77=unsupported
19252         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19253         # support --undefined.  This deserves some investigation.  FIXME
19254         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255       else
19256         ld_shlibs_F77=no
19257       fi
19258       ;;
19259
19260     cygwin* | mingw* | pw32*)
19261       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19262       # as there is no search path for DLLs.
19263       hardcode_libdir_flag_spec_F77='-L$libdir'
19264       allow_undefined_flag_F77=unsupported
19265       always_export_symbols_F77=no
19266       enable_shared_with_static_runtimes_F77=yes
19267       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19268
19269       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19270         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19271         # If the export-symbols file already is a .def file (1st line
19272         # is EXPORTS), use it as is; otherwise, prepend...
19273         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19274           cp $export_symbols $output_objdir/$soname.def;
19275         else
19276           echo EXPORTS > $output_objdir/$soname.def;
19277           cat $export_symbols >> $output_objdir/$soname.def;
19278         fi~
19279         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19280       else
19281         ld_shlibs=no
19282       fi
19283       ;;
19284
19285     netbsd*)
19286       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19287         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19288         wlarc=
19289       else
19290         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19292       fi
19293       ;;
19294
19295     solaris* | sysv5*)
19296       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19297         ld_shlibs_F77=no
19298         cat <<EOF 1>&2
19299
19300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301 *** create shared libraries on Solaris systems.  Therefore, libtool
19302 *** is disabling shared libraries support.  We urge you to upgrade GNU
19303 *** binutils to release 2.9.1 or newer.  Another option is to modify
19304 *** your PATH or compiler configuration so that the native linker is
19305 *** used, and then restart.
19306
19307 EOF
19308       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19311       else
19312         ld_shlibs_F77=no
19313       fi
19314       ;;
19315
19316     sunos4*)
19317       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19318       wlarc=
19319       hardcode_direct_F77=yes
19320       hardcode_shlibpath_var_F77=no
19321       ;;
19322
19323   linux*)
19324     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19325         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326         archive_cmds_F77="$tmp_archive_cmds"
19327       supports_anon_versioning=no
19328       case `$LD -v 2>/dev/null` in
19329         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19330         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19331         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19332         *\ 2.11.*) ;; # other 2.11 versions
19333         *) supports_anon_versioning=yes ;;
19334       esac
19335       if test $supports_anon_versioning = yes; then
19336         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19338 $echo "local: *; };" >> $output_objdir/$libname.ver~
19339         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19340       else
19341         archive_expsym_cmds_F77="$tmp_archive_cmds"
19342       fi
19343     else
19344       ld_shlibs_F77=no
19345     fi
19346     ;;
19347
19348     *)
19349       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19350         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352       else
19353         ld_shlibs_F77=no
19354       fi
19355       ;;
19356     esac
19357
19358     if test "$ld_shlibs_F77" = yes; then
19359       runpath_var=LD_RUN_PATH
19360       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19361       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19362       # ancient GNU ld didn't support --whole-archive et. al.
19363       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19364         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365       else
19366         whole_archive_flag_spec_F77=
19367       fi
19368     fi
19369   else
19370     # PORTME fill in a description of your system's linker (not GNU ld)
19371     case $host_os in
19372     aix3*)
19373       allow_undefined_flag_F77=unsupported
19374       always_export_symbols_F77=yes
19375       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'
19376       # Note: this linker hardcodes the directories in LIBPATH if there
19377       # are no directories specified by -L.
19378       hardcode_minus_L_F77=yes
19379       if test "$GCC" = yes && test -z "$link_static_flag"; then
19380         # Neither direct hardcoding nor static linking is supported with a
19381         # broken collect2.
19382         hardcode_direct_F77=unsupported
19383       fi
19384       ;;
19385
19386     aix4* | aix5*)
19387       if test "$host_cpu" = ia64; then
19388         # On IA64, the linker does run time linking by default, so we don't
19389         # have to do anything special.
19390         aix_use_runtimelinking=no
19391         exp_sym_flag='-Bexport'
19392         no_entry_flag=""
19393       else
19394         # If we're using GNU nm, then we don't want the "-C" option.
19395         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19396         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19397           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'
19398         else
19399           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'
19400         fi
19401         aix_use_runtimelinking=no
19402
19403         # Test if we are trying to use run time linking or normal
19404         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19405         # need to do runtime linking.
19406         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19407           for ld_flag in $LDFLAGS; do
19408           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19409             aix_use_runtimelinking=yes
19410             break
19411           fi
19412           done
19413         esac
19414
19415         exp_sym_flag='-bexport'
19416         no_entry_flag='-bnoentry'
19417       fi
19418
19419       # When large executables or shared objects are built, AIX ld can
19420       # have problems creating the table of contents.  If linking a library
19421       # or program results in "error TOC overflow" add -mminimal-toc to
19422       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19423       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19424
19425       archive_cmds_F77=''
19426       hardcode_direct_F77=yes
19427       hardcode_libdir_separator_F77=':'
19428       link_all_deplibs_F77=yes
19429
19430       if test "$GCC" = yes; then
19431         case $host_os in aix4.012|aix4.012.*)
19432         # We only want to do this on AIX 4.2 and lower, the check
19433         # below for broken collect2 doesn't work under 4.3+
19434           collect2name=`${CC} -print-prog-name=collect2`
19435           if test -f "$collect2name" && \
19436            strings "$collect2name" | grep resolve_lib_name >/dev/null
19437           then
19438           # We have reworked collect2
19439           hardcode_direct_F77=yes
19440           else
19441           # We have old collect2
19442           hardcode_direct_F77=unsupported
19443           # It fails to find uninstalled libraries when the uninstalled
19444           # path is not listed in the libpath.  Setting hardcode_minus_L
19445           # to unsupported forces relinking
19446           hardcode_minus_L_F77=yes
19447           hardcode_libdir_flag_spec_F77='-L$libdir'
19448           hardcode_libdir_separator_F77=
19449           fi
19450         esac
19451         shared_flag='-shared'
19452       else
19453         # not using gcc
19454         if test "$host_cpu" = ia64; then
19455         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19456         # chokes on -Wl,-G. The following line is correct:
19457           shared_flag='-G'
19458         else
19459         if test "$aix_use_runtimelinking" = yes; then
19460             shared_flag='${wl}-G'
19461           else
19462             shared_flag='${wl}-bM:SRE'
19463         fi
19464         fi
19465       fi
19466
19467       # It seems that -bexpall does not export symbols beginning with
19468       # underscore (_), so it is better to generate a list of symbols to export.
19469       always_export_symbols_F77=yes
19470       if test "$aix_use_runtimelinking" = yes; then
19471         # Warning - without using the other runtime loading flags (-brtl),
19472         # -berok will link without error, but may produce a broken library.
19473         allow_undefined_flag_F77='-berok'
19474        # Determine the default libpath from the value encoded in an empty executable.
19475        cat >conftest.$ac_ext <<_ACEOF
19476       program main
19477
19478       end
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482   (eval $ac_link) 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } &&
19489          { ac_try='test -z "$ac_f77_werror_flag"
19490                          || test ! -s conftest.err'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; } &&
19496          { ac_try='test -s conftest$ac_exeext'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502
19503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19504 }'`
19505 # Check for a 64-bit object if we didn't find anything.
19506 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; }
19507 }'`; fi
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 fi
19513 rm -f conftest.err conftest.$ac_objext \
19514       conftest$ac_exeext conftest.$ac_ext
19515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19516
19517        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19518         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"
19519        else
19520         if test "$host_cpu" = ia64; then
19521           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19522           allow_undefined_flag_F77="-z nodefs"
19523           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"
19524         else
19525          # Determine the default libpath from the value encoded in an empty executable.
19526          cat >conftest.$ac_ext <<_ACEOF
19527       program main
19528
19529       end
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533   (eval $ac_link) 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } &&
19540          { ac_try='test -z "$ac_f77_werror_flag"
19541                          || test ! -s conftest.err'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; } &&
19547          { ac_try='test -s conftest$ac_exeext'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; }; then
19553
19554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19555 }'`
19556 # Check for a 64-bit object if we didn't find anything.
19557 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; }
19558 }'`; fi
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 fi
19564 rm -f conftest.err conftest.$ac_objext \
19565       conftest$ac_exeext conftest.$ac_ext
19566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19567
19568          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19569           # Warning - without using the other run time loading flags,
19570           # -berok will link without error, but may produce a broken library.
19571           no_undefined_flag_F77=' ${wl}-bernotok'
19572           allow_undefined_flag_F77=' ${wl}-berok'
19573           # -bexpall does not export symbols beginning with underscore (_)
19574           always_export_symbols_F77=yes
19575           # Exported symbols can be pulled into shared objects from archives
19576           whole_archive_flag_spec_F77=' '
19577           archive_cmds_need_lc_F77=yes
19578           # This is similar to how AIX traditionally builds it's shared libraries.
19579           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'
19580         fi
19581       fi
19582       ;;
19583
19584     amigaos*)
19585       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)'
19586       hardcode_libdir_flag_spec_F77='-L$libdir'
19587       hardcode_minus_L_F77=yes
19588       # see comment about different semantics on the GNU ld section
19589       ld_shlibs_F77=no
19590       ;;
19591
19592     bsdi[45]*)
19593       export_dynamic_flag_spec_F77=-rdynamic
19594       ;;
19595
19596     cygwin* | mingw* | pw32*)
19597       # When not using gcc, we currently assume that we are using
19598       # Microsoft Visual C++.
19599       # hardcode_libdir_flag_spec is actually meaningless, as there is
19600       # no search path for DLLs.
19601       hardcode_libdir_flag_spec_F77=' '
19602       allow_undefined_flag_F77=unsupported
19603       # Tell ltmain to make .lib files, not .a files.
19604       libext=lib
19605       # Tell ltmain to make .dll files, not .so files.
19606       shrext_cmds=".dll"
19607       # FIXME: Setting linknames here is a bad hack.
19608       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19609       # The linker will automatically build a .lib file if we build a DLL.
19610       old_archive_From_new_cmds_F77='true'
19611       # FIXME: Should let the user specify the lib program.
19612       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19613       fix_srcfile_path='`cygpath -w "$srcfile"`'
19614       enable_shared_with_static_runtimes_F77=yes
19615       ;;
19616
19617     darwin* | rhapsody*)
19618       case "$host_os" in
19619         rhapsody* | darwin1.[012])
19620          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19621          ;;
19622        *) # Darwin 1.3 on
19623          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19625          else
19626            case ${MACOSX_DEPLOYMENT_TARGET} in
19627              10.[012])
19628                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19629                ;;
19630              10.*)
19631                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19632                ;;
19633            esac
19634          fi
19635          ;;
19636       esac
19637       archive_cmds_need_lc_F77=no
19638       hardcode_direct_F77=no
19639       hardcode_automatic_F77=yes
19640       hardcode_shlibpath_var_F77=unsupported
19641       whole_archive_flag_spec_F77=''
19642       link_all_deplibs_F77=yes
19643     if test "$GCC" = yes ; then
19644         output_verbose_link_cmd='echo'
19645         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19646       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19647       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19648       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}'
19649       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}'
19650     else
19651       case "$cc_basename" in
19652         xlc*)
19653          output_verbose_link_cmd='echo'
19654          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19655          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19657          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}'
19658           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}'
19659           ;;
19660        *)
19661          ld_shlibs_F77=no
19662           ;;
19663       esac
19664     fi
19665       ;;
19666
19667     dgux*)
19668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669       hardcode_libdir_flag_spec_F77='-L$libdir'
19670       hardcode_shlibpath_var_F77=no
19671       ;;
19672
19673     freebsd1*)
19674       ld_shlibs_F77=no
19675       ;;
19676
19677     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678     # support.  Future versions do this automatically, but an explicit c++rt0.o
19679     # does not break anything, and helps significantly (at the cost of a little
19680     # extra space).
19681     freebsd2.2*)
19682       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683       hardcode_libdir_flag_spec_F77='-R$libdir'
19684       hardcode_direct_F77=yes
19685       hardcode_shlibpath_var_F77=no
19686       ;;
19687
19688     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689     freebsd2*)
19690       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691       hardcode_direct_F77=yes
19692       hardcode_minus_L_F77=yes
19693       hardcode_shlibpath_var_F77=no
19694       ;;
19695
19696     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19697     freebsd* | kfreebsd*-gnu)
19698       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699       hardcode_libdir_flag_spec_F77='-R$libdir'
19700       hardcode_direct_F77=yes
19701       hardcode_shlibpath_var_F77=no
19702       ;;
19703
19704     hpux9*)
19705       if test "$GCC" = yes; then
19706         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'
19707       else
19708         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'
19709       fi
19710       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19711       hardcode_libdir_separator_F77=:
19712       hardcode_direct_F77=yes
19713
19714       # hardcode_minus_L: Not really in the search PATH,
19715       # but as the default location of the library.
19716       hardcode_minus_L_F77=yes
19717       export_dynamic_flag_spec_F77='${wl}-E'
19718       ;;
19719
19720     hpux10* | hpux11*)
19721       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722         case "$host_cpu" in
19723         hppa*64*|ia64*)
19724           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19725           ;;
19726         *)
19727           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19728           ;;
19729         esac
19730       else
19731         case "$host_cpu" in
19732         hppa*64*|ia64*)
19733           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19734           ;;
19735         *)
19736           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19737           ;;
19738         esac
19739       fi
19740       if test "$with_gnu_ld" = no; then
19741         case "$host_cpu" in
19742         hppa*64*)
19743           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19745           hardcode_libdir_separator_F77=:
19746           hardcode_direct_F77=no
19747           hardcode_shlibpath_var_F77=no
19748           ;;
19749         ia64*)
19750           hardcode_libdir_flag_spec_F77='-L$libdir'
19751           hardcode_direct_F77=no
19752           hardcode_shlibpath_var_F77=no
19753
19754           # hardcode_minus_L: Not really in the search PATH,
19755           # but as the default location of the library.
19756           hardcode_minus_L_F77=yes
19757           ;;
19758         *)
19759           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19760           hardcode_libdir_separator_F77=:
19761           hardcode_direct_F77=yes
19762           export_dynamic_flag_spec_F77='${wl}-E'
19763
19764           # hardcode_minus_L: Not really in the search PATH,
19765           # but as the default location of the library.
19766           hardcode_minus_L_F77=yes
19767           ;;
19768         esac
19769       fi
19770       ;;
19771
19772     irix5* | irix6* | nonstopux*)
19773       if test "$GCC" = yes; then
19774         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'
19775       else
19776         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'
19777         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19778       fi
19779       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19780       hardcode_libdir_separator_F77=:
19781       link_all_deplibs_F77=yes
19782       ;;
19783
19784     netbsd*)
19785       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19786         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19787       else
19788         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19789       fi
19790       hardcode_libdir_flag_spec_F77='-R$libdir'
19791       hardcode_direct_F77=yes
19792       hardcode_shlibpath_var_F77=no
19793       ;;
19794
19795     newsos6)
19796       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797       hardcode_direct_F77=yes
19798       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19799       hardcode_libdir_separator_F77=:
19800       hardcode_shlibpath_var_F77=no
19801       ;;
19802
19803     openbsd*)
19804       hardcode_direct_F77=yes
19805       hardcode_shlibpath_var_F77=no
19806       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19807         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19808         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19809         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19810         export_dynamic_flag_spec_F77='${wl}-E'
19811       else
19812        case $host_os in
19813          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19814            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19815            hardcode_libdir_flag_spec_F77='-R$libdir'
19816            ;;
19817          *)
19818            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19819            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19820            ;;
19821        esac
19822       fi
19823       ;;
19824
19825     os2*)
19826       hardcode_libdir_flag_spec_F77='-L$libdir'
19827       hardcode_minus_L_F77=yes
19828       allow_undefined_flag_F77=unsupported
19829       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'
19830       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19831       ;;
19832
19833     osf3*)
19834       if test "$GCC" = yes; then
19835         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19836         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'
19837       else
19838         allow_undefined_flag_F77=' -expect_unresolved \*'
19839         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'
19840       fi
19841       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842       hardcode_libdir_separator_F77=:
19843       ;;
19844
19845     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19846       if test "$GCC" = yes; then
19847         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19848         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'
19849         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19850       else
19851         allow_undefined_flag_F77=' -expect_unresolved \*'
19852         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'
19853         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~
19854         $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'
19855
19856         # Both c and cxx compiler support -rpath directly
19857         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19858       fi
19859       hardcode_libdir_separator_F77=:
19860       ;;
19861
19862     sco3.2v5*)
19863       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19864       hardcode_shlibpath_var_F77=no
19865       export_dynamic_flag_spec_F77='${wl}-Bexport'
19866       runpath_var=LD_RUN_PATH
19867       hardcode_runpath_var=yes
19868       ;;
19869
19870     solaris*)
19871       no_undefined_flag_F77=' -z text'
19872       if test "$GCC" = yes; then
19873         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19874         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19876       else
19877         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19878         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19879         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19880       fi
19881       hardcode_libdir_flag_spec_F77='-R$libdir'
19882       hardcode_shlibpath_var_F77=no
19883       case $host_os in
19884       solaris2.[0-5] | solaris2.[0-5].*) ;;
19885       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19886         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19887       esac
19888       link_all_deplibs_F77=yes
19889       ;;
19890
19891     sunos4*)
19892       if test "x$host_vendor" = xsequent; then
19893         # Use $CC to link under sequent, because it throws in some extra .o
19894         # files that make .init and .fini sections work.
19895         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896       else
19897         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19898       fi
19899       hardcode_libdir_flag_spec_F77='-L$libdir'
19900       hardcode_direct_F77=yes
19901       hardcode_minus_L_F77=yes
19902       hardcode_shlibpath_var_F77=no
19903       ;;
19904
19905     sysv4)
19906       case $host_vendor in
19907         sni)
19908           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909           hardcode_direct_F77=yes # is this really true???
19910         ;;
19911         siemens)
19912           ## LD is ld it makes a PLAMLIB
19913           ## CC just makes a GrossModule.
19914           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915           reload_cmds_F77='$CC -r -o $output$reload_objs'
19916           hardcode_direct_F77=no
19917         ;;
19918         motorola)
19919           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19921         ;;
19922       esac
19923       runpath_var='LD_RUN_PATH'
19924       hardcode_shlibpath_var_F77=no
19925       ;;
19926
19927     sysv4.3*)
19928       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929       hardcode_shlibpath_var_F77=no
19930       export_dynamic_flag_spec_F77='-Bexport'
19931       ;;
19932
19933     sysv4*MP*)
19934       if test -d /usr/nec; then
19935         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936         hardcode_shlibpath_var_F77=no
19937         runpath_var=LD_RUN_PATH
19938         hardcode_runpath_var=yes
19939         ld_shlibs_F77=yes
19940       fi
19941       ;;
19942
19943     sysv4.2uw2*)
19944       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19945       hardcode_direct_F77=yes
19946       hardcode_minus_L_F77=no
19947       hardcode_shlibpath_var_F77=no
19948       hardcode_runpath_var=yes
19949       runpath_var=LD_RUN_PATH
19950       ;;
19951
19952    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19953       no_undefined_flag_F77='${wl}-z ${wl}text'
19954       if test "$GCC" = yes; then
19955         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956       else
19957         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19958       fi
19959       runpath_var='LD_RUN_PATH'
19960       hardcode_shlibpath_var_F77=no
19961       ;;
19962
19963     sysv5*)
19964       no_undefined_flag_F77=' -z text'
19965       # $CC -shared without GNU ld will not create a library from C++
19966       # object files and a static libstdc++, better avoid it by now
19967       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19970       hardcode_libdir_flag_spec_F77=
19971       hardcode_shlibpath_var_F77=no
19972       runpath_var='LD_RUN_PATH'
19973       ;;
19974
19975     uts4*)
19976       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19977       hardcode_libdir_flag_spec_F77='-L$libdir'
19978       hardcode_shlibpath_var_F77=no
19979       ;;
19980
19981     *)
19982       ld_shlibs_F77=no
19983       ;;
19984     esac
19985   fi
19986
19987 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19988 echo "${ECHO_T}$ld_shlibs_F77" >&6
19989 test "$ld_shlibs_F77" = no && can_build_shared=no
19990
19991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19992 if test "$GCC" = yes; then
19993   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19994 fi
19995
19996 #
19997 # Do we need to explicitly link libc?
19998 #
19999 case "x$archive_cmds_need_lc_F77" in
20000 x|xyes)
20001   # Assume -lc should be added
20002   archive_cmds_need_lc_F77=yes
20003
20004   if test "$enable_shared" = yes && test "$GCC" = yes; then
20005     case $archive_cmds_F77 in
20006     *'~'*)
20007       # FIXME: we may have to deal with multi-command sequences.
20008       ;;
20009     '$CC '*)
20010       # Test whether the compiler implicitly links with -lc since on some
20011       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20012       # to ld, don't add -lc before -lgcc.
20013       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20014 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20015       $rm conftest*
20016       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20017
20018       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019   (eval $ac_compile) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } 2>conftest.err; then
20023         soname=conftest
20024         lib=conftest
20025         libobjs=conftest.$ac_objext
20026         deplibs=
20027         wl=$lt_prog_compiler_wl_F77
20028         compiler_flags=-v
20029         linker_flags=-v
20030         verstring=
20031         output_objdir=.
20032         libname=conftest
20033         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20034         allow_undefined_flag_F77=
20035         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20036   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }
20040         then
20041           archive_cmds_need_lc_F77=no
20042         else
20043           archive_cmds_need_lc_F77=yes
20044         fi
20045         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20046       else
20047         cat conftest.err 1>&5
20048       fi
20049       $rm conftest*
20050       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20051 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20052       ;;
20053     esac
20054   fi
20055   ;;
20056 esac
20057
20058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20060 library_names_spec=
20061 libname_spec='lib$name'
20062 soname_spec=
20063 shrext_cmds=".so"
20064 postinstall_cmds=
20065 postuninstall_cmds=
20066 finish_cmds=
20067 finish_eval=
20068 shlibpath_var=
20069 shlibpath_overrides_runpath=unknown
20070 version_type=none
20071 dynamic_linker="$host_os ld.so"
20072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20073 if test "$GCC" = yes; then
20074   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20075   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20076     # if the path contains ";" then we assume it to be the separator
20077     # otherwise default to the standard path separator (i.e. ":") - it is
20078     # assumed that no part of a normal pathname contains ";" but that should
20079     # okay in the real world where ";" in dirpaths is itself problematic.
20080     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20081   else
20082     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20083   fi
20084 else
20085   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20086 fi
20087 need_lib_prefix=unknown
20088 hardcode_into_libs=no
20089
20090 # when you set need_version to no, make sure it does not cause -set_version
20091 # flags to be left without arguments
20092 need_version=unknown
20093
20094 case $host_os in
20095 aix3*)
20096   version_type=linux
20097   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098   shlibpath_var=LIBPATH
20099
20100   # AIX 3 has no versioning support, so we append a major version to the name.
20101   soname_spec='${libname}${release}${shared_ext}$major'
20102   ;;
20103
20104 aix4* | aix5*)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   hardcode_into_libs=yes
20109   if test "$host_cpu" = ia64; then
20110     # AIX 5 supports IA64
20111     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112     shlibpath_var=LD_LIBRARY_PATH
20113   else
20114     # With GCC up to 2.95.x, collect2 would create an import file
20115     # for dependence libraries.  The import file would start with
20116     # the line `#! .'.  This would cause the generated library to
20117     # depend on `.', always an invalid library.  This was fixed in
20118     # development snapshots of GCC prior to 3.0.
20119     case $host_os in
20120       aix4 | aix4.[01] | aix4.[01].*)
20121       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122            echo ' yes '
20123            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20124         :
20125       else
20126         can_build_shared=no
20127       fi
20128       ;;
20129     esac
20130     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131     # soname into executable. Probably we can add versioning support to
20132     # collect2, so additional links can be useful in future.
20133     if test "$aix_use_runtimelinking" = yes; then
20134       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135       # instead of lib<name>.a to let people know that these are not
20136       # typical AIX shared libraries.
20137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138     else
20139       # We preserve .a as extension for shared libraries through AIX4.2
20140       # and later when we are not doing run time linking.
20141       library_names_spec='${libname}${release}.a $libname.a'
20142       soname_spec='${libname}${release}${shared_ext}$major'
20143     fi
20144     shlibpath_var=LIBPATH
20145   fi
20146   ;;
20147
20148 amigaos*)
20149   library_names_spec='$libname.ixlibrary $libname.a'
20150   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20151   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'
20152   ;;
20153
20154 beos*)
20155   library_names_spec='${libname}${shared_ext}'
20156   dynamic_linker="$host_os ld.so"
20157   shlibpath_var=LIBRARY_PATH
20158   ;;
20159
20160 bsdi[45]*)
20161   version_type=linux
20162   need_version=no
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164   soname_spec='${libname}${release}${shared_ext}$major'
20165   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166   shlibpath_var=LD_LIBRARY_PATH
20167   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169   # the default ld.so.conf also contains /usr/contrib/lib and
20170   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171   # libtool to hard-code these into programs
20172   ;;
20173
20174 cygwin* | mingw* | pw32*)
20175   version_type=windows
20176   shrext_cmds=".dll"
20177   need_version=no
20178   need_lib_prefix=no
20179
20180   case $GCC,$host_os in
20181   yes,cygwin* | yes,mingw* | yes,pw32*)
20182     library_names_spec='$libname.dll.a'
20183     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20184     postinstall_cmds='base_file=`basename \${file}`~
20185       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186       dldir=$destdir/`dirname \$dlpath`~
20187       test -d \$dldir || mkdir -p \$dldir~
20188       $install_prog $dir/$dlname \$dldir/$dlname'
20189     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20190       dlpath=$dir/\$dldll~
20191        $rm \$dlpath'
20192     shlibpath_overrides_runpath=yes
20193
20194     case $host_os in
20195     cygwin*)
20196       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20197       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20199       ;;
20200     mingw*)
20201       # MinGW DLLs use traditional 'lib' prefix
20202       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20204       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20205         # It is most probably a Windows format PATH printed by
20206         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20207         # path with ; separators, and with drive letters. We can handle the
20208         # drive letters (cygwin fileutils understands them), so leave them,
20209         # especially as we might pass files found there to a mingw objdump,
20210         # which wouldn't understand a cygwinified path. Ahh.
20211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20212       else
20213         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20214       fi
20215       ;;
20216     pw32*)
20217       # pw32 DLLs use 'pw' prefix rather than 'lib'
20218       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20219       ;;
20220     esac
20221     ;;
20222
20223   *)
20224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20225     ;;
20226   esac
20227   dynamic_linker='Win32 ld.exe'
20228   # FIXME: first we should search . and the directory the executable is in
20229   shlibpath_var=PATH
20230   ;;
20231
20232 darwin* | rhapsody*)
20233   dynamic_linker="$host_os dyld"
20234   version_type=darwin
20235   need_lib_prefix=no
20236   need_version=no
20237   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20238   soname_spec='${libname}${release}${major}$shared_ext'
20239   shlibpath_overrides_runpath=yes
20240   shlibpath_var=DYLD_LIBRARY_PATH
20241   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20242   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20243   if test "$GCC" = yes; then
20244     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"`
20245   else
20246     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20247   fi
20248   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249   ;;
20250
20251 dgux*)
20252   version_type=linux
20253   need_lib_prefix=no
20254   need_version=no
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   ;;
20259
20260 freebsd1*)
20261   dynamic_linker=no
20262   ;;
20263
20264 kfreebsd*-gnu)
20265   version_type=linux
20266   need_lib_prefix=no
20267   need_version=no
20268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269   soname_spec='${libname}${release}${shared_ext}$major'
20270   shlibpath_var=LD_LIBRARY_PATH
20271   shlibpath_overrides_runpath=no
20272   hardcode_into_libs=yes
20273   dynamic_linker='GNU ld.so'
20274   ;;
20275
20276 freebsd*)
20277   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20278   version_type=freebsd-$objformat
20279   case $version_type in
20280     freebsd-elf*)
20281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282       need_version=no
20283       need_lib_prefix=no
20284       ;;
20285     freebsd-*)
20286       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20287       need_version=yes
20288       ;;
20289   esac
20290   shlibpath_var=LD_LIBRARY_PATH
20291   case $host_os in
20292   freebsd2*)
20293     shlibpath_overrides_runpath=yes
20294     ;;
20295   freebsd3.01* | freebsdelf3.01*)
20296     shlibpath_overrides_runpath=yes
20297     hardcode_into_libs=yes
20298     ;;
20299   *) # from 3.2 on
20300     shlibpath_overrides_runpath=no
20301     hardcode_into_libs=yes
20302     ;;
20303   esac
20304   ;;
20305
20306 gnu*)
20307   version_type=linux
20308   need_lib_prefix=no
20309   need_version=no
20310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20311   soname_spec='${libname}${release}${shared_ext}$major'
20312   shlibpath_var=LD_LIBRARY_PATH
20313   hardcode_into_libs=yes
20314   ;;
20315
20316 hpux9* | hpux10* | hpux11*)
20317   # Give a soname corresponding to the major version so that dld.sl refuses to
20318   # link against other versions.
20319   version_type=sunos
20320   need_lib_prefix=no
20321   need_version=no
20322   case "$host_cpu" in
20323   ia64*)
20324     shrext_cmds='.so'
20325     hardcode_into_libs=yes
20326     dynamic_linker="$host_os dld.so"
20327     shlibpath_var=LD_LIBRARY_PATH
20328     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330     soname_spec='${libname}${release}${shared_ext}$major'
20331     if test "X$HPUX_IA64_MODE" = X32; then
20332       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20333     else
20334       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20335     fi
20336     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20337     ;;
20338    hppa*64*)
20339      shrext_cmds='.sl'
20340      hardcode_into_libs=yes
20341      dynamic_linker="$host_os dld.sl"
20342      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20343      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20344      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345      soname_spec='${libname}${release}${shared_ext}$major'
20346      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20347      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20348      ;;
20349    *)
20350     shrext_cmds='.sl'
20351     dynamic_linker="$host_os dld.sl"
20352     shlibpath_var=SHLIB_PATH
20353     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355     soname_spec='${libname}${release}${shared_ext}$major'
20356     ;;
20357   esac
20358   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20359   postinstall_cmds='chmod 555 $lib'
20360   ;;
20361
20362 irix5* | irix6* | nonstopux*)
20363   case $host_os in
20364     nonstopux*) version_type=nonstopux ;;
20365     *)
20366         if test "$lt_cv_prog_gnu_ld" = yes; then
20367                 version_type=linux
20368         else
20369                 version_type=irix
20370         fi ;;
20371   esac
20372   need_lib_prefix=no
20373   need_version=no
20374   soname_spec='${libname}${release}${shared_ext}$major'
20375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20376   case $host_os in
20377   irix5* | nonstopux*)
20378     libsuff= shlibsuff=
20379     ;;
20380   *)
20381     case $LD in # libtool.m4 will add one of these switches to LD
20382     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20383       libsuff= shlibsuff= libmagic=32-bit;;
20384     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20385       libsuff=32 shlibsuff=N32 libmagic=N32;;
20386     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20387       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20388     *) libsuff= shlibsuff= libmagic=never-match;;
20389     esac
20390     ;;
20391   esac
20392   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20393   shlibpath_overrides_runpath=no
20394   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20395   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20396   hardcode_into_libs=yes
20397   ;;
20398
20399 # No shared lib support for Linux oldld, aout, or coff.
20400 linux*oldld* | linux*aout* | linux*coff*)
20401   dynamic_linker=no
20402   ;;
20403
20404 # This must be Linux ELF.
20405 linux*)
20406   version_type=linux
20407   need_lib_prefix=no
20408   need_version=no
20409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410   soname_spec='${libname}${release}${shared_ext}$major'
20411   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20412   shlibpath_var=LD_LIBRARY_PATH
20413   shlibpath_overrides_runpath=no
20414   # This implies no fast_install, which is unacceptable.
20415   # Some rework will be needed to allow for fast_install
20416   # before this can be enabled.
20417   hardcode_into_libs=yes
20418
20419   # Append ld.so.conf contents to the search path
20420   if test -f /etc/ld.so.conf; then
20421     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20422     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20423   fi
20424
20425   # We used to test for /lib/ld.so.1 and disable shared libraries on
20426   # powerpc, because MkLinux only supported shared libraries with the
20427   # GNU dynamic linker.  Since this was broken with cross compilers,
20428   # most powerpc-linux boxes support dynamic linking these days and
20429   # people can always --disable-shared, the test was removed, and we
20430   # assume the GNU/Linux dynamic linker is in use.
20431   dynamic_linker='GNU/Linux ld.so'
20432   ;;
20433
20434 knetbsd*-gnu)
20435   version_type=linux
20436   need_lib_prefix=no
20437   need_version=no
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439   soname_spec='${libname}${release}${shared_ext}$major'
20440   shlibpath_var=LD_LIBRARY_PATH
20441   shlibpath_overrides_runpath=no
20442   hardcode_into_libs=yes
20443   dynamic_linker='GNU ld.so'
20444   ;;
20445
20446 netbsd*)
20447   version_type=sunos
20448   need_lib_prefix=no
20449   need_version=no
20450   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453     dynamic_linker='NetBSD (a.out) ld.so'
20454   else
20455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20456     soname_spec='${libname}${release}${shared_ext}$major'
20457     dynamic_linker='NetBSD ld.elf_so'
20458   fi
20459   shlibpath_var=LD_LIBRARY_PATH
20460   shlibpath_overrides_runpath=yes
20461   hardcode_into_libs=yes
20462   ;;
20463
20464 newsos6)
20465   version_type=linux
20466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467   shlibpath_var=LD_LIBRARY_PATH
20468   shlibpath_overrides_runpath=yes
20469   ;;
20470
20471 nto-qnx*)
20472   version_type=linux
20473   need_lib_prefix=no
20474   need_version=no
20475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476   soname_spec='${libname}${release}${shared_ext}$major'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   ;;
20480
20481 openbsd*)
20482   version_type=sunos
20483   need_lib_prefix=no
20484   need_version=no
20485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20487   shlibpath_var=LD_LIBRARY_PATH
20488   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20489     case $host_os in
20490       openbsd2.[89] | openbsd2.[89].*)
20491         shlibpath_overrides_runpath=no
20492         ;;
20493       *)
20494         shlibpath_overrides_runpath=yes
20495         ;;
20496       esac
20497   else
20498     shlibpath_overrides_runpath=yes
20499   fi
20500   ;;
20501
20502 os2*)
20503   libname_spec='$name'
20504   shrext_cmds=".dll"
20505   need_lib_prefix=no
20506   library_names_spec='$libname${shared_ext} $libname.a'
20507   dynamic_linker='OS/2 ld.exe'
20508   shlibpath_var=LIBPATH
20509   ;;
20510
20511 osf3* | osf4* | osf5*)
20512   version_type=osf
20513   need_lib_prefix=no
20514   need_version=no
20515   soname_spec='${libname}${release}${shared_ext}$major'
20516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517   shlibpath_var=LD_LIBRARY_PATH
20518   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20519   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20520   ;;
20521
20522 sco3.2v5*)
20523   version_type=osf
20524   soname_spec='${libname}${release}${shared_ext}$major'
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526   shlibpath_var=LD_LIBRARY_PATH
20527   ;;
20528
20529 solaris*)
20530   version_type=linux
20531   need_lib_prefix=no
20532   need_version=no
20533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534   soname_spec='${libname}${release}${shared_ext}$major'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   shlibpath_overrides_runpath=yes
20537   hardcode_into_libs=yes
20538   # ldd complains unless libraries are executable
20539   postinstall_cmds='chmod +x $lib'
20540   ;;
20541
20542 sunos4*)
20543   version_type=sunos
20544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546   shlibpath_var=LD_LIBRARY_PATH
20547   shlibpath_overrides_runpath=yes
20548   if test "$with_gnu_ld" = yes; then
20549     need_lib_prefix=no
20550   fi
20551   need_version=yes
20552   ;;
20553
20554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20555   version_type=linux
20556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557   soname_spec='${libname}${release}${shared_ext}$major'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   case $host_vendor in
20560     sni)
20561       shlibpath_overrides_runpath=no
20562       need_lib_prefix=no
20563       export_dynamic_flag_spec='${wl}-Blargedynsym'
20564       runpath_var=LD_RUN_PATH
20565       ;;
20566     siemens)
20567       need_lib_prefix=no
20568       ;;
20569     motorola)
20570       need_lib_prefix=no
20571       need_version=no
20572       shlibpath_overrides_runpath=no
20573       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574       ;;
20575   esac
20576   ;;
20577
20578 sysv4*MP*)
20579   if test -d /usr/nec ;then
20580     version_type=linux
20581     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582     soname_spec='$libname${shared_ext}.$major'
20583     shlibpath_var=LD_LIBRARY_PATH
20584   fi
20585   ;;
20586
20587 uts4*)
20588   version_type=linux
20589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590   soname_spec='${libname}${release}${shared_ext}$major'
20591   shlibpath_var=LD_LIBRARY_PATH
20592   ;;
20593
20594 *)
20595   dynamic_linker=no
20596   ;;
20597 esac
20598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20599 echo "${ECHO_T}$dynamic_linker" >&6
20600 test "$dynamic_linker" = no && can_build_shared=no
20601
20602 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20603 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20604 hardcode_action_F77=
20605 if test -n "$hardcode_libdir_flag_spec_F77" || \
20606    test -n "$runpath_var_F77" || \
20607    test "X$hardcode_automatic_F77" = "Xyes" ; then
20608
20609   # We can hardcode non-existant directories.
20610   if test "$hardcode_direct_F77" != no &&
20611      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20612      # have to relink, otherwise we might link with an installed library
20613      # when we should be linking with a yet-to-be-installed one
20614      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20615      test "$hardcode_minus_L_F77" != no; then
20616     # Linking always hardcodes the temporary library directory.
20617     hardcode_action_F77=relink
20618   else
20619     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20620     hardcode_action_F77=immediate
20621   fi
20622 else
20623   # We cannot hardcode anything, or else we can only hardcode existing
20624   # directories.
20625   hardcode_action_F77=unsupported
20626 fi
20627 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20628 echo "${ECHO_T}$hardcode_action_F77" >&6
20629
20630 if test "$hardcode_action_F77" = relink; then
20631   # Fast installation is not supported
20632   enable_fast_install=no
20633 elif test "$shlibpath_overrides_runpath" = yes ||
20634      test "$enable_shared" = no; then
20635   # Fast installation is not necessary
20636   enable_fast_install=needless
20637 fi
20638
20639 striplib=
20640 old_striplib=
20641 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20642 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20643 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20644   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20645   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20646   echo "$as_me:$LINENO: result: yes" >&5
20647 echo "${ECHO_T}yes" >&6
20648 else
20649 # FIXME - insert some real tests, host_os isn't really good enough
20650   case $host_os in
20651    darwin*)
20652        if test -n "$STRIP" ; then
20653          striplib="$STRIP -x"
20654          echo "$as_me:$LINENO: result: yes" >&5
20655 echo "${ECHO_T}yes" >&6
20656        else
20657   echo "$as_me:$LINENO: result: no" >&5
20658 echo "${ECHO_T}no" >&6
20659 fi
20660        ;;
20661    *)
20662   echo "$as_me:$LINENO: result: no" >&5
20663 echo "${ECHO_T}no" >&6
20664     ;;
20665   esac
20666 fi
20667
20668
20669
20670 # The else clause should only fire when bootstrapping the
20671 # libtool distribution, otherwise you forgot to ship ltmain.sh
20672 # with your package, and you will get complaints that there are
20673 # no rules to generate ltmain.sh.
20674 if test -f "$ltmain"; then
20675   # See if we are running on zsh, and set the options which allow our commands through
20676   # without removal of \ escapes.
20677   if test -n "${ZSH_VERSION+set}" ; then
20678     setopt NO_GLOB_SUBST
20679   fi
20680   # Now quote all the things that may contain metacharacters while being
20681   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20682   # variables and quote the copies for generation of the libtool script.
20683   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20684     SED SHELL STRIP \
20685     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687     deplibs_check_method reload_flag reload_cmds need_locks \
20688     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689     lt_cv_sys_global_symbol_to_c_name_address \
20690     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691     old_postinstall_cmds old_postuninstall_cmds \
20692     compiler_F77 \
20693     CC_F77 \
20694     LD_F77 \
20695     lt_prog_compiler_wl_F77 \
20696     lt_prog_compiler_pic_F77 \
20697     lt_prog_compiler_static_F77 \
20698     lt_prog_compiler_no_builtin_flag_F77 \
20699     export_dynamic_flag_spec_F77 \
20700     thread_safe_flag_spec_F77 \
20701     whole_archive_flag_spec_F77 \
20702     enable_shared_with_static_runtimes_F77 \
20703     old_archive_cmds_F77 \
20704     old_archive_from_new_cmds_F77 \
20705     predep_objects_F77 \
20706     postdep_objects_F77 \
20707     predeps_F77 \
20708     postdeps_F77 \
20709     compiler_lib_search_path_F77 \
20710     archive_cmds_F77 \
20711     archive_expsym_cmds_F77 \
20712     postinstall_cmds_F77 \
20713     postuninstall_cmds_F77 \
20714     old_archive_from_expsyms_cmds_F77 \
20715     allow_undefined_flag_F77 \
20716     no_undefined_flag_F77 \
20717     export_symbols_cmds_F77 \
20718     hardcode_libdir_flag_spec_F77 \
20719     hardcode_libdir_flag_spec_ld_F77 \
20720     hardcode_libdir_separator_F77 \
20721     hardcode_automatic_F77 \
20722     module_cmds_F77 \
20723     module_expsym_cmds_F77 \
20724     lt_cv_prog_compiler_c_o_F77 \
20725     exclude_expsyms_F77 \
20726     include_expsyms_F77; do
20727
20728     case $var in
20729     old_archive_cmds_F77 | \
20730     old_archive_from_new_cmds_F77 | \
20731     archive_cmds_F77 | \
20732     archive_expsym_cmds_F77 | \
20733     module_cmds_F77 | \
20734     module_expsym_cmds_F77 | \
20735     old_archive_from_expsyms_cmds_F77 | \
20736     export_symbols_cmds_F77 | \
20737     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738     postinstall_cmds | postuninstall_cmds | \
20739     old_postinstall_cmds | old_postuninstall_cmds | \
20740     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741       # Double-quote double-evaled strings.
20742       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20743       ;;
20744     *)
20745       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746       ;;
20747     esac
20748   done
20749
20750   case $lt_echo in
20751   *'\$0 --fallback-echo"')
20752     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753     ;;
20754   esac
20755
20756 cfgfile="$ofile"
20757
20758   cat <<__EOF__ >> "$cfgfile"
20759 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763 # Shell to use when invoking shell scripts.
20764 SHELL=$lt_SHELL
20765
20766 # Whether or not to build shared libraries.
20767 build_libtool_libs=$enable_shared
20768
20769 # Whether or not to build static libraries.
20770 build_old_libs=$enable_static
20771
20772 # Whether or not to add -lc for building shared libraries.
20773 build_libtool_need_lc=$archive_cmds_need_lc_F77
20774
20775 # Whether or not to disallow shared libs when runtime libs are static
20776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20777
20778 # Whether or not to optimize for fast installation.
20779 fast_install=$enable_fast_install
20780
20781 # The host system.
20782 host_alias=$host_alias
20783 host=$host
20784
20785 # An echo program that does not interpret backslashes.
20786 echo=$lt_echo
20787
20788 # The archiver.
20789 AR=$lt_AR
20790 AR_FLAGS=$lt_AR_FLAGS
20791
20792 # A C compiler.
20793 LTCC=$lt_LTCC
20794
20795 # A language-specific compiler.
20796 CC=$lt_compiler_F77
20797
20798 # Is the compiler the GNU C compiler?
20799 with_gcc=$GCC_F77
20800
20801 # An ERE matcher.
20802 EGREP=$lt_EGREP
20803
20804 # The linker used to build libraries.
20805 LD=$lt_LD_F77
20806
20807 # Whether we need hard or soft links.
20808 LN_S=$lt_LN_S
20809
20810 # A BSD-compatible nm program.
20811 NM=$lt_NM
20812
20813 # A symbol stripping program
20814 STRIP=$lt_STRIP
20815
20816 # Used to examine libraries when file_magic_cmd begins "file"
20817 MAGIC_CMD=$MAGIC_CMD
20818
20819 # Used on cygwin: DLL creation program.
20820 DLLTOOL="$DLLTOOL"
20821
20822 # Used on cygwin: object dumper.
20823 OBJDUMP="$OBJDUMP"
20824
20825 # Used on cygwin: assembler.
20826 AS="$AS"
20827
20828 # The name of the directory that contains temporary libtool files.
20829 objdir=$objdir
20830
20831 # How to create reloadable object files.
20832 reload_flag=$lt_reload_flag
20833 reload_cmds=$lt_reload_cmds
20834
20835 # How to pass a linker flag through the compiler.
20836 wl=$lt_lt_prog_compiler_wl_F77
20837
20838 # Object file suffix (normally "o").
20839 objext="$ac_objext"
20840
20841 # Old archive suffix (normally "a").
20842 libext="$libext"
20843
20844 # Shared library suffix (normally ".so").
20845 shrext_cmds='$shrext_cmds'
20846
20847 # Executable file suffix (normally "").
20848 exeext="$exeext"
20849
20850 # Additional compiler flags for building library objects.
20851 pic_flag=$lt_lt_prog_compiler_pic_F77
20852 pic_mode=$pic_mode
20853
20854 # What is the maximum length of a command?
20855 max_cmd_len=$lt_cv_sys_max_cmd_len
20856
20857 # Does compiler simultaneously support -c and -o options?
20858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20859
20860 # Must we lock files when doing compilation ?
20861 need_locks=$lt_need_locks
20862
20863 # Do we need the lib prefix for modules?
20864 need_lib_prefix=$need_lib_prefix
20865
20866 # Do we need a version for libraries?
20867 need_version=$need_version
20868
20869 # Whether dlopen is supported.
20870 dlopen_support=$enable_dlopen
20871
20872 # Whether dlopen of programs is supported.
20873 dlopen_self=$enable_dlopen_self
20874
20875 # Whether dlopen of statically linked programs is supported.
20876 dlopen_self_static=$enable_dlopen_self_static
20877
20878 # Compiler flag to prevent dynamic linking.
20879 link_static_flag=$lt_lt_prog_compiler_static_F77
20880
20881 # Compiler flag to turn off builtin functions.
20882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20883
20884 # Compiler flag to allow reflexive dlopens.
20885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20886
20887 # Compiler flag to generate shared objects directly from archives.
20888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20889
20890 # Compiler flag to generate thread-safe objects.
20891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20892
20893 # Library versioning type.
20894 version_type=$version_type
20895
20896 # Format of library name prefix.
20897 libname_spec=$lt_libname_spec
20898
20899 # List of archive names.  First name is the real one, the rest are links.
20900 # The last name is the one that the linker finds with -lNAME.
20901 library_names_spec=$lt_library_names_spec
20902
20903 # The coded name of the library, if different from the real name.
20904 soname_spec=$lt_soname_spec
20905
20906 # Commands used to build and install an old-style archive.
20907 RANLIB=$lt_RANLIB
20908 old_archive_cmds=$lt_old_archive_cmds_F77
20909 old_postinstall_cmds=$lt_old_postinstall_cmds
20910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20911
20912 # Create an old-style archive from a shared archive.
20913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20914
20915 # Create a temporary old-style archive to link instead of a shared archive.
20916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20917
20918 # Commands used to build and install a shared archive.
20919 archive_cmds=$lt_archive_cmds_F77
20920 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20921 postinstall_cmds=$lt_postinstall_cmds
20922 postuninstall_cmds=$lt_postuninstall_cmds
20923
20924 # Commands used to build a loadable module (assumed same as above if empty)
20925 module_cmds=$lt_module_cmds_F77
20926 module_expsym_cmds=$lt_module_expsym_cmds_F77
20927
20928 # Commands to strip libraries.
20929 old_striplib=$lt_old_striplib
20930 striplib=$lt_striplib
20931
20932 # Dependencies to place before the objects being linked to create a
20933 # shared library.
20934 predep_objects=$lt_predep_objects_F77
20935
20936 # Dependencies to place after the objects being linked to create a
20937 # shared library.
20938 postdep_objects=$lt_postdep_objects_F77
20939
20940 # Dependencies to place before the objects being linked to create a
20941 # shared library.
20942 predeps=$lt_predeps_F77
20943
20944 # Dependencies to place after the objects being linked to create a
20945 # shared library.
20946 postdeps=$lt_postdeps_F77
20947
20948 # The library search path used internally by the compiler when linking
20949 # a shared library.
20950 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20951
20952 # Method to check whether dependent libraries are shared objects.
20953 deplibs_check_method=$lt_deplibs_check_method
20954
20955 # Command to use when deplibs_check_method == file_magic.
20956 file_magic_cmd=$lt_file_magic_cmd
20957
20958 # Flag that allows shared libraries with undefined symbols to be built.
20959 allow_undefined_flag=$lt_allow_undefined_flag_F77
20960
20961 # Flag that forces no undefined symbols.
20962 no_undefined_flag=$lt_no_undefined_flag_F77
20963
20964 # Commands used to finish a libtool library installation in a directory.
20965 finish_cmds=$lt_finish_cmds
20966
20967 # Same as above, but a single script fragment to be evaled but not shown.
20968 finish_eval=$lt_finish_eval
20969
20970 # Take the output of nm and produce a listing of raw symbols and C names.
20971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20972
20973 # Transform the output of nm in a proper C declaration
20974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20975
20976 # Transform the output of nm in a C name address pair
20977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978
20979 # This is the shared library runtime path variable.
20980 runpath_var=$runpath_var
20981
20982 # This is the shared library path variable.
20983 shlibpath_var=$shlibpath_var
20984
20985 # Is shlibpath searched before the hard-coded library search path?
20986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20987
20988 # How to hardcode a shared library path into an executable.
20989 hardcode_action=$hardcode_action_F77
20990
20991 # Whether we should hardcode library paths into libraries.
20992 hardcode_into_libs=$hardcode_into_libs
20993
20994 # Flag to hardcode \$libdir into a binary during linking.
20995 # This must work even if \$libdir does not exist.
20996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20997
20998 # If ld is used when linking, flag to hardcode \$libdir into
20999 # a binary during linking. This must work even if \$libdir does
21000 # not exist.
21001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21002
21003 # Whether we need a single -rpath flag with a separated argument.
21004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21005
21006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21007 # resulting binary.
21008 hardcode_direct=$hardcode_direct_F77
21009
21010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21011 # resulting binary.
21012 hardcode_minus_L=$hardcode_minus_L_F77
21013
21014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21015 # the resulting binary.
21016 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21017
21018 # Set to yes if building a shared library automatically hardcodes DIR into the library
21019 # and all subsequent libraries and executables linked against it.
21020 hardcode_automatic=$hardcode_automatic_F77
21021
21022 # Variables whose values should be saved in libtool wrapper scripts and
21023 # restored at relink time.
21024 variables_saved_for_relink="$variables_saved_for_relink"
21025
21026 # Whether libtool must link a program against all its dependency libraries.
21027 link_all_deplibs=$link_all_deplibs_F77
21028
21029 # Compile-time system search path for libraries
21030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21031
21032 # Run-time system search path for libraries
21033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21034
21035 # Fix the shell variable \$srcfile for the compiler.
21036 fix_srcfile_path="$fix_srcfile_path_F77"
21037
21038 # Set to yes if exported symbols are required.
21039 always_export_symbols=$always_export_symbols_F77
21040
21041 # The commands to list exported symbols.
21042 export_symbols_cmds=$lt_export_symbols_cmds_F77
21043
21044 # The commands to extract the exported symbol list from a shared archive.
21045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21046
21047 # Symbols that should not be listed in the preloaded symbols.
21048 exclude_expsyms=$lt_exclude_expsyms_F77
21049
21050 # Symbols that must always be exported.
21051 include_expsyms=$lt_include_expsyms_F77
21052
21053 # ### END LIBTOOL TAG CONFIG: $tagname
21054
21055 __EOF__
21056
21057
21058 else
21059   # If there is no Makefile yet, we rely on a make rule to execute
21060   # `config.status --recheck' to rerun these tests and create the
21061   # libtool script then.
21062   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21063   if test -f "$ltmain_in"; then
21064     test -f Makefile && make "$ltmain"
21065   fi
21066 fi
21067
21068
21069 ac_ext=c
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075 CC="$lt_save_CC"
21076
21077         else
21078           tagname=""
21079         fi
21080         ;;
21081
21082       GCJ)
21083         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21084           ac_ext=c
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090
21091 # Source file extension for Java test sources.
21092 ac_ext=java
21093
21094 # Object file extension for compiled Java test sources.
21095 objext=o
21096 objext_GCJ=$objext
21097
21098 # Code to be used in simple compile tests
21099 lt_simple_compile_test_code="class foo {}\n"
21100
21101 # Code to be used in simple link tests
21102 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21103
21104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21105
21106 # If no C compiler was specified, use CC.
21107 LTCC=${LTCC-"$CC"}
21108
21109 # Allow CC to be a program name with arguments.
21110 compiler=$CC
21111
21112
21113 # Allow CC to be a program name with arguments.
21114 lt_save_CC="$CC"
21115 CC=${GCJ-"gcj"}
21116 compiler=$CC
21117 compiler_GCJ=$CC
21118
21119 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21120 archive_cmds_need_lc_GCJ=no
21121
21122
21123 lt_prog_compiler_no_builtin_flag_GCJ=
21124
21125 if test "$GCC" = yes; then
21126   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21127
21128
21129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   lt_cv_prog_compiler_rtti_exceptions=no
21135   ac_outfile=conftest.$ac_objext
21136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21137    lt_compiler_flag="-fno-rtti -fno-exceptions"
21138    # Insert the option either (1) after the last *FLAGS variable, or
21139    # (2) before a word containing "conftest.", or (3) at the end.
21140    # Note that $ac_compile itself does not contain backslashes and begins
21141    # with a dollar sign (not a hyphen), so the echo should work correctly.
21142    # The option is referenced via a variable to avoid confusing sed.
21143    lt_compile=`echo "$ac_compile" | $SED \
21144    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21146    -e 's:$: $lt_compiler_flag:'`
21147    (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
21148    (eval "$lt_compile" 2>conftest.err)
21149    ac_status=$?
21150    cat conftest.err >&5
21151    echo "$as_me:21151: \$? = $ac_status" >&5
21152    if (exit $ac_status) && test -s "$ac_outfile"; then
21153      # The compiler can only warn and ignore the option if not recognized
21154      # So say no if there are warnings
21155      if test ! -s conftest.err; then
21156        lt_cv_prog_compiler_rtti_exceptions=yes
21157      fi
21158    fi
21159    $rm conftest*
21160
21161 fi
21162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21164
21165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21166     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21167 else
21168     :
21169 fi
21170
21171 fi
21172
21173 lt_prog_compiler_wl_GCJ=
21174 lt_prog_compiler_pic_GCJ=
21175 lt_prog_compiler_static_GCJ=
21176
21177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21179
21180   if test "$GCC" = yes; then
21181     lt_prog_compiler_wl_GCJ='-Wl,'
21182     lt_prog_compiler_static_GCJ='-static'
21183
21184     case $host_os in
21185       aix*)
21186       # All AIX code is PIC.
21187       if test "$host_cpu" = ia64; then
21188         # AIX 5 now supports IA64 processor
21189         lt_prog_compiler_static_GCJ='-Bstatic'
21190       fi
21191       ;;
21192
21193     amigaos*)
21194       # FIXME: we need at least 68020 code to build shared libraries, but
21195       # adding the `-m68020' flag to GCC prevents building anything better,
21196       # like `-m68040'.
21197       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21198       ;;
21199
21200     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21201       # PIC is the default for these OSes.
21202       ;;
21203
21204     mingw* | pw32* | os2*)
21205       # This hack is so that the source file can tell whether it is being
21206       # built for inclusion in a dll (and should export symbols for example).
21207       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21208       ;;
21209
21210     darwin* | rhapsody*)
21211       # PIC is the default on this platform
21212       # Common symbols not allowed in MH_DYLIB files
21213       lt_prog_compiler_pic_GCJ='-fno-common'
21214       ;;
21215
21216     msdosdjgpp*)
21217       # Just because we use GCC doesn't mean we suddenly get shared libraries
21218       # on systems that don't support them.
21219       lt_prog_compiler_can_build_shared_GCJ=no
21220       enable_shared=no
21221       ;;
21222
21223     sysv4*MP*)
21224       if test -d /usr/nec; then
21225         lt_prog_compiler_pic_GCJ=-Kconform_pic
21226       fi
21227       ;;
21228
21229     hpux*)
21230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231       # not for PA HP-UX.
21232       case "$host_cpu" in
21233       hppa*64*|ia64*)
21234         # +Z the default
21235         ;;
21236       *)
21237         lt_prog_compiler_pic_GCJ='-fPIC'
21238         ;;
21239       esac
21240       ;;
21241
21242     *)
21243       lt_prog_compiler_pic_GCJ='-fPIC'
21244       ;;
21245     esac
21246   else
21247     # PORTME Check for flag to pass linker flags through the system compiler.
21248     case $host_os in
21249     aix*)
21250       lt_prog_compiler_wl_GCJ='-Wl,'
21251       if test "$host_cpu" = ia64; then
21252         # AIX 5 now supports IA64 processor
21253         lt_prog_compiler_static_GCJ='-Bstatic'
21254       else
21255         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21256       fi
21257       ;;
21258       darwin*)
21259         # PIC is the default on this platform
21260         # Common symbols not allowed in MH_DYLIB files
21261        case "$cc_basename" in
21262          xlc*)
21263          lt_prog_compiler_pic_GCJ='-qnocommon'
21264          lt_prog_compiler_wl_GCJ='-Wl,'
21265          ;;
21266        esac
21267        ;;
21268
21269     mingw* | pw32* | os2*)
21270       # This hack is so that the source file can tell whether it is being
21271       # built for inclusion in a dll (and should export symbols for example).
21272       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21273       ;;
21274
21275     hpux9* | hpux10* | hpux11*)
21276       lt_prog_compiler_wl_GCJ='-Wl,'
21277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278       # not for PA HP-UX.
21279       case "$host_cpu" in
21280       hppa*64*|ia64*)
21281         # +Z the default
21282         ;;
21283       *)
21284         lt_prog_compiler_pic_GCJ='+Z'
21285         ;;
21286       esac
21287       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21289       ;;
21290
21291     irix5* | irix6* | nonstopux*)
21292       lt_prog_compiler_wl_GCJ='-Wl,'
21293       # PIC (with -KPIC) is the default.
21294       lt_prog_compiler_static_GCJ='-non_shared'
21295       ;;
21296
21297     newsos6)
21298       lt_prog_compiler_pic_GCJ='-KPIC'
21299       lt_prog_compiler_static_GCJ='-Bstatic'
21300       ;;
21301
21302     linux*)
21303       case $CC in
21304       icc* | ecc*)
21305         lt_prog_compiler_wl_GCJ='-Wl,'
21306         lt_prog_compiler_pic_GCJ='-KPIC'
21307         lt_prog_compiler_static_GCJ='-static'
21308         ;;
21309       ccc*)
21310         lt_prog_compiler_wl_GCJ='-Wl,'
21311         # All Alpha code is PIC.
21312         lt_prog_compiler_static_GCJ='-non_shared'
21313         ;;
21314       esac
21315       ;;
21316
21317     osf3* | osf4* | osf5*)
21318       lt_prog_compiler_wl_GCJ='-Wl,'
21319       # All OSF/1 code is PIC.
21320       lt_prog_compiler_static_GCJ='-non_shared'
21321       ;;
21322
21323     sco3.2v5*)
21324       lt_prog_compiler_pic_GCJ='-Kpic'
21325       lt_prog_compiler_static_GCJ='-dn'
21326       ;;
21327
21328     solaris*)
21329       lt_prog_compiler_wl_GCJ='-Wl,'
21330       lt_prog_compiler_pic_GCJ='-KPIC'
21331       lt_prog_compiler_static_GCJ='-Bstatic'
21332       ;;
21333
21334     sunos4*)
21335       lt_prog_compiler_wl_GCJ='-Qoption ld '
21336       lt_prog_compiler_pic_GCJ='-PIC'
21337       lt_prog_compiler_static_GCJ='-Bstatic'
21338       ;;
21339
21340     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21341       lt_prog_compiler_wl_GCJ='-Wl,'
21342       lt_prog_compiler_pic_GCJ='-KPIC'
21343       lt_prog_compiler_static_GCJ='-Bstatic'
21344       ;;
21345
21346     sysv4*MP*)
21347       if test -d /usr/nec ;then
21348         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21349         lt_prog_compiler_static_GCJ='-Bstatic'
21350       fi
21351       ;;
21352
21353     uts4*)
21354       lt_prog_compiler_pic_GCJ='-pic'
21355       lt_prog_compiler_static_GCJ='-Bstatic'
21356       ;;
21357
21358     *)
21359       lt_prog_compiler_can_build_shared_GCJ=no
21360       ;;
21361     esac
21362   fi
21363
21364 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21365 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21366
21367 #
21368 # Check to make sure the PIC flag actually works.
21369 #
21370 if test -n "$lt_prog_compiler_pic_GCJ"; then
21371
21372 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21373 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21374 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   lt_prog_compiler_pic_works_GCJ=no
21378   ac_outfile=conftest.$ac_objext
21379    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21380    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21381    # Insert the option either (1) after the last *FLAGS variable, or
21382    # (2) before a word containing "conftest.", or (3) at the end.
21383    # Note that $ac_compile itself does not contain backslashes and begins
21384    # with a dollar sign (not a hyphen), so the echo should work correctly.
21385    # The option is referenced via a variable to avoid confusing sed.
21386    lt_compile=`echo "$ac_compile" | $SED \
21387    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21389    -e 's:$: $lt_compiler_flag:'`
21390    (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
21391    (eval "$lt_compile" 2>conftest.err)
21392    ac_status=$?
21393    cat conftest.err >&5
21394    echo "$as_me:21394: \$? = $ac_status" >&5
21395    if (exit $ac_status) && test -s "$ac_outfile"; then
21396      # The compiler can only warn and ignore the option if not recognized
21397      # So say no if there are warnings
21398      if test ! -s conftest.err; then
21399        lt_prog_compiler_pic_works_GCJ=yes
21400      fi
21401    fi
21402    $rm conftest*
21403
21404 fi
21405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21406 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21407
21408 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21409     case $lt_prog_compiler_pic_GCJ in
21410      "" | " "*) ;;
21411      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21412      esac
21413 else
21414     lt_prog_compiler_pic_GCJ=
21415      lt_prog_compiler_can_build_shared_GCJ=no
21416 fi
21417
21418 fi
21419 case "$host_os" in
21420   # For platforms which do not support PIC, -DPIC is meaningless:
21421   *djgpp*)
21422     lt_prog_compiler_pic_GCJ=
21423     ;;
21424   *)
21425     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21426     ;;
21427 esac
21428
21429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21431 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   lt_cv_prog_compiler_c_o_GCJ=no
21435    $rm -r conftest 2>/dev/null
21436    mkdir conftest
21437    cd conftest
21438    mkdir out
21439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21440
21441    lt_compiler_flag="-o out/conftest2.$ac_objext"
21442    # Insert the option either (1) after the last *FLAGS variable, or
21443    # (2) before a word containing "conftest.", or (3) at the end.
21444    # Note that $ac_compile itself does not contain backslashes and begins
21445    # with a dollar sign (not a hyphen), so the echo should work correctly.
21446    lt_compile=`echo "$ac_compile" | $SED \
21447    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21449    -e 's:$: $lt_compiler_flag:'`
21450    (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
21451    (eval "$lt_compile" 2>out/conftest.err)
21452    ac_status=$?
21453    cat out/conftest.err >&5
21454    echo "$as_me:21454: \$? = $ac_status" >&5
21455    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21456    then
21457      # The compiler can only warn and ignore the option if not recognized
21458      # So say no if there are warnings
21459      if test ! -s out/conftest.err; then
21460        lt_cv_prog_compiler_c_o_GCJ=yes
21461      fi
21462    fi
21463    chmod u+w .
21464    $rm conftest*
21465    # SGI C++ compiler will create directory out/ii_files/ for
21466    # template instantiation
21467    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21468    $rm out/* && rmdir out
21469    cd ..
21470    rmdir conftest
21471    $rm conftest*
21472
21473 fi
21474 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21475 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21476
21477
21478 hard_links="nottested"
21479 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21480   # do not overwrite the value of need_locks provided by the user
21481   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21482 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21483   hard_links=yes
21484   $rm conftest*
21485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21486   touch conftest.a
21487   ln conftest.a conftest.b 2>&5 || hard_links=no
21488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21489   echo "$as_me:$LINENO: result: $hard_links" >&5
21490 echo "${ECHO_T}$hard_links" >&6
21491   if test "$hard_links" = no; then
21492     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21493 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21494     need_locks=warn
21495   fi
21496 else
21497   need_locks=no
21498 fi
21499
21500 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21501 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21502
21503   runpath_var=
21504   allow_undefined_flag_GCJ=
21505   enable_shared_with_static_runtimes_GCJ=no
21506   archive_cmds_GCJ=
21507   archive_expsym_cmds_GCJ=
21508   old_archive_From_new_cmds_GCJ=
21509   old_archive_from_expsyms_cmds_GCJ=
21510   export_dynamic_flag_spec_GCJ=
21511   whole_archive_flag_spec_GCJ=
21512   thread_safe_flag_spec_GCJ=
21513   hardcode_libdir_flag_spec_GCJ=
21514   hardcode_libdir_flag_spec_ld_GCJ=
21515   hardcode_libdir_separator_GCJ=
21516   hardcode_direct_GCJ=no
21517   hardcode_minus_L_GCJ=no
21518   hardcode_shlibpath_var_GCJ=unsupported
21519   link_all_deplibs_GCJ=unknown
21520   hardcode_automatic_GCJ=no
21521   module_cmds_GCJ=
21522   module_expsym_cmds_GCJ=
21523   always_export_symbols_GCJ=no
21524   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21525   # include_expsyms should be a list of space-separated symbols to be *always*
21526   # included in the symbol list
21527   include_expsyms_GCJ=
21528   # exclude_expsyms can be an extended regexp of symbols to exclude
21529   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21530   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21531   # as well as any symbol that contains `d'.
21532   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21533   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21534   # platforms (ab)use it in PIC code, but their linkers get confused if
21535   # the symbol is explicitly referenced.  Since portable code cannot
21536   # rely on this symbol name, it's probably fine to never include it in
21537   # preloaded symbol tables.
21538   extract_expsyms_cmds=
21539
21540   case $host_os in
21541   cygwin* | mingw* | pw32*)
21542     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21543     # When not using gcc, we currently assume that we are using
21544     # Microsoft Visual C++.
21545     if test "$GCC" != yes; then
21546       with_gnu_ld=no
21547     fi
21548     ;;
21549   openbsd*)
21550     with_gnu_ld=no
21551     ;;
21552   esac
21553
21554   ld_shlibs_GCJ=yes
21555   if test "$with_gnu_ld" = yes; then
21556     # If archive_cmds runs LD, not CC, wlarc should be empty
21557     wlarc='${wl}'
21558
21559     # See if GNU ld supports shared libraries.
21560     case $host_os in
21561     aix3* | aix4* | aix5*)
21562       # On AIX/PPC, the GNU linker is very broken
21563       if test "$host_cpu" != ia64; then
21564         ld_shlibs_GCJ=no
21565         cat <<EOF 1>&2
21566
21567 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21568 *** to be unable to reliably create shared libraries on AIX.
21569 *** Therefore, libtool is disabling shared libraries support.  If you
21570 *** really care for shared libraries, you may want to modify your PATH
21571 *** so that a non-GNU linker is found, and then restart.
21572
21573 EOF
21574       fi
21575       ;;
21576
21577     amigaos*)
21578       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)'
21579       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21580       hardcode_minus_L_GCJ=yes
21581
21582       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21583       # that the semantics of dynamic libraries on AmigaOS, at least up
21584       # to version 4, is to share data among multiple programs linked
21585       # with the same dynamic library.  Since this doesn't match the
21586       # behavior of shared libraries on other platforms, we can't use
21587       # them.
21588       ld_shlibs_GCJ=no
21589       ;;
21590
21591     beos*)
21592       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593         allow_undefined_flag_GCJ=unsupported
21594         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21595         # support --undefined.  This deserves some investigation.  FIXME
21596         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597       else
21598         ld_shlibs_GCJ=no
21599       fi
21600       ;;
21601
21602     cygwin* | mingw* | pw32*)
21603       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21604       # as there is no search path for DLLs.
21605       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21606       allow_undefined_flag_GCJ=unsupported
21607       always_export_symbols_GCJ=no
21608       enable_shared_with_static_runtimes_GCJ=yes
21609       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21610
21611       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21613         # If the export-symbols file already is a .def file (1st line
21614         # is EXPORTS), use it as is; otherwise, prepend...
21615         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21616           cp $export_symbols $output_objdir/$soname.def;
21617         else
21618           echo EXPORTS > $output_objdir/$soname.def;
21619           cat $export_symbols >> $output_objdir/$soname.def;
21620         fi~
21621         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21622       else
21623         ld_shlibs=no
21624       fi
21625       ;;
21626
21627     netbsd*)
21628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21629         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21630         wlarc=
21631       else
21632         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21634       fi
21635       ;;
21636
21637     solaris* | sysv5*)
21638       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21639         ld_shlibs_GCJ=no
21640         cat <<EOF 1>&2
21641
21642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21643 *** create shared libraries on Solaris systems.  Therefore, libtool
21644 *** is disabling shared libraries support.  We urge you to upgrade GNU
21645 *** binutils to release 2.9.1 or newer.  Another option is to modify
21646 *** your PATH or compiler configuration so that the native linker is
21647 *** used, and then restart.
21648
21649 EOF
21650       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653       else
21654         ld_shlibs_GCJ=no
21655       fi
21656       ;;
21657
21658     sunos4*)
21659       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21660       wlarc=
21661       hardcode_direct_GCJ=yes
21662       hardcode_shlibpath_var_GCJ=no
21663       ;;
21664
21665   linux*)
21666     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21668         archive_cmds_GCJ="$tmp_archive_cmds"
21669       supports_anon_versioning=no
21670       case `$LD -v 2>/dev/null` in
21671         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21672         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21673         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21674         *\ 2.11.*) ;; # other 2.11 versions
21675         *) supports_anon_versioning=yes ;;
21676       esac
21677       if test $supports_anon_versioning = yes; then
21678         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21680 $echo "local: *; };" >> $output_objdir/$libname.ver~
21681         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21682       else
21683         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21684       fi
21685     else
21686       ld_shlibs_GCJ=no
21687     fi
21688     ;;
21689
21690     *)
21691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21694       else
21695         ld_shlibs_GCJ=no
21696       fi
21697       ;;
21698     esac
21699
21700     if test "$ld_shlibs_GCJ" = yes; then
21701       runpath_var=LD_RUN_PATH
21702       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21703       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21704       # ancient GNU ld didn't support --whole-archive et. al.
21705       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21706         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21707       else
21708         whole_archive_flag_spec_GCJ=
21709       fi
21710     fi
21711   else
21712     # PORTME fill in a description of your system's linker (not GNU ld)
21713     case $host_os in
21714     aix3*)
21715       allow_undefined_flag_GCJ=unsupported
21716       always_export_symbols_GCJ=yes
21717       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'
21718       # Note: this linker hardcodes the directories in LIBPATH if there
21719       # are no directories specified by -L.
21720       hardcode_minus_L_GCJ=yes
21721       if test "$GCC" = yes && test -z "$link_static_flag"; then
21722         # Neither direct hardcoding nor static linking is supported with a
21723         # broken collect2.
21724         hardcode_direct_GCJ=unsupported
21725       fi
21726       ;;
21727
21728     aix4* | aix5*)
21729       if test "$host_cpu" = ia64; then
21730         # On IA64, the linker does run time linking by default, so we don't
21731         # have to do anything special.
21732         aix_use_runtimelinking=no
21733         exp_sym_flag='-Bexport'
21734         no_entry_flag=""
21735       else
21736         # If we're using GNU nm, then we don't want the "-C" option.
21737         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21738         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21739           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'
21740         else
21741           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'
21742         fi
21743         aix_use_runtimelinking=no
21744
21745         # Test if we are trying to use run time linking or normal
21746         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21747         # need to do runtime linking.
21748         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21749           for ld_flag in $LDFLAGS; do
21750           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21751             aix_use_runtimelinking=yes
21752             break
21753           fi
21754           done
21755         esac
21756
21757         exp_sym_flag='-bexport'
21758         no_entry_flag='-bnoentry'
21759       fi
21760
21761       # When large executables or shared objects are built, AIX ld can
21762       # have problems creating the table of contents.  If linking a library
21763       # or program results in "error TOC overflow" add -mminimal-toc to
21764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21766
21767       archive_cmds_GCJ=''
21768       hardcode_direct_GCJ=yes
21769       hardcode_libdir_separator_GCJ=':'
21770       link_all_deplibs_GCJ=yes
21771
21772       if test "$GCC" = yes; then
21773         case $host_os in aix4.012|aix4.012.*)
21774         # We only want to do this on AIX 4.2 and lower, the check
21775         # below for broken collect2 doesn't work under 4.3+
21776           collect2name=`${CC} -print-prog-name=collect2`
21777           if test -f "$collect2name" && \
21778            strings "$collect2name" | grep resolve_lib_name >/dev/null
21779           then
21780           # We have reworked collect2
21781           hardcode_direct_GCJ=yes
21782           else
21783           # We have old collect2
21784           hardcode_direct_GCJ=unsupported
21785           # It fails to find uninstalled libraries when the uninstalled
21786           # path is not listed in the libpath.  Setting hardcode_minus_L
21787           # to unsupported forces relinking
21788           hardcode_minus_L_GCJ=yes
21789           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21790           hardcode_libdir_separator_GCJ=
21791           fi
21792         esac
21793         shared_flag='-shared'
21794       else
21795         # not using gcc
21796         if test "$host_cpu" = ia64; then
21797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21798         # chokes on -Wl,-G. The following line is correct:
21799           shared_flag='-G'
21800         else
21801         if test "$aix_use_runtimelinking" = yes; then
21802             shared_flag='${wl}-G'
21803           else
21804             shared_flag='${wl}-bM:SRE'
21805         fi
21806         fi
21807       fi
21808
21809       # It seems that -bexpall does not export symbols beginning with
21810       # underscore (_), so it is better to generate a list of symbols to export.
21811       always_export_symbols_GCJ=yes
21812       if test "$aix_use_runtimelinking" = yes; then
21813         # Warning - without using the other runtime loading flags (-brtl),
21814         # -berok will link without error, but may produce a broken library.
21815         allow_undefined_flag_GCJ='-berok'
21816        # Determine the default libpath from the value encoded in an empty executable.
21817        cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823
21824 int
21825 main ()
21826 {
21827
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest.$ac_objext conftest$ac_exeext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21834   (eval $ac_link) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag"
21842                          || test ! -s conftest.err'
21843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844   (eval $ac_try) 2>&5
21845   ac_status=$?
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); }; } &&
21848          { ac_try='test -s conftest$ac_exeext'
21849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850   (eval $ac_try) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; }; then
21854
21855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21856 }'`
21857 # Check for a 64-bit object if we didn't find anything.
21858 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; }
21859 }'`; fi
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 fi
21865 rm -f conftest.err conftest.$ac_objext \
21866       conftest$ac_exeext conftest.$ac_ext
21867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21868
21869        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21870         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"
21871        else
21872         if test "$host_cpu" = ia64; then
21873           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21874           allow_undefined_flag_GCJ="-z nodefs"
21875           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"
21876         else
21877          # Determine the default libpath from the value encoded in an empty executable.
21878          cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884
21885 int
21886 main ()
21887 {
21888
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21895   (eval $ac_link) 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -z "$ac_c_werror_flag"
21903                          || test ! -s conftest.err'
21904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905   (eval $ac_try) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; } &&
21909          { ac_try='test -s conftest$ac_exeext'
21910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; }; then
21915
21916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21917 }'`
21918 # Check for a 64-bit object if we didn't find anything.
21919 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; }
21920 }'`; fi
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 fi
21926 rm -f conftest.err conftest.$ac_objext \
21927       conftest$ac_exeext conftest.$ac_ext
21928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21929
21930          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21931           # Warning - without using the other run time loading flags,
21932           # -berok will link without error, but may produce a broken library.
21933           no_undefined_flag_GCJ=' ${wl}-bernotok'
21934           allow_undefined_flag_GCJ=' ${wl}-berok'
21935           # -bexpall does not export symbols beginning with underscore (_)
21936           always_export_symbols_GCJ=yes
21937           # Exported symbols can be pulled into shared objects from archives
21938           whole_archive_flag_spec_GCJ=' '
21939           archive_cmds_need_lc_GCJ=yes
21940           # This is similar to how AIX traditionally builds it's shared libraries.
21941           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'
21942         fi
21943       fi
21944       ;;
21945
21946     amigaos*)
21947       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)'
21948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21949       hardcode_minus_L_GCJ=yes
21950       # see comment about different semantics on the GNU ld section
21951       ld_shlibs_GCJ=no
21952       ;;
21953
21954     bsdi[45]*)
21955       export_dynamic_flag_spec_GCJ=-rdynamic
21956       ;;
21957
21958     cygwin* | mingw* | pw32*)
21959       # When not using gcc, we currently assume that we are using
21960       # Microsoft Visual C++.
21961       # hardcode_libdir_flag_spec is actually meaningless, as there is
21962       # no search path for DLLs.
21963       hardcode_libdir_flag_spec_GCJ=' '
21964       allow_undefined_flag_GCJ=unsupported
21965       # Tell ltmain to make .lib files, not .a files.
21966       libext=lib
21967       # Tell ltmain to make .dll files, not .so files.
21968       shrext_cmds=".dll"
21969       # FIXME: Setting linknames here is a bad hack.
21970       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21971       # The linker will automatically build a .lib file if we build a DLL.
21972       old_archive_From_new_cmds_GCJ='true'
21973       # FIXME: Should let the user specify the lib program.
21974       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21975       fix_srcfile_path='`cygpath -w "$srcfile"`'
21976       enable_shared_with_static_runtimes_GCJ=yes
21977       ;;
21978
21979     darwin* | rhapsody*)
21980       case "$host_os" in
21981         rhapsody* | darwin1.[012])
21982          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21983          ;;
21984        *) # Darwin 1.3 on
21985          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21986            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21987          else
21988            case ${MACOSX_DEPLOYMENT_TARGET} in
21989              10.[012])
21990                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21991                ;;
21992              10.*)
21993                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21994                ;;
21995            esac
21996          fi
21997          ;;
21998       esac
21999       archive_cmds_need_lc_GCJ=no
22000       hardcode_direct_GCJ=no
22001       hardcode_automatic_GCJ=yes
22002       hardcode_shlibpath_var_GCJ=unsupported
22003       whole_archive_flag_spec_GCJ=''
22004       link_all_deplibs_GCJ=yes
22005     if test "$GCC" = yes ; then
22006         output_verbose_link_cmd='echo'
22007         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22008       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22009       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22010       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}'
22011       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}'
22012     else
22013       case "$cc_basename" in
22014         xlc*)
22015          output_verbose_link_cmd='echo'
22016          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22017          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22019          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}'
22020           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}'
22021           ;;
22022        *)
22023          ld_shlibs_GCJ=no
22024           ;;
22025       esac
22026     fi
22027       ;;
22028
22029     dgux*)
22030       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032       hardcode_shlibpath_var_GCJ=no
22033       ;;
22034
22035     freebsd1*)
22036       ld_shlibs_GCJ=no
22037       ;;
22038
22039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22040     # support.  Future versions do this automatically, but an explicit c++rt0.o
22041     # does not break anything, and helps significantly (at the cost of a little
22042     # extra space).
22043     freebsd2.2*)
22044       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046       hardcode_direct_GCJ=yes
22047       hardcode_shlibpath_var_GCJ=no
22048       ;;
22049
22050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22051     freebsd2*)
22052       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22053       hardcode_direct_GCJ=yes
22054       hardcode_minus_L_GCJ=yes
22055       hardcode_shlibpath_var_GCJ=no
22056       ;;
22057
22058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22059     freebsd* | kfreebsd*-gnu)
22060       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22061       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22062       hardcode_direct_GCJ=yes
22063       hardcode_shlibpath_var_GCJ=no
22064       ;;
22065
22066     hpux9*)
22067       if test "$GCC" = yes; then
22068         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'
22069       else
22070         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'
22071       fi
22072       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22073       hardcode_libdir_separator_GCJ=:
22074       hardcode_direct_GCJ=yes
22075
22076       # hardcode_minus_L: Not really in the search PATH,
22077       # but as the default location of the library.
22078       hardcode_minus_L_GCJ=yes
22079       export_dynamic_flag_spec_GCJ='${wl}-E'
22080       ;;
22081
22082     hpux10* | hpux11*)
22083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22084         case "$host_cpu" in
22085         hppa*64*|ia64*)
22086           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22087           ;;
22088         *)
22089           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22090           ;;
22091         esac
22092       else
22093         case "$host_cpu" in
22094         hppa*64*|ia64*)
22095           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22096           ;;
22097         *)
22098           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22099           ;;
22100         esac
22101       fi
22102       if test "$with_gnu_ld" = no; then
22103         case "$host_cpu" in
22104         hppa*64*)
22105           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22107           hardcode_libdir_separator_GCJ=:
22108           hardcode_direct_GCJ=no
22109           hardcode_shlibpath_var_GCJ=no
22110           ;;
22111         ia64*)
22112           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22113           hardcode_direct_GCJ=no
22114           hardcode_shlibpath_var_GCJ=no
22115
22116           # hardcode_minus_L: Not really in the search PATH,
22117           # but as the default location of the library.
22118           hardcode_minus_L_GCJ=yes
22119           ;;
22120         *)
22121           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22122           hardcode_libdir_separator_GCJ=:
22123           hardcode_direct_GCJ=yes
22124           export_dynamic_flag_spec_GCJ='${wl}-E'
22125
22126           # hardcode_minus_L: Not really in the search PATH,
22127           # but as the default location of the library.
22128           hardcode_minus_L_GCJ=yes
22129           ;;
22130         esac
22131       fi
22132       ;;
22133
22134     irix5* | irix6* | nonstopux*)
22135       if test "$GCC" = yes; then
22136         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'
22137       else
22138         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'
22139         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22140       fi
22141       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22142       hardcode_libdir_separator_GCJ=:
22143       link_all_deplibs_GCJ=yes
22144       ;;
22145
22146     netbsd*)
22147       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22148         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22149       else
22150         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22151       fi
22152       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153       hardcode_direct_GCJ=yes
22154       hardcode_shlibpath_var_GCJ=no
22155       ;;
22156
22157     newsos6)
22158       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159       hardcode_direct_GCJ=yes
22160       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22161       hardcode_libdir_separator_GCJ=:
22162       hardcode_shlibpath_var_GCJ=no
22163       ;;
22164
22165     openbsd*)
22166       hardcode_direct_GCJ=yes
22167       hardcode_shlibpath_var_GCJ=no
22168       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22169         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22170         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22171         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22172         export_dynamic_flag_spec_GCJ='${wl}-E'
22173       else
22174        case $host_os in
22175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22176            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22177            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22178            ;;
22179          *)
22180            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22181            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22182            ;;
22183        esac
22184       fi
22185       ;;
22186
22187     os2*)
22188       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189       hardcode_minus_L_GCJ=yes
22190       allow_undefined_flag_GCJ=unsupported
22191       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'
22192       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22193       ;;
22194
22195     osf3*)
22196       if test "$GCC" = yes; then
22197         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22198         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'
22199       else
22200         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22201         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'
22202       fi
22203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204       hardcode_libdir_separator_GCJ=:
22205       ;;
22206
22207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22208       if test "$GCC" = yes; then
22209         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22210         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'
22211         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22212       else
22213         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22214         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'
22215         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~
22216         $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'
22217
22218         # Both c and cxx compiler support -rpath directly
22219         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22220       fi
22221       hardcode_libdir_separator_GCJ=:
22222       ;;
22223
22224     sco3.2v5*)
22225       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226       hardcode_shlibpath_var_GCJ=no
22227       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22228       runpath_var=LD_RUN_PATH
22229       hardcode_runpath_var=yes
22230       ;;
22231
22232     solaris*)
22233       no_undefined_flag_GCJ=' -z text'
22234       if test "$GCC" = yes; then
22235         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22238       else
22239         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22242       fi
22243       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244       hardcode_shlibpath_var_GCJ=no
22245       case $host_os in
22246       solaris2.[0-5] | solaris2.[0-5].*) ;;
22247       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22248         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22249       esac
22250       link_all_deplibs_GCJ=yes
22251       ;;
22252
22253     sunos4*)
22254       if test "x$host_vendor" = xsequent; then
22255         # Use $CC to link under sequent, because it throws in some extra .o
22256         # files that make .init and .fini sections work.
22257         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22258       else
22259         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22260       fi
22261       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22262       hardcode_direct_GCJ=yes
22263       hardcode_minus_L_GCJ=yes
22264       hardcode_shlibpath_var_GCJ=no
22265       ;;
22266
22267     sysv4)
22268       case $host_vendor in
22269         sni)
22270           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22271           hardcode_direct_GCJ=yes # is this really true???
22272         ;;
22273         siemens)
22274           ## LD is ld it makes a PLAMLIB
22275           ## CC just makes a GrossModule.
22276           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22277           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22278           hardcode_direct_GCJ=no
22279         ;;
22280         motorola)
22281           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22283         ;;
22284       esac
22285       runpath_var='LD_RUN_PATH'
22286       hardcode_shlibpath_var_GCJ=no
22287       ;;
22288
22289     sysv4.3*)
22290       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22291       hardcode_shlibpath_var_GCJ=no
22292       export_dynamic_flag_spec_GCJ='-Bexport'
22293       ;;
22294
22295     sysv4*MP*)
22296       if test -d /usr/nec; then
22297         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22298         hardcode_shlibpath_var_GCJ=no
22299         runpath_var=LD_RUN_PATH
22300         hardcode_runpath_var=yes
22301         ld_shlibs_GCJ=yes
22302       fi
22303       ;;
22304
22305     sysv4.2uw2*)
22306       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22307       hardcode_direct_GCJ=yes
22308       hardcode_minus_L_GCJ=no
22309       hardcode_shlibpath_var_GCJ=no
22310       hardcode_runpath_var=yes
22311       runpath_var=LD_RUN_PATH
22312       ;;
22313
22314    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22315       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22316       if test "$GCC" = yes; then
22317         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318       else
22319         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320       fi
22321       runpath_var='LD_RUN_PATH'
22322       hardcode_shlibpath_var_GCJ=no
22323       ;;
22324
22325     sysv5*)
22326       no_undefined_flag_GCJ=' -z text'
22327       # $CC -shared without GNU ld will not create a library from C++
22328       # object files and a static libstdc++, better avoid it by now
22329       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22332       hardcode_libdir_flag_spec_GCJ=
22333       hardcode_shlibpath_var_GCJ=no
22334       runpath_var='LD_RUN_PATH'
22335       ;;
22336
22337     uts4*)
22338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22339       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22340       hardcode_shlibpath_var_GCJ=no
22341       ;;
22342
22343     *)
22344       ld_shlibs_GCJ=no
22345       ;;
22346     esac
22347   fi
22348
22349 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22350 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22351 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22352
22353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22354 if test "$GCC" = yes; then
22355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22356 fi
22357
22358 #
22359 # Do we need to explicitly link libc?
22360 #
22361 case "x$archive_cmds_need_lc_GCJ" in
22362 x|xyes)
22363   # Assume -lc should be added
22364   archive_cmds_need_lc_GCJ=yes
22365
22366   if test "$enable_shared" = yes && test "$GCC" = yes; then
22367     case $archive_cmds_GCJ in
22368     *'~'*)
22369       # FIXME: we may have to deal with multi-command sequences.
22370       ;;
22371     '$CC '*)
22372       # Test whether the compiler implicitly links with -lc since on some
22373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22374       # to ld, don't add -lc before -lgcc.
22375       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22377       $rm conftest*
22378       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22379
22380       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381   (eval $ac_compile) 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } 2>conftest.err; then
22385         soname=conftest
22386         lib=conftest
22387         libobjs=conftest.$ac_objext
22388         deplibs=
22389         wl=$lt_prog_compiler_wl_GCJ
22390         compiler_flags=-v
22391         linker_flags=-v
22392         verstring=
22393         output_objdir=.
22394         libname=conftest
22395         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22396         allow_undefined_flag_GCJ=
22397         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22398   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }
22402         then
22403           archive_cmds_need_lc_GCJ=no
22404         else
22405           archive_cmds_need_lc_GCJ=yes
22406         fi
22407         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22408       else
22409         cat conftest.err 1>&5
22410       fi
22411       $rm conftest*
22412       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22413 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22414       ;;
22415     esac
22416   fi
22417   ;;
22418 esac
22419
22420 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22421 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22422 library_names_spec=
22423 libname_spec='lib$name'
22424 soname_spec=
22425 shrext_cmds=".so"
22426 postinstall_cmds=
22427 postuninstall_cmds=
22428 finish_cmds=
22429 finish_eval=
22430 shlibpath_var=
22431 shlibpath_overrides_runpath=unknown
22432 version_type=none
22433 dynamic_linker="$host_os ld.so"
22434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22435 if test "$GCC" = yes; then
22436   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22437   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22438     # if the path contains ";" then we assume it to be the separator
22439     # otherwise default to the standard path separator (i.e. ":") - it is
22440     # assumed that no part of a normal pathname contains ";" but that should
22441     # okay in the real world where ";" in dirpaths is itself problematic.
22442     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443   else
22444     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22445   fi
22446 else
22447   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22448 fi
22449 need_lib_prefix=unknown
22450 hardcode_into_libs=no
22451
22452 # when you set need_version to no, make sure it does not cause -set_version
22453 # flags to be left without arguments
22454 need_version=unknown
22455
22456 case $host_os in
22457 aix3*)
22458   version_type=linux
22459   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22460   shlibpath_var=LIBPATH
22461
22462   # AIX 3 has no versioning support, so we append a major version to the name.
22463   soname_spec='${libname}${release}${shared_ext}$major'
22464   ;;
22465
22466 aix4* | aix5*)
22467   version_type=linux
22468   need_lib_prefix=no
22469   need_version=no
22470   hardcode_into_libs=yes
22471   if test "$host_cpu" = ia64; then
22472     # AIX 5 supports IA64
22473     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22474     shlibpath_var=LD_LIBRARY_PATH
22475   else
22476     # With GCC up to 2.95.x, collect2 would create an import file
22477     # for dependence libraries.  The import file would start with
22478     # the line `#! .'.  This would cause the generated library to
22479     # depend on `.', always an invalid library.  This was fixed in
22480     # development snapshots of GCC prior to 3.0.
22481     case $host_os in
22482       aix4 | aix4.[01] | aix4.[01].*)
22483       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22484            echo ' yes '
22485            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22486         :
22487       else
22488         can_build_shared=no
22489       fi
22490       ;;
22491     esac
22492     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22493     # soname into executable. Probably we can add versioning support to
22494     # collect2, so additional links can be useful in future.
22495     if test "$aix_use_runtimelinking" = yes; then
22496       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22497       # instead of lib<name>.a to let people know that these are not
22498       # typical AIX shared libraries.
22499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500     else
22501       # We preserve .a as extension for shared libraries through AIX4.2
22502       # and later when we are not doing run time linking.
22503       library_names_spec='${libname}${release}.a $libname.a'
22504       soname_spec='${libname}${release}${shared_ext}$major'
22505     fi
22506     shlibpath_var=LIBPATH
22507   fi
22508   ;;
22509
22510 amigaos*)
22511   library_names_spec='$libname.ixlibrary $libname.a'
22512   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22513   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'
22514   ;;
22515
22516 beos*)
22517   library_names_spec='${libname}${shared_ext}'
22518   dynamic_linker="$host_os ld.so"
22519   shlibpath_var=LIBRARY_PATH
22520   ;;
22521
22522 bsdi[45]*)
22523   version_type=linux
22524   need_version=no
22525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526   soname_spec='${libname}${release}${shared_ext}$major'
22527   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22528   shlibpath_var=LD_LIBRARY_PATH
22529   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22530   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22531   # the default ld.so.conf also contains /usr/contrib/lib and
22532   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22533   # libtool to hard-code these into programs
22534   ;;
22535
22536 cygwin* | mingw* | pw32*)
22537   version_type=windows
22538   shrext_cmds=".dll"
22539   need_version=no
22540   need_lib_prefix=no
22541
22542   case $GCC,$host_os in
22543   yes,cygwin* | yes,mingw* | yes,pw32*)
22544     library_names_spec='$libname.dll.a'
22545     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22546     postinstall_cmds='base_file=`basename \${file}`~
22547       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22548       dldir=$destdir/`dirname \$dlpath`~
22549       test -d \$dldir || mkdir -p \$dldir~
22550       $install_prog $dir/$dlname \$dldir/$dlname'
22551     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22552       dlpath=$dir/\$dldll~
22553        $rm \$dlpath'
22554     shlibpath_overrides_runpath=yes
22555
22556     case $host_os in
22557     cygwin*)
22558       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22559       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22560       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22561       ;;
22562     mingw*)
22563       # MinGW DLLs use traditional 'lib' prefix
22564       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22565       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22566       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22567         # It is most probably a Windows format PATH printed by
22568         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22569         # path with ; separators, and with drive letters. We can handle the
22570         # drive letters (cygwin fileutils understands them), so leave them,
22571         # especially as we might pass files found there to a mingw objdump,
22572         # which wouldn't understand a cygwinified path. Ahh.
22573         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22574       else
22575         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22576       fi
22577       ;;
22578     pw32*)
22579       # pw32 DLLs use 'pw' prefix rather than 'lib'
22580       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22581       ;;
22582     esac
22583     ;;
22584
22585   *)
22586     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22587     ;;
22588   esac
22589   dynamic_linker='Win32 ld.exe'
22590   # FIXME: first we should search . and the directory the executable is in
22591   shlibpath_var=PATH
22592   ;;
22593
22594 darwin* | rhapsody*)
22595   dynamic_linker="$host_os dyld"
22596   version_type=darwin
22597   need_lib_prefix=no
22598   need_version=no
22599   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22600   soname_spec='${libname}${release}${major}$shared_ext'
22601   shlibpath_overrides_runpath=yes
22602   shlibpath_var=DYLD_LIBRARY_PATH
22603   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22604   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22605   if test "$GCC" = yes; then
22606     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"`
22607   else
22608     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22609   fi
22610   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22611   ;;
22612
22613 dgux*)
22614   version_type=linux
22615   need_lib_prefix=no
22616   need_version=no
22617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22618   soname_spec='${libname}${release}${shared_ext}$major'
22619   shlibpath_var=LD_LIBRARY_PATH
22620   ;;
22621
22622 freebsd1*)
22623   dynamic_linker=no
22624   ;;
22625
22626 kfreebsd*-gnu)
22627   version_type=linux
22628   need_lib_prefix=no
22629   need_version=no
22630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631   soname_spec='${libname}${release}${shared_ext}$major'
22632   shlibpath_var=LD_LIBRARY_PATH
22633   shlibpath_overrides_runpath=no
22634   hardcode_into_libs=yes
22635   dynamic_linker='GNU ld.so'
22636   ;;
22637
22638 freebsd*)
22639   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22640   version_type=freebsd-$objformat
22641   case $version_type in
22642     freebsd-elf*)
22643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22644       need_version=no
22645       need_lib_prefix=no
22646       ;;
22647     freebsd-*)
22648       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22649       need_version=yes
22650       ;;
22651   esac
22652   shlibpath_var=LD_LIBRARY_PATH
22653   case $host_os in
22654   freebsd2*)
22655     shlibpath_overrides_runpath=yes
22656     ;;
22657   freebsd3.01* | freebsdelf3.01*)
22658     shlibpath_overrides_runpath=yes
22659     hardcode_into_libs=yes
22660     ;;
22661   *) # from 3.2 on
22662     shlibpath_overrides_runpath=no
22663     hardcode_into_libs=yes
22664     ;;
22665   esac
22666   ;;
22667
22668 gnu*)
22669   version_type=linux
22670   need_lib_prefix=no
22671   need_version=no
22672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22673   soname_spec='${libname}${release}${shared_ext}$major'
22674   shlibpath_var=LD_LIBRARY_PATH
22675   hardcode_into_libs=yes
22676   ;;
22677
22678 hpux9* | hpux10* | hpux11*)
22679   # Give a soname corresponding to the major version so that dld.sl refuses to
22680   # link against other versions.
22681   version_type=sunos
22682   need_lib_prefix=no
22683   need_version=no
22684   case "$host_cpu" in
22685   ia64*)
22686     shrext_cmds='.so'
22687     hardcode_into_libs=yes
22688     dynamic_linker="$host_os dld.so"
22689     shlibpath_var=LD_LIBRARY_PATH
22690     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692     soname_spec='${libname}${release}${shared_ext}$major'
22693     if test "X$HPUX_IA64_MODE" = X32; then
22694       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22695     else
22696       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22697     fi
22698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699     ;;
22700    hppa*64*)
22701      shrext_cmds='.sl'
22702      hardcode_into_libs=yes
22703      dynamic_linker="$host_os dld.sl"
22704      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22705      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22706      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22707      soname_spec='${libname}${release}${shared_ext}$major'
22708      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22709      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22710      ;;
22711    *)
22712     shrext_cmds='.sl'
22713     dynamic_linker="$host_os dld.sl"
22714     shlibpath_var=SHLIB_PATH
22715     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717     soname_spec='${libname}${release}${shared_ext}$major'
22718     ;;
22719   esac
22720   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22721   postinstall_cmds='chmod 555 $lib'
22722   ;;
22723
22724 irix5* | irix6* | nonstopux*)
22725   case $host_os in
22726     nonstopux*) version_type=nonstopux ;;
22727     *)
22728         if test "$lt_cv_prog_gnu_ld" = yes; then
22729                 version_type=linux
22730         else
22731                 version_type=irix
22732         fi ;;
22733   esac
22734   need_lib_prefix=no
22735   need_version=no
22736   soname_spec='${libname}${release}${shared_ext}$major'
22737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22738   case $host_os in
22739   irix5* | nonstopux*)
22740     libsuff= shlibsuff=
22741     ;;
22742   *)
22743     case $LD in # libtool.m4 will add one of these switches to LD
22744     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22745       libsuff= shlibsuff= libmagic=32-bit;;
22746     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22747       libsuff=32 shlibsuff=N32 libmagic=N32;;
22748     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22749       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22750     *) libsuff= shlibsuff= libmagic=never-match;;
22751     esac
22752     ;;
22753   esac
22754   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22755   shlibpath_overrides_runpath=no
22756   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22757   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22758   hardcode_into_libs=yes
22759   ;;
22760
22761 # No shared lib support for Linux oldld, aout, or coff.
22762 linux*oldld* | linux*aout* | linux*coff*)
22763   dynamic_linker=no
22764   ;;
22765
22766 # This must be Linux ELF.
22767 linux*)
22768   version_type=linux
22769   need_lib_prefix=no
22770   need_version=no
22771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772   soname_spec='${libname}${release}${shared_ext}$major'
22773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22774   shlibpath_var=LD_LIBRARY_PATH
22775   shlibpath_overrides_runpath=no
22776   # This implies no fast_install, which is unacceptable.
22777   # Some rework will be needed to allow for fast_install
22778   # before this can be enabled.
22779   hardcode_into_libs=yes
22780
22781   # Append ld.so.conf contents to the search path
22782   if test -f /etc/ld.so.conf; then
22783     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22784     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22785   fi
22786
22787   # We used to test for /lib/ld.so.1 and disable shared libraries on
22788   # powerpc, because MkLinux only supported shared libraries with the
22789   # GNU dynamic linker.  Since this was broken with cross compilers,
22790   # most powerpc-linux boxes support dynamic linking these days and
22791   # people can always --disable-shared, the test was removed, and we
22792   # assume the GNU/Linux dynamic linker is in use.
22793   dynamic_linker='GNU/Linux ld.so'
22794   ;;
22795
22796 knetbsd*-gnu)
22797   version_type=linux
22798   need_lib_prefix=no
22799   need_version=no
22800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801   soname_spec='${libname}${release}${shared_ext}$major'
22802   shlibpath_var=LD_LIBRARY_PATH
22803   shlibpath_overrides_runpath=no
22804   hardcode_into_libs=yes
22805   dynamic_linker='GNU ld.so'
22806   ;;
22807
22808 netbsd*)
22809   version_type=sunos
22810   need_lib_prefix=no
22811   need_version=no
22812   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815     dynamic_linker='NetBSD (a.out) ld.so'
22816   else
22817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22818     soname_spec='${libname}${release}${shared_ext}$major'
22819     dynamic_linker='NetBSD ld.elf_so'
22820   fi
22821   shlibpath_var=LD_LIBRARY_PATH
22822   shlibpath_overrides_runpath=yes
22823   hardcode_into_libs=yes
22824   ;;
22825
22826 newsos6)
22827   version_type=linux
22828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22829   shlibpath_var=LD_LIBRARY_PATH
22830   shlibpath_overrides_runpath=yes
22831   ;;
22832
22833 nto-qnx*)
22834   version_type=linux
22835   need_lib_prefix=no
22836   need_version=no
22837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838   soname_spec='${libname}${release}${shared_ext}$major'
22839   shlibpath_var=LD_LIBRARY_PATH
22840   shlibpath_overrides_runpath=yes
22841   ;;
22842
22843 openbsd*)
22844   version_type=sunos
22845   need_lib_prefix=no
22846   need_version=no
22847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22849   shlibpath_var=LD_LIBRARY_PATH
22850   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22851     case $host_os in
22852       openbsd2.[89] | openbsd2.[89].*)
22853         shlibpath_overrides_runpath=no
22854         ;;
22855       *)
22856         shlibpath_overrides_runpath=yes
22857         ;;
22858       esac
22859   else
22860     shlibpath_overrides_runpath=yes
22861   fi
22862   ;;
22863
22864 os2*)
22865   libname_spec='$name'
22866   shrext_cmds=".dll"
22867   need_lib_prefix=no
22868   library_names_spec='$libname${shared_ext} $libname.a'
22869   dynamic_linker='OS/2 ld.exe'
22870   shlibpath_var=LIBPATH
22871   ;;
22872
22873 osf3* | osf4* | osf5*)
22874   version_type=osf
22875   need_lib_prefix=no
22876   need_version=no
22877   soname_spec='${libname}${release}${shared_ext}$major'
22878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879   shlibpath_var=LD_LIBRARY_PATH
22880   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22881   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22882   ;;
22883
22884 sco3.2v5*)
22885   version_type=osf
22886   soname_spec='${libname}${release}${shared_ext}$major'
22887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888   shlibpath_var=LD_LIBRARY_PATH
22889   ;;
22890
22891 solaris*)
22892   version_type=linux
22893   need_lib_prefix=no
22894   need_version=no
22895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896   soname_spec='${libname}${release}${shared_ext}$major'
22897   shlibpath_var=LD_LIBRARY_PATH
22898   shlibpath_overrides_runpath=yes
22899   hardcode_into_libs=yes
22900   # ldd complains unless libraries are executable
22901   postinstall_cmds='chmod +x $lib'
22902   ;;
22903
22904 sunos4*)
22905   version_type=sunos
22906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22908   shlibpath_var=LD_LIBRARY_PATH
22909   shlibpath_overrides_runpath=yes
22910   if test "$with_gnu_ld" = yes; then
22911     need_lib_prefix=no
22912   fi
22913   need_version=yes
22914   ;;
22915
22916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22917   version_type=linux
22918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919   soname_spec='${libname}${release}${shared_ext}$major'
22920   shlibpath_var=LD_LIBRARY_PATH
22921   case $host_vendor in
22922     sni)
22923       shlibpath_overrides_runpath=no
22924       need_lib_prefix=no
22925       export_dynamic_flag_spec='${wl}-Blargedynsym'
22926       runpath_var=LD_RUN_PATH
22927       ;;
22928     siemens)
22929       need_lib_prefix=no
22930       ;;
22931     motorola)
22932       need_lib_prefix=no
22933       need_version=no
22934       shlibpath_overrides_runpath=no
22935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22936       ;;
22937   esac
22938   ;;
22939
22940 sysv4*MP*)
22941   if test -d /usr/nec ;then
22942     version_type=linux
22943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22944     soname_spec='$libname${shared_ext}.$major'
22945     shlibpath_var=LD_LIBRARY_PATH
22946   fi
22947   ;;
22948
22949 uts4*)
22950   version_type=linux
22951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952   soname_spec='${libname}${release}${shared_ext}$major'
22953   shlibpath_var=LD_LIBRARY_PATH
22954   ;;
22955
22956 *)
22957   dynamic_linker=no
22958   ;;
22959 esac
22960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22961 echo "${ECHO_T}$dynamic_linker" >&6
22962 test "$dynamic_linker" = no && can_build_shared=no
22963
22964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22966 hardcode_action_GCJ=
22967 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22968    test -n "$runpath_var_GCJ" || \
22969    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22970
22971   # We can hardcode non-existant directories.
22972   if test "$hardcode_direct_GCJ" != no &&
22973      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22974      # have to relink, otherwise we might link with an installed library
22975      # when we should be linking with a yet-to-be-installed one
22976      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22977      test "$hardcode_minus_L_GCJ" != no; then
22978     # Linking always hardcodes the temporary library directory.
22979     hardcode_action_GCJ=relink
22980   else
22981     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22982     hardcode_action_GCJ=immediate
22983   fi
22984 else
22985   # We cannot hardcode anything, or else we can only hardcode existing
22986   # directories.
22987   hardcode_action_GCJ=unsupported
22988 fi
22989 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22990 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22991
22992 if test "$hardcode_action_GCJ" = relink; then
22993   # Fast installation is not supported
22994   enable_fast_install=no
22995 elif test "$shlibpath_overrides_runpath" = yes ||
22996      test "$enable_shared" = no; then
22997   # Fast installation is not necessary
22998   enable_fast_install=needless
22999 fi
23000
23001 striplib=
23002 old_striplib=
23003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23006   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23007   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23008   echo "$as_me:$LINENO: result: yes" >&5
23009 echo "${ECHO_T}yes" >&6
23010 else
23011 # FIXME - insert some real tests, host_os isn't really good enough
23012   case $host_os in
23013    darwin*)
23014        if test -n "$STRIP" ; then
23015          striplib="$STRIP -x"
23016          echo "$as_me:$LINENO: result: yes" >&5
23017 echo "${ECHO_T}yes" >&6
23018        else
23019   echo "$as_me:$LINENO: result: no" >&5
23020 echo "${ECHO_T}no" >&6
23021 fi
23022        ;;
23023    *)
23024   echo "$as_me:$LINENO: result: no" >&5
23025 echo "${ECHO_T}no" >&6
23026     ;;
23027   esac
23028 fi
23029
23030 if test "x$enable_dlopen" != xyes; then
23031   enable_dlopen=unknown
23032   enable_dlopen_self=unknown
23033   enable_dlopen_self_static=unknown
23034 else
23035   lt_cv_dlopen=no
23036   lt_cv_dlopen_libs=
23037
23038   case $host_os in
23039   beos*)
23040     lt_cv_dlopen="load_add_on"
23041     lt_cv_dlopen_libs=
23042     lt_cv_dlopen_self=yes
23043     ;;
23044
23045   mingw* | pw32*)
23046     lt_cv_dlopen="LoadLibrary"
23047     lt_cv_dlopen_libs=
23048    ;;
23049
23050   cygwin*)
23051     lt_cv_dlopen="dlopen"
23052     lt_cv_dlopen_libs=
23053    ;;
23054
23055   darwin*)
23056   # if libdl is installed we need to link against it
23057     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-ldl  $LIBS"
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070
23071 /* Override any gcc2 internal prototype to avoid an error.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 /* We use char because int might match the return type of a gcc2
23076    builtin and then its argument prototype would still apply.  */
23077 char dlopen ();
23078 int
23079 main ()
23080 {
23081 dlopen ();
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088   (eval $ac_link) 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -z "$ac_c_werror_flag"
23096                          || test ! -s conftest.err'
23097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098   (eval $ac_try) 2>&5
23099   ac_status=$?
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); }; } &&
23102          { ac_try='test -s conftest$ac_exeext'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; }; then
23108   ac_cv_lib_dl_dlopen=yes
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_lib_dl_dlopen=no
23114 fi
23115 rm -f conftest.err conftest.$ac_objext \
23116       conftest$ac_exeext conftest.$ac_ext
23117 LIBS=$ac_check_lib_save_LIBS
23118 fi
23119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23121 if test $ac_cv_lib_dl_dlopen = yes; then
23122   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23123 else
23124
23125     lt_cv_dlopen="dyld"
23126     lt_cv_dlopen_libs=
23127     lt_cv_dlopen_self=yes
23128
23129 fi
23130
23131    ;;
23132
23133   *)
23134     echo "$as_me:$LINENO: checking for shl_load" >&5
23135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23136 if test "${ac_cv_func_shl_load+set}" = set; then
23137   echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139   cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23147 #define shl_load innocuous_shl_load
23148
23149 /* System header to define __stub macros and hopefully few prototypes,
23150     which can conflict with char shl_load (); below.
23151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152     <limits.h> exists even on freestanding compilers.  */
23153
23154 #ifdef __STDC__
23155 # include <limits.h>
23156 #else
23157 # include <assert.h>
23158 #endif
23159
23160 #undef shl_load
23161
23162 /* Override any gcc2 internal prototype to avoid an error.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 {
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char shl_load ();
23170 /* The GNU C library defines this for functions which it implements
23171     to always fail with ENOSYS.  Some functions are actually named
23172     something starting with __ and the normal name is an alias.  */
23173 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23174 choke me
23175 #else
23176 char (*f) () = shl_load;
23177 #endif
23178 #ifdef __cplusplus
23179 }
23180 #endif
23181
23182 int
23183 main ()
23184 {
23185 return f != shl_load;
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192   (eval $ac_link) 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } &&
23199          { ac_try='test -z "$ac_c_werror_flag"
23200                          || test ! -s conftest.err'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; } &&
23206          { ac_try='test -s conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   ac_cv_func_shl_load=yes
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 ac_cv_func_shl_load=no
23218 fi
23219 rm -f conftest.err conftest.$ac_objext \
23220       conftest$ac_exeext conftest.$ac_ext
23221 fi
23222 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23223 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23224 if test $ac_cv_func_shl_load = yes; then
23225   lt_cv_dlopen="shl_load"
23226 else
23227   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23228 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23229 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   ac_check_lib_save_LIBS=$LIBS
23233 LIBS="-ldld  $LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 /* Override any gcc2 internal prototype to avoid an error.  */
23242 #ifdef __cplusplus
23243 extern "C"
23244 #endif
23245 /* We use char because int might match the return type of a gcc2
23246    builtin and then its argument prototype would still apply.  */
23247 char shl_load ();
23248 int
23249 main ()
23250 {
23251 shl_load ();
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258   (eval $ac_link) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag"
23266                          || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest$ac_exeext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_cv_lib_dld_shl_load=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_cv_lib_dld_shl_load=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext \
23286       conftest$ac_exeext conftest.$ac_ext
23287 LIBS=$ac_check_lib_save_LIBS
23288 fi
23289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23291 if test $ac_cv_lib_dld_shl_load = yes; then
23292   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23293 else
23294   echo "$as_me:$LINENO: checking for dlopen" >&5
23295 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23296 if test "${ac_cv_func_dlopen+set}" = set; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299   cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23307 #define dlopen innocuous_dlopen
23308
23309 /* System header to define __stub macros and hopefully few prototypes,
23310     which can conflict with char dlopen (); below.
23311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312     <limits.h> exists even on freestanding compilers.  */
23313
23314 #ifdef __STDC__
23315 # include <limits.h>
23316 #else
23317 # include <assert.h>
23318 #endif
23319
23320 #undef dlopen
23321
23322 /* Override any gcc2 internal prototype to avoid an error.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 {
23326 #endif
23327 /* We use char because int might match the return type of a gcc2
23328    builtin and then its argument prototype would still apply.  */
23329 char dlopen ();
23330 /* The GNU C library defines this for functions which it implements
23331     to always fail with ENOSYS.  Some functions are actually named
23332     something starting with __ and the normal name is an alias.  */
23333 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23334 choke me
23335 #else
23336 char (*f) () = dlopen;
23337 #endif
23338 #ifdef __cplusplus
23339 }
23340 #endif
23341
23342 int
23343 main ()
23344 {
23345 return f != dlopen;
23346   ;
23347   return 0;
23348 }
23349 _ACEOF
23350 rm -f conftest.$ac_objext conftest$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352   (eval $ac_link) 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } &&
23359          { ac_try='test -z "$ac_c_werror_flag"
23360                          || test ! -s conftest.err'
23361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362   (eval $ac_try) 2>&5
23363   ac_status=$?
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); }; } &&
23366          { ac_try='test -s conftest$ac_exeext'
23367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368   (eval $ac_try) 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; }; then
23372   ac_cv_func_dlopen=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377 ac_cv_func_dlopen=no
23378 fi
23379 rm -f conftest.err conftest.$ac_objext \
23380       conftest$ac_exeext conftest.$ac_ext
23381 fi
23382 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23383 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23384 if test $ac_cv_func_dlopen = yes; then
23385   lt_cv_dlopen="dlopen"
23386 else
23387   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392   ac_check_lib_save_LIBS=$LIBS
23393 LIBS="-ldl  $LIBS"
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400
23401 /* Override any gcc2 internal prototype to avoid an error.  */
23402 #ifdef __cplusplus
23403 extern "C"
23404 #endif
23405 /* We use char because int might match the return type of a gcc2
23406    builtin and then its argument prototype would still apply.  */
23407 char dlopen ();
23408 int
23409 main ()
23410 {
23411 dlopen ();
23412   ;
23413   return 0;
23414 }
23415 _ACEOF
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418   (eval $ac_link) 2>conftest.er1
23419   ac_status=$?
23420   grep -v '^ *+' conftest.er1 >conftest.err
23421   rm -f conftest.er1
23422   cat conftest.err >&5
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } &&
23425          { ac_try='test -z "$ac_c_werror_flag"
23426                          || test ! -s conftest.err'
23427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); }; } &&
23432          { ac_try='test -s conftest$ac_exeext'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; }; then
23438   ac_cv_lib_dl_dlopen=yes
23439 else
23440   echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23442
23443 ac_cv_lib_dl_dlopen=no
23444 fi
23445 rm -f conftest.err conftest.$ac_objext \
23446       conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23448 fi
23449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23451 if test $ac_cv_lib_dl_dlopen = yes; then
23452   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23453 else
23454   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23455 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459   ac_check_lib_save_LIBS=$LIBS
23460 LIBS="-lsvld  $LIBS"
23461 cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467
23468 /* Override any gcc2 internal prototype to avoid an error.  */
23469 #ifdef __cplusplus
23470 extern "C"
23471 #endif
23472 /* We use char because int might match the return type of a gcc2
23473    builtin and then its argument prototype would still apply.  */
23474 char dlopen ();
23475 int
23476 main ()
23477 {
23478 dlopen ();
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext conftest$ac_exeext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23485   (eval $ac_link) 2>conftest.er1
23486   ac_status=$?
23487   grep -v '^ *+' conftest.er1 >conftest.err
23488   rm -f conftest.er1
23489   cat conftest.err >&5
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } &&
23492          { ac_try='test -z "$ac_c_werror_flag"
23493                          || test ! -s conftest.err'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; } &&
23499          { ac_try='test -s conftest$ac_exeext'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; }; then
23505   ac_cv_lib_svld_dlopen=yes
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 ac_cv_lib_svld_dlopen=no
23511 fi
23512 rm -f conftest.err conftest.$ac_objext \
23513       conftest$ac_exeext conftest.$ac_ext
23514 LIBS=$ac_check_lib_save_LIBS
23515 fi
23516 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23517 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23518 if test $ac_cv_lib_svld_dlopen = yes; then
23519   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23520 else
23521   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23522 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23523 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   ac_check_lib_save_LIBS=$LIBS
23527 LIBS="-ldld  $LIBS"
23528 cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534
23535 /* Override any gcc2 internal prototype to avoid an error.  */
23536 #ifdef __cplusplus
23537 extern "C"
23538 #endif
23539 /* We use char because int might match the return type of a gcc2
23540    builtin and then its argument prototype would still apply.  */
23541 char dld_link ();
23542 int
23543 main ()
23544 {
23545 dld_link ();
23546   ;
23547   return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext conftest$ac_exeext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552   (eval $ac_link) 2>conftest.er1
23553   ac_status=$?
23554   grep -v '^ *+' conftest.er1 >conftest.err
23555   rm -f conftest.er1
23556   cat conftest.err >&5
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } &&
23559          { ac_try='test -z "$ac_c_werror_flag"
23560                          || test ! -s conftest.err'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; } &&
23566          { ac_try='test -s conftest$ac_exeext'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572   ac_cv_lib_dld_dld_link=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577 ac_cv_lib_dld_dld_link=no
23578 fi
23579 rm -f conftest.err conftest.$ac_objext \
23580       conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23582 fi
23583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23585 if test $ac_cv_lib_dld_dld_link = yes; then
23586   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23587 fi
23588
23589
23590 fi
23591
23592
23593 fi
23594
23595
23596 fi
23597
23598
23599 fi
23600
23601
23602 fi
23603
23604     ;;
23605   esac
23606
23607   if test "x$lt_cv_dlopen" != xno; then
23608     enable_dlopen=yes
23609   else
23610     enable_dlopen=no
23611   fi
23612
23613   case $lt_cv_dlopen in
23614   dlopen)
23615     save_CPPFLAGS="$CPPFLAGS"
23616     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23617
23618     save_LDFLAGS="$LDFLAGS"
23619     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23620
23621     save_LIBS="$LIBS"
23622     LIBS="$lt_cv_dlopen_libs $LIBS"
23623
23624     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23626 if test "${lt_cv_dlopen_self+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629           if test "$cross_compiling" = yes; then :
23630   lt_cv_dlopen_self=cross
23631 else
23632   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23633   lt_status=$lt_dlunknown
23634   cat > conftest.$ac_ext <<EOF
23635 #line 23635 "configure"
23636 #include "confdefs.h"
23637
23638 #if HAVE_DLFCN_H
23639 #include <dlfcn.h>
23640 #endif
23641
23642 #include <stdio.h>
23643
23644 #ifdef RTLD_GLOBAL
23645 #  define LT_DLGLOBAL           RTLD_GLOBAL
23646 #else
23647 #  ifdef DL_GLOBAL
23648 #    define LT_DLGLOBAL         DL_GLOBAL
23649 #  else
23650 #    define LT_DLGLOBAL         0
23651 #  endif
23652 #endif
23653
23654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23655    find out it does not work in some platform. */
23656 #ifndef LT_DLLAZY_OR_NOW
23657 #  ifdef RTLD_LAZY
23658 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23659 #  else
23660 #    ifdef DL_LAZY
23661 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23662 #    else
23663 #      ifdef RTLD_NOW
23664 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23665 #      else
23666 #        ifdef DL_NOW
23667 #          define LT_DLLAZY_OR_NOW      DL_NOW
23668 #        else
23669 #          define LT_DLLAZY_OR_NOW      0
23670 #        endif
23671 #      endif
23672 #    endif
23673 #  endif
23674 #endif
23675
23676 #ifdef __cplusplus
23677 extern "C" void exit (int);
23678 #endif
23679
23680 void fnord() { int i=42;}
23681 int main ()
23682 {
23683   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23684   int status = $lt_dlunknown;
23685
23686   if (self)
23687     {
23688       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23689       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23690       /* dlclose (self); */
23691     }
23692
23693     exit (status);
23694 }
23695 EOF
23696   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697   (eval $ac_link) 2>&5
23698   ac_status=$?
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23701     (./conftest; exit; ) 2>/dev/null
23702     lt_status=$?
23703     case x$lt_status in
23704       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23705       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23706       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23707     esac
23708   else :
23709     # compilation failed
23710     lt_cv_dlopen_self=no
23711   fi
23712 fi
23713 rm -fr conftest*
23714
23715
23716 fi
23717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23718 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23719
23720     if test "x$lt_cv_dlopen_self" = xyes; then
23721       LDFLAGS="$LDFLAGS $link_static_flag"
23722       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23723 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23724 if test "${lt_cv_dlopen_self_static+set}" = set; then
23725   echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727           if test "$cross_compiling" = yes; then :
23728   lt_cv_dlopen_self_static=cross
23729 else
23730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23731   lt_status=$lt_dlunknown
23732   cat > conftest.$ac_ext <<EOF
23733 #line 23733 "configure"
23734 #include "confdefs.h"
23735
23736 #if HAVE_DLFCN_H
23737 #include <dlfcn.h>
23738 #endif
23739
23740 #include <stdio.h>
23741
23742 #ifdef RTLD_GLOBAL
23743 #  define LT_DLGLOBAL           RTLD_GLOBAL
23744 #else
23745 #  ifdef DL_GLOBAL
23746 #    define LT_DLGLOBAL         DL_GLOBAL
23747 #  else
23748 #    define LT_DLGLOBAL         0
23749 #  endif
23750 #endif
23751
23752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23753    find out it does not work in some platform. */
23754 #ifndef LT_DLLAZY_OR_NOW
23755 #  ifdef RTLD_LAZY
23756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23757 #  else
23758 #    ifdef DL_LAZY
23759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23760 #    else
23761 #      ifdef RTLD_NOW
23762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23763 #      else
23764 #        ifdef DL_NOW
23765 #          define LT_DLLAZY_OR_NOW      DL_NOW
23766 #        else
23767 #          define LT_DLLAZY_OR_NOW      0
23768 #        endif
23769 #      endif
23770 #    endif
23771 #  endif
23772 #endif
23773
23774 #ifdef __cplusplus
23775 extern "C" void exit (int);
23776 #endif
23777
23778 void fnord() { int i=42;}
23779 int main ()
23780 {
23781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23782   int status = $lt_dlunknown;
23783
23784   if (self)
23785     {
23786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23787       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23788       /* dlclose (self); */
23789     }
23790
23791     exit (status);
23792 }
23793 EOF
23794   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795   (eval $ac_link) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23799     (./conftest; exit; ) 2>/dev/null
23800     lt_status=$?
23801     case x$lt_status in
23802       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23803       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23804       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23805     esac
23806   else :
23807     # compilation failed
23808     lt_cv_dlopen_self_static=no
23809   fi
23810 fi
23811 rm -fr conftest*
23812
23813
23814 fi
23815 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23816 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23817     fi
23818
23819     CPPFLAGS="$save_CPPFLAGS"
23820     LDFLAGS="$save_LDFLAGS"
23821     LIBS="$save_LIBS"
23822     ;;
23823   esac
23824
23825   case $lt_cv_dlopen_self in
23826   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23827   *) enable_dlopen_self=unknown ;;
23828   esac
23829
23830   case $lt_cv_dlopen_self_static in
23831   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23832   *) enable_dlopen_self_static=unknown ;;
23833   esac
23834 fi
23835
23836
23837 # The else clause should only fire when bootstrapping the
23838 # libtool distribution, otherwise you forgot to ship ltmain.sh
23839 # with your package, and you will get complaints that there are
23840 # no rules to generate ltmain.sh.
23841 if test -f "$ltmain"; then
23842   # See if we are running on zsh, and set the options which allow our commands through
23843   # without removal of \ escapes.
23844   if test -n "${ZSH_VERSION+set}" ; then
23845     setopt NO_GLOB_SUBST
23846   fi
23847   # Now quote all the things that may contain metacharacters while being
23848   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23849   # variables and quote the copies for generation of the libtool script.
23850   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23851     SED SHELL STRIP \
23852     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23853     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23854     deplibs_check_method reload_flag reload_cmds need_locks \
23855     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23856     lt_cv_sys_global_symbol_to_c_name_address \
23857     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23858     old_postinstall_cmds old_postuninstall_cmds \
23859     compiler_GCJ \
23860     CC_GCJ \
23861     LD_GCJ \
23862     lt_prog_compiler_wl_GCJ \
23863     lt_prog_compiler_pic_GCJ \
23864     lt_prog_compiler_static_GCJ \
23865     lt_prog_compiler_no_builtin_flag_GCJ \
23866     export_dynamic_flag_spec_GCJ \
23867     thread_safe_flag_spec_GCJ \
23868     whole_archive_flag_spec_GCJ \
23869     enable_shared_with_static_runtimes_GCJ \
23870     old_archive_cmds_GCJ \
23871     old_archive_from_new_cmds_GCJ \
23872     predep_objects_GCJ \
23873     postdep_objects_GCJ \
23874     predeps_GCJ \
23875     postdeps_GCJ \
23876     compiler_lib_search_path_GCJ \
23877     archive_cmds_GCJ \
23878     archive_expsym_cmds_GCJ \
23879     postinstall_cmds_GCJ \
23880     postuninstall_cmds_GCJ \
23881     old_archive_from_expsyms_cmds_GCJ \
23882     allow_undefined_flag_GCJ \
23883     no_undefined_flag_GCJ \
23884     export_symbols_cmds_GCJ \
23885     hardcode_libdir_flag_spec_GCJ \
23886     hardcode_libdir_flag_spec_ld_GCJ \
23887     hardcode_libdir_separator_GCJ \
23888     hardcode_automatic_GCJ \
23889     module_cmds_GCJ \
23890     module_expsym_cmds_GCJ \
23891     lt_cv_prog_compiler_c_o_GCJ \
23892     exclude_expsyms_GCJ \
23893     include_expsyms_GCJ; do
23894
23895     case $var in
23896     old_archive_cmds_GCJ | \
23897     old_archive_from_new_cmds_GCJ | \
23898     archive_cmds_GCJ | \
23899     archive_expsym_cmds_GCJ | \
23900     module_cmds_GCJ | \
23901     module_expsym_cmds_GCJ | \
23902     old_archive_from_expsyms_cmds_GCJ | \
23903     export_symbols_cmds_GCJ | \
23904     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23905     postinstall_cmds | postuninstall_cmds | \
23906     old_postinstall_cmds | old_postuninstall_cmds | \
23907     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23908       # Double-quote double-evaled strings.
23909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23910       ;;
23911     *)
23912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23913       ;;
23914     esac
23915   done
23916
23917   case $lt_echo in
23918   *'\$0 --fallback-echo"')
23919     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23920     ;;
23921   esac
23922
23923 cfgfile="$ofile"
23924
23925   cat <<__EOF__ >> "$cfgfile"
23926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23927
23928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23929
23930 # Shell to use when invoking shell scripts.
23931 SHELL=$lt_SHELL
23932
23933 # Whether or not to build shared libraries.
23934 build_libtool_libs=$enable_shared
23935
23936 # Whether or not to build static libraries.
23937 build_old_libs=$enable_static
23938
23939 # Whether or not to add -lc for building shared libraries.
23940 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23941
23942 # Whether or not to disallow shared libs when runtime libs are static
23943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23944
23945 # Whether or not to optimize for fast installation.
23946 fast_install=$enable_fast_install
23947
23948 # The host system.
23949 host_alias=$host_alias
23950 host=$host
23951
23952 # An echo program that does not interpret backslashes.
23953 echo=$lt_echo
23954
23955 # The archiver.
23956 AR=$lt_AR
23957 AR_FLAGS=$lt_AR_FLAGS
23958
23959 # A C compiler.
23960 LTCC=$lt_LTCC
23961
23962 # A language-specific compiler.
23963 CC=$lt_compiler_GCJ
23964
23965 # Is the compiler the GNU C compiler?
23966 with_gcc=$GCC_GCJ
23967
23968 # An ERE matcher.
23969 EGREP=$lt_EGREP
23970
23971 # The linker used to build libraries.
23972 LD=$lt_LD_GCJ
23973
23974 # Whether we need hard or soft links.
23975 LN_S=$lt_LN_S
23976
23977 # A BSD-compatible nm program.
23978 NM=$lt_NM
23979
23980 # A symbol stripping program
23981 STRIP=$lt_STRIP
23982
23983 # Used to examine libraries when file_magic_cmd begins "file"
23984 MAGIC_CMD=$MAGIC_CMD
23985
23986 # Used on cygwin: DLL creation program.
23987 DLLTOOL="$DLLTOOL"
23988
23989 # Used on cygwin: object dumper.
23990 OBJDUMP="$OBJDUMP"
23991
23992 # Used on cygwin: assembler.
23993 AS="$AS"
23994
23995 # The name of the directory that contains temporary libtool files.
23996 objdir=$objdir
23997
23998 # How to create reloadable object files.
23999 reload_flag=$lt_reload_flag
24000 reload_cmds=$lt_reload_cmds
24001
24002 # How to pass a linker flag through the compiler.
24003 wl=$lt_lt_prog_compiler_wl_GCJ
24004
24005 # Object file suffix (normally "o").
24006 objext="$ac_objext"
24007
24008 # Old archive suffix (normally "a").
24009 libext="$libext"
24010
24011 # Shared library suffix (normally ".so").
24012 shrext_cmds='$shrext_cmds'
24013
24014 # Executable file suffix (normally "").
24015 exeext="$exeext"
24016
24017 # Additional compiler flags for building library objects.
24018 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24019 pic_mode=$pic_mode
24020
24021 # What is the maximum length of a command?
24022 max_cmd_len=$lt_cv_sys_max_cmd_len
24023
24024 # Does compiler simultaneously support -c and -o options?
24025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24026
24027 # Must we lock files when doing compilation ?
24028 need_locks=$lt_need_locks
24029
24030 # Do we need the lib prefix for modules?
24031 need_lib_prefix=$need_lib_prefix
24032
24033 # Do we need a version for libraries?
24034 need_version=$need_version
24035
24036 # Whether dlopen is supported.
24037 dlopen_support=$enable_dlopen
24038
24039 # Whether dlopen of programs is supported.
24040 dlopen_self=$enable_dlopen_self
24041
24042 # Whether dlopen of statically linked programs is supported.
24043 dlopen_self_static=$enable_dlopen_self_static
24044
24045 # Compiler flag to prevent dynamic linking.
24046 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24047
24048 # Compiler flag to turn off builtin functions.
24049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24050
24051 # Compiler flag to allow reflexive dlopens.
24052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24053
24054 # Compiler flag to generate shared objects directly from archives.
24055 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24056
24057 # Compiler flag to generate thread-safe objects.
24058 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24059
24060 # Library versioning type.
24061 version_type=$version_type
24062
24063 # Format of library name prefix.
24064 libname_spec=$lt_libname_spec
24065
24066 # List of archive names.  First name is the real one, the rest are links.
24067 # The last name is the one that the linker finds with -lNAME.
24068 library_names_spec=$lt_library_names_spec
24069
24070 # The coded name of the library, if different from the real name.
24071 soname_spec=$lt_soname_spec
24072
24073 # Commands used to build and install an old-style archive.
24074 RANLIB=$lt_RANLIB
24075 old_archive_cmds=$lt_old_archive_cmds_GCJ
24076 old_postinstall_cmds=$lt_old_postinstall_cmds
24077 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24078
24079 # Create an old-style archive from a shared archive.
24080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24081
24082 # Create a temporary old-style archive to link instead of a shared archive.
24083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24084
24085 # Commands used to build and install a shared archive.
24086 archive_cmds=$lt_archive_cmds_GCJ
24087 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24088 postinstall_cmds=$lt_postinstall_cmds
24089 postuninstall_cmds=$lt_postuninstall_cmds
24090
24091 # Commands used to build a loadable module (assumed same as above if empty)
24092 module_cmds=$lt_module_cmds_GCJ
24093 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24094
24095 # Commands to strip libraries.
24096 old_striplib=$lt_old_striplib
24097 striplib=$lt_striplib
24098
24099 # Dependencies to place before the objects being linked to create a
24100 # shared library.
24101 predep_objects=$lt_predep_objects_GCJ
24102
24103 # Dependencies to place after the objects being linked to create a
24104 # shared library.
24105 postdep_objects=$lt_postdep_objects_GCJ
24106
24107 # Dependencies to place before the objects being linked to create a
24108 # shared library.
24109 predeps=$lt_predeps_GCJ
24110
24111 # Dependencies to place after the objects being linked to create a
24112 # shared library.
24113 postdeps=$lt_postdeps_GCJ
24114
24115 # The library search path used internally by the compiler when linking
24116 # a shared library.
24117 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24118
24119 # Method to check whether dependent libraries are shared objects.
24120 deplibs_check_method=$lt_deplibs_check_method
24121
24122 # Command to use when deplibs_check_method == file_magic.
24123 file_magic_cmd=$lt_file_magic_cmd
24124
24125 # Flag that allows shared libraries with undefined symbols to be built.
24126 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24127
24128 # Flag that forces no undefined symbols.
24129 no_undefined_flag=$lt_no_undefined_flag_GCJ
24130
24131 # Commands used to finish a libtool library installation in a directory.
24132 finish_cmds=$lt_finish_cmds
24133
24134 # Same as above, but a single script fragment to be evaled but not shown.
24135 finish_eval=$lt_finish_eval
24136
24137 # Take the output of nm and produce a listing of raw symbols and C names.
24138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24139
24140 # Transform the output of nm in a proper C declaration
24141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24142
24143 # Transform the output of nm in a C name address pair
24144 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24145
24146 # This is the shared library runtime path variable.
24147 runpath_var=$runpath_var
24148
24149 # This is the shared library path variable.
24150 shlibpath_var=$shlibpath_var
24151
24152 # Is shlibpath searched before the hard-coded library search path?
24153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154
24155 # How to hardcode a shared library path into an executable.
24156 hardcode_action=$hardcode_action_GCJ
24157
24158 # Whether we should hardcode library paths into libraries.
24159 hardcode_into_libs=$hardcode_into_libs
24160
24161 # Flag to hardcode \$libdir into a binary during linking.
24162 # This must work even if \$libdir does not exist.
24163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24164
24165 # If ld is used when linking, flag to hardcode \$libdir into
24166 # a binary during linking. This must work even if \$libdir does
24167 # not exist.
24168 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24169
24170 # Whether we need a single -rpath flag with a separated argument.
24171 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24172
24173 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24174 # resulting binary.
24175 hardcode_direct=$hardcode_direct_GCJ
24176
24177 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24178 # resulting binary.
24179 hardcode_minus_L=$hardcode_minus_L_GCJ
24180
24181 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24182 # the resulting binary.
24183 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24184
24185 # Set to yes if building a shared library automatically hardcodes DIR into the library
24186 # and all subsequent libraries and executables linked against it.
24187 hardcode_automatic=$hardcode_automatic_GCJ
24188
24189 # Variables whose values should be saved in libtool wrapper scripts and
24190 # restored at relink time.
24191 variables_saved_for_relink="$variables_saved_for_relink"
24192
24193 # Whether libtool must link a program against all its dependency libraries.
24194 link_all_deplibs=$link_all_deplibs_GCJ
24195
24196 # Compile-time system search path for libraries
24197 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24198
24199 # Run-time system search path for libraries
24200 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24201
24202 # Fix the shell variable \$srcfile for the compiler.
24203 fix_srcfile_path="$fix_srcfile_path_GCJ"
24204
24205 # Set to yes if exported symbols are required.
24206 always_export_symbols=$always_export_symbols_GCJ
24207
24208 # The commands to list exported symbols.
24209 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24210
24211 # The commands to extract the exported symbol list from a shared archive.
24212 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24213
24214 # Symbols that should not be listed in the preloaded symbols.
24215 exclude_expsyms=$lt_exclude_expsyms_GCJ
24216
24217 # Symbols that must always be exported.
24218 include_expsyms=$lt_include_expsyms_GCJ
24219
24220 # ### END LIBTOOL TAG CONFIG: $tagname
24221
24222 __EOF__
24223
24224
24225 else
24226   # If there is no Makefile yet, we rely on a make rule to execute
24227   # `config.status --recheck' to rerun these tests and create the
24228   # libtool script then.
24229   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24230   if test -f "$ltmain_in"; then
24231     test -f Makefile && make "$ltmain"
24232   fi
24233 fi
24234
24235
24236 ac_ext=c
24237 ac_cpp='$CPP $CPPFLAGS'
24238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24241
24242 CC="$lt_save_CC"
24243
24244         else
24245           tagname=""
24246         fi
24247         ;;
24248
24249       RC)
24250         ac_ext=c
24251 ac_cpp='$CPP $CPPFLAGS'
24252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24255
24256
24257 # Source file extension for RC test sources.
24258 ac_ext=rc
24259
24260 # Object file extension for compiled RC test sources.
24261 objext=o
24262 objext_RC=$objext
24263
24264 # Code to be used in simple compile tests
24265 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24266
24267 # Code to be used in simple link tests
24268 lt_simple_link_test_code="$lt_simple_compile_test_code"
24269
24270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24271
24272 # If no C compiler was specified, use CC.
24273 LTCC=${LTCC-"$CC"}
24274
24275 # Allow CC to be a program name with arguments.
24276 compiler=$CC
24277
24278
24279 # Allow CC to be a program name with arguments.
24280 lt_save_CC="$CC"
24281 CC=${RC-"windres"}
24282 compiler=$CC
24283 compiler_RC=$CC
24284 lt_cv_prog_compiler_c_o_RC=yes
24285
24286 # The else clause should only fire when bootstrapping the
24287 # libtool distribution, otherwise you forgot to ship ltmain.sh
24288 # with your package, and you will get complaints that there are
24289 # no rules to generate ltmain.sh.
24290 if test -f "$ltmain"; then
24291   # See if we are running on zsh, and set the options which allow our commands through
24292   # without removal of \ escapes.
24293   if test -n "${ZSH_VERSION+set}" ; then
24294     setopt NO_GLOB_SUBST
24295   fi
24296   # Now quote all the things that may contain metacharacters while being
24297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24298   # variables and quote the copies for generation of the libtool script.
24299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24300     SED SHELL STRIP \
24301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24303     deplibs_check_method reload_flag reload_cmds need_locks \
24304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24305     lt_cv_sys_global_symbol_to_c_name_address \
24306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24307     old_postinstall_cmds old_postuninstall_cmds \
24308     compiler_RC \
24309     CC_RC \
24310     LD_RC \
24311     lt_prog_compiler_wl_RC \
24312     lt_prog_compiler_pic_RC \
24313     lt_prog_compiler_static_RC \
24314     lt_prog_compiler_no_builtin_flag_RC \
24315     export_dynamic_flag_spec_RC \
24316     thread_safe_flag_spec_RC \
24317     whole_archive_flag_spec_RC \
24318     enable_shared_with_static_runtimes_RC \
24319     old_archive_cmds_RC \
24320     old_archive_from_new_cmds_RC \
24321     predep_objects_RC \
24322     postdep_objects_RC \
24323     predeps_RC \
24324     postdeps_RC \
24325     compiler_lib_search_path_RC \
24326     archive_cmds_RC \
24327     archive_expsym_cmds_RC \
24328     postinstall_cmds_RC \
24329     postuninstall_cmds_RC \
24330     old_archive_from_expsyms_cmds_RC \
24331     allow_undefined_flag_RC \
24332     no_undefined_flag_RC \
24333     export_symbols_cmds_RC \
24334     hardcode_libdir_flag_spec_RC \
24335     hardcode_libdir_flag_spec_ld_RC \
24336     hardcode_libdir_separator_RC \
24337     hardcode_automatic_RC \
24338     module_cmds_RC \
24339     module_expsym_cmds_RC \
24340     lt_cv_prog_compiler_c_o_RC \
24341     exclude_expsyms_RC \
24342     include_expsyms_RC; do
24343
24344     case $var in
24345     old_archive_cmds_RC | \
24346     old_archive_from_new_cmds_RC | \
24347     archive_cmds_RC | \
24348     archive_expsym_cmds_RC | \
24349     module_cmds_RC | \
24350     module_expsym_cmds_RC | \
24351     old_archive_from_expsyms_cmds_RC | \
24352     export_symbols_cmds_RC | \
24353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24354     postinstall_cmds | postuninstall_cmds | \
24355     old_postinstall_cmds | old_postuninstall_cmds | \
24356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24357       # Double-quote double-evaled strings.
24358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24359       ;;
24360     *)
24361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24362       ;;
24363     esac
24364   done
24365
24366   case $lt_echo in
24367   *'\$0 --fallback-echo"')
24368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24369     ;;
24370   esac
24371
24372 cfgfile="$ofile"
24373
24374   cat <<__EOF__ >> "$cfgfile"
24375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24376
24377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24378
24379 # Shell to use when invoking shell scripts.
24380 SHELL=$lt_SHELL
24381
24382 # Whether or not to build shared libraries.
24383 build_libtool_libs=$enable_shared
24384
24385 # Whether or not to build static libraries.
24386 build_old_libs=$enable_static
24387
24388 # Whether or not to add -lc for building shared libraries.
24389 build_libtool_need_lc=$archive_cmds_need_lc_RC
24390
24391 # Whether or not to disallow shared libs when runtime libs are static
24392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24393
24394 # Whether or not to optimize for fast installation.
24395 fast_install=$enable_fast_install
24396
24397 # The host system.
24398 host_alias=$host_alias
24399 host=$host
24400
24401 # An echo program that does not interpret backslashes.
24402 echo=$lt_echo
24403
24404 # The archiver.
24405 AR=$lt_AR
24406 AR_FLAGS=$lt_AR_FLAGS
24407
24408 # A C compiler.
24409 LTCC=$lt_LTCC
24410
24411 # A language-specific compiler.
24412 CC=$lt_compiler_RC
24413
24414 # Is the compiler the GNU C compiler?
24415 with_gcc=$GCC_RC
24416
24417 # An ERE matcher.
24418 EGREP=$lt_EGREP
24419
24420 # The linker used to build libraries.
24421 LD=$lt_LD_RC
24422
24423 # Whether we need hard or soft links.
24424 LN_S=$lt_LN_S
24425
24426 # A BSD-compatible nm program.
24427 NM=$lt_NM
24428
24429 # A symbol stripping program
24430 STRIP=$lt_STRIP
24431
24432 # Used to examine libraries when file_magic_cmd begins "file"
24433 MAGIC_CMD=$MAGIC_CMD
24434
24435 # Used on cygwin: DLL creation program.
24436 DLLTOOL="$DLLTOOL"
24437
24438 # Used on cygwin: object dumper.
24439 OBJDUMP="$OBJDUMP"
24440
24441 # Used on cygwin: assembler.
24442 AS="$AS"
24443
24444 # The name of the directory that contains temporary libtool files.
24445 objdir=$objdir
24446
24447 # How to create reloadable object files.
24448 reload_flag=$lt_reload_flag
24449 reload_cmds=$lt_reload_cmds
24450
24451 # How to pass a linker flag through the compiler.
24452 wl=$lt_lt_prog_compiler_wl_RC
24453
24454 # Object file suffix (normally "o").
24455 objext="$ac_objext"
24456
24457 # Old archive suffix (normally "a").
24458 libext="$libext"
24459
24460 # Shared library suffix (normally ".so").
24461 shrext_cmds='$shrext_cmds'
24462
24463 # Executable file suffix (normally "").
24464 exeext="$exeext"
24465
24466 # Additional compiler flags for building library objects.
24467 pic_flag=$lt_lt_prog_compiler_pic_RC
24468 pic_mode=$pic_mode
24469
24470 # What is the maximum length of a command?
24471 max_cmd_len=$lt_cv_sys_max_cmd_len
24472
24473 # Does compiler simultaneously support -c and -o options?
24474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24475
24476 # Must we lock files when doing compilation ?
24477 need_locks=$lt_need_locks
24478
24479 # Do we need the lib prefix for modules?
24480 need_lib_prefix=$need_lib_prefix
24481
24482 # Do we need a version for libraries?
24483 need_version=$need_version
24484
24485 # Whether dlopen is supported.
24486 dlopen_support=$enable_dlopen
24487
24488 # Whether dlopen of programs is supported.
24489 dlopen_self=$enable_dlopen_self
24490
24491 # Whether dlopen of statically linked programs is supported.
24492 dlopen_self_static=$enable_dlopen_self_static
24493
24494 # Compiler flag to prevent dynamic linking.
24495 link_static_flag=$lt_lt_prog_compiler_static_RC
24496
24497 # Compiler flag to turn off builtin functions.
24498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24499
24500 # Compiler flag to allow reflexive dlopens.
24501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24502
24503 # Compiler flag to generate shared objects directly from archives.
24504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24505
24506 # Compiler flag to generate thread-safe objects.
24507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24508
24509 # Library versioning type.
24510 version_type=$version_type
24511
24512 # Format of library name prefix.
24513 libname_spec=$lt_libname_spec
24514
24515 # List of archive names.  First name is the real one, the rest are links.
24516 # The last name is the one that the linker finds with -lNAME.
24517 library_names_spec=$lt_library_names_spec
24518
24519 # The coded name of the library, if different from the real name.
24520 soname_spec=$lt_soname_spec
24521
24522 # Commands used to build and install an old-style archive.
24523 RANLIB=$lt_RANLIB
24524 old_archive_cmds=$lt_old_archive_cmds_RC
24525 old_postinstall_cmds=$lt_old_postinstall_cmds
24526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24527
24528 # Create an old-style archive from a shared archive.
24529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24530
24531 # Create a temporary old-style archive to link instead of a shared archive.
24532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24533
24534 # Commands used to build and install a shared archive.
24535 archive_cmds=$lt_archive_cmds_RC
24536 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24537 postinstall_cmds=$lt_postinstall_cmds
24538 postuninstall_cmds=$lt_postuninstall_cmds
24539
24540 # Commands used to build a loadable module (assumed same as above if empty)
24541 module_cmds=$lt_module_cmds_RC
24542 module_expsym_cmds=$lt_module_expsym_cmds_RC
24543
24544 # Commands to strip libraries.
24545 old_striplib=$lt_old_striplib
24546 striplib=$lt_striplib
24547
24548 # Dependencies to place before the objects being linked to create a
24549 # shared library.
24550 predep_objects=$lt_predep_objects_RC
24551
24552 # Dependencies to place after the objects being linked to create a
24553 # shared library.
24554 postdep_objects=$lt_postdep_objects_RC
24555
24556 # Dependencies to place before the objects being linked to create a
24557 # shared library.
24558 predeps=$lt_predeps_RC
24559
24560 # Dependencies to place after the objects being linked to create a
24561 # shared library.
24562 postdeps=$lt_postdeps_RC
24563
24564 # The library search path used internally by the compiler when linking
24565 # a shared library.
24566 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24567
24568 # Method to check whether dependent libraries are shared objects.
24569 deplibs_check_method=$lt_deplibs_check_method
24570
24571 # Command to use when deplibs_check_method == file_magic.
24572 file_magic_cmd=$lt_file_magic_cmd
24573
24574 # Flag that allows shared libraries with undefined symbols to be built.
24575 allow_undefined_flag=$lt_allow_undefined_flag_RC
24576
24577 # Flag that forces no undefined symbols.
24578 no_undefined_flag=$lt_no_undefined_flag_RC
24579
24580 # Commands used to finish a libtool library installation in a directory.
24581 finish_cmds=$lt_finish_cmds
24582
24583 # Same as above, but a single script fragment to be evaled but not shown.
24584 finish_eval=$lt_finish_eval
24585
24586 # Take the output of nm and produce a listing of raw symbols and C names.
24587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24588
24589 # Transform the output of nm in a proper C declaration
24590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24591
24592 # Transform the output of nm in a C name address pair
24593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24594
24595 # This is the shared library runtime path variable.
24596 runpath_var=$runpath_var
24597
24598 # This is the shared library path variable.
24599 shlibpath_var=$shlibpath_var
24600
24601 # Is shlibpath searched before the hard-coded library search path?
24602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24603
24604 # How to hardcode a shared library path into an executable.
24605 hardcode_action=$hardcode_action_RC
24606
24607 # Whether we should hardcode library paths into libraries.
24608 hardcode_into_libs=$hardcode_into_libs
24609
24610 # Flag to hardcode \$libdir into a binary during linking.
24611 # This must work even if \$libdir does not exist.
24612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24613
24614 # If ld is used when linking, flag to hardcode \$libdir into
24615 # a binary during linking. This must work even if \$libdir does
24616 # not exist.
24617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24618
24619 # Whether we need a single -rpath flag with a separated argument.
24620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24621
24622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24623 # resulting binary.
24624 hardcode_direct=$hardcode_direct_RC
24625
24626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24627 # resulting binary.
24628 hardcode_minus_L=$hardcode_minus_L_RC
24629
24630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24631 # the resulting binary.
24632 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24633
24634 # Set to yes if building a shared library automatically hardcodes DIR into the library
24635 # and all subsequent libraries and executables linked against it.
24636 hardcode_automatic=$hardcode_automatic_RC
24637
24638 # Variables whose values should be saved in libtool wrapper scripts and
24639 # restored at relink time.
24640 variables_saved_for_relink="$variables_saved_for_relink"
24641
24642 # Whether libtool must link a program against all its dependency libraries.
24643 link_all_deplibs=$link_all_deplibs_RC
24644
24645 # Compile-time system search path for libraries
24646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24647
24648 # Run-time system search path for libraries
24649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24650
24651 # Fix the shell variable \$srcfile for the compiler.
24652 fix_srcfile_path="$fix_srcfile_path_RC"
24653
24654 # Set to yes if exported symbols are required.
24655 always_export_symbols=$always_export_symbols_RC
24656
24657 # The commands to list exported symbols.
24658 export_symbols_cmds=$lt_export_symbols_cmds_RC
24659
24660 # The commands to extract the exported symbol list from a shared archive.
24661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24662
24663 # Symbols that should not be listed in the preloaded symbols.
24664 exclude_expsyms=$lt_exclude_expsyms_RC
24665
24666 # Symbols that must always be exported.
24667 include_expsyms=$lt_include_expsyms_RC
24668
24669 # ### END LIBTOOL TAG CONFIG: $tagname
24670
24671 __EOF__
24672
24673
24674 else
24675   # If there is no Makefile yet, we rely on a make rule to execute
24676   # `config.status --recheck' to rerun these tests and create the
24677   # libtool script then.
24678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24679   if test -f "$ltmain_in"; then
24680     test -f Makefile && make "$ltmain"
24681   fi
24682 fi
24683
24684
24685 ac_ext=c
24686 ac_cpp='$CPP $CPPFLAGS'
24687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24690
24691 CC="$lt_save_CC"
24692
24693         ;;
24694
24695       *)
24696         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24697 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24698    { (exit 1); exit 1; }; }
24699         ;;
24700       esac
24701
24702       # Append the new tag name to the list of available tags.
24703       if test -n "$tagname" ; then
24704       available_tags="$available_tags $tagname"
24705     fi
24706     fi
24707   done
24708   IFS="$lt_save_ifs"
24709
24710   # Now substitute the updated list of available tags.
24711   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24712     mv "${ofile}T" "$ofile"
24713     chmod +x "$ofile"
24714   else
24715     rm -f "${ofile}T"
24716     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24717 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24718    { (exit 1); exit 1; }; }
24719   fi
24720 fi
24721
24722
24723
24724 # This can be used to rebuild libtool when needed
24725 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24726
24727 # Always use our own libtool.
24728 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24729
24730 # Prevent multiple expansion
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752 if test "$lt_cv_dlopen_self" = "yes" ; then
24753
24754 cat >>confdefs.h <<\_ACEOF
24755 #define CAN_DLOPEN_SELF 1
24756 _ACEOF
24757
24758 fi
24759
24760 etags_version=`$ETAGS --version 2>&1`
24761 case "$etags_version" in
24762         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24763         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24764         *) ETAGSFLAGS="" ;;
24765 esac
24766 ETAGSFLAGS=$ETAGSFLAGS
24767
24768
24769 if test "$WITH_LLVMGCCDIR" = "default" ; then
24770   LLVMGCC="llvm-gcc${EXEEXT}"
24771   LLVMGXX="llvm-g++${EXEEXT}"
24772   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24773 set dummy $LLVMGCC; ac_word=$2
24774 echo "$as_me:$LINENO: checking for $ac_word" >&5
24775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24776 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 else
24779   case $LLVMGCC in
24780   [\\/]* | ?:[\\/]*)
24781   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24782   ;;
24783   *)
24784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785 for as_dir in $PATH
24786 do
24787   IFS=$as_save_IFS
24788   test -z "$as_dir" && as_dir=.
24789   for ac_exec_ext in '' $ac_executable_extensions; do
24790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24791     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24793     break 2
24794   fi
24795 done
24796 done
24797
24798   ;;
24799 esac
24800 fi
24801 LLVMGCC=$ac_cv_path_LLVMGCC
24802
24803 if test -n "$LLVMGCC"; then
24804   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24805 echo "${ECHO_T}$LLVMGCC" >&6
24806 else
24807   echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6
24809 fi
24810
24811   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24812 set dummy $LLVMGXX; ac_word=$2
24813 echo "$as_me:$LINENO: checking for $ac_word" >&5
24814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24815 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24816   echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818   case $LLVMGXX in
24819   [\\/]* | ?:[\\/]*)
24820   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24821   ;;
24822   *)
24823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24824 for as_dir in $PATH
24825 do
24826   IFS=$as_save_IFS
24827   test -z "$as_dir" && as_dir=.
24828   for ac_exec_ext in '' $ac_executable_extensions; do
24829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24830     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24832     break 2
24833   fi
24834 done
24835 done
24836
24837   ;;
24838 esac
24839 fi
24840 LLVMGXX=$ac_cv_path_LLVMGXX
24841
24842 if test -n "$LLVMGXX"; then
24843   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24844 echo "${ECHO_T}$LLVMGXX" >&6
24845 else
24846   echo "$as_me:$LINENO: result: no" >&5
24847 echo "${ECHO_T}no" >&6
24848 fi
24849
24850 else
24851   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24852   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24853   LLVMGCC=$LLVMGCC
24854
24855   LLVMGXX=$LLVMGXX
24856
24857 fi
24858
24859 echo "$as_me:$LINENO: checking tool compatibility" >&5
24860 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24861
24862 ICC=no
24863 IXX=no
24864 case $CC in
24865   icc*|icpc*)
24866     ICC=yes
24867     IXX=yes
24868     ;;
24869    *)
24870     ;;
24871 esac
24872
24873 if test "$GCC" != "yes" && test "$ICC" != "yes"
24874 then
24875   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24876 echo "$as_me: error: gcc|icc required but not found" >&2;}
24877    { (exit 1); exit 1; }; }
24878 fi
24879
24880 if test "$GXX" != "yes" && test "$IXX" != "yes"
24881 then
24882   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24883 echo "$as_me: error: g++|icc required but not found" >&2;}
24884    { (exit 1); exit 1; }; }
24885 fi
24886
24887 if test "$GCC" = "yes"
24888 then
24889   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24890   if test "$gccmajor" -lt "3"
24891   then
24892     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24893 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24894    { (exit 1); exit 1; }; }
24895   fi
24896 fi
24897
24898 if test -z "$llvm_cv_gnu_make_command"
24899 then
24900   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24901 echo "$as_me: error: GNU Make required but not found" >&2;}
24902    { (exit 1); exit 1; }; }
24903 fi
24904
24905 echo "$as_me:$LINENO: result: ok" >&5
24906 echo "${ECHO_T}ok" >&6
24907
24908
24909
24910 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24911 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24912 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24913   echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915   ac_check_lib_save_LIBS=$LIBS
24916 LIBS="-lelf  $LIBS"
24917 cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923
24924 /* Override any gcc2 internal prototype to avoid an error.  */
24925 #ifdef __cplusplus
24926 extern "C"
24927 #endif
24928 /* We use char because int might match the return type of a gcc2
24929    builtin and then its argument prototype would still apply.  */
24930 char elf_begin ();
24931 int
24932 main ()
24933 {
24934 elf_begin ();
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941   (eval $ac_link) 2>conftest.er1
24942   ac_status=$?
24943   grep -v '^ *+' conftest.er1 >conftest.err
24944   rm -f conftest.er1
24945   cat conftest.err >&5
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); } &&
24948          { ac_try='test -z "$ac_c_werror_flag"
24949                          || test ! -s conftest.err'
24950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951   (eval $ac_try) 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; } &&
24955          { ac_try='test -s conftest$ac_exeext'
24956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957   (eval $ac_try) 2>&5
24958   ac_status=$?
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); }; }; then
24961   ac_cv_lib_elf_elf_begin=yes
24962 else
24963   echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24965
24966 ac_cv_lib_elf_elf_begin=no
24967 fi
24968 rm -f conftest.err conftest.$ac_objext \
24969       conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24971 fi
24972 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24973 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24974 if test $ac_cv_lib_elf_elf_begin = yes; then
24975   cat >>confdefs.h <<_ACEOF
24976 #define HAVE_LIBELF 1
24977 _ACEOF
24978
24979   LIBS="-lelf $LIBS"
24980
24981 fi
24982
24983
24984 echo "$as_me:$LINENO: checking for sin in -lm" >&5
24985 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24986 if test "${ac_cv_lib_m_sin+set}" = set; then
24987   echo $ECHO_N "(cached) $ECHO_C" >&6
24988 else
24989   ac_check_lib_save_LIBS=$LIBS
24990 LIBS="-lm  $LIBS"
24991 cat >conftest.$ac_ext <<_ACEOF
24992 /* confdefs.h.  */
24993 _ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h.  */
24997
24998 /* Override any gcc2 internal prototype to avoid an error.  */
24999 #ifdef __cplusplus
25000 extern "C"
25001 #endif
25002 /* We use char because int might match the return type of a gcc2
25003    builtin and then its argument prototype would still apply.  */
25004 char sin ();
25005 int
25006 main ()
25007 {
25008 sin ();
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25015   (eval $ac_link) 2>conftest.er1
25016   ac_status=$?
25017   grep -v '^ *+' conftest.er1 >conftest.err
25018   rm -f conftest.er1
25019   cat conftest.err >&5
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); } &&
25022          { ac_try='test -z "$ac_c_werror_flag"
25023                          || test ! -s conftest.err'
25024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025   (eval $ac_try) 2>&5
25026   ac_status=$?
25027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028   (exit $ac_status); }; } &&
25029          { ac_try='test -s conftest$ac_exeext'
25030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; }; then
25035   ac_cv_lib_m_sin=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040 ac_cv_lib_m_sin=no
25041 fi
25042 rm -f conftest.err conftest.$ac_objext \
25043       conftest$ac_exeext conftest.$ac_ext
25044 LIBS=$ac_check_lib_save_LIBS
25045 fi
25046 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25047 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25048 if test $ac_cv_lib_m_sin = yes; then
25049   cat >>confdefs.h <<_ACEOF
25050 #define HAVE_LIBM 1
25051 _ACEOF
25052
25053   LIBS="-lm $LIBS"
25054
25055 fi
25056
25057
25058 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25059 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25060 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25061   echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063   ac_func_search_save_LIBS=$LIBS
25064 ac_cv_search_lt_dlopen=no
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071
25072 /* Override any gcc2 internal prototype to avoid an error.  */
25073 #ifdef __cplusplus
25074 extern "C"
25075 #endif
25076 /* We use char because int might match the return type of a gcc2
25077    builtin and then its argument prototype would still apply.  */
25078 char lt_dlopen ();
25079 int
25080 main ()
25081 {
25082 lt_dlopen ();
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext conftest$ac_exeext
25088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25089   (eval $ac_link) 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } &&
25096          { ac_try='test -z "$ac_c_werror_flag"
25097                          || test ! -s conftest.err'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; } &&
25103          { ac_try='test -s conftest$ac_exeext'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109   ac_cv_search_lt_dlopen="none required"
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114 fi
25115 rm -f conftest.err conftest.$ac_objext \
25116       conftest$ac_exeext conftest.$ac_ext
25117 if test "$ac_cv_search_lt_dlopen" = no; then
25118   for ac_lib in ltdl; do
25119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25120     cat >conftest.$ac_ext <<_ACEOF
25121 /* confdefs.h.  */
25122 _ACEOF
25123 cat confdefs.h >>conftest.$ac_ext
25124 cat >>conftest.$ac_ext <<_ACEOF
25125 /* end confdefs.h.  */
25126
25127 /* Override any gcc2 internal prototype to avoid an error.  */
25128 #ifdef __cplusplus
25129 extern "C"
25130 #endif
25131 /* We use char because int might match the return type of a gcc2
25132    builtin and then its argument prototype would still apply.  */
25133 char lt_dlopen ();
25134 int
25135 main ()
25136 {
25137 lt_dlopen ();
25138   ;
25139   return 0;
25140 }
25141 _ACEOF
25142 rm -f conftest.$ac_objext conftest$ac_exeext
25143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25144   (eval $ac_link) 2>conftest.er1
25145   ac_status=$?
25146   grep -v '^ *+' conftest.er1 >conftest.err
25147   rm -f conftest.er1
25148   cat conftest.err >&5
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } &&
25151          { ac_try='test -z "$ac_c_werror_flag"
25152                          || test ! -s conftest.err'
25153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25154   (eval $ac_try) 2>&5
25155   ac_status=$?
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); }; } &&
25158          { ac_try='test -s conftest$ac_exeext'
25159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25160   (eval $ac_try) 2>&5
25161   ac_status=$?
25162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163   (exit $ac_status); }; }; then
25164   ac_cv_search_lt_dlopen="-l$ac_lib"
25165 break
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170 fi
25171 rm -f conftest.err conftest.$ac_objext \
25172       conftest$ac_exeext conftest.$ac_ext
25173   done
25174 fi
25175 LIBS=$ac_func_search_save_LIBS
25176 fi
25177 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25178 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25179 if test "$ac_cv_search_lt_dlopen" != no; then
25180   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25181
25182 cat >>confdefs.h <<\_ACEOF
25183 #define HAVE_LT_DLOPEN 1
25184 _ACEOF
25185
25186 else
25187   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25188                            not be available" >&5
25189 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25190                            not be available" >&2;}
25191 fi
25192
25193
25194 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25195 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25196 if test "${ac_cv_search_dlopen+set}" = set; then
25197   echo $ECHO_N "(cached) $ECHO_C" >&6
25198 else
25199   ac_func_search_save_LIBS=$LIBS
25200 ac_cv_search_dlopen=no
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h.  */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h.  */
25207
25208 /* Override any gcc2 internal prototype to avoid an error.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 /* We use char because int might match the return type of a gcc2
25213    builtin and then its argument prototype would still apply.  */
25214 char dlopen ();
25215 int
25216 main ()
25217 {
25218 dlopen ();
25219   ;
25220   return 0;
25221 }
25222 _ACEOF
25223 rm -f conftest.$ac_objext conftest$ac_exeext
25224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25225   (eval $ac_link) 2>conftest.er1
25226   ac_status=$?
25227   grep -v '^ *+' conftest.er1 >conftest.err
25228   rm -f conftest.er1
25229   cat conftest.err >&5
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } &&
25232          { ac_try='test -z "$ac_c_werror_flag"
25233                          || test ! -s conftest.err'
25234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25235   (eval $ac_try) 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); }; } &&
25239          { ac_try='test -s conftest$ac_exeext'
25240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241   (eval $ac_try) 2>&5
25242   ac_status=$?
25243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244   (exit $ac_status); }; }; then
25245   ac_cv_search_dlopen="none required"
25246 else
25247   echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 fi
25251 rm -f conftest.err conftest.$ac_objext \
25252       conftest$ac_exeext conftest.$ac_ext
25253 if test "$ac_cv_search_dlopen" = no; then
25254   for ac_lib in dl; do
25255     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25256     cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h.  */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h.  */
25262
25263 /* Override any gcc2 internal prototype to avoid an error.  */
25264 #ifdef __cplusplus
25265 extern "C"
25266 #endif
25267 /* We use char because int might match the return type of a gcc2
25268    builtin and then its argument prototype would still apply.  */
25269 char dlopen ();
25270 int
25271 main ()
25272 {
25273 dlopen ();
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 rm -f conftest.$ac_objext conftest$ac_exeext
25279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25280   (eval $ac_link) 2>conftest.er1
25281   ac_status=$?
25282   grep -v '^ *+' conftest.er1 >conftest.err
25283   rm -f conftest.er1
25284   cat conftest.err >&5
25285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286   (exit $ac_status); } &&
25287          { ac_try='test -z "$ac_c_werror_flag"
25288                          || test ! -s conftest.err'
25289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25290   (eval $ac_try) 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; } &&
25294          { ac_try='test -s conftest$ac_exeext'
25295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296   (eval $ac_try) 2>&5
25297   ac_status=$?
25298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299   (exit $ac_status); }; }; then
25300   ac_cv_search_dlopen="-l$ac_lib"
25301 break
25302 else
25303   echo "$as_me: failed program was:" >&5
25304 sed 's/^/| /' conftest.$ac_ext >&5
25305
25306 fi
25307 rm -f conftest.err conftest.$ac_objext \
25308       conftest$ac_exeext conftest.$ac_ext
25309   done
25310 fi
25311 LIBS=$ac_func_search_save_LIBS
25312 fi
25313 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25314 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25315 if test "$ac_cv_search_dlopen" != no; then
25316   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25317
25318 cat >>confdefs.h <<\_ACEOF
25319 #define HAVE_DLOPEN 1
25320 _ACEOF
25321
25322 else
25323   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25324 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25325 fi
25326
25327
25328 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25329 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25330 if test "${ac_cv_search_mallinfo+set}" = set; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333   ac_func_search_save_LIBS=$LIBS
25334 ac_cv_search_mallinfo=no
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341
25342 /* Override any gcc2 internal prototype to avoid an error.  */
25343 #ifdef __cplusplus
25344 extern "C"
25345 #endif
25346 /* We use char because int might match the return type of a gcc2
25347    builtin and then its argument prototype would still apply.  */
25348 char mallinfo ();
25349 int
25350 main ()
25351 {
25352 mallinfo ();
25353   ;
25354   return 0;
25355 }
25356 _ACEOF
25357 rm -f conftest.$ac_objext conftest$ac_exeext
25358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25359   (eval $ac_link) 2>conftest.er1
25360   ac_status=$?
25361   grep -v '^ *+' conftest.er1 >conftest.err
25362   rm -f conftest.er1
25363   cat conftest.err >&5
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); } &&
25366          { ac_try='test -z "$ac_c_werror_flag"
25367                          || test ! -s conftest.err'
25368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369   (eval $ac_try) 2>&5
25370   ac_status=$?
25371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372   (exit $ac_status); }; } &&
25373          { ac_try='test -s conftest$ac_exeext'
25374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25375   (eval $ac_try) 2>&5
25376   ac_status=$?
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); }; }; then
25379   ac_cv_search_mallinfo="none required"
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384 fi
25385 rm -f conftest.err conftest.$ac_objext \
25386       conftest$ac_exeext conftest.$ac_ext
25387 if test "$ac_cv_search_mallinfo" = no; then
25388   for ac_lib in malloc; do
25389     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25390     cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396
25397 /* Override any gcc2 internal prototype to avoid an error.  */
25398 #ifdef __cplusplus
25399 extern "C"
25400 #endif
25401 /* We use char because int might match the return type of a gcc2
25402    builtin and then its argument prototype would still apply.  */
25403 char mallinfo ();
25404 int
25405 main ()
25406 {
25407 mallinfo ();
25408   ;
25409   return 0;
25410 }
25411 _ACEOF
25412 rm -f conftest.$ac_objext conftest$ac_exeext
25413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25414   (eval $ac_link) 2>conftest.er1
25415   ac_status=$?
25416   grep -v '^ *+' conftest.er1 >conftest.err
25417   rm -f conftest.er1
25418   cat conftest.err >&5
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } &&
25421          { ac_try='test -z "$ac_c_werror_flag"
25422                          || test ! -s conftest.err'
25423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424   (eval $ac_try) 2>&5
25425   ac_status=$?
25426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427   (exit $ac_status); }; } &&
25428          { ac_try='test -s conftest$ac_exeext'
25429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430   (eval $ac_try) 2>&5
25431   ac_status=$?
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); }; }; then
25434   ac_cv_search_mallinfo="-l$ac_lib"
25435 break
25436 else
25437   echo "$as_me: failed program was:" >&5
25438 sed 's/^/| /' conftest.$ac_ext >&5
25439
25440 fi
25441 rm -f conftest.err conftest.$ac_objext \
25442       conftest$ac_exeext conftest.$ac_ext
25443   done
25444 fi
25445 LIBS=$ac_func_search_save_LIBS
25446 fi
25447 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25448 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25449 if test "$ac_cv_search_mallinfo" != no; then
25450   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25451
25452 cat >>confdefs.h <<\_ACEOF
25453 #define HAVE_MALLINFO 1
25454 _ACEOF
25455
25456 fi
25457
25458
25459 if test "$ENABLE_THREADS" -eq 1 ; then
25460
25461 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25462 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25463 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25464   echo $ECHO_N "(cached) $ECHO_C" >&6
25465 else
25466   ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-lpthread  $LIBS"
25468 cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474
25475 /* Override any gcc2 internal prototype to avoid an error.  */
25476 #ifdef __cplusplus
25477 extern "C"
25478 #endif
25479 /* We use char because int might match the return type of a gcc2
25480    builtin and then its argument prototype would still apply.  */
25481 char pthread_mutex_init ();
25482 int
25483 main ()
25484 {
25485 pthread_mutex_init ();
25486   ;
25487   return 0;
25488 }
25489 _ACEOF
25490 rm -f conftest.$ac_objext conftest$ac_exeext
25491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25492   (eval $ac_link) 2>conftest.er1
25493   ac_status=$?
25494   grep -v '^ *+' conftest.er1 >conftest.err
25495   rm -f conftest.er1
25496   cat conftest.err >&5
25497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498   (exit $ac_status); } &&
25499          { ac_try='test -z "$ac_c_werror_flag"
25500                          || test ! -s conftest.err'
25501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25502   (eval $ac_try) 2>&5
25503   ac_status=$?
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); }; } &&
25506          { ac_try='test -s conftest$ac_exeext'
25507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25508   (eval $ac_try) 2>&5
25509   ac_status=$?
25510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511   (exit $ac_status); }; }; then
25512   ac_cv_lib_pthread_pthread_mutex_init=yes
25513 else
25514   echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517 ac_cv_lib_pthread_pthread_mutex_init=no
25518 fi
25519 rm -f conftest.err conftest.$ac_objext \
25520       conftest$ac_exeext conftest.$ac_ext
25521 LIBS=$ac_check_lib_save_LIBS
25522 fi
25523 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25524 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25525 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25526   cat >>confdefs.h <<_ACEOF
25527 #define HAVE_LIBPTHREAD 1
25528 _ACEOF
25529
25530   LIBS="-lpthread $LIBS"
25531
25532 fi
25533
25534   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25535 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25536 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25537   echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539   ac_func_search_save_LIBS=$LIBS
25540 ac_cv_search_pthread_mutex_lock=no
25541 cat >conftest.$ac_ext <<_ACEOF
25542 /* confdefs.h.  */
25543 _ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h.  */
25547
25548 /* Override any gcc2 internal prototype to avoid an error.  */
25549 #ifdef __cplusplus
25550 extern "C"
25551 #endif
25552 /* We use char because int might match the return type of a gcc2
25553    builtin and then its argument prototype would still apply.  */
25554 char pthread_mutex_lock ();
25555 int
25556 main ()
25557 {
25558 pthread_mutex_lock ();
25559   ;
25560   return 0;
25561 }
25562 _ACEOF
25563 rm -f conftest.$ac_objext conftest$ac_exeext
25564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25565   (eval $ac_link) 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } &&
25572          { ac_try='test -z "$ac_c_werror_flag"
25573                          || test ! -s conftest.err'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; } &&
25579          { ac_try='test -s conftest$ac_exeext'
25580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581   (eval $ac_try) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; }; then
25585   ac_cv_search_pthread_mutex_lock="none required"
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 fi
25591 rm -f conftest.err conftest.$ac_objext \
25592       conftest$ac_exeext conftest.$ac_ext
25593 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25594   for ac_lib in pthread; do
25595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25596     cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h.  */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h.  */
25602
25603 /* Override any gcc2 internal prototype to avoid an error.  */
25604 #ifdef __cplusplus
25605 extern "C"
25606 #endif
25607 /* We use char because int might match the return type of a gcc2
25608    builtin and then its argument prototype would still apply.  */
25609 char pthread_mutex_lock ();
25610 int
25611 main ()
25612 {
25613 pthread_mutex_lock ();
25614   ;
25615   return 0;
25616 }
25617 _ACEOF
25618 rm -f conftest.$ac_objext conftest$ac_exeext
25619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25620   (eval $ac_link) 2>conftest.er1
25621   ac_status=$?
25622   grep -v '^ *+' conftest.er1 >conftest.err
25623   rm -f conftest.er1
25624   cat conftest.err >&5
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); } &&
25627          { ac_try='test -z "$ac_c_werror_flag"
25628                          || test ! -s conftest.err'
25629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; } &&
25634          { ac_try='test -s conftest$ac_exeext'
25635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636   (eval $ac_try) 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); }; }; then
25640   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25641 break
25642 else
25643   echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 fi
25647 rm -f conftest.err conftest.$ac_objext \
25648       conftest$ac_exeext conftest.$ac_ext
25649   done
25650 fi
25651 LIBS=$ac_func_search_save_LIBS
25652 fi
25653 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25654 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25655 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25656   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25657
25658 cat >>confdefs.h <<\_ACEOF
25659 #define HAVE_PTHREAD_MUTEX_LOCK 1
25660 _ACEOF
25661
25662 fi
25663
25664 fi
25665
25666
25667
25668
25669
25670
25671
25672 ac_header_dirent=no
25673 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25674   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25675 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25676 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25678   echo $ECHO_N "(cached) $ECHO_C" >&6
25679 else
25680   cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h.  */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h.  */
25686 #include <sys/types.h>
25687 #include <$ac_hdr>
25688
25689 int
25690 main ()
25691 {
25692 if ((DIR *) 0)
25693 return 0;
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25700   (eval $ac_compile) 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } &&
25707          { ac_try='test -z "$ac_c_werror_flag"
25708                          || test ! -s conftest.err'
25709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710   (eval $ac_try) 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); }; } &&
25714          { ac_try='test -s conftest.$ac_objext'
25715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; }; then
25720   eval "$as_ac_Header=yes"
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725 eval "$as_ac_Header=no"
25726 fi
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728 fi
25729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732   cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25734 _ACEOF
25735
25736 ac_header_dirent=$ac_hdr; break
25737 fi
25738
25739 done
25740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25741 if test $ac_header_dirent = dirent.h; then
25742   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25743 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25744 if test "${ac_cv_search_opendir+set}" = set; then
25745   echo $ECHO_N "(cached) $ECHO_C" >&6
25746 else
25747   ac_func_search_save_LIBS=$LIBS
25748 ac_cv_search_opendir=no
25749 cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755
25756 /* Override any gcc2 internal prototype to avoid an error.  */
25757 #ifdef __cplusplus
25758 extern "C"
25759 #endif
25760 /* We use char because int might match the return type of a gcc2
25761    builtin and then its argument prototype would still apply.  */
25762 char opendir ();
25763 int
25764 main ()
25765 {
25766 opendir ();
25767   ;
25768   return 0;
25769 }
25770 _ACEOF
25771 rm -f conftest.$ac_objext conftest$ac_exeext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773   (eval $ac_link) 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } &&
25780          { ac_try='test -z "$ac_c_werror_flag"
25781                          || test ! -s conftest.err'
25782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783   (eval $ac_try) 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; } &&
25787          { ac_try='test -s conftest$ac_exeext'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; }; then
25793   ac_cv_search_opendir="none required"
25794 else
25795   echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25797
25798 fi
25799 rm -f conftest.err conftest.$ac_objext \
25800       conftest$ac_exeext conftest.$ac_ext
25801 if test "$ac_cv_search_opendir" = no; then
25802   for ac_lib in dir; do
25803     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25804     cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810
25811 /* Override any gcc2 internal prototype to avoid an error.  */
25812 #ifdef __cplusplus
25813 extern "C"
25814 #endif
25815 /* We use char because int might match the return type of a gcc2
25816    builtin and then its argument prototype would still apply.  */
25817 char opendir ();
25818 int
25819 main ()
25820 {
25821 opendir ();
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 rm -f conftest.$ac_objext conftest$ac_exeext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25828   (eval $ac_link) 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } &&
25835          { ac_try='test -z "$ac_c_werror_flag"
25836                          || test ! -s conftest.err'
25837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; } &&
25842          { ac_try='test -s conftest$ac_exeext'
25843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844   (eval $ac_try) 2>&5
25845   ac_status=$?
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); }; }; then
25848   ac_cv_search_opendir="-l$ac_lib"
25849 break
25850 else
25851   echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.$ac_ext >&5
25853
25854 fi
25855 rm -f conftest.err conftest.$ac_objext \
25856       conftest$ac_exeext conftest.$ac_ext
25857   done
25858 fi
25859 LIBS=$ac_func_search_save_LIBS
25860 fi
25861 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25862 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25863 if test "$ac_cv_search_opendir" != no; then
25864   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25865
25866 fi
25867
25868 else
25869   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25871 if test "${ac_cv_search_opendir+set}" = set; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874   ac_func_search_save_LIBS=$LIBS
25875 ac_cv_search_opendir=no
25876 cat >conftest.$ac_ext <<_ACEOF
25877 /* confdefs.h.  */
25878 _ACEOF
25879 cat confdefs.h >>conftest.$ac_ext
25880 cat >>conftest.$ac_ext <<_ACEOF
25881 /* end confdefs.h.  */
25882
25883 /* Override any gcc2 internal prototype to avoid an error.  */
25884 #ifdef __cplusplus
25885 extern "C"
25886 #endif
25887 /* We use char because int might match the return type of a gcc2
25888    builtin and then its argument prototype would still apply.  */
25889 char opendir ();
25890 int
25891 main ()
25892 {
25893 opendir ();
25894   ;
25895   return 0;
25896 }
25897 _ACEOF
25898 rm -f conftest.$ac_objext conftest$ac_exeext
25899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25900   (eval $ac_link) 2>conftest.er1
25901   ac_status=$?
25902   grep -v '^ *+' conftest.er1 >conftest.err
25903   rm -f conftest.er1
25904   cat conftest.err >&5
25905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906   (exit $ac_status); } &&
25907          { ac_try='test -z "$ac_c_werror_flag"
25908                          || test ! -s conftest.err'
25909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25910   (eval $ac_try) 2>&5
25911   ac_status=$?
25912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913   (exit $ac_status); }; } &&
25914          { ac_try='test -s conftest$ac_exeext'
25915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25916   (eval $ac_try) 2>&5
25917   ac_status=$?
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); }; }; then
25920   ac_cv_search_opendir="none required"
25921 else
25922   echo "$as_me: failed program was:" >&5
25923 sed 's/^/| /' conftest.$ac_ext >&5
25924
25925 fi
25926 rm -f conftest.err conftest.$ac_objext \
25927       conftest$ac_exeext conftest.$ac_ext
25928 if test "$ac_cv_search_opendir" = no; then
25929   for ac_lib in x; do
25930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25931     cat >conftest.$ac_ext <<_ACEOF
25932 /* confdefs.h.  */
25933 _ACEOF
25934 cat confdefs.h >>conftest.$ac_ext
25935 cat >>conftest.$ac_ext <<_ACEOF
25936 /* end confdefs.h.  */
25937
25938 /* Override any gcc2 internal prototype to avoid an error.  */
25939 #ifdef __cplusplus
25940 extern "C"
25941 #endif
25942 /* We use char because int might match the return type of a gcc2
25943    builtin and then its argument prototype would still apply.  */
25944 char opendir ();
25945 int
25946 main ()
25947 {
25948 opendir ();
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25955   (eval $ac_link) 2>conftest.er1
25956   ac_status=$?
25957   grep -v '^ *+' conftest.er1 >conftest.err
25958   rm -f conftest.er1
25959   cat conftest.err >&5
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); } &&
25962          { ac_try='test -z "$ac_c_werror_flag"
25963                          || test ! -s conftest.err'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; } &&
25969          { ac_try='test -s conftest$ac_exeext'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; }; then
25975   ac_cv_search_opendir="-l$ac_lib"
25976 break
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981 fi
25982 rm -f conftest.err conftest.$ac_objext \
25983       conftest$ac_exeext conftest.$ac_ext
25984   done
25985 fi
25986 LIBS=$ac_func_search_save_LIBS
25987 fi
25988 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25989 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25990 if test "$ac_cv_search_opendir" != no; then
25991   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25992
25993 fi
25994
25995 fi
25996
25997 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25998 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25999 if test "${ac_cv_header_mmap_anon+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002    ac_ext=c
26003 ac_cpp='$CPP $CPPFLAGS'
26004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26007
26008   cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 #include <sys/mman.h>
26015 #include <unistd.h>
26016 #include <fcntl.h>
26017 int
26018 main ()
26019 {
26020 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26021   ;
26022   return 0;
26023 }
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027   (eval $ac_compile) 2>conftest.er1
26028   ac_status=$?
26029   grep -v '^ *+' conftest.er1 >conftest.err
26030   rm -f conftest.er1
26031   cat conftest.err >&5
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); } &&
26034          { ac_try='test -z "$ac_c_werror_flag"
26035                          || test ! -s conftest.err'
26036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037   (eval $ac_try) 2>&5
26038   ac_status=$?
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); }; } &&
26041          { ac_try='test -s conftest.$ac_objext'
26042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043   (eval $ac_try) 2>&5
26044   ac_status=$?
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); }; }; then
26047   ac_cv_header_mmap_anon=yes
26048 else
26049   echo "$as_me: failed program was:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26051
26052 ac_cv_header_mmap_anon=no
26053 fi
26054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26055   ac_ext=c
26056 ac_cpp='$CPP $CPPFLAGS'
26057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26060
26061
26062 fi
26063 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26064 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26065 if test "$ac_cv_header_mmap_anon" = yes; then
26066
26067 cat >>confdefs.h <<\_ACEOF
26068 #define HAVE_MMAP_ANONYMOUS 1
26069 _ACEOF
26070
26071 fi
26072
26073 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26074 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26075 if test "${ac_cv_header_stat_broken+set}" = set; then
26076   echo $ECHO_N "(cached) $ECHO_C" >&6
26077 else
26078   cat >conftest.$ac_ext <<_ACEOF
26079 /* confdefs.h.  */
26080 _ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h.  */
26084 #include <sys/types.h>
26085 #include <sys/stat.h>
26086
26087 #if defined(S_ISBLK) && defined(S_IFDIR)
26088 # if S_ISBLK (S_IFDIR)
26089 You lose.
26090 # endif
26091 #endif
26092
26093 #if defined(S_ISBLK) && defined(S_IFCHR)
26094 # if S_ISBLK (S_IFCHR)
26095 You lose.
26096 # endif
26097 #endif
26098
26099 #if defined(S_ISLNK) && defined(S_IFREG)
26100 # if S_ISLNK (S_IFREG)
26101 You lose.
26102 # endif
26103 #endif
26104
26105 #if defined(S_ISSOCK) && defined(S_IFREG)
26106 # if S_ISSOCK (S_IFREG)
26107 You lose.
26108 # endif
26109 #endif
26110
26111 _ACEOF
26112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26113   $EGREP "You lose" >/dev/null 2>&1; then
26114   ac_cv_header_stat_broken=yes
26115 else
26116   ac_cv_header_stat_broken=no
26117 fi
26118 rm -f conftest*
26119
26120 fi
26121 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26122 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26123 if test $ac_cv_header_stat_broken = yes; then
26124
26125 cat >>confdefs.h <<\_ACEOF
26126 #define STAT_MACROS_BROKEN 1
26127 _ACEOF
26128
26129 fi
26130
26131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26133 if test "${ac_cv_header_stdc+set}" = set; then
26134   echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136   cat >conftest.$ac_ext <<_ACEOF
26137 /* confdefs.h.  */
26138 _ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h.  */
26142 #include <stdlib.h>
26143 #include <stdarg.h>
26144 #include <string.h>
26145 #include <float.h>
26146
26147 int
26148 main ()
26149 {
26150
26151   ;
26152   return 0;
26153 }
26154 _ACEOF
26155 rm -f conftest.$ac_objext
26156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26157   (eval $ac_compile) 2>conftest.er1
26158   ac_status=$?
26159   grep -v '^ *+' conftest.er1 >conftest.err
26160   rm -f conftest.er1
26161   cat conftest.err >&5
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); } &&
26164          { ac_try='test -z "$ac_c_werror_flag"
26165                          || test ! -s conftest.err'
26166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167   (eval $ac_try) 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); }; } &&
26171          { ac_try='test -s conftest.$ac_objext'
26172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173   (eval $ac_try) 2>&5
26174   ac_status=$?
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); }; }; then
26177   ac_cv_header_stdc=yes
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182 ac_cv_header_stdc=no
26183 fi
26184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185
26186 if test $ac_cv_header_stdc = yes; then
26187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26188   cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h.  */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h.  */
26194 #include <string.h>
26195
26196 _ACEOF
26197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26198   $EGREP "memchr" >/dev/null 2>&1; then
26199   :
26200 else
26201   ac_cv_header_stdc=no
26202 fi
26203 rm -f conftest*
26204
26205 fi
26206
26207 if test $ac_cv_header_stdc = yes; then
26208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26209   cat >conftest.$ac_ext <<_ACEOF
26210 /* confdefs.h.  */
26211 _ACEOF
26212 cat confdefs.h >>conftest.$ac_ext
26213 cat >>conftest.$ac_ext <<_ACEOF
26214 /* end confdefs.h.  */
26215 #include <stdlib.h>
26216
26217 _ACEOF
26218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26219   $EGREP "free" >/dev/null 2>&1; then
26220   :
26221 else
26222   ac_cv_header_stdc=no
26223 fi
26224 rm -f conftest*
26225
26226 fi
26227
26228 if test $ac_cv_header_stdc = yes; then
26229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26230   if test "$cross_compiling" = yes; then
26231   :
26232 else
26233   cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h.  */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h.  */
26239 #include <ctype.h>
26240 #if ((' ' & 0x0FF) == 0x020)
26241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26243 #else
26244 # define ISLOWER(c) \
26245                    (('a' <= (c) && (c) <= 'i') \
26246                      || ('j' <= (c) && (c) <= 'r') \
26247                      || ('s' <= (c) && (c) <= 'z'))
26248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26249 #endif
26250
26251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26252 int
26253 main ()
26254 {
26255   int i;
26256   for (i = 0; i < 256; i++)
26257     if (XOR (islower (i), ISLOWER (i))
26258         || toupper (i) != TOUPPER (i))
26259       exit(2);
26260   exit (0);
26261 }
26262 _ACEOF
26263 rm -f conftest$ac_exeext
26264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26265   (eval $ac_link) 2>&5
26266   ac_status=$?
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26270   (eval $ac_try) 2>&5
26271   ac_status=$?
26272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26273   (exit $ac_status); }; }; then
26274   :
26275 else
26276   echo "$as_me: program exited with status $ac_status" >&5
26277 echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280 ( exit $ac_status )
26281 ac_cv_header_stdc=no
26282 fi
26283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26284 fi
26285 fi
26286 fi
26287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26289 if test $ac_cv_header_stdc = yes; then
26290
26291 cat >>confdefs.h <<\_ACEOF
26292 #define STDC_HEADERS 1
26293 _ACEOF
26294
26295 fi
26296
26297 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26298 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26299 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26300   echo $ECHO_N "(cached) $ECHO_C" >&6
26301 else
26302   cat >conftest.$ac_ext <<_ACEOF
26303 /* confdefs.h.  */
26304 _ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h.  */
26308 #include <sys/types.h>
26309 #include <sys/wait.h>
26310 #ifndef WEXITSTATUS
26311 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26312 #endif
26313 #ifndef WIFEXITED
26314 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26315 #endif
26316
26317 int
26318 main ()
26319 {
26320   int s;
26321   wait (&s);
26322   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 rm -f conftest.$ac_objext
26328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329   (eval $ac_compile) 2>conftest.er1
26330   ac_status=$?
26331   grep -v '^ *+' conftest.er1 >conftest.err
26332   rm -f conftest.er1
26333   cat conftest.err >&5
26334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335   (exit $ac_status); } &&
26336          { ac_try='test -z "$ac_c_werror_flag"
26337                          || test ! -s conftest.err'
26338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339   (eval $ac_try) 2>&5
26340   ac_status=$?
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); }; } &&
26343          { ac_try='test -s conftest.$ac_objext'
26344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345   (eval $ac_try) 2>&5
26346   ac_status=$?
26347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348   (exit $ac_status); }; }; then
26349   ac_cv_header_sys_wait_h=yes
26350 else
26351   echo "$as_me: failed program was:" >&5
26352 sed 's/^/| /' conftest.$ac_ext >&5
26353
26354 ac_cv_header_sys_wait_h=no
26355 fi
26356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357 fi
26358 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26359 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26360 if test $ac_cv_header_sys_wait_h = yes; then
26361
26362 cat >>confdefs.h <<\_ACEOF
26363 #define HAVE_SYS_WAIT_H 1
26364 _ACEOF
26365
26366 fi
26367
26368 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26369 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26370 if test "${ac_cv_header_time+set}" = set; then
26371   echo $ECHO_N "(cached) $ECHO_C" >&6
26372 else
26373   cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379 #include <sys/types.h>
26380 #include <sys/time.h>
26381 #include <time.h>
26382
26383 int
26384 main ()
26385 {
26386 if ((struct tm *) 0)
26387 return 0;
26388   ;
26389   return 0;
26390 }
26391 _ACEOF
26392 rm -f conftest.$ac_objext
26393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26394   (eval $ac_compile) 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } &&
26401          { ac_try='test -z "$ac_c_werror_flag"
26402                          || test ! -s conftest.err'
26403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404   (eval $ac_try) 2>&5
26405   ac_status=$?
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); }; } &&
26408          { ac_try='test -s conftest.$ac_objext'
26409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410   (eval $ac_try) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); }; }; then
26414   ac_cv_header_time=yes
26415 else
26416   echo "$as_me: failed program was:" >&5
26417 sed 's/^/| /' conftest.$ac_ext >&5
26418
26419 ac_cv_header_time=no
26420 fi
26421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26422 fi
26423 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26424 echo "${ECHO_T}$ac_cv_header_time" >&6
26425 if test $ac_cv_header_time = yes; then
26426
26427 cat >>confdefs.h <<\_ACEOF
26428 #define TIME_WITH_SYS_TIME 1
26429 _ACEOF
26430
26431 fi
26432
26433
26434
26435
26436
26437
26438
26439
26440 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26441 do
26442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26444   echo "$as_me:$LINENO: checking for $ac_header" >&5
26445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 fi
26449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26451 else
26452   # Is the header compilable?
26453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26455 cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 $ac_includes_default
26462 #include <$ac_header>
26463 _ACEOF
26464 rm -f conftest.$ac_objext
26465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26466   (eval $ac_compile) 2>conftest.er1
26467   ac_status=$?
26468   grep -v '^ *+' conftest.er1 >conftest.err
26469   rm -f conftest.er1
26470   cat conftest.err >&5
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); } &&
26473          { ac_try='test -z "$ac_c_werror_flag"
26474                          || test ! -s conftest.err'
26475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476   (eval $ac_try) 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; } &&
26480          { ac_try='test -s conftest.$ac_objext'
26481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482   (eval $ac_try) 2>&5
26483   ac_status=$?
26484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); }; }; then
26486   ac_header_compiler=yes
26487 else
26488   echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26490
26491 ac_header_compiler=no
26492 fi
26493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26495 echo "${ECHO_T}$ac_header_compiler" >&6
26496
26497 # Is the header present?
26498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26500 cat >conftest.$ac_ext <<_ACEOF
26501 /* confdefs.h.  */
26502 _ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h.  */
26506 #include <$ac_header>
26507 _ACEOF
26508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26510   ac_status=$?
26511   grep -v '^ *+' conftest.er1 >conftest.err
26512   rm -f conftest.er1
26513   cat conftest.err >&5
26514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515   (exit $ac_status); } >/dev/null; then
26516   if test -s conftest.err; then
26517     ac_cpp_err=$ac_c_preproc_warn_flag
26518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26519   else
26520     ac_cpp_err=
26521   fi
26522 else
26523   ac_cpp_err=yes
26524 fi
26525 if test -z "$ac_cpp_err"; then
26526   ac_header_preproc=yes
26527 else
26528   echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531   ac_header_preproc=no
26532 fi
26533 rm -f conftest.err conftest.$ac_ext
26534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26535 echo "${ECHO_T}$ac_header_preproc" >&6
26536
26537 # So?  What about this header?
26538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26539   yes:no: )
26540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26544     ac_header_preproc=yes
26545     ;;
26546   no:yes:* )
26547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26559     (
26560       cat <<\_ASBOX
26561 ## ----------------------------------- ##
26562 ## Report this to llvmbugs@cs.uiuc.edu ##
26563 ## ----------------------------------- ##
26564 _ASBOX
26565     ) |
26566       sed "s/^/$as_me: WARNING:     /" >&2
26567     ;;
26568 esac
26569 echo "$as_me:$LINENO: checking for $ac_header" >&5
26570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26572   echo $ECHO_N "(cached) $ECHO_C" >&6
26573 else
26574   eval "$as_ac_Header=\$ac_header_preproc"
26575 fi
26576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26578
26579 fi
26580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26581   cat >>confdefs.h <<_ACEOF
26582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26583 _ACEOF
26584
26585 fi
26586
26587 done
26588
26589
26590
26591
26592
26593
26594
26595 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26596 do
26597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599   echo "$as_me:$LINENO: checking for $ac_header" >&5
26600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26602   echo $ECHO_N "(cached) $ECHO_C" >&6
26603 fi
26604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26606 else
26607   # Is the header compilable?
26608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26610 cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616 $ac_includes_default
26617 #include <$ac_header>
26618 _ACEOF
26619 rm -f conftest.$ac_objext
26620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26621   (eval $ac_compile) 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } &&
26628          { ac_try='test -z "$ac_c_werror_flag"
26629                          || test ! -s conftest.err'
26630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631   (eval $ac_try) 2>&5
26632   ac_status=$?
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); }; } &&
26635          { ac_try='test -s conftest.$ac_objext'
26636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637   (eval $ac_try) 2>&5
26638   ac_status=$?
26639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640   (exit $ac_status); }; }; then
26641   ac_header_compiler=yes
26642 else
26643   echo "$as_me: failed program was:" >&5
26644 sed 's/^/| /' conftest.$ac_ext >&5
26645
26646 ac_header_compiler=no
26647 fi
26648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26650 echo "${ECHO_T}$ac_header_compiler" >&6
26651
26652 # Is the header present?
26653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26655 cat >conftest.$ac_ext <<_ACEOF
26656 /* confdefs.h.  */
26657 _ACEOF
26658 cat confdefs.h >>conftest.$ac_ext
26659 cat >>conftest.$ac_ext <<_ACEOF
26660 /* end confdefs.h.  */
26661 #include <$ac_header>
26662 _ACEOF
26663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26665   ac_status=$?
26666   grep -v '^ *+' conftest.er1 >conftest.err
26667   rm -f conftest.er1
26668   cat conftest.err >&5
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } >/dev/null; then
26671   if test -s conftest.err; then
26672     ac_cpp_err=$ac_c_preproc_warn_flag
26673     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26674   else
26675     ac_cpp_err=
26676   fi
26677 else
26678   ac_cpp_err=yes
26679 fi
26680 if test -z "$ac_cpp_err"; then
26681   ac_header_preproc=yes
26682 else
26683   echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26685
26686   ac_header_preproc=no
26687 fi
26688 rm -f conftest.err conftest.$ac_ext
26689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26690 echo "${ECHO_T}$ac_header_preproc" >&6
26691
26692 # So?  What about this header?
26693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26694   yes:no: )
26695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26699     ac_header_preproc=yes
26700     ;;
26701   no:yes:* )
26702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26714     (
26715       cat <<\_ASBOX
26716 ## ----------------------------------- ##
26717 ## Report this to llvmbugs@cs.uiuc.edu ##
26718 ## ----------------------------------- ##
26719 _ASBOX
26720     ) |
26721       sed "s/^/$as_me: WARNING:     /" >&2
26722     ;;
26723 esac
26724 echo "$as_me:$LINENO: checking for $ac_header" >&5
26725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729   eval "$as_ac_Header=\$ac_header_preproc"
26730 fi
26731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26733
26734 fi
26735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26736   cat >>confdefs.h <<_ACEOF
26737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26738 _ACEOF
26739
26740 fi
26741
26742 done
26743
26744
26745
26746
26747
26748
26749 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26750 do
26751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26753   echo "$as_me:$LINENO: checking for $ac_header" >&5
26754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26756   echo $ECHO_N "(cached) $ECHO_C" >&6
26757 fi
26758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26760 else
26761   # Is the header compilable?
26762 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26764 cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 $ac_includes_default
26771 #include <$ac_header>
26772 _ACEOF
26773 rm -f conftest.$ac_objext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775   (eval $ac_compile) 2>conftest.er1
26776   ac_status=$?
26777   grep -v '^ *+' conftest.er1 >conftest.err
26778   rm -f conftest.er1
26779   cat conftest.err >&5
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); } &&
26782          { ac_try='test -z "$ac_c_werror_flag"
26783                          || test ! -s conftest.err'
26784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785   (eval $ac_try) 2>&5
26786   ac_status=$?
26787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788   (exit $ac_status); }; } &&
26789          { ac_try='test -s conftest.$ac_objext'
26790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791   (eval $ac_try) 2>&5
26792   ac_status=$?
26793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); }; }; then
26795   ac_header_compiler=yes
26796 else
26797   echo "$as_me: failed program was:" >&5
26798 sed 's/^/| /' conftest.$ac_ext >&5
26799
26800 ac_header_compiler=no
26801 fi
26802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6
26805
26806 # Is the header present?
26807 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <$ac_header>
26816 _ACEOF
26817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26819   ac_status=$?
26820   grep -v '^ *+' conftest.er1 >conftest.err
26821   rm -f conftest.er1
26822   cat conftest.err >&5
26823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824   (exit $ac_status); } >/dev/null; then
26825   if test -s conftest.err; then
26826     ac_cpp_err=$ac_c_preproc_warn_flag
26827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26828   else
26829     ac_cpp_err=
26830   fi
26831 else
26832   ac_cpp_err=yes
26833 fi
26834 if test -z "$ac_cpp_err"; then
26835   ac_header_preproc=yes
26836 else
26837   echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26839
26840   ac_header_preproc=no
26841 fi
26842 rm -f conftest.err conftest.$ac_ext
26843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26844 echo "${ECHO_T}$ac_header_preproc" >&6
26845
26846 # So?  What about this header?
26847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26848   yes:no: )
26849     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26851     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26853     ac_header_preproc=yes
26854     ;;
26855   no:yes:* )
26856     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26858     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26859 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26860     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26862     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26863 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26866     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26868     (
26869       cat <<\_ASBOX
26870 ## ----------------------------------- ##
26871 ## Report this to llvmbugs@cs.uiuc.edu ##
26872 ## ----------------------------------- ##
26873 _ASBOX
26874     ) |
26875       sed "s/^/$as_me: WARNING:     /" >&2
26876     ;;
26877 esac
26878 echo "$as_me:$LINENO: checking for $ac_header" >&5
26879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26881   echo $ECHO_N "(cached) $ECHO_C" >&6
26882 else
26883   eval "$as_ac_Header=\$ac_header_preproc"
26884 fi
26885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26887
26888 fi
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890   cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26892 _ACEOF
26893
26894 fi
26895
26896 done
26897
26898
26899 for ac_header in malloc/malloc.h
26900 do
26901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26903   echo "$as_me:$LINENO: checking for $ac_header" >&5
26904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 fi
26908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26910 else
26911   # Is the header compilable?
26912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26915 /* confdefs.h.  */
26916 _ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h.  */
26920 $ac_includes_default
26921 #include <$ac_header>
26922 _ACEOF
26923 rm -f conftest.$ac_objext
26924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26925   (eval $ac_compile) 2>conftest.er1
26926   ac_status=$?
26927   grep -v '^ *+' conftest.er1 >conftest.err
26928   rm -f conftest.er1
26929   cat conftest.err >&5
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); } &&
26932          { ac_try='test -z "$ac_c_werror_flag"
26933                          || test ! -s conftest.err'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; } &&
26939          { ac_try='test -s conftest.$ac_objext'
26940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941   (eval $ac_try) 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; }; then
26945   ac_header_compiler=yes
26946 else
26947   echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26949
26950 ac_header_compiler=no
26951 fi
26952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26954 echo "${ECHO_T}$ac_header_compiler" >&6
26955
26956 # Is the header present?
26957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26959 cat >conftest.$ac_ext <<_ACEOF
26960 /* confdefs.h.  */
26961 _ACEOF
26962 cat confdefs.h >>conftest.$ac_ext
26963 cat >>conftest.$ac_ext <<_ACEOF
26964 /* end confdefs.h.  */
26965 #include <$ac_header>
26966 _ACEOF
26967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26969   ac_status=$?
26970   grep -v '^ *+' conftest.er1 >conftest.err
26971   rm -f conftest.er1
26972   cat conftest.err >&5
26973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974   (exit $ac_status); } >/dev/null; then
26975   if test -s conftest.err; then
26976     ac_cpp_err=$ac_c_preproc_warn_flag
26977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26978   else
26979     ac_cpp_err=
26980   fi
26981 else
26982   ac_cpp_err=yes
26983 fi
26984 if test -z "$ac_cpp_err"; then
26985   ac_header_preproc=yes
26986 else
26987   echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990   ac_header_preproc=no
26991 fi
26992 rm -f conftest.err conftest.$ac_ext
26993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26994 echo "${ECHO_T}$ac_header_preproc" >&6
26995
26996 # So?  What about this header?
26997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26998   yes:no: )
26999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27003     ac_header_preproc=yes
27004     ;;
27005   no:yes:* )
27006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27018     (
27019       cat <<\_ASBOX
27020 ## ----------------------------------- ##
27021 ## Report this to llvmbugs@cs.uiuc.edu ##
27022 ## ----------------------------------- ##
27023 _ASBOX
27024     ) |
27025       sed "s/^/$as_me: WARNING:     /" >&2
27026     ;;
27027 esac
27028 echo "$as_me:$LINENO: checking for $ac_header" >&5
27029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27031   echo $ECHO_N "(cached) $ECHO_C" >&6
27032 else
27033   eval "$as_ac_Header=\$ac_header_preproc"
27034 fi
27035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27037
27038 fi
27039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27040   cat >>confdefs.h <<_ACEOF
27041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27042 _ACEOF
27043
27044 fi
27045
27046 done
27047
27048 if test "$ENABLE_THREADS" -eq 1 ; then
27049
27050 for ac_header in pthread.h
27051 do
27052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27054   echo "$as_me:$LINENO: checking for $ac_header" >&5
27055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27057   echo $ECHO_N "(cached) $ECHO_C" >&6
27058 fi
27059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27061 else
27062   # Is the header compilable?
27063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071 $ac_includes_default
27072 #include <$ac_header>
27073 _ACEOF
27074 rm -f conftest.$ac_objext
27075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27076   (eval $ac_compile) 2>conftest.er1
27077   ac_status=$?
27078   grep -v '^ *+' conftest.er1 >conftest.err
27079   rm -f conftest.er1
27080   cat conftest.err >&5
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); } &&
27083          { ac_try='test -z "$ac_c_werror_flag"
27084                          || test ! -s conftest.err'
27085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086   (eval $ac_try) 2>&5
27087   ac_status=$?
27088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089   (exit $ac_status); }; } &&
27090          { ac_try='test -s conftest.$ac_objext'
27091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27092   (eval $ac_try) 2>&5
27093   ac_status=$?
27094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095   (exit $ac_status); }; }; then
27096   ac_header_compiler=yes
27097 else
27098   echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27100
27101 ac_header_compiler=no
27102 fi
27103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27105 echo "${ECHO_T}$ac_header_compiler" >&6
27106
27107 # Is the header present?
27108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27110 cat >conftest.$ac_ext <<_ACEOF
27111 /* confdefs.h.  */
27112 _ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h.  */
27116 #include <$ac_header>
27117 _ACEOF
27118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27120   ac_status=$?
27121   grep -v '^ *+' conftest.er1 >conftest.err
27122   rm -f conftest.er1
27123   cat conftest.err >&5
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); } >/dev/null; then
27126   if test -s conftest.err; then
27127     ac_cpp_err=$ac_c_preproc_warn_flag
27128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27129   else
27130     ac_cpp_err=
27131   fi
27132 else
27133   ac_cpp_err=yes
27134 fi
27135 if test -z "$ac_cpp_err"; then
27136   ac_header_preproc=yes
27137 else
27138   echo "$as_me: failed program was:" >&5
27139 sed 's/^/| /' conftest.$ac_ext >&5
27140
27141   ac_header_preproc=no
27142 fi
27143 rm -f conftest.err conftest.$ac_ext
27144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27145 echo "${ECHO_T}$ac_header_preproc" >&6
27146
27147 # So?  What about this header?
27148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27149   yes:no: )
27150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27154     ac_header_preproc=yes
27155     ;;
27156   no:yes:* )
27157     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27159     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27160 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27161     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27163     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27164 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27167     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27169     (
27170       cat <<\_ASBOX
27171 ## ----------------------------------- ##
27172 ## Report this to llvmbugs@cs.uiuc.edu ##
27173 ## ----------------------------------- ##
27174 _ASBOX
27175     ) |
27176       sed "s/^/$as_me: WARNING:     /" >&2
27177     ;;
27178 esac
27179 echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 else
27184   eval "$as_ac_Header=\$ac_header_preproc"
27185 fi
27186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27188
27189 fi
27190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27191   cat >>confdefs.h <<_ACEOF
27192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27193 _ACEOF
27194
27195 fi
27196
27197 done
27198
27199 fi
27200
27201
27202 echo "$as_me:$LINENO: checking for pid_t" >&5
27203 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27204 if test "${ac_cv_type_pid_t+set}" = set; then
27205   echo $ECHO_N "(cached) $ECHO_C" >&6
27206 else
27207   cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h.  */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h.  */
27213 $ac_includes_default
27214 int
27215 main ()
27216 {
27217 if ((pid_t *) 0)
27218   return 0;
27219 if (sizeof (pid_t))
27220   return 0;
27221   ;
27222   return 0;
27223 }
27224 _ACEOF
27225 rm -f conftest.$ac_objext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27227   (eval $ac_compile) 2>conftest.er1
27228   ac_status=$?
27229   grep -v '^ *+' conftest.er1 >conftest.err
27230   rm -f conftest.er1
27231   cat conftest.err >&5
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); } &&
27234          { ac_try='test -z "$ac_c_werror_flag"
27235                          || test ! -s conftest.err'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; } &&
27241          { ac_try='test -s conftest.$ac_objext'
27242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243   (eval $ac_try) 2>&5
27244   ac_status=$?
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); }; }; then
27247   ac_cv_type_pid_t=yes
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252 ac_cv_type_pid_t=no
27253 fi
27254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27255 fi
27256 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27258 if test $ac_cv_type_pid_t = yes; then
27259   :
27260 else
27261
27262 cat >>confdefs.h <<_ACEOF
27263 #define pid_t int
27264 _ACEOF
27265
27266 fi
27267
27268 echo "$as_me:$LINENO: checking for size_t" >&5
27269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27270 if test "${ac_cv_type_size_t+set}" = set; then
27271   echo $ECHO_N "(cached) $ECHO_C" >&6
27272 else
27273   cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h.  */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h.  */
27279 $ac_includes_default
27280 int
27281 main ()
27282 {
27283 if ((size_t *) 0)
27284   return 0;
27285 if (sizeof (size_t))
27286   return 0;
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27293   (eval $ac_compile) 2>conftest.er1
27294   ac_status=$?
27295   grep -v '^ *+' conftest.er1 >conftest.err
27296   rm -f conftest.er1
27297   cat conftest.err >&5
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); } &&
27300          { ac_try='test -z "$ac_c_werror_flag"
27301                          || test ! -s conftest.err'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; } &&
27307          { ac_try='test -s conftest.$ac_objext'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; }; then
27313   ac_cv_type_size_t=yes
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 ac_cv_type_size_t=no
27319 fi
27320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27321 fi
27322 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27323 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27324 if test $ac_cv_type_size_t = yes; then
27325   :
27326 else
27327
27328 cat >>confdefs.h <<_ACEOF
27329 #define size_t unsigned
27330 _ACEOF
27331
27332 fi
27333
27334 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27335 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27336 if test "${ac_cv_type_signal+set}" = set; then
27337   echo $ECHO_N "(cached) $ECHO_C" >&6
27338 else
27339   cat >conftest.$ac_ext <<_ACEOF
27340 /* confdefs.h.  */
27341 _ACEOF
27342 cat confdefs.h >>conftest.$ac_ext
27343 cat >>conftest.$ac_ext <<_ACEOF
27344 /* end confdefs.h.  */
27345 #include <sys/types.h>
27346 #include <signal.h>
27347 #ifdef signal
27348 # undef signal
27349 #endif
27350 #ifdef __cplusplus
27351 extern "C" void (*signal (int, void (*)(int)))(int);
27352 #else
27353 void (*signal ()) ();
27354 #endif
27355
27356 int
27357 main ()
27358 {
27359 int i;
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27366   (eval $ac_compile) 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } &&
27373          { ac_try='test -z "$ac_c_werror_flag"
27374                          || test ! -s conftest.err'
27375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376   (eval $ac_try) 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); }; } &&
27380          { ac_try='test -s conftest.$ac_objext'
27381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382   (eval $ac_try) 2>&5
27383   ac_status=$?
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); }; }; then
27386   ac_cv_type_signal=void
27387 else
27388   echo "$as_me: failed program was:" >&5
27389 sed 's/^/| /' conftest.$ac_ext >&5
27390
27391 ac_cv_type_signal=int
27392 fi
27393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27394 fi
27395 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27396 echo "${ECHO_T}$ac_cv_type_signal" >&6
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define RETSIGTYPE $ac_cv_type_signal
27400 _ACEOF
27401
27402
27403 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27405 if test "${ac_cv_struct_tm+set}" = set; then
27406   echo $ECHO_N "(cached) $ECHO_C" >&6
27407 else
27408   cat >conftest.$ac_ext <<_ACEOF
27409 /* confdefs.h.  */
27410 _ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h.  */
27414 #include <sys/types.h>
27415 #include <time.h>
27416
27417 int
27418 main ()
27419 {
27420 struct tm *tp; tp->tm_sec;
27421   ;
27422   return 0;
27423 }
27424 _ACEOF
27425 rm -f conftest.$ac_objext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27427   (eval $ac_compile) 2>conftest.er1
27428   ac_status=$?
27429   grep -v '^ *+' conftest.er1 >conftest.err
27430   rm -f conftest.er1
27431   cat conftest.err >&5
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } &&
27434          { ac_try='test -z "$ac_c_werror_flag"
27435                          || test ! -s conftest.err'
27436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27437   (eval $ac_try) 2>&5
27438   ac_status=$?
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); }; } &&
27441          { ac_try='test -s conftest.$ac_objext'
27442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443   (eval $ac_try) 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); }; }; then
27447   ac_cv_struct_tm=time.h
27448 else
27449   echo "$as_me: failed program was:" >&5
27450 sed 's/^/| /' conftest.$ac_ext >&5
27451
27452 ac_cv_struct_tm=sys/time.h
27453 fi
27454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27455 fi
27456 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27457 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27458 if test $ac_cv_struct_tm = sys/time.h; then
27459
27460 cat >>confdefs.h <<\_ACEOF
27461 #define TM_IN_SYS_TIME 1
27462 _ACEOF
27463
27464 fi
27465
27466 echo "$as_me:$LINENO: checking for int64_t" >&5
27467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27468 if test "${ac_cv_type_int64_t+set}" = set; then
27469   echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27471   cat >conftest.$ac_ext <<_ACEOF
27472 /* confdefs.h.  */
27473 _ACEOF
27474 cat confdefs.h >>conftest.$ac_ext
27475 cat >>conftest.$ac_ext <<_ACEOF
27476 /* end confdefs.h.  */
27477 $ac_includes_default
27478 int
27479 main ()
27480 {
27481 if ((int64_t *) 0)
27482   return 0;
27483 if (sizeof (int64_t))
27484   return 0;
27485   ;
27486   return 0;
27487 }
27488 _ACEOF
27489 rm -f conftest.$ac_objext
27490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27491   (eval $ac_compile) 2>conftest.er1
27492   ac_status=$?
27493   grep -v '^ *+' conftest.er1 >conftest.err
27494   rm -f conftest.er1
27495   cat conftest.err >&5
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); } &&
27498          { ac_try='test -z "$ac_c_werror_flag"
27499                          || test ! -s conftest.err'
27500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501   (eval $ac_try) 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); }; } &&
27505          { ac_try='test -s conftest.$ac_objext'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; }; then
27511   ac_cv_type_int64_t=yes
27512 else
27513   echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27515
27516 ac_cv_type_int64_t=no
27517 fi
27518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27519 fi
27520 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27521 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27522 if test $ac_cv_type_int64_t = yes; then
27523
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_INT64_T 1
27526 _ACEOF
27527
27528
27529 else
27530   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27531 echo "$as_me: error: Type int64_t required but not found" >&2;}
27532    { (exit 1); exit 1; }; }
27533 fi
27534
27535 echo "$as_me:$LINENO: checking for uint64_t" >&5
27536 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27537 if test "${ac_cv_type_uint64_t+set}" = set; then
27538   echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540   cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546 $ac_includes_default
27547 int
27548 main ()
27549 {
27550 if ((uint64_t *) 0)
27551   return 0;
27552 if (sizeof (uint64_t))
27553   return 0;
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 rm -f conftest.$ac_objext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27560   (eval $ac_compile) 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag"
27568                          || test ! -s conftest.err'
27569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570   (eval $ac_try) 2>&5
27571   ac_status=$?
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); }; } &&
27574          { ac_try='test -s conftest.$ac_objext'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_type_uint64_t=yes
27581 else
27582   echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585 ac_cv_type_uint64_t=no
27586 fi
27587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27588 fi
27589 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27590 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27591 if test $ac_cv_type_uint64_t = yes; then
27592
27593 cat >>confdefs.h <<_ACEOF
27594 #define HAVE_UINT64_T 1
27595 _ACEOF
27596
27597
27598 else
27599   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27600 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27601 if test "${ac_cv_type_u_int64_t+set}" = set; then
27602   echo $ECHO_N "(cached) $ECHO_C" >&6
27603 else
27604   cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h.  */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h.  */
27610 $ac_includes_default
27611 int
27612 main ()
27613 {
27614 if ((u_int64_t *) 0)
27615   return 0;
27616 if (sizeof (u_int64_t))
27617   return 0;
27618   ;
27619   return 0;
27620 }
27621 _ACEOF
27622 rm -f conftest.$ac_objext
27623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27624   (eval $ac_compile) 2>conftest.er1
27625   ac_status=$?
27626   grep -v '^ *+' conftest.er1 >conftest.err
27627   rm -f conftest.er1
27628   cat conftest.err >&5
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); } &&
27631          { ac_try='test -z "$ac_c_werror_flag"
27632                          || test ! -s conftest.err'
27633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634   (eval $ac_try) 2>&5
27635   ac_status=$?
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); }; } &&
27638          { ac_try='test -s conftest.$ac_objext'
27639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27640   (eval $ac_try) 2>&5
27641   ac_status=$?
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); }; }; then
27644   ac_cv_type_u_int64_t=yes
27645 else
27646   echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27648
27649 ac_cv_type_u_int64_t=no
27650 fi
27651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27652 fi
27653 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27654 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27655 if test $ac_cv_type_u_int64_t = yes; then
27656
27657 cat >>confdefs.h <<_ACEOF
27658 #define HAVE_U_INT64_T 1
27659 _ACEOF
27660
27661
27662 else
27663   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27664 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27665    { (exit 1); exit 1; }; }
27666 fi
27667
27668 fi
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27680 do
27681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27682 echo "$as_me:$LINENO: checking for $ac_func" >&5
27683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27684 if eval "test \"\${$as_ac_var+set}\" = set"; then
27685   echo $ECHO_N "(cached) $ECHO_C" >&6
27686 else
27687   cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27695 #define $ac_func innocuous_$ac_func
27696
27697 /* System header to define __stub macros and hopefully few prototypes,
27698     which can conflict with char $ac_func (); below.
27699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27700     <limits.h> exists even on freestanding compilers.  */
27701
27702 #ifdef __STDC__
27703 # include <limits.h>
27704 #else
27705 # include <assert.h>
27706 #endif
27707
27708 #undef $ac_func
27709
27710 /* Override any gcc2 internal prototype to avoid an error.  */
27711 #ifdef __cplusplus
27712 extern "C"
27713 {
27714 #endif
27715 /* We use char because int might match the return type of a gcc2
27716    builtin and then its argument prototype would still apply.  */
27717 char $ac_func ();
27718 /* The GNU C library defines this for functions which it implements
27719     to always fail with ENOSYS.  Some functions are actually named
27720     something starting with __ and the normal name is an alias.  */
27721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27722 choke me
27723 #else
27724 char (*f) () = $ac_func;
27725 #endif
27726 #ifdef __cplusplus
27727 }
27728 #endif
27729
27730 int
27731 main ()
27732 {
27733 return f != $ac_func;
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 rm -f conftest.$ac_objext conftest$ac_exeext
27739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27740   (eval $ac_link) 2>conftest.er1
27741   ac_status=$?
27742   grep -v '^ *+' conftest.er1 >conftest.err
27743   rm -f conftest.er1
27744   cat conftest.err >&5
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); } &&
27747          { ac_try='test -z "$ac_c_werror_flag"
27748                          || test ! -s conftest.err'
27749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750   (eval $ac_try) 2>&5
27751   ac_status=$?
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); }; } &&
27754          { ac_try='test -s conftest$ac_exeext'
27755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756   (eval $ac_try) 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); }; }; then
27760   eval "$as_ac_var=yes"
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765 eval "$as_ac_var=no"
27766 fi
27767 rm -f conftest.err conftest.$ac_objext \
27768       conftest$ac_exeext conftest.$ac_ext
27769 fi
27770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27772 if test `eval echo '${'$as_ac_var'}'` = yes; then
27773   cat >>confdefs.h <<_ACEOF
27774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27775 _ACEOF
27776
27777 fi
27778 done
27779
27780
27781
27782
27783
27784
27785
27786 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27787 do
27788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27789 echo "$as_me:$LINENO: checking for $ac_func" >&5
27790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27791 if eval "test \"\${$as_ac_var+set}\" = set"; then
27792   echo $ECHO_N "(cached) $ECHO_C" >&6
27793 else
27794   cat >conftest.$ac_ext <<_ACEOF
27795 /* confdefs.h.  */
27796 _ACEOF
27797 cat confdefs.h >>conftest.$ac_ext
27798 cat >>conftest.$ac_ext <<_ACEOF
27799 /* end confdefs.h.  */
27800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27802 #define $ac_func innocuous_$ac_func
27803
27804 /* System header to define __stub macros and hopefully few prototypes,
27805     which can conflict with char $ac_func (); below.
27806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27807     <limits.h> exists even on freestanding compilers.  */
27808
27809 #ifdef __STDC__
27810 # include <limits.h>
27811 #else
27812 # include <assert.h>
27813 #endif
27814
27815 #undef $ac_func
27816
27817 /* Override any gcc2 internal prototype to avoid an error.  */
27818 #ifdef __cplusplus
27819 extern "C"
27820 {
27821 #endif
27822 /* We use char because int might match the return type of a gcc2
27823    builtin and then its argument prototype would still apply.  */
27824 char $ac_func ();
27825 /* The GNU C library defines this for functions which it implements
27826     to always fail with ENOSYS.  Some functions are actually named
27827     something starting with __ and the normal name is an alias.  */
27828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27829 choke me
27830 #else
27831 char (*f) () = $ac_func;
27832 #endif
27833 #ifdef __cplusplus
27834 }
27835 #endif
27836
27837 int
27838 main ()
27839 {
27840 return f != $ac_func;
27841   ;
27842   return 0;
27843 }
27844 _ACEOF
27845 rm -f conftest.$ac_objext conftest$ac_exeext
27846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27847   (eval $ac_link) 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } &&
27854          { ac_try='test -z "$ac_c_werror_flag"
27855                          || test ! -s conftest.err'
27856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857   (eval $ac_try) 2>&5
27858   ac_status=$?
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); }; } &&
27861          { ac_try='test -s conftest$ac_exeext'
27862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863   (eval $ac_try) 2>&5
27864   ac_status=$?
27865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866   (exit $ac_status); }; }; then
27867   eval "$as_ac_var=yes"
27868 else
27869   echo "$as_me: failed program was:" >&5
27870 sed 's/^/| /' conftest.$ac_ext >&5
27871
27872 eval "$as_ac_var=no"
27873 fi
27874 rm -f conftest.err conftest.$ac_objext \
27875       conftest$ac_exeext conftest.$ac_ext
27876 fi
27877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27879 if test `eval echo '${'$as_ac_var'}'` = yes; then
27880   cat >>confdefs.h <<_ACEOF
27881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27882 _ACEOF
27883
27884 fi
27885 done
27886
27887
27888
27889
27890
27891
27892
27893
27894 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27895 do
27896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27897 echo "$as_me:$LINENO: checking for $ac_func" >&5
27898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27899 if eval "test \"\${$as_ac_var+set}\" = set"; then
27900   echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902   cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27910 #define $ac_func innocuous_$ac_func
27911
27912 /* System header to define __stub macros and hopefully few prototypes,
27913     which can conflict with char $ac_func (); below.
27914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27915     <limits.h> exists even on freestanding compilers.  */
27916
27917 #ifdef __STDC__
27918 # include <limits.h>
27919 #else
27920 # include <assert.h>
27921 #endif
27922
27923 #undef $ac_func
27924
27925 /* Override any gcc2 internal prototype to avoid an error.  */
27926 #ifdef __cplusplus
27927 extern "C"
27928 {
27929 #endif
27930 /* We use char because int might match the return type of a gcc2
27931    builtin and then its argument prototype would still apply.  */
27932 char $ac_func ();
27933 /* The GNU C library defines this for functions which it implements
27934     to always fail with ENOSYS.  Some functions are actually named
27935     something starting with __ and the normal name is an alias.  */
27936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27937 choke me
27938 #else
27939 char (*f) () = $ac_func;
27940 #endif
27941 #ifdef __cplusplus
27942 }
27943 #endif
27944
27945 int
27946 main ()
27947 {
27948 return f != $ac_func;
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 rm -f conftest.$ac_objext conftest$ac_exeext
27954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27955   (eval $ac_link) 2>conftest.er1
27956   ac_status=$?
27957   grep -v '^ *+' conftest.er1 >conftest.err
27958   rm -f conftest.er1
27959   cat conftest.err >&5
27960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961   (exit $ac_status); } &&
27962          { ac_try='test -z "$ac_c_werror_flag"
27963                          || test ! -s conftest.err'
27964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965   (eval $ac_try) 2>&5
27966   ac_status=$?
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); }; } &&
27969          { ac_try='test -s conftest$ac_exeext'
27970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27971   (eval $ac_try) 2>&5
27972   ac_status=$?
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); }; }; then
27975   eval "$as_ac_var=yes"
27976 else
27977   echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 eval "$as_ac_var=no"
27981 fi
27982 rm -f conftest.err conftest.$ac_objext \
27983       conftest$ac_exeext conftest.$ac_ext
27984 fi
27985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27987 if test `eval echo '${'$as_ac_var'}'` = yes; then
27988   cat >>confdefs.h <<_ACEOF
27989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27990 _ACEOF
27991
27992 fi
27993 done
27994
27995
27996
27997
27998
27999 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28000 do
28001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28002 echo "$as_me:$LINENO: checking for $ac_func" >&5
28003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28004 if eval "test \"\${$as_ac_var+set}\" = set"; then
28005   echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007   cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h.  */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h.  */
28013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28015 #define $ac_func innocuous_$ac_func
28016
28017 /* System header to define __stub macros and hopefully few prototypes,
28018     which can conflict with char $ac_func (); below.
28019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020     <limits.h> exists even on freestanding compilers.  */
28021
28022 #ifdef __STDC__
28023 # include <limits.h>
28024 #else
28025 # include <assert.h>
28026 #endif
28027
28028 #undef $ac_func
28029
28030 /* Override any gcc2 internal prototype to avoid an error.  */
28031 #ifdef __cplusplus
28032 extern "C"
28033 {
28034 #endif
28035 /* We use char because int might match the return type of a gcc2
28036    builtin and then its argument prototype would still apply.  */
28037 char $ac_func ();
28038 /* The GNU C library defines this for functions which it implements
28039     to always fail with ENOSYS.  Some functions are actually named
28040     something starting with __ and the normal name is an alias.  */
28041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28042 choke me
28043 #else
28044 char (*f) () = $ac_func;
28045 #endif
28046 #ifdef __cplusplus
28047 }
28048 #endif
28049
28050 int
28051 main ()
28052 {
28053 return f != $ac_func;
28054   ;
28055   return 0;
28056 }
28057 _ACEOF
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28060   (eval $ac_link) 2>conftest.er1
28061   ac_status=$?
28062   grep -v '^ *+' conftest.er1 >conftest.err
28063   rm -f conftest.er1
28064   cat conftest.err >&5
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); } &&
28067          { ac_try='test -z "$ac_c_werror_flag"
28068                          || test ! -s conftest.err'
28069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070   (eval $ac_try) 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; } &&
28074          { ac_try='test -s conftest$ac_exeext'
28075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076   (eval $ac_try) 2>&5
28077   ac_status=$?
28078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079   (exit $ac_status); }; }; then
28080   eval "$as_ac_var=yes"
28081 else
28082   echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28084
28085 eval "$as_ac_var=no"
28086 fi
28087 rm -f conftest.err conftest.$ac_objext \
28088       conftest$ac_exeext conftest.$ac_ext
28089 fi
28090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28092 if test `eval echo '${'$as_ac_var'}'` = yes; then
28093   cat >>confdefs.h <<_ACEOF
28094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28095 _ACEOF
28096
28097 fi
28098 done
28099
28100 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28101 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28102 if test "${llvm_cv_c_printf_a+set}" = set; then
28103   echo $ECHO_N "(cached) $ECHO_C" >&6
28104 else
28105   ac_ext=c
28106 ac_cpp='$CPP $CPPFLAGS'
28107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28110
28111  if test "$cross_compiling" = yes; then
28112   llvmac_cv_c_printf_a=no
28113 else
28114   cat >conftest.$ac_ext <<_ACEOF
28115
28116   /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121
28122 #include <stdio.h>
28123 #include <stdlib.h>
28124
28125 int
28126 main ()
28127 {
28128
28129 volatile double A, B;
28130 char Buffer[100];
28131 A = 1;
28132 A /= 10.0;
28133 sprintf(Buffer, "%a", A);
28134 B = atof(Buffer);
28135 if (A != B)
28136   return (1);
28137 if (A != 0x1.999999999999ap-4)
28138   return (1);
28139 return (0);
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest$ac_exeext
28145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28146   (eval $ac_link) 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151   (eval $ac_try) 2>&5
28152   ac_status=$?
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); }; }; then
28155   llvm_cv_c_printf_a=yes
28156 else
28157   echo "$as_me: program exited with status $ac_status" >&5
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161 ( exit $ac_status )
28162 llvmac_cv_c_printf_a=no
28163 fi
28164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28165 fi
28166  ac_ext=c
28167 ac_cpp='$CPP $CPPFLAGS'
28168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28171
28172 fi
28173 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28174 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28175  if test "$llvm_cv_c_printf_a" = "yes"; then
28176
28177 cat >>confdefs.h <<\_ACEOF
28178 #define HAVE_PRINTF_A 1
28179 _ACEOF
28180
28181  fi
28182
28183 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28184 # for constant arguments.  Useless!
28185 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28186 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28187 if test "${ac_cv_working_alloca_h+set}" = set; then
28188   echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190   cat >conftest.$ac_ext <<_ACEOF
28191 /* confdefs.h.  */
28192 _ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h.  */
28196 #include <alloca.h>
28197 int
28198 main ()
28199 {
28200 char *p = (char *) alloca (2 * sizeof (int));
28201   ;
28202   return 0;
28203 }
28204 _ACEOF
28205 rm -f conftest.$ac_objext conftest$ac_exeext
28206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28207   (eval $ac_link) 2>conftest.er1
28208   ac_status=$?
28209   grep -v '^ *+' conftest.er1 >conftest.err
28210   rm -f conftest.er1
28211   cat conftest.err >&5
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); } &&
28214          { ac_try='test -z "$ac_c_werror_flag"
28215                          || test ! -s conftest.err'
28216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217   (eval $ac_try) 2>&5
28218   ac_status=$?
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); }; } &&
28221          { ac_try='test -s conftest$ac_exeext'
28222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28223   (eval $ac_try) 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); }; }; then
28227   ac_cv_working_alloca_h=yes
28228 else
28229   echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28231
28232 ac_cv_working_alloca_h=no
28233 fi
28234 rm -f conftest.err conftest.$ac_objext \
28235       conftest$ac_exeext conftest.$ac_ext
28236 fi
28237 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28238 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28239 if test $ac_cv_working_alloca_h = yes; then
28240
28241 cat >>confdefs.h <<\_ACEOF
28242 #define HAVE_ALLOCA_H 1
28243 _ACEOF
28244
28245 fi
28246
28247 echo "$as_me:$LINENO: checking for alloca" >&5
28248 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28249 if test "${ac_cv_func_alloca_works+set}" = set; then
28250   echo $ECHO_N "(cached) $ECHO_C" >&6
28251 else
28252   cat >conftest.$ac_ext <<_ACEOF
28253 /* confdefs.h.  */
28254 _ACEOF
28255 cat confdefs.h >>conftest.$ac_ext
28256 cat >>conftest.$ac_ext <<_ACEOF
28257 /* end confdefs.h.  */
28258 #ifdef __GNUC__
28259 # define alloca __builtin_alloca
28260 #else
28261 # ifdef _MSC_VER
28262 #  include <malloc.h>
28263 #  define alloca _alloca
28264 # else
28265 #  if HAVE_ALLOCA_H
28266 #   include <alloca.h>
28267 #  else
28268 #   ifdef _AIX
28269  #pragma alloca
28270 #   else
28271 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28272 char *alloca ();
28273 #    endif
28274 #   endif
28275 #  endif
28276 # endif
28277 #endif
28278
28279 int
28280 main ()
28281 {
28282 char *p = (char *) alloca (1);
28283   ;
28284   return 0;
28285 }
28286 _ACEOF
28287 rm -f conftest.$ac_objext conftest$ac_exeext
28288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28289   (eval $ac_link) 2>conftest.er1
28290   ac_status=$?
28291   grep -v '^ *+' conftest.er1 >conftest.err
28292   rm -f conftest.er1
28293   cat conftest.err >&5
28294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); } &&
28296          { ac_try='test -z "$ac_c_werror_flag"
28297                          || test ! -s conftest.err'
28298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299   (eval $ac_try) 2>&5
28300   ac_status=$?
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); }; } &&
28303          { ac_try='test -s conftest$ac_exeext'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; }; then
28309   ac_cv_func_alloca_works=yes
28310 else
28311   echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28313
28314 ac_cv_func_alloca_works=no
28315 fi
28316 rm -f conftest.err conftest.$ac_objext \
28317       conftest$ac_exeext conftest.$ac_ext
28318 fi
28319 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28320 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28321
28322 if test $ac_cv_func_alloca_works = yes; then
28323
28324 cat >>confdefs.h <<\_ACEOF
28325 #define HAVE_ALLOCA 1
28326 _ACEOF
28327
28328 else
28329   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28330 # that cause trouble.  Some versions do not even contain alloca or
28331 # contain a buggy version.  If you still want to use their alloca,
28332 # use ar to extract alloca.o from them instead of compiling alloca.c.
28333
28334 ALLOCA=alloca.$ac_objext
28335
28336 cat >>confdefs.h <<\_ACEOF
28337 #define C_ALLOCA 1
28338 _ACEOF
28339
28340
28341 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28342 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28343 if test "${ac_cv_os_cray+set}" = set; then
28344   echo $ECHO_N "(cached) $ECHO_C" >&6
28345 else
28346   cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352 #if defined(CRAY) && ! defined(CRAY2)
28353 webecray
28354 #else
28355 wenotbecray
28356 #endif
28357
28358 _ACEOF
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360   $EGREP "webecray" >/dev/null 2>&1; then
28361   ac_cv_os_cray=yes
28362 else
28363   ac_cv_os_cray=no
28364 fi
28365 rm -f conftest*
28366
28367 fi
28368 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28369 echo "${ECHO_T}$ac_cv_os_cray" >&6
28370 if test $ac_cv_os_cray = yes; then
28371   for ac_func in _getb67 GETB67 getb67; do
28372     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373 echo "$as_me:$LINENO: checking for $ac_func" >&5
28374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28375 if eval "test \"\${$as_ac_var+set}\" = set"; then
28376   echo $ECHO_N "(cached) $ECHO_C" >&6
28377 else
28378   cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h.  */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h.  */
28384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28386 #define $ac_func innocuous_$ac_func
28387
28388 /* System header to define __stub macros and hopefully few prototypes,
28389     which can conflict with char $ac_func (); below.
28390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28391     <limits.h> exists even on freestanding compilers.  */
28392
28393 #ifdef __STDC__
28394 # include <limits.h>
28395 #else
28396 # include <assert.h>
28397 #endif
28398
28399 #undef $ac_func
28400
28401 /* Override any gcc2 internal prototype to avoid an error.  */
28402 #ifdef __cplusplus
28403 extern "C"
28404 {
28405 #endif
28406 /* We use char because int might match the return type of a gcc2
28407    builtin and then its argument prototype would still apply.  */
28408 char $ac_func ();
28409 /* The GNU C library defines this for functions which it implements
28410     to always fail with ENOSYS.  Some functions are actually named
28411     something starting with __ and the normal name is an alias.  */
28412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28413 choke me
28414 #else
28415 char (*f) () = $ac_func;
28416 #endif
28417 #ifdef __cplusplus
28418 }
28419 #endif
28420
28421 int
28422 main ()
28423 {
28424 return f != $ac_func;
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 rm -f conftest.$ac_objext conftest$ac_exeext
28430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28431   (eval $ac_link) 2>conftest.er1
28432   ac_status=$?
28433   grep -v '^ *+' conftest.er1 >conftest.err
28434   rm -f conftest.er1
28435   cat conftest.err >&5
28436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437   (exit $ac_status); } &&
28438          { ac_try='test -z "$ac_c_werror_flag"
28439                          || test ! -s conftest.err'
28440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441   (eval $ac_try) 2>&5
28442   ac_status=$?
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); }; } &&
28445          { ac_try='test -s conftest$ac_exeext'
28446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28447   (eval $ac_try) 2>&5
28448   ac_status=$?
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); }; }; then
28451   eval "$as_ac_var=yes"
28452 else
28453   echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28455
28456 eval "$as_ac_var=no"
28457 fi
28458 rm -f conftest.err conftest.$ac_objext \
28459       conftest$ac_exeext conftest.$ac_ext
28460 fi
28461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28463 if test `eval echo '${'$as_ac_var'}'` = yes; then
28464
28465 cat >>confdefs.h <<_ACEOF
28466 #define CRAY_STACKSEG_END $ac_func
28467 _ACEOF
28468
28469     break
28470 fi
28471
28472   done
28473 fi
28474
28475 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28476 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28477 if test "${ac_cv_c_stack_direction+set}" = set; then
28478   echo $ECHO_N "(cached) $ECHO_C" >&6
28479 else
28480   if test "$cross_compiling" = yes; then
28481   ac_cv_c_stack_direction=0
28482 else
28483   cat >conftest.$ac_ext <<_ACEOF
28484 /* confdefs.h.  */
28485 _ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h.  */
28489 int
28490 find_stack_direction ()
28491 {
28492   static char *addr = 0;
28493   auto char dummy;
28494   if (addr == 0)
28495     {
28496       addr = &dummy;
28497       return find_stack_direction ();
28498     }
28499   else
28500     return (&dummy > addr) ? 1 : -1;
28501 }
28502
28503 int
28504 main ()
28505 {
28506   exit (find_stack_direction () < 0);
28507 }
28508 _ACEOF
28509 rm -f conftest$ac_exeext
28510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28511   (eval $ac_link) 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516   (eval $ac_try) 2>&5
28517   ac_status=$?
28518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519   (exit $ac_status); }; }; then
28520   ac_cv_c_stack_direction=1
28521 else
28522   echo "$as_me: program exited with status $ac_status" >&5
28523 echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28525
28526 ( exit $ac_status )
28527 ac_cv_c_stack_direction=-1
28528 fi
28529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28530 fi
28531 fi
28532 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28533 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28534
28535 cat >>confdefs.h <<_ACEOF
28536 #define STACK_DIRECTION $ac_cv_c_stack_direction
28537 _ACEOF
28538
28539
28540 fi
28541
28542
28543 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28544 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28545 if test "${ac_cv_func_rand48+set}" = set; then
28546   echo $ECHO_N "(cached) $ECHO_C" >&6
28547 else
28548   ac_ext=cc
28549 ac_cpp='$CXXCPP $CPPFLAGS'
28550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28553
28554    cat >conftest.$ac_ext <<_ACEOF
28555 /* confdefs.h.  */
28556 _ACEOF
28557 cat confdefs.h >>conftest.$ac_ext
28558 cat >>conftest.$ac_ext <<_ACEOF
28559 /* end confdefs.h.  */
28560 #include <stdlib.h>
28561 int
28562 main ()
28563 {
28564 srand48(0);lrand48();drand48();
28565   ;
28566   return 0;
28567 }
28568 _ACEOF
28569 rm -f conftest.$ac_objext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28571   (eval $ac_compile) 2>conftest.er1
28572   ac_status=$?
28573   grep -v '^ *+' conftest.er1 >conftest.err
28574   rm -f conftest.er1
28575   cat conftest.err >&5
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); } &&
28578          { ac_try='test -z "$ac_cxx_werror_flag"
28579                          || test ! -s conftest.err'
28580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581   (eval $ac_try) 2>&5
28582   ac_status=$?
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); }; } &&
28585          { ac_try='test -s conftest.$ac_objext'
28586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587   (eval $ac_try) 2>&5
28588   ac_status=$?
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); }; }; then
28591   ac_cv_func_rand48=yes
28592 else
28593   echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596 ac_cv_func_rand48=no
28597 fi
28598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28599   ac_ext=c
28600 ac_cpp='$CPP $CPPFLAGS'
28601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28604
28605 fi
28606 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28607 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28608
28609 if test "$ac_cv_func_rand48" = "yes" ; then
28610
28611 cat >>confdefs.h <<\_ACEOF
28612 #define HAVE_RAND48 1
28613 _ACEOF
28614
28615 fi
28616
28617
28618 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28619 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28620 if test "${ac_cv_cxx_namespaces+set}" = set; then
28621   echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623   ac_ext=cc
28624 ac_cpp='$CXXCPP $CPPFLAGS'
28625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28628
28629  cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635 namespace Outer { namespace Inner { int i = 0; }}
28636 int
28637 main ()
28638 {
28639 using namespace Outer::Inner; return i;
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 rm -f conftest.$ac_objext
28645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28646   (eval $ac_compile) 2>conftest.er1
28647   ac_status=$?
28648   grep -v '^ *+' conftest.er1 >conftest.err
28649   rm -f conftest.er1
28650   cat conftest.err >&5
28651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652   (exit $ac_status); } &&
28653          { ac_try='test -z "$ac_cxx_werror_flag"
28654                          || test ! -s conftest.err'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; } &&
28660          { ac_try='test -s conftest.$ac_objext'
28661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662   (eval $ac_try) 2>&5
28663   ac_status=$?
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); }; }; then
28666   ac_cv_cxx_namespaces=yes
28667 else
28668   echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28670
28671 ac_cv_cxx_namespaces=no
28672 fi
28673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28674  ac_ext=c
28675 ac_cpp='$CPP $CPPFLAGS'
28676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28679
28680
28681 fi
28682 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28683 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28684 if test "$ac_cv_cxx_namespaces" = yes; then
28685
28686 cat >>confdefs.h <<\_ACEOF
28687 #define HAVE_NAMESPACES
28688 _ACEOF
28689
28690 fi
28691
28692 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28693 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28694 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697
28698   ac_ext=cc
28699 ac_cpp='$CXXCPP $CPPFLAGS'
28700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28703
28704   cat >conftest.$ac_ext <<_ACEOF
28705 /* confdefs.h.  */
28706 _ACEOF
28707 cat confdefs.h >>conftest.$ac_ext
28708 cat >>conftest.$ac_ext <<_ACEOF
28709 /* end confdefs.h.  */
28710 #include <ext/hash_map>
28711 #ifdef HAVE_NAMESPACES
28712 using namespace std;
28713 #endif
28714 int
28715 main ()
28716 {
28717 hash_map<int, int> t;
28718   ;
28719   return 0;
28720 }
28721 _ACEOF
28722 rm -f conftest.$ac_objext
28723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28724   (eval $ac_compile) 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } &&
28731          { ac_try='test -z "$ac_cxx_werror_flag"
28732                          || test ! -s conftest.err'
28733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734   (eval $ac_try) 2>&5
28735   ac_status=$?
28736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737   (exit $ac_status); }; } &&
28738          { ac_try='test -s conftest.$ac_objext'
28739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740   (eval $ac_try) 2>&5
28741   ac_status=$?
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); }; }; then
28744   ac_cv_cxx_have_std_ext_hash_map=yes
28745 else
28746   echo "$as_me: failed program was:" >&5
28747 sed 's/^/| /' conftest.$ac_ext >&5
28748
28749 ac_cv_cxx_have_std_ext_hash_map=no
28750 fi
28751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28752   ac_ext=c
28753 ac_cpp='$CPP $CPPFLAGS'
28754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28757
28758 fi
28759 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28760 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28761  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28762  then
28763
28764 cat >>confdefs.h <<\_ACEOF
28765 #define HAVE_STD_EXT_HASH_MAP 1
28766 _ACEOF
28767
28768  else
28769
28770 cat >>confdefs.h <<\_ACEOF
28771 #define HAVE_STD_EXT_HASH_MAP 0
28772 _ACEOF
28773
28774  fi
28775
28776  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28777 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28778 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28779   echo $ECHO_N "(cached) $ECHO_C" >&6
28780 else
28781
28782   ac_ext=cc
28783 ac_cpp='$CXXCPP $CPPFLAGS'
28784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28787
28788   cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h.  */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h.  */
28794 #include <ext/hash_map>
28795 #ifdef HAVE_NAMESPACES
28796 using namespace __gnu_cxx;
28797 #endif
28798 int
28799 main ()
28800 {
28801 hash_map<int,int> t;
28802   ;
28803   return 0;
28804 }
28805 _ACEOF
28806 rm -f conftest.$ac_objext
28807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28808   (eval $ac_compile) 2>conftest.er1
28809   ac_status=$?
28810   grep -v '^ *+' conftest.er1 >conftest.err
28811   rm -f conftest.er1
28812   cat conftest.err >&5
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); } &&
28815          { ac_try='test -z "$ac_cxx_werror_flag"
28816                          || test ! -s conftest.err'
28817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818   (eval $ac_try) 2>&5
28819   ac_status=$?
28820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821   (exit $ac_status); }; } &&
28822          { ac_try='test -s conftest.$ac_objext'
28823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824   (eval $ac_try) 2>&5
28825   ac_status=$?
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); }; }; then
28828   ac_cv_cxx_have_gnu_ext_hash_map=yes
28829 else
28830   echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28832
28833 ac_cv_cxx_have_gnu_ext_hash_map=no
28834 fi
28835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28836   ac_ext=c
28837 ac_cpp='$CPP $CPPFLAGS'
28838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28841
28842 fi
28843 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28844 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28845  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28846  then
28847
28848 cat >>confdefs.h <<\_ACEOF
28849 #define HAVE_GNU_EXT_HASH_MAP 1
28850 _ACEOF
28851
28852  else
28853
28854 cat >>confdefs.h <<\_ACEOF
28855 #define HAVE_GNU_EXT_HASH_MAP 0
28856 _ACEOF
28857
28858  fi
28859
28860  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28861 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28862 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28863   echo $ECHO_N "(cached) $ECHO_C" >&6
28864 else
28865
28866   ac_ext=cc
28867 ac_cpp='$CXXCPP $CPPFLAGS'
28868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28871
28872   cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 #include <hash_map>
28879 int
28880 main ()
28881 {
28882 hash_map<int,int> t;
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28889   (eval $ac_compile) 2>conftest.er1
28890   ac_status=$?
28891   grep -v '^ *+' conftest.er1 >conftest.err
28892   rm -f conftest.er1
28893   cat conftest.err >&5
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } &&
28896          { ac_try='test -z "$ac_cxx_werror_flag"
28897                          || test ! -s conftest.err'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; } &&
28903          { ac_try='test -s conftest.$ac_objext'
28904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905   (eval $ac_try) 2>&5
28906   ac_status=$?
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); }; }; then
28909   ac_cv_cxx_have_global_hash_map=yes
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ac_cv_cxx_have_global_hash_map=no
28915 fi
28916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28917   ac_ext=c
28918 ac_cpp='$CPP $CPPFLAGS'
28919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28922
28923 fi
28924 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28925 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28926  if test "$ac_cv_cxx_have_global_hash_map" = yes
28927  then
28928
28929 cat >>confdefs.h <<\_ACEOF
28930 #define HAVE_GLOBAL_HASH_MAP 1
28931 _ACEOF
28932
28933  else
28934
28935 cat >>confdefs.h <<\_ACEOF
28936 #define HAVE_GLOBAL_HASH_MAP 0
28937 _ACEOF
28938
28939  fi
28940
28941 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28942 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28943 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28944   echo $ECHO_N "(cached) $ECHO_C" >&6
28945 else
28946
28947   ac_ext=cc
28948 ac_cpp='$CXXCPP $CPPFLAGS'
28949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28952
28953   cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h.  */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h.  */
28959 #include <ext/hash_set>
28960 #ifdef HAVE_NAMESPACES
28961 using namespace std;
28962 #endif
28963 int
28964 main ()
28965 {
28966 hash_set<int> t;
28967   ;
28968   return 0;
28969 }
28970 _ACEOF
28971 rm -f conftest.$ac_objext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28973   (eval $ac_compile) 2>conftest.er1
28974   ac_status=$?
28975   grep -v '^ *+' conftest.er1 >conftest.err
28976   rm -f conftest.er1
28977   cat conftest.err >&5
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); } &&
28980          { ac_try='test -z "$ac_cxx_werror_flag"
28981                          || test ! -s conftest.err'
28982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983   (eval $ac_try) 2>&5
28984   ac_status=$?
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); }; } &&
28987          { ac_try='test -s conftest.$ac_objext'
28988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989   (eval $ac_try) 2>&5
28990   ac_status=$?
28991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); }; }; then
28993   ac_cv_cxx_have_std_ext_hash_set=yes
28994 else
28995   echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28997
28998 ac_cv_cxx_have_std_ext_hash_set=no
28999 fi
29000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29001   ac_ext=c
29002 ac_cpp='$CPP $CPPFLAGS'
29003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29006
29007 fi
29008 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29009 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29010  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29011  then
29012
29013 cat >>confdefs.h <<\_ACEOF
29014 #define HAVE_STD_EXT_HASH_SET 1
29015 _ACEOF
29016
29017  else
29018
29019 cat >>confdefs.h <<\_ACEOF
29020 #define HAVE_STD_EXT_HASH_SET 0
29021 _ACEOF
29022
29023  fi
29024
29025  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29026 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29027 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29028   echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030
29031   ac_ext=cc
29032 ac_cpp='$CXXCPP $CPPFLAGS'
29033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29036
29037   cat >conftest.$ac_ext <<_ACEOF
29038 /* confdefs.h.  */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h.  */
29043 #include <ext/hash_set>
29044 #ifdef HAVE_NAMESPACES
29045 using namespace __gnu_cxx;
29046 #endif
29047 int
29048 main ()
29049 {
29050 hash_set<int> t;
29051   ;
29052   return 0;
29053 }
29054 _ACEOF
29055 rm -f conftest.$ac_objext
29056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29057   (eval $ac_compile) 2>conftest.er1
29058   ac_status=$?
29059   grep -v '^ *+' conftest.er1 >conftest.err
29060   rm -f conftest.er1
29061   cat conftest.err >&5
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); } &&
29064          { ac_try='test -z "$ac_cxx_werror_flag"
29065                          || test ! -s conftest.err'
29066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067   (eval $ac_try) 2>&5
29068   ac_status=$?
29069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070   (exit $ac_status); }; } &&
29071          { ac_try='test -s conftest.$ac_objext'
29072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29073   (eval $ac_try) 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); }; }; then
29077   ac_cv_cxx_have_gnu_ext_hash_set=yes
29078 else
29079   echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29081
29082 ac_cv_cxx_have_gnu_ext_hash_set=no
29083 fi
29084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29085   ac_ext=c
29086 ac_cpp='$CPP $CPPFLAGS'
29087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29090
29091 fi
29092 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29093 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29094  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29095  then
29096
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_GNU_EXT_HASH_SET 1
29099 _ACEOF
29100
29101  else
29102
29103 cat >>confdefs.h <<\_ACEOF
29104 #define HAVE_GNU_EXT_HASH_SET 0
29105 _ACEOF
29106
29107  fi
29108
29109  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29110 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29111 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 else
29114
29115   ac_ext=cc
29116 ac_cpp='$CXXCPP $CPPFLAGS'
29117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29120
29121   cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127 #include <hash_set>
29128 int
29129 main ()
29130 {
29131 hash_set<int> t; return 0;
29132   ;
29133   return 0;
29134 }
29135 _ACEOF
29136 rm -f conftest.$ac_objext
29137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29138   (eval $ac_compile) 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } &&
29145          { ac_try='test -z "$ac_cxx_werror_flag"
29146                          || test ! -s conftest.err'
29147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148   (eval $ac_try) 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); }; } &&
29152          { ac_try='test -s conftest.$ac_objext'
29153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154   (eval $ac_try) 2>&5
29155   ac_status=$?
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); }; }; then
29158   ac_cv_cxx_have_global_hash_set=yes
29159 else
29160   echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29162
29163 ac_cv_cxx_have_global_hash_set=no
29164 fi
29165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29166   ac_ext=c
29167 ac_cpp='$CPP $CPPFLAGS'
29168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29171
29172 fi
29173 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29174 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29175  if test "$ac_cv_cxx_have_global_hash_set" = yes
29176  then
29177
29178 cat >>confdefs.h <<\_ACEOF
29179 #define HAVE_GLOBAL_HASH_SET 1
29180 _ACEOF
29181
29182  else
29183
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_GLOBAL_HASH_SET 0
29186 _ACEOF
29187
29188  fi
29189
29190 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29191 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29192 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29193   echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195
29196   ac_ext=cc
29197 ac_cpp='$CXXCPP $CPPFLAGS'
29198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29201
29202   cat >conftest.$ac_ext <<_ACEOF
29203 /* confdefs.h.  */
29204 _ACEOF
29205 cat confdefs.h >>conftest.$ac_ext
29206 cat >>conftest.$ac_ext <<_ACEOF
29207 /* end confdefs.h.  */
29208 #include <iterator>
29209 #ifdef HAVE_NAMESPACES
29210 using namespace std;
29211 #endif
29212 int
29213 main ()
29214 {
29215 iterator<int,int,int> t; return 0;
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29222   (eval $ac_compile) 2>conftest.er1
29223   ac_status=$?
29224   grep -v '^ *+' conftest.er1 >conftest.err
29225   rm -f conftest.er1
29226   cat conftest.err >&5
29227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228   (exit $ac_status); } &&
29229          { ac_try='test -z "$ac_cxx_werror_flag"
29230                          || test ! -s conftest.err'
29231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29232   (eval $ac_try) 2>&5
29233   ac_status=$?
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); }; } &&
29236          { ac_try='test -s conftest.$ac_objext'
29237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29238   (eval $ac_try) 2>&5
29239   ac_status=$?
29240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241   (exit $ac_status); }; }; then
29242   ac_cv_cxx_have_std_iterator=yes
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247 ac_cv_cxx_have_std_iterator=no
29248 fi
29249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29250   ac_ext=c
29251 ac_cpp='$CPP $CPPFLAGS'
29252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29255
29256
29257 fi
29258 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29259 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29260 if test "$ac_cv_cxx_have_std_iterator" = yes
29261 then
29262
29263 cat >>confdefs.h <<\_ACEOF
29264 #define HAVE_STD_ITERATOR 1
29265 _ACEOF
29266
29267 else
29268
29269 cat >>confdefs.h <<\_ACEOF
29270 #define HAVE_STD_ITERATOR 0
29271 _ACEOF
29272
29273 fi
29274
29275 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29276 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29277 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29278   echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280
29281   ac_ext=cc
29282 ac_cpp='$CXXCPP $CPPFLAGS'
29283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29286
29287   cat >conftest.$ac_ext <<_ACEOF
29288 /* confdefs.h.  */
29289 _ACEOF
29290 cat confdefs.h >>conftest.$ac_ext
29291 cat >>conftest.$ac_ext <<_ACEOF
29292 /* end confdefs.h.  */
29293 #include <iterator>
29294 #ifdef HAVE_NAMESPACES
29295 using namespace std;
29296 #endif
29297 int
29298 main ()
29299 {
29300 bidirectional_iterator<int,int> t; return 0;
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307   (eval $ac_compile) 2>conftest.er1
29308   ac_status=$?
29309   grep -v '^ *+' conftest.er1 >conftest.err
29310   rm -f conftest.er1
29311   cat conftest.err >&5
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); } &&
29314          { ac_try='test -z "$ac_cxx_werror_flag"
29315                          || test ! -s conftest.err'
29316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317   (eval $ac_try) 2>&5
29318   ac_status=$?
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); }; } &&
29321          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29327   ac_cv_cxx_have_bi_iterator=yes
29328 else
29329   echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29331
29332 ac_cv_cxx_have_bi_iterator=no
29333 fi
29334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29335   ac_ext=c
29336 ac_cpp='$CPP $CPPFLAGS'
29337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29340
29341
29342 fi
29343 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29344 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29345 if test "$ac_cv_cxx_have_bi_iterator" = yes
29346 then
29347
29348 cat >>confdefs.h <<\_ACEOF
29349 #define HAVE_BI_ITERATOR 1
29350 _ACEOF
29351
29352 else
29353
29354 cat >>confdefs.h <<\_ACEOF
29355 #define HAVE_BI_ITERATOR 0
29356 _ACEOF
29357
29358 fi
29359
29360 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29361 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29362 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29363   echo $ECHO_N "(cached) $ECHO_C" >&6
29364 else
29365
29366   ac_ext=cc
29367 ac_cpp='$CXXCPP $CPPFLAGS'
29368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29371
29372   cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h.  */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h.  */
29378 #include <iterator>
29379 #ifdef HAVE_NAMESPACES
29380 using namespace std;
29381 #endif
29382 int
29383 main ()
29384 {
29385 forward_iterator<int,int> t; return 0;
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29392   (eval $ac_compile) 2>conftest.er1
29393   ac_status=$?
29394   grep -v '^ *+' conftest.er1 >conftest.err
29395   rm -f conftest.er1
29396   cat conftest.err >&5
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } &&
29399          { ac_try='test -z "$ac_cxx_werror_flag"
29400                          || test ! -s conftest.err'
29401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402   (eval $ac_try) 2>&5
29403   ac_status=$?
29404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405   (exit $ac_status); }; } &&
29406          { ac_try='test -s conftest.$ac_objext'
29407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408   (eval $ac_try) 2>&5
29409   ac_status=$?
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); }; }; then
29412   ac_cv_cxx_have_fwd_iterator=yes
29413 else
29414   echo "$as_me: failed program was:" >&5
29415 sed 's/^/| /' conftest.$ac_ext >&5
29416
29417 ac_cv_cxx_have_fwd_iterator=no
29418 fi
29419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29420   ac_ext=c
29421 ac_cpp='$CPP $CPPFLAGS'
29422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29425
29426
29427 fi
29428 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29429 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29430 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29431 then
29432
29433 cat >>confdefs.h <<\_ACEOF
29434 #define HAVE_FWD_ITERATOR 1
29435 _ACEOF
29436
29437 else
29438
29439 cat >>confdefs.h <<\_ACEOF
29440 #define HAVE_FWD_ITERATOR 0
29441 _ACEOF
29442
29443 fi
29444
29445
29446 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29447 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29448 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   ac_ext=cc
29452 ac_cpp='$CXXCPP $CPPFLAGS'
29453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29456
29457    cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h.  */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h.  */
29463 #include <math.h>
29464 int
29465 main ()
29466 {
29467 float f; isnan(f);
29468   ;
29469   return 0;
29470 }
29471 _ACEOF
29472 rm -f conftest.$ac_objext
29473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29474   (eval $ac_compile) 2>conftest.er1
29475   ac_status=$?
29476   grep -v '^ *+' conftest.er1 >conftest.err
29477   rm -f conftest.er1
29478   cat conftest.err >&5
29479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29480   (exit $ac_status); } &&
29481          { ac_try='test -z "$ac_cxx_werror_flag"
29482                          || test ! -s conftest.err'
29483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484   (eval $ac_try) 2>&5
29485   ac_status=$?
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); }; } &&
29488          { ac_try='test -s conftest.$ac_objext'
29489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490   (eval $ac_try) 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; }; then
29494   ac_cv_func_isnan_in_math_h=yes
29495 else
29496   echo "$as_me: failed program was:" >&5
29497 sed 's/^/| /' conftest.$ac_ext >&5
29498
29499 ac_cv_func_isnan_in_math_h=no
29500 fi
29501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29502   ac_ext=c
29503 ac_cpp='$CPP $CPPFLAGS'
29504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29507
29508 fi
29509 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29510 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29511
29512
29513 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29514
29515 cat >>confdefs.h <<\_ACEOF
29516 #define HAVE_ISNAN_IN_MATH_H 1
29517 _ACEOF
29518
29519 fi
29520
29521 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29522 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29523 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29524   echo $ECHO_N "(cached) $ECHO_C" >&6
29525 else
29526   ac_ext=cc
29527 ac_cpp='$CXXCPP $CPPFLAGS'
29528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29531
29532    cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538 #include <cmath>
29539 int
29540 main ()
29541 {
29542 float f; isnan(f);
29543   ;
29544   return 0;
29545 }
29546 _ACEOF
29547 rm -f conftest.$ac_objext
29548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29549   (eval $ac_compile) 2>conftest.er1
29550   ac_status=$?
29551   grep -v '^ *+' conftest.er1 >conftest.err
29552   rm -f conftest.er1
29553   cat conftest.err >&5
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); } &&
29556          { ac_try='test -z "$ac_cxx_werror_flag"
29557                          || test ! -s conftest.err'
29558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559   (eval $ac_try) 2>&5
29560   ac_status=$?
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); }; } &&
29563          { ac_try='test -s conftest.$ac_objext'
29564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565   (eval $ac_try) 2>&5
29566   ac_status=$?
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); }; }; then
29569   ac_cv_func_isnan_in_cmath=yes
29570 else
29571   echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29573
29574 ac_cv_func_isnan_in_cmath=no
29575 fi
29576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29577   ac_ext=c
29578 ac_cpp='$CPP $CPPFLAGS'
29579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29582
29583 fi
29584 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29585 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29586
29587 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29588
29589 cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_ISNAN_IN_CMATH 1
29591 _ACEOF
29592
29593 fi
29594
29595 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29596 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29597 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29598   echo $ECHO_N "(cached) $ECHO_C" >&6
29599 else
29600   ac_ext=cc
29601 ac_cpp='$CXXCPP $CPPFLAGS'
29602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29605
29606    cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612 #include <cmath>
29613 int
29614 main ()
29615 {
29616 float f; std::isnan(f);
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext
29622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29623   (eval $ac_compile) 2>conftest.er1
29624   ac_status=$?
29625   grep -v '^ *+' conftest.er1 >conftest.err
29626   rm -f conftest.er1
29627   cat conftest.err >&5
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); } &&
29630          { ac_try='test -z "$ac_cxx_werror_flag"
29631                          || test ! -s conftest.err'
29632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633   (eval $ac_try) 2>&5
29634   ac_status=$?
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); }; } &&
29637          { ac_try='test -s conftest.$ac_objext'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ac_cv_func_std_isnan_in_cmath=yes
29644 else
29645   echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29647
29648 ac_cv_func_std_isnan_in_cmath=no
29649 fi
29650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29651   ac_ext=c
29652 ac_cpp='$CPP $CPPFLAGS'
29653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29656
29657 fi
29658 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29659 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29660
29661 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29662
29663 cat >>confdefs.h <<\_ACEOF
29664 #define HAVE_STD_ISNAN_IN_CMATH 1
29665 _ACEOF
29666
29667 fi
29668
29669
29670 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29671 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29672 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29673   echo $ECHO_N "(cached) $ECHO_C" >&6
29674 else
29675   ac_ext=cc
29676 ac_cpp='$CXXCPP $CPPFLAGS'
29677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29680
29681    cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 #include <math.h>
29688 int
29689 main ()
29690 {
29691 float f; isinf(f);
29692   ;
29693   return 0;
29694 }
29695 _ACEOF
29696 rm -f conftest.$ac_objext
29697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29698   (eval $ac_compile) 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -z "$ac_cxx_werror_flag"
29706                          || test ! -s conftest.err'
29707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708   (eval $ac_try) 2>&5
29709   ac_status=$?
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); }; } &&
29712          { ac_try='test -s conftest.$ac_objext'
29713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714   (eval $ac_try) 2>&5
29715   ac_status=$?
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); }; }; then
29718   ac_cv_func_isinf_in_math_h=yes
29719 else
29720   echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ac_cv_func_isinf_in_math_h=no
29724 fi
29725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29726   ac_ext=c
29727 ac_cpp='$CPP $CPPFLAGS'
29728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29731
29732 fi
29733 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29734 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29735
29736 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29737
29738 cat >>confdefs.h <<\_ACEOF
29739 #define HAVE_ISINF_IN_MATH_H 1
29740 _ACEOF
29741
29742 fi
29743
29744 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29745 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29746 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29747   echo $ECHO_N "(cached) $ECHO_C" >&6
29748 else
29749   ac_ext=cc
29750 ac_cpp='$CXXCPP $CPPFLAGS'
29751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29754
29755    cat >conftest.$ac_ext <<_ACEOF
29756 /* confdefs.h.  */
29757 _ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h.  */
29761 #include <cmath>
29762 int
29763 main ()
29764 {
29765 float f; isinf(f);
29766   ;
29767   return 0;
29768 }
29769 _ACEOF
29770 rm -f conftest.$ac_objext
29771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29772   (eval $ac_compile) 2>conftest.er1
29773   ac_status=$?
29774   grep -v '^ *+' conftest.er1 >conftest.err
29775   rm -f conftest.er1
29776   cat conftest.err >&5
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); } &&
29779          { ac_try='test -z "$ac_cxx_werror_flag"
29780                          || test ! -s conftest.err'
29781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782   (eval $ac_try) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); }; } &&
29786          { ac_try='test -s conftest.$ac_objext'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; }; then
29792   ac_cv_func_isinf_in_cmath=yes
29793 else
29794   echo "$as_me: failed program was:" >&5
29795 sed 's/^/| /' conftest.$ac_ext >&5
29796
29797 ac_cv_func_isinf_in_cmath=no
29798 fi
29799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29800   ac_ext=c
29801 ac_cpp='$CPP $CPPFLAGS'
29802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29805
29806 fi
29807 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29808 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29809
29810 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29811
29812 cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_ISINF_IN_CMATH 1
29814 _ACEOF
29815
29816 fi
29817
29818 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29819 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29820 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29821   echo $ECHO_N "(cached) $ECHO_C" >&6
29822 else
29823   ac_ext=cc
29824 ac_cpp='$CXXCPP $CPPFLAGS'
29825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29828
29829    cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h.  */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h.  */
29835 #include <cmath>
29836 int
29837 main ()
29838 {
29839 float f; std::isinf(f)}
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29846   (eval $ac_compile) 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_cxx_werror_flag"
29854                          || test ! -s conftest.err'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; } &&
29860          { ac_try='test -s conftest.$ac_objext'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; }; then
29866   ac_cv_func_std_isinf_in_cmath=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ac_cv_func_std_isinf_in_cmath=no
29872 fi
29873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29874   ac_ext=c
29875 ac_cpp='$CPP $CPPFLAGS'
29876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29879
29880 fi
29881 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29882 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29883
29884 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29885
29886 cat >>confdefs.h <<\_ACEOF
29887 #define HAVE_STD_ISINF_IN_CMATH 1
29888 _ACEOF
29889
29890 fi
29891
29892 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29893 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29894 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29895   echo $ECHO_N "(cached) $ECHO_C" >&6
29896 else
29897   ac_ext=cc
29898 ac_cpp='$CXXCPP $CPPFLAGS'
29899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29902
29903    cat >conftest.$ac_ext <<_ACEOF
29904 /* confdefs.h.  */
29905 _ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h.  */
29909 #include <ieeefp.h>
29910 int
29911 main ()
29912 {
29913 float f; finite(f);
29914   ;
29915   return 0;
29916 }
29917 _ACEOF
29918 rm -f conftest.$ac_objext
29919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29920   (eval $ac_compile) 2>conftest.er1
29921   ac_status=$?
29922   grep -v '^ *+' conftest.er1 >conftest.err
29923   rm -f conftest.er1
29924   cat conftest.err >&5
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); } &&
29927          { ac_try='test -z "$ac_cxx_werror_flag"
29928                          || test ! -s conftest.err'
29929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930   (eval $ac_try) 2>&5
29931   ac_status=$?
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); }; } &&
29934          { ac_try='test -s conftest.$ac_objext'
29935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29936   (eval $ac_try) 2>&5
29937   ac_status=$?
29938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939   (exit $ac_status); }; }; then
29940   ac_cv_func_finite_in_ieeefp_h=yes
29941 else
29942   echo "$as_me: failed program was:" >&5
29943 sed 's/^/| /' conftest.$ac_ext >&5
29944
29945 ac_cv_func_finite_in_ieeefp_h=no
29946 fi
29947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29948   ac_ext=c
29949 ac_cpp='$CPP $CPPFLAGS'
29950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29953
29954 fi
29955 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29956 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29957
29958 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29959
29960 cat >>confdefs.h <<\_ACEOF
29961 #define HAVE_FINITE_IN_IEEEFP_H 1
29962 _ACEOF
29963
29964 fi
29965
29966
29967
29968
29969
29970 for ac_header in stdlib.h unistd.h
29971 do
29972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29974   echo "$as_me:$LINENO: checking for $ac_header" >&5
29975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29977   echo $ECHO_N "(cached) $ECHO_C" >&6
29978 fi
29979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29981 else
29982   # Is the header compilable?
29983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29985 cat >conftest.$ac_ext <<_ACEOF
29986 /* confdefs.h.  */
29987 _ACEOF
29988 cat confdefs.h >>conftest.$ac_ext
29989 cat >>conftest.$ac_ext <<_ACEOF
29990 /* end confdefs.h.  */
29991 $ac_includes_default
29992 #include <$ac_header>
29993 _ACEOF
29994 rm -f conftest.$ac_objext
29995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29996   (eval $ac_compile) 2>conftest.er1
29997   ac_status=$?
29998   grep -v '^ *+' conftest.er1 >conftest.err
29999   rm -f conftest.er1
30000   cat conftest.err >&5
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); } &&
30003          { ac_try='test -z "$ac_c_werror_flag"
30004                          || test ! -s conftest.err'
30005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006   (eval $ac_try) 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); }; } &&
30010          { ac_try='test -s conftest.$ac_objext'
30011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012   (eval $ac_try) 2>&5
30013   ac_status=$?
30014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015   (exit $ac_status); }; }; then
30016   ac_header_compiler=yes
30017 else
30018   echo "$as_me: failed program was:" >&5
30019 sed 's/^/| /' conftest.$ac_ext >&5
30020
30021 ac_header_compiler=no
30022 fi
30023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30025 echo "${ECHO_T}$ac_header_compiler" >&6
30026
30027 # Is the header present?
30028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
30037 _ACEOF
30038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30040   ac_status=$?
30041   grep -v '^ *+' conftest.er1 >conftest.err
30042   rm -f conftest.er1
30043   cat conftest.err >&5
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); } >/dev/null; then
30046   if test -s conftest.err; then
30047     ac_cpp_err=$ac_c_preproc_warn_flag
30048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30049   else
30050     ac_cpp_err=
30051   fi
30052 else
30053   ac_cpp_err=yes
30054 fi
30055 if test -z "$ac_cpp_err"; then
30056   ac_header_preproc=yes
30057 else
30058   echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.$ac_ext >&5
30060
30061   ac_header_preproc=no
30062 fi
30063 rm -f conftest.err conftest.$ac_ext
30064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30065 echo "${ECHO_T}$ac_header_preproc" >&6
30066
30067 # So?  What about this header?
30068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30069   yes:no: )
30070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30074     ac_header_preproc=yes
30075     ;;
30076   no:yes:* )
30077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30089     (
30090       cat <<\_ASBOX
30091 ## ----------------------------------- ##
30092 ## Report this to llvmbugs@cs.uiuc.edu ##
30093 ## ----------------------------------- ##
30094 _ASBOX
30095     ) |
30096       sed "s/^/$as_me: WARNING:     /" >&2
30097     ;;
30098 esac
30099 echo "$as_me:$LINENO: checking for $ac_header" >&5
30100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30102   echo $ECHO_N "(cached) $ECHO_C" >&6
30103 else
30104   eval "$as_ac_Header=\$ac_header_preproc"
30105 fi
30106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30108
30109 fi
30110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30111   cat >>confdefs.h <<_ACEOF
30112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30113 _ACEOF
30114
30115 fi
30116
30117 done
30118
30119
30120 for ac_func in getpagesize
30121 do
30122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30123 echo "$as_me:$LINENO: checking for $ac_func" >&5
30124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30125 if eval "test \"\${$as_ac_var+set}\" = set"; then
30126   echo $ECHO_N "(cached) $ECHO_C" >&6
30127 else
30128   cat >conftest.$ac_ext <<_ACEOF
30129 /* confdefs.h.  */
30130 _ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h.  */
30134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30136 #define $ac_func innocuous_$ac_func
30137
30138 /* System header to define __stub macros and hopefully few prototypes,
30139     which can conflict with char $ac_func (); below.
30140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30141     <limits.h> exists even on freestanding compilers.  */
30142
30143 #ifdef __STDC__
30144 # include <limits.h>
30145 #else
30146 # include <assert.h>
30147 #endif
30148
30149 #undef $ac_func
30150
30151 /* Override any gcc2 internal prototype to avoid an error.  */
30152 #ifdef __cplusplus
30153 extern "C"
30154 {
30155 #endif
30156 /* We use char because int might match the return type of a gcc2
30157    builtin and then its argument prototype would still apply.  */
30158 char $ac_func ();
30159 /* The GNU C library defines this for functions which it implements
30160     to always fail with ENOSYS.  Some functions are actually named
30161     something starting with __ and the normal name is an alias.  */
30162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30163 choke me
30164 #else
30165 char (*f) () = $ac_func;
30166 #endif
30167 #ifdef __cplusplus
30168 }
30169 #endif
30170
30171 int
30172 main ()
30173 {
30174 return f != $ac_func;
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext conftest$ac_exeext
30180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30181   (eval $ac_link) 2>conftest.er1
30182   ac_status=$?
30183   grep -v '^ *+' conftest.er1 >conftest.err
30184   rm -f conftest.er1
30185   cat conftest.err >&5
30186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187   (exit $ac_status); } &&
30188          { ac_try='test -z "$ac_c_werror_flag"
30189                          || test ! -s conftest.err'
30190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191   (eval $ac_try) 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; } &&
30195          { ac_try='test -s conftest$ac_exeext'
30196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197   (eval $ac_try) 2>&5
30198   ac_status=$?
30199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200   (exit $ac_status); }; }; then
30201   eval "$as_ac_var=yes"
30202 else
30203   echo "$as_me: failed program was:" >&5
30204 sed 's/^/| /' conftest.$ac_ext >&5
30205
30206 eval "$as_ac_var=no"
30207 fi
30208 rm -f conftest.err conftest.$ac_objext \
30209       conftest$ac_exeext conftest.$ac_ext
30210 fi
30211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30213 if test `eval echo '${'$as_ac_var'}'` = yes; then
30214   cat >>confdefs.h <<_ACEOF
30215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30216 _ACEOF
30217
30218 fi
30219 done
30220
30221 echo "$as_me:$LINENO: checking for working mmap" >&5
30222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30224   echo $ECHO_N "(cached) $ECHO_C" >&6
30225 else
30226   if test "$cross_compiling" = yes; then
30227   ac_cv_func_mmap_fixed_mapped=no
30228 else
30229   cat >conftest.$ac_ext <<_ACEOF
30230 /* confdefs.h.  */
30231 _ACEOF
30232 cat confdefs.h >>conftest.$ac_ext
30233 cat >>conftest.$ac_ext <<_ACEOF
30234 /* end confdefs.h.  */
30235 $ac_includes_default
30236 /* malloc might have been renamed as rpl_malloc. */
30237 #undef malloc
30238
30239 /* Thanks to Mike Haertel and Jim Avera for this test.
30240    Here is a matrix of mmap possibilities:
30241         mmap private not fixed
30242         mmap private fixed at somewhere currently unmapped
30243         mmap private fixed at somewhere already mapped
30244         mmap shared not fixed
30245         mmap shared fixed at somewhere currently unmapped
30246         mmap shared fixed at somewhere already mapped
30247    For private mappings, we should verify that changes cannot be read()
30248    back from the file, nor mmap's back from the file at a different
30249    address.  (There have been systems where private was not correctly
30250    implemented like the infamous i386 svr4.0, and systems where the
30251    VM page cache was not coherent with the file system buffer cache
30252    like early versions of FreeBSD and possibly contemporary NetBSD.)
30253    For shared mappings, we should conversely verify that changes get
30254    propagated back to all the places they're supposed to be.
30255
30256    Grep wants private fixed already mapped.
30257    The main things grep needs to know about mmap are:
30258    * does it exist and is it safe to write into the mmap'd area
30259    * how to use it (BSD variants)  */
30260
30261 #include <fcntl.h>
30262 #include <sys/mman.h>
30263
30264 #if !STDC_HEADERS && !HAVE_STDLIB_H
30265 char *malloc ();
30266 #endif
30267
30268 /* This mess was copied from the GNU getpagesize.h.  */
30269 #if !HAVE_GETPAGESIZE
30270 /* Assume that all systems that can run configure have sys/param.h.  */
30271 # if !HAVE_SYS_PARAM_H
30272 #  define HAVE_SYS_PARAM_H 1
30273 # endif
30274
30275 # ifdef _SC_PAGESIZE
30276 #  define getpagesize() sysconf(_SC_PAGESIZE)
30277 # else /* no _SC_PAGESIZE */
30278 #  if HAVE_SYS_PARAM_H
30279 #   include <sys/param.h>
30280 #   ifdef EXEC_PAGESIZE
30281 #    define getpagesize() EXEC_PAGESIZE
30282 #   else /* no EXEC_PAGESIZE */
30283 #    ifdef NBPG
30284 #     define getpagesize() NBPG * CLSIZE
30285 #     ifndef CLSIZE
30286 #      define CLSIZE 1
30287 #     endif /* no CLSIZE */
30288 #    else /* no NBPG */
30289 #     ifdef NBPC
30290 #      define getpagesize() NBPC
30291 #     else /* no NBPC */
30292 #      ifdef PAGESIZE
30293 #       define getpagesize() PAGESIZE
30294 #      endif /* PAGESIZE */
30295 #     endif /* no NBPC */
30296 #    endif /* no NBPG */
30297 #   endif /* no EXEC_PAGESIZE */
30298 #  else /* no HAVE_SYS_PARAM_H */
30299 #   define getpagesize() 8192   /* punt totally */
30300 #  endif /* no HAVE_SYS_PARAM_H */
30301 # endif /* no _SC_PAGESIZE */
30302
30303 #endif /* no HAVE_GETPAGESIZE */
30304
30305 int
30306 main ()
30307 {
30308   char *data, *data2, *data3;
30309   int i, pagesize;
30310   int fd;
30311
30312   pagesize = getpagesize ();
30313
30314   /* First, make a file with some known garbage in it. */
30315   data = (char *) malloc (pagesize);
30316   if (!data)
30317     exit (1);
30318   for (i = 0; i < pagesize; ++i)
30319     *(data + i) = rand ();
30320   umask (0);
30321   fd = creat ("conftest.mmap", 0600);
30322   if (fd < 0)
30323     exit (1);
30324   if (write (fd, data, pagesize) != pagesize)
30325     exit (1);
30326   close (fd);
30327
30328   /* Next, try to mmap the file at a fixed address which already has
30329      something else allocated at it.  If we can, also make sure that
30330      we see the same garbage.  */
30331   fd = open ("conftest.mmap", O_RDWR);
30332   if (fd < 0)
30333     exit (1);
30334   data2 = (char *) malloc (2 * pagesize);
30335   if (!data2)
30336     exit (1);
30337   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30338   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30339                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30340     exit (1);
30341   for (i = 0; i < pagesize; ++i)
30342     if (*(data + i) != *(data2 + i))
30343       exit (1);
30344
30345   /* Finally, make sure that changes to the mapped area do not
30346      percolate back to the file as seen by read().  (This is a bug on
30347      some variants of i386 svr4.0.)  */
30348   for (i = 0; i < pagesize; ++i)
30349     *(data2 + i) = *(data2 + i) + 1;
30350   data3 = (char *) malloc (pagesize);
30351   if (!data3)
30352     exit (1);
30353   if (read (fd, data3, pagesize) != pagesize)
30354     exit (1);
30355   for (i = 0; i < pagesize; ++i)
30356     if (*(data + i) != *(data3 + i))
30357       exit (1);
30358   close (fd);
30359   exit (0);
30360 }
30361 _ACEOF
30362 rm -f conftest$ac_exeext
30363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30364   (eval $ac_link) 2>&5
30365   ac_status=$?
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369   (eval $ac_try) 2>&5
30370   ac_status=$?
30371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372   (exit $ac_status); }; }; then
30373   ac_cv_func_mmap_fixed_mapped=yes
30374 else
30375   echo "$as_me: program exited with status $ac_status" >&5
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379 ( exit $ac_status )
30380 ac_cv_func_mmap_fixed_mapped=no
30381 fi
30382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30383 fi
30384 fi
30385 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30386 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30387 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30388
30389 cat >>confdefs.h <<\_ACEOF
30390 #define HAVE_MMAP 1
30391 _ACEOF
30392
30393 fi
30394 rm -f conftest.mmap
30395
30396 echo "$as_me:$LINENO: checking for mmap of files" >&5
30397 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30398 if test "${ac_cv_func_mmap_file+set}" = set; then
30399   echo $ECHO_N "(cached) $ECHO_C" >&6
30400 else
30401    ac_ext=c
30402 ac_cpp='$CPP $CPPFLAGS'
30403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30406
30407   if test "$cross_compiling" = yes; then
30408   ac_cv_func_mmap_file=no
30409 else
30410   cat >conftest.$ac_ext <<_ACEOF
30411
30412     /* confdefs.h.  */
30413 _ACEOF
30414 cat confdefs.h >>conftest.$ac_ext
30415 cat >>conftest.$ac_ext <<_ACEOF
30416 /* end confdefs.h.  */
30417
30418 #include <sys/types.h>
30419 #include <sys/mman.h>
30420 #include <fcntl.h>
30421
30422 int
30423 main ()
30424 {
30425
30426   int fd;
30427   fd = creat ("foo",0777);
30428   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30429   unlink ("foo");
30430   return (fd != (int) MAP_FAILED);
30431   ;
30432   return 0;
30433 }
30434 _ACEOF
30435 rm -f conftest$ac_exeext
30436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30437   (eval $ac_link) 2>&5
30438   ac_status=$?
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442   (eval $ac_try) 2>&5
30443   ac_status=$?
30444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445   (exit $ac_status); }; }; then
30446   ac_cv_func_mmap_file=yes
30447 else
30448   echo "$as_me: program exited with status $ac_status" >&5
30449 echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30451
30452 ( exit $ac_status )
30453 ac_cv_func_mmap_file=no
30454 fi
30455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30456 fi
30457   ac_ext=c
30458 ac_cpp='$CPP $CPPFLAGS'
30459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30462
30463
30464 fi
30465 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30466 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30467 if test "$ac_cv_func_mmap_file" = yes; then
30468
30469 cat >>confdefs.h <<\_ACEOF
30470 #define HAVE_MMAP_FILE
30471 _ACEOF
30472
30473    MMAP_FILE=yes
30474
30475 fi
30476
30477 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30478 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30479 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30480   echo $ECHO_N "(cached) $ECHO_C" >&6
30481 else
30482   if test "$llvm_cv_os_type" = "Interix" ; then
30483    ac_cv_need_dev_zero_for_mmap=yes
30484  else
30485    ac_cv_need_dev_zero_for_mmap=no
30486  fi
30487
30488 fi
30489 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30490 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30491 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30492
30493 cat >>confdefs.h <<\_ACEOF
30494 #define NEED_DEV_ZERO_FOR_MMAP 1
30495 _ACEOF
30496
30497 fi
30498 echo "$as_me:$LINENO: checking for mprotect" >&5
30499 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30500 if test "${ac_cv_func_mprotect+set}" = set; then
30501   echo $ECHO_N "(cached) $ECHO_C" >&6
30502 else
30503   cat >conftest.$ac_ext <<_ACEOF
30504 /* confdefs.h.  */
30505 _ACEOF
30506 cat confdefs.h >>conftest.$ac_ext
30507 cat >>conftest.$ac_ext <<_ACEOF
30508 /* end confdefs.h.  */
30509 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30511 #define mprotect innocuous_mprotect
30512
30513 /* System header to define __stub macros and hopefully few prototypes,
30514     which can conflict with char mprotect (); below.
30515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30516     <limits.h> exists even on freestanding compilers.  */
30517
30518 #ifdef __STDC__
30519 # include <limits.h>
30520 #else
30521 # include <assert.h>
30522 #endif
30523
30524 #undef mprotect
30525
30526 /* Override any gcc2 internal prototype to avoid an error.  */
30527 #ifdef __cplusplus
30528 extern "C"
30529 {
30530 #endif
30531 /* We use char because int might match the return type of a gcc2
30532    builtin and then its argument prototype would still apply.  */
30533 char mprotect ();
30534 /* The GNU C library defines this for functions which it implements
30535     to always fail with ENOSYS.  Some functions are actually named
30536     something starting with __ and the normal name is an alias.  */
30537 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30538 choke me
30539 #else
30540 char (*f) () = mprotect;
30541 #endif
30542 #ifdef __cplusplus
30543 }
30544 #endif
30545
30546 int
30547 main ()
30548 {
30549 return f != mprotect;
30550   ;
30551   return 0;
30552 }
30553 _ACEOF
30554 rm -f conftest.$ac_objext conftest$ac_exeext
30555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30556   (eval $ac_link) 2>conftest.er1
30557   ac_status=$?
30558   grep -v '^ *+' conftest.er1 >conftest.err
30559   rm -f conftest.er1
30560   cat conftest.err >&5
30561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562   (exit $ac_status); } &&
30563          { ac_try='test -z "$ac_c_werror_flag"
30564                          || test ! -s conftest.err'
30565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30566   (eval $ac_try) 2>&5
30567   ac_status=$?
30568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569   (exit $ac_status); }; } &&
30570          { ac_try='test -s conftest$ac_exeext'
30571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572   (eval $ac_try) 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; }; then
30576   ac_cv_func_mprotect=yes
30577 else
30578   echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30580
30581 ac_cv_func_mprotect=no
30582 fi
30583 rm -f conftest.err conftest.$ac_objext \
30584       conftest$ac_exeext conftest.$ac_ext
30585 fi
30586 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30587 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30588 if test $ac_cv_func_mprotect = yes; then
30589   :
30590 else
30591   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30592 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30593    { (exit 1); exit 1; }; }
30594 fi
30595
30596
30597 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30598 then
30599   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30600 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30601 fi
30602 if test "$ac_cv_func_mmap_file" = "no"
30603 then
30604   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30605 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30606 fi
30607
30608
30609 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30610 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30611 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30612   echo $ECHO_N "(cached) $ECHO_C" >&6
30613 else
30614   llvm_cv_llvmgcc_sanity="no"
30615 if test -x "$LLVMGCC" ; then
30616   cp /dev/null conftest.c
30617   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30618   if test $? -eq 0 ; then
30619     llvm_cv_llvmgcc_sanity="yes"
30620   fi
30621   rm conftest.c
30622 fi
30623 fi
30624 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30625 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30626
30627 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30628   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30629   LLVMCC1=$llvmcc1path
30630
30631   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30632   LLVMCC1PLUS=$llvmcc1pluspath
30633
30634   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30635   LLVMGCCDIR=$llvmgccdir
30636
30637 fi
30638
30639 SHLIBEXT=$libltdl_cv_shlibext
30640
30641
30642 # Translate the various configuration directories and other basic
30643 # information into substitutions that will end up in Makefile.config.in
30644 # that these configured values can be used by the makefiles
30645 eval LLVM_PREFIX="${prefix}";
30646 eval LLVM_BINDIR="${prefix}/bin";
30647 eval LLVM_LIBDIR="${prefix}/lib";
30648 eval LLVM_DATADIR="${prefix}/share/llvm";
30649 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30650 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30651 eval LLVM_INCLUDEDIR="${prefix}/include";
30652 eval LLVM_INFODIR="${prefix}/info";
30653 eval LLVM_MANDIR="${prefix}/man";
30654 LLVM_CONFIGTIME=`date`
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666 # Place the various directores into the config.h file as #defines so that we
30667 # can know about the installation paths within LLVM.
30668
30669 cat >>confdefs.h <<_ACEOF
30670 #define LLVM_PREFIX "$LLVM_PREFIX"
30671 _ACEOF
30672
30673
30674 cat >>confdefs.h <<_ACEOF
30675 #define LLVM_BINDIR "$LLVM_BINDIR"
30676 _ACEOF
30677
30678
30679 cat >>confdefs.h <<_ACEOF
30680 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30681 _ACEOF
30682
30683
30684 cat >>confdefs.h <<_ACEOF
30685 #define LLVM_DATADIR "$LLVM_DATADIR"
30686 _ACEOF
30687
30688
30689 cat >>confdefs.h <<_ACEOF
30690 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30691 _ACEOF
30692
30693
30694 cat >>confdefs.h <<_ACEOF
30695 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30696 _ACEOF
30697
30698
30699 cat >>confdefs.h <<_ACEOF
30700 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30701 _ACEOF
30702
30703
30704 cat >>confdefs.h <<_ACEOF
30705 #define LLVM_INFODIR "$LLVM_INFODIR"
30706 _ACEOF
30707
30708
30709 cat >>confdefs.h <<_ACEOF
30710 #define LLVM_MANDIR "$LLVM_MANDIR"
30711 _ACEOF
30712
30713
30714 cat >>confdefs.h <<_ACEOF
30715 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30716 _ACEOF
30717
30718
30719
30720           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30721
30722           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30723
30724           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30725
30726           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30727
30728           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30729
30730
30731           ac_config_files="$ac_config_files Makefile.config"
30732
30733
30734           ac_config_files="$ac_config_files docs/doxygen.cfg"
30735
30736
30737           ac_config_commands="$ac_config_commands setup"
30738
30739           ac_config_commands="$ac_config_commands Makefile"
30740
30741
30742           ac_config_commands="$ac_config_commands Makefile.common"
30743
30744
30745           ac_config_commands="$ac_config_commands examples/Makefile"
30746
30747
30748           ac_config_commands="$ac_config_commands lib/Makefile"
30749
30750
30751           ac_config_commands="$ac_config_commands runtime/Makefile"
30752
30753
30754           ac_config_commands="$ac_config_commands test/Makefile"
30755
30756
30757           ac_config_commands="$ac_config_commands test/Makefile.tests"
30758
30759
30760           ac_config_commands="$ac_config_commands tools/Makefile"
30761
30762
30763           ac_config_commands="$ac_config_commands utils/Makefile"
30764
30765
30766           ac_config_commands="$ac_config_commands projects/Makefile"
30767
30768
30769
30770 cat >confcache <<\_ACEOF
30771 # This file is a shell script that caches the results of configure
30772 # tests run on this system so they can be shared between configure
30773 # scripts and configure runs, see configure's option --config-cache.
30774 # It is not useful on other systems.  If it contains results you don't
30775 # want to keep, you may remove or edit it.
30776 #
30777 # config.status only pays attention to the cache file if you give it
30778 # the --recheck option to rerun configure.
30779 #
30780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30782 # following values.
30783
30784 _ACEOF
30785
30786 # The following way of writing the cache mishandles newlines in values,
30787 # but we know of no workaround that is simple, portable, and efficient.
30788 # So, don't put newlines in cache variables' values.
30789 # Ultrix sh set writes to stderr and can't be redirected directly,
30790 # and sets the high bit in the cache file unless we assign to the vars.
30791 {
30792   (set) 2>&1 |
30793     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30794     *ac_space=\ *)
30795       # `set' does not quote correctly, so add quotes (double-quote
30796       # substitution turns \\\\ into \\, and sed turns \\ into \).
30797       sed -n \
30798         "s/'/'\\\\''/g;
30799           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30800       ;;
30801     *)
30802       # `set' quotes correctly as required by POSIX, so do not add quotes.
30803       sed -n \
30804         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30805       ;;
30806     esac;
30807 } |
30808   sed '
30809      t clear
30810      : clear
30811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30812      t end
30813      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30814      : end' >>confcache
30815 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30816   if test -w $cache_file; then
30817     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30818     cat confcache >$cache_file
30819   else
30820     echo "not updating unwritable cache $cache_file"
30821   fi
30822 fi
30823 rm -f confcache
30824
30825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30826 # Let make expand exec_prefix.
30827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30828
30829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30831 # trailing colons and then remove the whole line if VPATH becomes empty
30832 # (actually we leave an empty line to preserve line numbers).
30833 if test "x$srcdir" = x.; then
30834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30835 s/:*\$(srcdir):*/:/;
30836 s/:*\${srcdir}:*/:/;
30837 s/:*@srcdir@:*/:/;
30838 s/^\([^=]*=[     ]*\):*/\1/;
30839 s/:*$//;
30840 s/^[^=]*=[       ]*$//;
30841 }'
30842 fi
30843
30844 DEFS=-DHAVE_CONFIG_H
30845
30846 ac_libobjs=
30847 ac_ltlibobjs=
30848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30849   # 1. Remove the extension, and $U if already installed.
30850   ac_i=`echo "$ac_i" |
30851          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30852   # 2. Add them.
30853   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30854   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30855 done
30856 LIBOBJS=$ac_libobjs
30857
30858 LTLIBOBJS=$ac_ltlibobjs
30859
30860
30861 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30862   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30863 Usually this means the macro was only invoked conditionally." >&5
30864 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30865 Usually this means the macro was only invoked conditionally." >&2;}
30866    { (exit 1); exit 1; }; }
30867 fi
30868 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30869   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30870 Usually this means the macro was only invoked conditionally." >&5
30871 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30872 Usually this means the macro was only invoked conditionally." >&2;}
30873    { (exit 1); exit 1; }; }
30874 fi
30875
30876 : ${CONFIG_STATUS=./config.status}
30877 ac_clean_files_save=$ac_clean_files
30878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30879 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30880 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30881 cat >$CONFIG_STATUS <<_ACEOF
30882 #! $SHELL
30883 # Generated by $as_me.
30884 # Run this file to recreate the current configuration.
30885 # Compiler output produced by configure, useful for debugging
30886 # configure, is in config.log if it exists.
30887
30888 debug=false
30889 ac_cs_recheck=false
30890 ac_cs_silent=false
30891 SHELL=\${CONFIG_SHELL-$SHELL}
30892 _ACEOF
30893
30894 cat >>$CONFIG_STATUS <<\_ACEOF
30895 ## --------------------- ##
30896 ## M4sh Initialization.  ##
30897 ## --------------------- ##
30898
30899 # Be Bourne compatible
30900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30901   emulate sh
30902   NULLCMD=:
30903   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30904   # is contrary to our usage.  Disable this feature.
30905   alias -g '${1+"$@"}'='"$@"'
30906 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30907   set -o posix
30908 fi
30909 DUALCASE=1; export DUALCASE # for MKS sh
30910
30911 # Support unset when possible.
30912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30913   as_unset=unset
30914 else
30915   as_unset=false
30916 fi
30917
30918
30919 # Work around bugs in pre-3.0 UWIN ksh.
30920 $as_unset ENV MAIL MAILPATH
30921 PS1='$ '
30922 PS2='> '
30923 PS4='+ '
30924
30925 # NLS nuisances.
30926 for as_var in \
30927   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30928   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30929   LC_TELEPHONE LC_TIME
30930 do
30931   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30932     eval $as_var=C; export $as_var
30933   else
30934     $as_unset $as_var
30935   fi
30936 done
30937
30938 # Required to use basename.
30939 if expr a : '\(a\)' >/dev/null 2>&1; then
30940   as_expr=expr
30941 else
30942   as_expr=false
30943 fi
30944
30945 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30946   as_basename=basename
30947 else
30948   as_basename=false
30949 fi
30950
30951
30952 # Name of the executable.
30953 as_me=`$as_basename "$0" ||
30954 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30955          X"$0" : 'X\(//\)$' \| \
30956          X"$0" : 'X\(/\)$' \| \
30957          .     : '\(.\)' 2>/dev/null ||
30958 echo X/"$0" |
30959     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30960           /^X\/\(\/\/\)$/{ s//\1/; q; }
30961           /^X\/\(\/\).*/{ s//\1/; q; }
30962           s/.*/./; q'`
30963
30964
30965 # PATH needs CR, and LINENO needs CR and PATH.
30966 # Avoid depending upon Character Ranges.
30967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30970 as_cr_digits='0123456789'
30971 as_cr_alnum=$as_cr_Letters$as_cr_digits
30972
30973 # The user is always right.
30974 if test "${PATH_SEPARATOR+set}" != set; then
30975   echo "#! /bin/sh" >conf$$.sh
30976   echo  "exit 0"   >>conf$$.sh
30977   chmod +x conf$$.sh
30978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30979     PATH_SEPARATOR=';'
30980   else
30981     PATH_SEPARATOR=:
30982   fi
30983   rm -f conf$$.sh
30984 fi
30985
30986
30987   as_lineno_1=$LINENO
30988   as_lineno_2=$LINENO
30989   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30990   test "x$as_lineno_1" != "x$as_lineno_2" &&
30991   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30992   # Find who we are.  Look in the path if we contain no path at all
30993   # relative or not.
30994   case $0 in
30995     *[\\/]* ) as_myself=$0 ;;
30996     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30997 for as_dir in $PATH
30998 do
30999   IFS=$as_save_IFS
31000   test -z "$as_dir" && as_dir=.
31001   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31002 done
31003
31004        ;;
31005   esac
31006   # We did not find ourselves, most probably we were run as `sh COMMAND'
31007   # in which case we are not to be found in the path.
31008   if test "x$as_myself" = x; then
31009     as_myself=$0
31010   fi
31011   if test ! -f "$as_myself"; then
31012     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31013 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31014    { (exit 1); exit 1; }; }
31015   fi
31016   case $CONFIG_SHELL in
31017   '')
31018     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31019 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31020 do
31021   IFS=$as_save_IFS
31022   test -z "$as_dir" && as_dir=.
31023   for as_base in sh bash ksh sh5; do
31024          case $as_dir in
31025          /*)
31026            if ("$as_dir/$as_base" -c '
31027   as_lineno_1=$LINENO
31028   as_lineno_2=$LINENO
31029   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31030   test "x$as_lineno_1" != "x$as_lineno_2" &&
31031   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31032              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31033              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31034              CONFIG_SHELL=$as_dir/$as_base
31035              export CONFIG_SHELL
31036              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31037            fi;;
31038          esac
31039        done
31040 done
31041 ;;
31042   esac
31043
31044   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31045   # uniformly replaced by the line number.  The first 'sed' inserts a
31046   # line-number line before each line; the second 'sed' does the real
31047   # work.  The second script uses 'N' to pair each line-number line
31048   # with the numbered line, and appends trailing '-' during
31049   # substitution so that $LINENO is not a special case at line end.
31050   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31051   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31052   sed '=' <$as_myself |
31053     sed '
31054       N
31055       s,$,-,
31056       : loop
31057       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31058       t loop
31059       s,-$,,
31060       s,^['$as_cr_digits']*\n,,
31061     ' >$as_me.lineno &&
31062   chmod +x $as_me.lineno ||
31063     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31064 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31065    { (exit 1); exit 1; }; }
31066
31067   # Don't try to exec as it changes $[0], causing all sort of problems
31068   # (the dirname of $[0] is not the place where we might find the
31069   # original and so on.  Autoconf is especially sensible to this).
31070   . ./$as_me.lineno
31071   # Exit status is that of the last command.
31072   exit
31073 }
31074
31075
31076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31077   *c*,-n*) ECHO_N= ECHO_C='
31078 ' ECHO_T='      ' ;;
31079   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31080   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31081 esac
31082
31083 if expr a : '\(a\)' >/dev/null 2>&1; then
31084   as_expr=expr
31085 else
31086   as_expr=false
31087 fi
31088
31089 rm -f conf$$ conf$$.exe conf$$.file
31090 echo >conf$$.file
31091 if ln -s conf$$.file conf$$ 2>/dev/null; then
31092   # We could just check for DJGPP; but this test a) works b) is more generic
31093   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31094   if test -f conf$$.exe; then
31095     # Don't use ln at all; we don't have any links
31096     as_ln_s='cp -p'
31097   else
31098     as_ln_s='ln -s'
31099   fi
31100 elif ln conf$$.file conf$$ 2>/dev/null; then
31101   as_ln_s=ln
31102 else
31103   as_ln_s='cp -p'
31104 fi
31105 rm -f conf$$ conf$$.exe conf$$.file
31106
31107 if mkdir -p . 2>/dev/null; then
31108   as_mkdir_p=:
31109 else
31110   test -d ./-p && rmdir ./-p
31111   as_mkdir_p=false
31112 fi
31113
31114 as_executable_p="test -f"
31115
31116 # Sed expression to map a string onto a valid CPP name.
31117 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31118
31119 # Sed expression to map a string onto a valid variable name.
31120 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31121
31122
31123 # IFS
31124 # We need space, tab and new line, in precisely that order.
31125 as_nl='
31126 '
31127 IFS="   $as_nl"
31128
31129 # CDPATH.
31130 $as_unset CDPATH
31131
31132 exec 6>&1
31133
31134 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31135 # report actual input values of CONFIG_FILES etc. instead of their
31136 # values after options handling.  Logging --version etc. is OK.
31137 exec 5>>config.log
31138 {
31139   echo
31140   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31141 ## Running $as_me. ##
31142 _ASBOX
31143 } >&5
31144 cat >&5 <<_CSEOF
31145
31146 This file was extended by llvm $as_me 1.7cvs, which was
31147 generated by GNU Autoconf 2.59.  Invocation command line was
31148
31149   CONFIG_FILES    = $CONFIG_FILES
31150   CONFIG_HEADERS  = $CONFIG_HEADERS
31151   CONFIG_LINKS    = $CONFIG_LINKS
31152   CONFIG_COMMANDS = $CONFIG_COMMANDS
31153   $ $0 $@
31154
31155 _CSEOF
31156 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31157 echo >&5
31158 _ACEOF
31159
31160 # Files that config.status was made for.
31161 if test -n "$ac_config_files"; then
31162   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31163 fi
31164
31165 if test -n "$ac_config_headers"; then
31166   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31167 fi
31168
31169 if test -n "$ac_config_links"; then
31170   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31171 fi
31172
31173 if test -n "$ac_config_commands"; then
31174   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31175 fi
31176
31177 cat >>$CONFIG_STATUS <<\_ACEOF
31178
31179 ac_cs_usage="\
31180 \`$as_me' instantiates files from templates according to the
31181 current configuration.
31182
31183 Usage: $0 [OPTIONS] [FILE]...
31184
31185   -h, --help       print this help, then exit
31186   -V, --version    print version number, then exit
31187   -q, --quiet      do not print progress messages
31188   -d, --debug      don't remove temporary files
31189       --recheck    update $as_me by reconfiguring in the same conditions
31190   --file=FILE[:TEMPLATE]
31191                    instantiate the configuration file FILE
31192   --header=FILE[:TEMPLATE]
31193                    instantiate the configuration header FILE
31194
31195 Configuration files:
31196 $config_files
31197
31198 Configuration headers:
31199 $config_headers
31200
31201 Configuration commands:
31202 $config_commands
31203
31204 Report bugs to <bug-autoconf@gnu.org>."
31205 _ACEOF
31206
31207 cat >>$CONFIG_STATUS <<_ACEOF
31208 ac_cs_version="\\
31209 llvm config.status 1.7cvs
31210 configured by $0, generated by GNU Autoconf 2.59,
31211   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31212
31213 Copyright (C) 2003 Free Software Foundation, Inc.
31214 This config.status script is free software; the Free Software Foundation
31215 gives unlimited permission to copy, distribute and modify it."
31216 srcdir=$srcdir
31217 INSTALL="$INSTALL"
31218 _ACEOF
31219
31220 cat >>$CONFIG_STATUS <<\_ACEOF
31221 # If no file are specified by the user, then we need to provide default
31222 # value.  By we need to know if files were specified by the user.
31223 ac_need_defaults=:
31224 while test $# != 0
31225 do
31226   case $1 in
31227   --*=*)
31228     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31229     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31230     ac_shift=:
31231     ;;
31232   -*)
31233     ac_option=$1
31234     ac_optarg=$2
31235     ac_shift=shift
31236     ;;
31237   *) # This is not an option, so the user has probably given explicit
31238      # arguments.
31239      ac_option=$1
31240      ac_need_defaults=false;;
31241   esac
31242
31243   case $ac_option in
31244   # Handling of the options.
31245 _ACEOF
31246 cat >>$CONFIG_STATUS <<\_ACEOF
31247   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31248     ac_cs_recheck=: ;;
31249   --version | --vers* | -V )
31250     echo "$ac_cs_version"; exit 0 ;;
31251   --he | --h)
31252     # Conflict between --help and --header
31253     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31254 Try \`$0 --help' for more information." >&5
31255 echo "$as_me: error: ambiguous option: $1
31256 Try \`$0 --help' for more information." >&2;}
31257    { (exit 1); exit 1; }; };;
31258   --help | --hel | -h )
31259     echo "$ac_cs_usage"; exit 0 ;;
31260   --debug | --d* | -d )
31261     debug=: ;;
31262   --file | --fil | --fi | --f )
31263     $ac_shift
31264     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31265     ac_need_defaults=false;;
31266   --header | --heade | --head | --hea )
31267     $ac_shift
31268     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31269     ac_need_defaults=false;;
31270   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31271   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31272     ac_cs_silent=: ;;
31273
31274   # This is an error.
31275   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31276 Try \`$0 --help' for more information." >&5
31277 echo "$as_me: error: unrecognized option: $1
31278 Try \`$0 --help' for more information." >&2;}
31279    { (exit 1); exit 1; }; } ;;
31280
31281   *) ac_config_targets="$ac_config_targets $1" ;;
31282
31283   esac
31284   shift
31285 done
31286
31287 ac_configure_extra_args=
31288
31289 if $ac_cs_silent; then
31290   exec 6>/dev/null
31291   ac_configure_extra_args="$ac_configure_extra_args --silent"
31292 fi
31293
31294 _ACEOF
31295 cat >>$CONFIG_STATUS <<_ACEOF
31296 if \$ac_cs_recheck; then
31297   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31298   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31299 fi
31300
31301 _ACEOF
31302
31303 cat >>$CONFIG_STATUS <<_ACEOF
31304 #
31305 # INIT-COMMANDS section.
31306 #
31307
31308 llvm_src="${srcdir}"
31309
31310 _ACEOF
31311
31312
31313
31314 cat >>$CONFIG_STATUS <<\_ACEOF
31315 for ac_config_target in $ac_config_targets
31316 do
31317   case "$ac_config_target" in
31318   # Handling of arguments.
31319   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31320   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31321   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31322   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31323   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31324   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31325   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31326   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31327   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31328   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31329   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31330   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31331   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31332   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31333   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31334   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31335   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31336   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31337   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31339    { (exit 1); exit 1; }; };;
31340   esac
31341 done
31342
31343 # If the user did not use the arguments to specify the items to instantiate,
31344 # then the envvar interface is used.  Set only those that are not.
31345 # We use the long form for the default assignment because of an extremely
31346 # bizarre bug on SunOS 4.1.3.
31347 if $ac_need_defaults; then
31348   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31349   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31350   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31351 fi
31352
31353 # Have a temporary directory for convenience.  Make it in the build tree
31354 # simply because there is no reason to put it here, and in addition,
31355 # creating and moving files from /tmp can sometimes cause problems.
31356 # Create a temporary directory, and hook for its removal unless debugging.
31357 $debug ||
31358 {
31359   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31360   trap '{ (exit 1); exit 1; }' 1 2 13 15
31361 }
31362
31363 # Create a (secure) tmp directory for tmp files.
31364
31365 {
31366   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31367   test -n "$tmp" && test -d "$tmp"
31368 }  ||
31369 {
31370   tmp=./confstat$$-$RANDOM
31371   (umask 077 && mkdir $tmp)
31372 } ||
31373 {
31374    echo "$me: cannot create a temporary directory in ." >&2
31375    { (exit 1); exit 1; }
31376 }
31377
31378 _ACEOF
31379
31380 cat >>$CONFIG_STATUS <<_ACEOF
31381
31382 #
31383 # CONFIG_FILES section.
31384 #
31385
31386 # No need to generate the scripts if there are no CONFIG_FILES.
31387 # This happens for instance when ./config.status config.h
31388 if test -n "\$CONFIG_FILES"; then
31389   # Protect against being on the right side of a sed subst in config.status.
31390   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31391    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31392 s,@SHELL@,$SHELL,;t t
31393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31394 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31395 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31396 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31397 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31398 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31399 s,@exec_prefix@,$exec_prefix,;t t
31400 s,@prefix@,$prefix,;t t
31401 s,@program_transform_name@,$program_transform_name,;t t
31402 s,@bindir@,$bindir,;t t
31403 s,@sbindir@,$sbindir,;t t
31404 s,@libexecdir@,$libexecdir,;t t
31405 s,@datadir@,$datadir,;t t
31406 s,@sysconfdir@,$sysconfdir,;t t
31407 s,@sharedstatedir@,$sharedstatedir,;t t
31408 s,@localstatedir@,$localstatedir,;t t
31409 s,@libdir@,$libdir,;t t
31410 s,@includedir@,$includedir,;t t
31411 s,@oldincludedir@,$oldincludedir,;t t
31412 s,@infodir@,$infodir,;t t
31413 s,@mandir@,$mandir,;t t
31414 s,@build_alias@,$build_alias,;t t
31415 s,@host_alias@,$host_alias,;t t
31416 s,@target_alias@,$target_alias,;t t
31417 s,@DEFS@,$DEFS,;t t
31418 s,@ECHO_C@,$ECHO_C,;t t
31419 s,@ECHO_N@,$ECHO_N,;t t
31420 s,@ECHO_T@,$ECHO_T,;t t
31421 s,@LIBS@,$LIBS,;t t
31422 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31423 s,@subdirs@,$subdirs,;t t
31424 s,@build@,$build,;t t
31425 s,@build_cpu@,$build_cpu,;t t
31426 s,@build_vendor@,$build_vendor,;t t
31427 s,@build_os@,$build_os,;t t
31428 s,@host@,$host,;t t
31429 s,@host_cpu@,$host_cpu,;t t
31430 s,@host_vendor@,$host_vendor,;t t
31431 s,@host_os@,$host_os,;t t
31432 s,@target@,$target,;t t
31433 s,@target_cpu@,$target_cpu,;t t
31434 s,@target_vendor@,$target_vendor,;t t
31435 s,@target_os@,$target_os,;t t
31436 s,@OS@,$OS,;t t
31437 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31438 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31439 s,@ARCH@,$ARCH,;t t
31440 s,@ENDIAN@,$ENDIAN,;t t
31441 s,@CC@,$CC,;t t
31442 s,@CFLAGS@,$CFLAGS,;t t
31443 s,@LDFLAGS@,$LDFLAGS,;t t
31444 s,@CPPFLAGS@,$CPPFLAGS,;t t
31445 s,@ac_ct_CC@,$ac_ct_CC,;t t
31446 s,@EXEEXT@,$EXEEXT,;t t
31447 s,@OBJEXT@,$OBJEXT,;t t
31448 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31449 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31450 s,@JIT@,$JIT,;t t
31451 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31452 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31453 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31454 s,@CPP@,$CPP,;t t
31455 s,@CXX@,$CXX,;t t
31456 s,@CXXFLAGS@,$CXXFLAGS,;t t
31457 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31458 s,@LEX@,$LEX,;t t
31459 s,@LEXLIB@,$LEXLIB,;t t
31460 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31461 s,@FLEX@,$FLEX,;t t
31462 s,@YACC@,$YACC,;t t
31463 s,@BISON@,$BISON,;t t
31464 s,@ifGNUmake@,$ifGNUmake,;t t
31465 s,@LN_S@,$LN_S,;t t
31466 s,@CMP@,$CMP,;t t
31467 s,@CP@,$CP,;t t
31468 s,@DATE@,$DATE,;t t
31469 s,@FIND@,$FIND,;t t
31470 s,@GREP@,$GREP,;t t
31471 s,@MKDIR@,$MKDIR,;t t
31472 s,@MV@,$MV,;t t
31473 s,@RANLIB@,$RANLIB,;t t
31474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31475 s,@RM@,$RM,;t t
31476 s,@SED@,$SED,;t t
31477 s,@TAR@,$TAR,;t t
31478 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31479 s,@GV@,$GV,;t t
31480 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31481 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31482 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31483 s,@BZIP2@,$BZIP2,;t t
31484 s,@DOT@,$DOT,;t t
31485 s,@DOXYGEN@,$DOXYGEN,;t t
31486 s,@ETAGS@,$ETAGS,;t t
31487 s,@GROFF@,$GROFF,;t t
31488 s,@GZIP@,$GZIP,;t t
31489 s,@POD2HTML@,$POD2HTML,;t t
31490 s,@POD2MAN@,$POD2MAN,;t t
31491 s,@RUNTEST@,$RUNTEST,;t t
31492 s,@TCLSH@,$TCLSH,;t t
31493 s,@ZIP@,$ZIP,;t t
31494 s,@EGREP@,$EGREP,;t t
31495 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31496 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31497 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31498 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31499 s,@LIBADD_DL@,$LIBADD_DL,;t t
31500 s,@ECHO@,$ECHO,;t t
31501 s,@AR@,$AR,;t t
31502 s,@ac_ct_AR@,$ac_ct_AR,;t t
31503 s,@STRIP@,$STRIP,;t t
31504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31505 s,@CXXCPP@,$CXXCPP,;t t
31506 s,@F77@,$F77,;t t
31507 s,@FFLAGS@,$FFLAGS,;t t
31508 s,@ac_ct_F77@,$ac_ct_F77,;t t
31509 s,@LIBTOOL@,$LIBTOOL,;t t
31510 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31511 s,@LLVMGCC@,$LLVMGCC,;t t
31512 s,@LLVMGXX@,$LLVMGXX,;t t
31513 s,@ALLOCA@,$ALLOCA,;t t
31514 s,@MMAP_FILE@,$MMAP_FILE,;t t
31515 s,@LLVMCC1@,$LLVMCC1,;t t
31516 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31517 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31518 s,@SHLIBEXT@,$SHLIBEXT,;t t
31519 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31520 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31521 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31522 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31523 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31524 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31525 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31526 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31527 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31528 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31529 s,@LIBOBJS@,$LIBOBJS,;t t
31530 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31531 CEOF
31532
31533 _ACEOF
31534
31535   cat >>$CONFIG_STATUS <<\_ACEOF
31536   # Split the substitutions into bite-sized pieces for seds with
31537   # small command number limits, like on Digital OSF/1 and HP-UX.
31538   ac_max_sed_lines=48
31539   ac_sed_frag=1 # Number of current file.
31540   ac_beg=1 # First line for current file.
31541   ac_end=$ac_max_sed_lines # Line after last line for current file.
31542   ac_more_lines=:
31543   ac_sed_cmds=
31544   while $ac_more_lines; do
31545     if test $ac_beg -gt 1; then
31546       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31547     else
31548       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31549     fi
31550     if test ! -s $tmp/subs.frag; then
31551       ac_more_lines=false
31552     else
31553       # The purpose of the label and of the branching condition is to
31554       # speed up the sed processing (if there are no `@' at all, there
31555       # is no need to browse any of the substitutions).
31556       # These are the two extra sed commands mentioned above.
31557       (echo ':t
31558   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31559       if test -z "$ac_sed_cmds"; then
31560         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31561       else
31562         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31563       fi
31564       ac_sed_frag=`expr $ac_sed_frag + 1`
31565       ac_beg=$ac_end
31566       ac_end=`expr $ac_end + $ac_max_sed_lines`
31567     fi
31568   done
31569   if test -z "$ac_sed_cmds"; then
31570     ac_sed_cmds=cat
31571   fi
31572 fi # test -n "$CONFIG_FILES"
31573
31574 _ACEOF
31575 cat >>$CONFIG_STATUS <<\_ACEOF
31576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31577   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31578   case $ac_file in
31579   - | *:- | *:-:* ) # input from stdin
31580         cat >$tmp/stdin
31581         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31582         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31583   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31585   * )   ac_file_in=$ac_file.in ;;
31586   esac
31587
31588   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31589   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31591          X"$ac_file" : 'X\(//\)[^/]' \| \
31592          X"$ac_file" : 'X\(//\)$' \| \
31593          X"$ac_file" : 'X\(/\)' \| \
31594          .     : '\(.\)' 2>/dev/null ||
31595 echo X"$ac_file" |
31596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31597           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31598           /^X\(\/\/\)$/{ s//\1/; q; }
31599           /^X\(\/\).*/{ s//\1/; q; }
31600           s/.*/./; q'`
31601   { if $as_mkdir_p; then
31602     mkdir -p "$ac_dir"
31603   else
31604     as_dir="$ac_dir"
31605     as_dirs=
31606     while test ! -d "$as_dir"; do
31607       as_dirs="$as_dir $as_dirs"
31608       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31610          X"$as_dir" : 'X\(//\)[^/]' \| \
31611          X"$as_dir" : 'X\(//\)$' \| \
31612          X"$as_dir" : 'X\(/\)' \| \
31613          .     : '\(.\)' 2>/dev/null ||
31614 echo X"$as_dir" |
31615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31617           /^X\(\/\/\)$/{ s//\1/; q; }
31618           /^X\(\/\).*/{ s//\1/; q; }
31619           s/.*/./; q'`
31620     done
31621     test ! -n "$as_dirs" || mkdir $as_dirs
31622   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31624    { (exit 1); exit 1; }; }; }
31625
31626   ac_builddir=.
31627
31628 if test "$ac_dir" != .; then
31629   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31630   # A "../" for each directory in $ac_dir_suffix.
31631   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31632 else
31633   ac_dir_suffix= ac_top_builddir=
31634 fi
31635
31636 case $srcdir in
31637   .)  # No --srcdir option.  We are building in place.
31638     ac_srcdir=.
31639     if test -z "$ac_top_builddir"; then
31640        ac_top_srcdir=.
31641     else
31642        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31643     fi ;;
31644   [\\/]* | ?:[\\/]* )  # Absolute path.
31645     ac_srcdir=$srcdir$ac_dir_suffix;
31646     ac_top_srcdir=$srcdir ;;
31647   *) # Relative path.
31648     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31649     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31650 esac
31651
31652 # Do not use `cd foo && pwd` to compute absolute paths, because
31653 # the directories may not exist.
31654 case `pwd` in
31655 .) ac_abs_builddir="$ac_dir";;
31656 *)
31657   case "$ac_dir" in
31658   .) ac_abs_builddir=`pwd`;;
31659   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31660   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31661   esac;;
31662 esac
31663 case $ac_abs_builddir in
31664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31665 *)
31666   case ${ac_top_builddir}. in
31667   .) ac_abs_top_builddir=$ac_abs_builddir;;
31668   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31669   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31670   esac;;
31671 esac
31672 case $ac_abs_builddir in
31673 .) ac_abs_srcdir=$ac_srcdir;;
31674 *)
31675   case $ac_srcdir in
31676   .) ac_abs_srcdir=$ac_abs_builddir;;
31677   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31678   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31679   esac;;
31680 esac
31681 case $ac_abs_builddir in
31682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31683 *)
31684   case $ac_top_srcdir in
31685   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31686   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31687   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31688   esac;;
31689 esac
31690
31691
31692   case $INSTALL in
31693   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31694   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31695   esac
31696
31697   if test x"$ac_file" != x-; then
31698     { echo "$as_me:$LINENO: creating $ac_file" >&5
31699 echo "$as_me: creating $ac_file" >&6;}
31700     rm -f "$ac_file"
31701   fi
31702   # Let's still pretend it is `configure' which instantiates (i.e., don't
31703   # use $as_me), people would be surprised to read:
31704   #    /* config.h.  Generated by config.status.  */
31705   if test x"$ac_file" = x-; then
31706     configure_input=
31707   else
31708     configure_input="$ac_file.  "
31709   fi
31710   configure_input=$configure_input"Generated from `echo $ac_file_in |
31711                                      sed 's,.*/,,'` by configure."
31712
31713   # First look for the input files in the build tree, otherwise in the
31714   # src tree.
31715   ac_file_inputs=`IFS=:
31716     for f in $ac_file_in; do
31717       case $f in
31718       -) echo $tmp/stdin ;;
31719       [\\/$]*)
31720          # Absolute (can't be DOS-style, as IFS=:)
31721          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31722 echo "$as_me: error: cannot find input file: $f" >&2;}
31723    { (exit 1); exit 1; }; }
31724          echo "$f";;
31725       *) # Relative
31726          if test -f "$f"; then
31727            # Build tree
31728            echo "$f"
31729          elif test -f "$srcdir/$f"; then
31730            # Source tree
31731            echo "$srcdir/$f"
31732          else
31733            # /dev/null tree
31734            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31735 echo "$as_me: error: cannot find input file: $f" >&2;}
31736    { (exit 1); exit 1; }; }
31737          fi;;
31738       esac
31739     done` || { (exit 1); exit 1; }
31740 _ACEOF
31741 cat >>$CONFIG_STATUS <<_ACEOF
31742   sed "$ac_vpsub
31743 $extrasub
31744 _ACEOF
31745 cat >>$CONFIG_STATUS <<\_ACEOF
31746 :t
31747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31748 s,@configure_input@,$configure_input,;t t
31749 s,@srcdir@,$ac_srcdir,;t t
31750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31751 s,@top_srcdir@,$ac_top_srcdir,;t t
31752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31753 s,@builddir@,$ac_builddir,;t t
31754 s,@abs_builddir@,$ac_abs_builddir,;t t
31755 s,@top_builddir@,$ac_top_builddir,;t t
31756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31757 s,@INSTALL@,$ac_INSTALL,;t t
31758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31759   rm -f $tmp/stdin
31760   if test x"$ac_file" != x-; then
31761     mv $tmp/out $ac_file
31762   else
31763     cat $tmp/out
31764     rm -f $tmp/out
31765   fi
31766
31767 done
31768 _ACEOF
31769 cat >>$CONFIG_STATUS <<\_ACEOF
31770
31771 #
31772 # CONFIG_HEADER section.
31773 #
31774
31775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31777 #
31778 # ac_d sets the value in "#define NAME VALUE" lines.
31779 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31780 ac_dB='[         ].*$,\1#\2'
31781 ac_dC=' '
31782 ac_dD=',;t'
31783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31784 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31785 ac_uB='$,\1#\2define\3'
31786 ac_uC=' '
31787 ac_uD=',;t'
31788
31789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31790   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31791   case $ac_file in
31792   - | *:- | *:-:* ) # input from stdin
31793         cat >$tmp/stdin
31794         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31795         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31796   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31797         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31798   * )   ac_file_in=$ac_file.in ;;
31799   esac
31800
31801   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31802 echo "$as_me: creating $ac_file" >&6;}
31803
31804   # First look for the input files in the build tree, otherwise in the
31805   # src tree.
31806   ac_file_inputs=`IFS=:
31807     for f in $ac_file_in; do
31808       case $f in
31809       -) echo $tmp/stdin ;;
31810       [\\/$]*)
31811          # Absolute (can't be DOS-style, as IFS=:)
31812          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31813 echo "$as_me: error: cannot find input file: $f" >&2;}
31814    { (exit 1); exit 1; }; }
31815          # Do quote $f, to prevent DOS paths from being IFS'd.
31816          echo "$f";;
31817       *) # Relative
31818          if test -f "$f"; then
31819            # Build tree
31820            echo "$f"
31821          elif test -f "$srcdir/$f"; then
31822            # Source tree
31823            echo "$srcdir/$f"
31824          else
31825            # /dev/null tree
31826            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31827 echo "$as_me: error: cannot find input file: $f" >&2;}
31828    { (exit 1); exit 1; }; }
31829          fi;;
31830       esac
31831     done` || { (exit 1); exit 1; }
31832   # Remove the trailing spaces.
31833   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31834
31835 _ACEOF
31836
31837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31838 # `conftest.undefs', that substitutes the proper values into
31839 # config.h.in to produce config.h.  The first handles `#define'
31840 # templates, and the second `#undef' templates.
31841 # And first: Protect against being on the right side of a sed subst in
31842 # config.status.  Protect against being in an unquoted here document
31843 # in config.status.
31844 rm -f conftest.defines conftest.undefs
31845 # Using a here document instead of a string reduces the quoting nightmare.
31846 # Putting comments in sed scripts is not portable.
31847 #
31848 # `end' is used to avoid that the second main sed command (meant for
31849 # 0-ary CPP macros) applies to n-ary macro definitions.
31850 # See the Autoconf documentation for `clear'.
31851 cat >confdef2sed.sed <<\_ACEOF
31852 s/[\\&,]/\\&/g
31853 s,[\\$`],\\&,g
31854 t clear
31855 : clear
31856 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31857 t end
31858 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31859 : end
31860 _ACEOF
31861 # If some macros were called several times there might be several times
31862 # the same #defines, which is useless.  Nevertheless, we may not want to
31863 # sort them, since we want the *last* AC-DEFINE to be honored.
31864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31866 rm -f confdef2sed.sed
31867
31868 # This sed command replaces #undef with comments.  This is necessary, for
31869 # example, in the case of _POSIX_SOURCE, which is predefined and required
31870 # on some systems where configure will not decide to define it.
31871 cat >>conftest.undefs <<\_ACEOF
31872 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31873 _ACEOF
31874
31875 # Break up conftest.defines because some shells have a limit on the size
31876 # of here documents, and old seds have small limits too (100 cmds).
31877 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31878 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31879 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31880 echo '  :' >>$CONFIG_STATUS
31881 rm -f conftest.tail
31882 while grep . conftest.defines >/dev/null
31883 do
31884   # Write a limited-size here document to $tmp/defines.sed.
31885   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31886   # Speed up: don't consider the non `#define' lines.
31887   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31888   # Work around the forget-to-reset-the-flag bug.
31889   echo 't clr' >>$CONFIG_STATUS
31890   echo ': clr' >>$CONFIG_STATUS
31891   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31892   echo 'CEOF
31893   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31894   rm -f $tmp/in
31895   mv $tmp/out $tmp/in
31896 ' >>$CONFIG_STATUS
31897   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31898   rm -f conftest.defines
31899   mv conftest.tail conftest.defines
31900 done
31901 rm -f conftest.defines
31902 echo '  fi # grep' >>$CONFIG_STATUS
31903 echo >>$CONFIG_STATUS
31904
31905 # Break up conftest.undefs because some shells have a limit on the size
31906 # of here documents, and old seds have small limits too (100 cmds).
31907 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31908 rm -f conftest.tail
31909 while grep . conftest.undefs >/dev/null
31910 do
31911   # Write a limited-size here document to $tmp/undefs.sed.
31912   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31913   # Speed up: don't consider the non `#undef'
31914   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31915   # Work around the forget-to-reset-the-flag bug.
31916   echo 't clr' >>$CONFIG_STATUS
31917   echo ': clr' >>$CONFIG_STATUS
31918   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31919   echo 'CEOF
31920   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31921   rm -f $tmp/in
31922   mv $tmp/out $tmp/in
31923 ' >>$CONFIG_STATUS
31924   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31925   rm -f conftest.undefs
31926   mv conftest.tail conftest.undefs
31927 done
31928 rm -f conftest.undefs
31929
31930 cat >>$CONFIG_STATUS <<\_ACEOF
31931   # Let's still pretend it is `configure' which instantiates (i.e., don't
31932   # use $as_me), people would be surprised to read:
31933   #    /* config.h.  Generated by config.status.  */
31934   if test x"$ac_file" = x-; then
31935     echo "/* Generated by configure.  */" >$tmp/config.h
31936   else
31937     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31938   fi
31939   cat $tmp/in >>$tmp/config.h
31940   rm -f $tmp/in
31941   if test x"$ac_file" != x-; then
31942     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31943       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31944 echo "$as_me: $ac_file is unchanged" >&6;}
31945     else
31946       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31948          X"$ac_file" : 'X\(//\)[^/]' \| \
31949          X"$ac_file" : 'X\(//\)$' \| \
31950          X"$ac_file" : 'X\(/\)' \| \
31951          .     : '\(.\)' 2>/dev/null ||
31952 echo X"$ac_file" |
31953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31955           /^X\(\/\/\)$/{ s//\1/; q; }
31956           /^X\(\/\).*/{ s//\1/; q; }
31957           s/.*/./; q'`
31958       { if $as_mkdir_p; then
31959     mkdir -p "$ac_dir"
31960   else
31961     as_dir="$ac_dir"
31962     as_dirs=
31963     while test ! -d "$as_dir"; do
31964       as_dirs="$as_dir $as_dirs"
31965       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31967          X"$as_dir" : 'X\(//\)[^/]' \| \
31968          X"$as_dir" : 'X\(//\)$' \| \
31969          X"$as_dir" : 'X\(/\)' \| \
31970          .     : '\(.\)' 2>/dev/null ||
31971 echo X"$as_dir" |
31972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31974           /^X\(\/\/\)$/{ s//\1/; q; }
31975           /^X\(\/\).*/{ s//\1/; q; }
31976           s/.*/./; q'`
31977     done
31978     test ! -n "$as_dirs" || mkdir $as_dirs
31979   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31981    { (exit 1); exit 1; }; }; }
31982
31983       rm -f $ac_file
31984       mv $tmp/config.h $ac_file
31985     fi
31986   else
31987     cat $tmp/config.h
31988     rm -f $tmp/config.h
31989   fi
31990 done
31991 _ACEOF
31992 cat >>$CONFIG_STATUS <<\_ACEOF
31993
31994 #
31995 # CONFIG_COMMANDS section.
31996 #
31997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31998   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31999   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32000   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32002          X"$ac_dest" : 'X\(//\)[^/]' \| \
32003          X"$ac_dest" : 'X\(//\)$' \| \
32004          X"$ac_dest" : 'X\(/\)' \| \
32005          .     : '\(.\)' 2>/dev/null ||
32006 echo X"$ac_dest" |
32007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32009           /^X\(\/\/\)$/{ s//\1/; q; }
32010           /^X\(\/\).*/{ s//\1/; q; }
32011           s/.*/./; q'`
32012   { if $as_mkdir_p; then
32013     mkdir -p "$ac_dir"
32014   else
32015     as_dir="$ac_dir"
32016     as_dirs=
32017     while test ! -d "$as_dir"; do
32018       as_dirs="$as_dir $as_dirs"
32019       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32021          X"$as_dir" : 'X\(//\)[^/]' \| \
32022          X"$as_dir" : 'X\(//\)$' \| \
32023          X"$as_dir" : 'X\(/\)' \| \
32024          .     : '\(.\)' 2>/dev/null ||
32025 echo X"$as_dir" |
32026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32028           /^X\(\/\/\)$/{ s//\1/; q; }
32029           /^X\(\/\).*/{ s//\1/; q; }
32030           s/.*/./; q'`
32031     done
32032     test ! -n "$as_dirs" || mkdir $as_dirs
32033   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32035    { (exit 1); exit 1; }; }; }
32036
32037   ac_builddir=.
32038
32039 if test "$ac_dir" != .; then
32040   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32041   # A "../" for each directory in $ac_dir_suffix.
32042   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32043 else
32044   ac_dir_suffix= ac_top_builddir=
32045 fi
32046
32047 case $srcdir in
32048   .)  # No --srcdir option.  We are building in place.
32049     ac_srcdir=.
32050     if test -z "$ac_top_builddir"; then
32051        ac_top_srcdir=.
32052     else
32053        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32054     fi ;;
32055   [\\/]* | ?:[\\/]* )  # Absolute path.
32056     ac_srcdir=$srcdir$ac_dir_suffix;
32057     ac_top_srcdir=$srcdir ;;
32058   *) # Relative path.
32059     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32060     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32061 esac
32062
32063 # Do not use `cd foo && pwd` to compute absolute paths, because
32064 # the directories may not exist.
32065 case `pwd` in
32066 .) ac_abs_builddir="$ac_dir";;
32067 *)
32068   case "$ac_dir" in
32069   .) ac_abs_builddir=`pwd`;;
32070   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32071   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32072   esac;;
32073 esac
32074 case $ac_abs_builddir in
32075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32076 *)
32077   case ${ac_top_builddir}. in
32078   .) ac_abs_top_builddir=$ac_abs_builddir;;
32079   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32080   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32081   esac;;
32082 esac
32083 case $ac_abs_builddir in
32084 .) ac_abs_srcdir=$ac_srcdir;;
32085 *)
32086   case $ac_srcdir in
32087   .) ac_abs_srcdir=$ac_abs_builddir;;
32088   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32089   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32090   esac;;
32091 esac
32092 case $ac_abs_builddir in
32093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32094 *)
32095   case $ac_top_srcdir in
32096   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32097   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32098   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32099   esac;;
32100 esac
32101
32102
32103   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32104 echo "$as_me: executing $ac_dest commands" >&6;}
32105   case $ac_dest in
32106     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32107    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32108     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32109    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32110     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32111    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32112     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32113    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32114     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32115    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32116     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32117    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32118     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32119    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32120     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32121    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32122     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32123    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32124     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32125    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32126   esac
32127 done
32128 _ACEOF
32129
32130 cat >>$CONFIG_STATUS <<\_ACEOF
32131
32132 { (exit 0); exit 0; }
32133 _ACEOF
32134 chmod +x $CONFIG_STATUS
32135 ac_clean_files=$ac_clean_files_save
32136
32137
32138 # configure is writing to config.log, and then calls config.status.
32139 # config.status does its own redirection, appending to config.log.
32140 # Unfortunately, on DOS this fails, as config.log is still kept open
32141 # by configure, so config.status won't be able to write to it; its
32142 # output is simply discarded.  So we exec the FD to /dev/null,
32143 # effectively closing config.log, so it can be properly (re)opened and
32144 # appended to by config.status.  When coming back to configure, we
32145 # need to make the FD available again.
32146 if test "$no_create" != yes; then
32147   ac_cs_success=:
32148   ac_config_status_args=
32149   test "$silent" = yes &&
32150     ac_config_status_args="$ac_config_status_args --quiet"
32151   exec 5>/dev/null
32152   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32153   exec 5>>config.log
32154   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32155   # would make configure fail if this is the last instruction.
32156   $ac_cs_success || { (exit 1); exit 1; }
32157 fi
32158
32159 #
32160 # CONFIG_SUBDIRS section.
32161 #
32162 if test "$no_recursion" != yes; then
32163
32164   # Remove --cache-file and --srcdir arguments so they do not pile up.
32165   ac_sub_configure_args=
32166   ac_prev=
32167   for ac_arg in $ac_configure_args; do
32168     if test -n "$ac_prev"; then
32169       ac_prev=
32170       continue
32171     fi
32172     case $ac_arg in
32173     -cache-file | --cache-file | --cache-fil | --cache-fi \
32174     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32175       ac_prev=cache_file ;;
32176     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32177     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32178     | --c=*)
32179       ;;
32180     --config-cache | -C)
32181       ;;
32182     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32183       ac_prev=srcdir ;;
32184     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32185       ;;
32186     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32187       ac_prev=prefix ;;
32188     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32189       ;;
32190     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32191     esac
32192   done
32193
32194   # Always prepend --prefix to ensure using the same prefix
32195   # in subdir configurations.
32196   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32197
32198   ac_popdir=`pwd`
32199   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32200
32201     # Do not complain, so a configure script can configure whichever
32202     # parts of a large source tree are present.
32203     test -d $srcdir/$ac_dir || continue
32204
32205     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32206 echo "$as_me: configuring in $ac_dir" >&6;}
32207     { if $as_mkdir_p; then
32208     mkdir -p "$ac_dir"
32209   else
32210     as_dir="$ac_dir"
32211     as_dirs=
32212     while test ! -d "$as_dir"; do
32213       as_dirs="$as_dir $as_dirs"
32214       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32216          X"$as_dir" : 'X\(//\)[^/]' \| \
32217          X"$as_dir" : 'X\(//\)$' \| \
32218          X"$as_dir" : 'X\(/\)' \| \
32219          .     : '\(.\)' 2>/dev/null ||
32220 echo X"$as_dir" |
32221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32222           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32223           /^X\(\/\/\)$/{ s//\1/; q; }
32224           /^X\(\/\).*/{ s//\1/; q; }
32225           s/.*/./; q'`
32226     done
32227     test ! -n "$as_dirs" || mkdir $as_dirs
32228   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32230    { (exit 1); exit 1; }; }; }
32231
32232     ac_builddir=.
32233
32234 if test "$ac_dir" != .; then
32235   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32236   # A "../" for each directory in $ac_dir_suffix.
32237   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32238 else
32239   ac_dir_suffix= ac_top_builddir=
32240 fi
32241
32242 case $srcdir in
32243   .)  # No --srcdir option.  We are building in place.
32244     ac_srcdir=.
32245     if test -z "$ac_top_builddir"; then
32246        ac_top_srcdir=.
32247     else
32248        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32249     fi ;;
32250   [\\/]* | ?:[\\/]* )  # Absolute path.
32251     ac_srcdir=$srcdir$ac_dir_suffix;
32252     ac_top_srcdir=$srcdir ;;
32253   *) # Relative path.
32254     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32255     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32256 esac
32257
32258 # Do not use `cd foo && pwd` to compute absolute paths, because
32259 # the directories may not exist.
32260 case `pwd` in
32261 .) ac_abs_builddir="$ac_dir";;
32262 *)
32263   case "$ac_dir" in
32264   .) ac_abs_builddir=`pwd`;;
32265   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32266   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32267   esac;;
32268 esac
32269 case $ac_abs_builddir in
32270 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32271 *)
32272   case ${ac_top_builddir}. in
32273   .) ac_abs_top_builddir=$ac_abs_builddir;;
32274   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32275   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32276   esac;;
32277 esac
32278 case $ac_abs_builddir in
32279 .) ac_abs_srcdir=$ac_srcdir;;
32280 *)
32281   case $ac_srcdir in
32282   .) ac_abs_srcdir=$ac_abs_builddir;;
32283   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32284   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32285   esac;;
32286 esac
32287 case $ac_abs_builddir in
32288 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32289 *)
32290   case $ac_top_srcdir in
32291   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32292   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32293   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32294   esac;;
32295 esac
32296
32297
32298     cd $ac_dir
32299
32300     # Check for guested configure; otherwise get Cygnus style configure.
32301     if test -f $ac_srcdir/configure.gnu; then
32302       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32303     elif test -f $ac_srcdir/configure; then
32304       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32305     elif test -f $ac_srcdir/configure.in; then
32306       ac_sub_configure=$ac_configure
32307     else
32308       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32310       ac_sub_configure=
32311     fi
32312
32313     # The recursion is here.
32314     if test -n "$ac_sub_configure"; then
32315       # Make the cache file name correct relative to the subdirectory.
32316       case $cache_file in
32317       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32318       *) # Relative path.
32319         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32320       esac
32321
32322       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32323 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32324       # The eval makes quoting arguments work.
32325       eval $ac_sub_configure $ac_sub_configure_args \
32326            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32327         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32328 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32329    { (exit 1); exit 1; }; }
32330     fi
32331
32332     cd $ac_popdir
32333   done
32334 fi
32335
32336
32337 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32338  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32339 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32340  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32341 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32342  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32343 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32344  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32345 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32346  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32347 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32348 fi