Add a check for the tar program.
[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.4.
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='LLVM'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='LLVM 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 # Factoring default headers for most tests.
440 ac_includes_default="\
441 #include <stdio.h>
442 #if HAVE_SYS_TYPES_H
443 # include <sys/types.h>
444 #endif
445 #if HAVE_SYS_STAT_H
446 # include <sys/stat.h>
447 #endif
448 #if STDC_HEADERS
449 # include <stdlib.h>
450 # include <stddef.h>
451 #else
452 # if HAVE_STDLIB_H
453 #  include <stdlib.h>
454 # endif
455 #endif
456 #if HAVE_STRING_H
457 # if !STDC_HEADERS && HAVE_MEMORY_H
458 #  include <memory.h>
459 # endif
460 # include <string.h>
461 #endif
462 #if HAVE_STRINGS_H
463 # include <strings.h>
464 #endif
465 #if HAVE_INTTYPES_H
466 # include <inttypes.h>
467 #else
468 # if HAVE_STDINT_H
469 #  include <stdint.h>
470 # endif
471 #endif
472 #if HAVE_UNISTD_H
473 # include <unistd.h>
474 #endif"
475
476 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
477 ac_subst_files=''
478
479 # Initialize some variables set by options.
480 ac_init_help=
481 ac_init_version=false
482 # The variables have the same names as the options, with
483 # dashes changed to underlines.
484 cache_file=/dev/null
485 exec_prefix=NONE
486 no_create=
487 no_recursion=
488 prefix=NONE
489 program_prefix=NONE
490 program_suffix=NONE
491 program_transform_name=s,x,x,
492 silent=
493 site=
494 srcdir=
495 verbose=
496 x_includes=NONE
497 x_libraries=NONE
498
499 # Installation directory options.
500 # These are left unexpanded so users can "make install exec_prefix=/foo"
501 # and all the variables that are supposed to be based on exec_prefix
502 # by default will actually change.
503 # Use braces instead of parens because sh, perl, etc. also accept them.
504 bindir='${exec_prefix}/bin'
505 sbindir='${exec_prefix}/sbin'
506 libexecdir='${exec_prefix}/libexec'
507 datadir='${prefix}/share'
508 sysconfdir='${prefix}/etc'
509 sharedstatedir='${prefix}/com'
510 localstatedir='${prefix}/var'
511 libdir='${exec_prefix}/lib'
512 includedir='${prefix}/include'
513 oldincludedir='/usr/include'
514 infodir='${prefix}/info'
515 mandir='${prefix}/man'
516
517 ac_prev=
518 for ac_option
519 do
520   # If the previous option needs an argument, assign it.
521   if test -n "$ac_prev"; then
522     eval "$ac_prev=\$ac_option"
523     ac_prev=
524     continue
525   fi
526
527   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529   # Accept the important Cygnus configure options, so we can diagnose typos.
530
531   case $ac_option in
532
533   -bindir | --bindir | --bindi | --bind | --bin | --bi)
534     ac_prev=bindir ;;
535   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536     bindir=$ac_optarg ;;
537
538   -build | --build | --buil | --bui | --bu)
539     ac_prev=build_alias ;;
540   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541     build_alias=$ac_optarg ;;
542
543   -cache-file | --cache-file | --cache-fil | --cache-fi \
544   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545     ac_prev=cache_file ;;
546   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548     cache_file=$ac_optarg ;;
549
550   --config-cache | -C)
551     cache_file=config.cache ;;
552
553   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554     ac_prev=datadir ;;
555   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556   | --da=*)
557     datadir=$ac_optarg ;;
558
559   -disable-* | --disable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     eval "enable_$ac_feature=no" ;;
567
568   -enable-* | --enable-*)
569     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570     # Reject names that are not valid shell variable names.
571     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573    { (exit 1); exit 1; }; }
574     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575     case $ac_option in
576       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577       *) ac_optarg=yes ;;
578     esac
579     eval "enable_$ac_feature='$ac_optarg'" ;;
580
581   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583   | --exec | --exe | --ex)
584     ac_prev=exec_prefix ;;
585   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587   | --exec=* | --exe=* | --ex=*)
588     exec_prefix=$ac_optarg ;;
589
590   -gas | --gas | --ga | --g)
591     # Obsolete; use --with-gas.
592     with_gas=yes ;;
593
594   -help | --help | --hel | --he | -h)
595     ac_init_help=long ;;
596   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597     ac_init_help=recursive ;;
598   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599     ac_init_help=short ;;
600
601   -host | --host | --hos | --ho)
602     ac_prev=host_alias ;;
603   -host=* | --host=* | --hos=* | --ho=*)
604     host_alias=$ac_optarg ;;
605
606   -includedir | --includedir | --includedi | --included | --include \
607   | --includ | --inclu | --incl | --inc)
608     ac_prev=includedir ;;
609   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610   | --includ=* | --inclu=* | --incl=* | --inc=*)
611     includedir=$ac_optarg ;;
612
613   -infodir | --infodir | --infodi | --infod | --info | --inf)
614     ac_prev=infodir ;;
615   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616     infodir=$ac_optarg ;;
617
618   -libdir | --libdir | --libdi | --libd)
619     ac_prev=libdir ;;
620   -libdir=* | --libdir=* | --libdi=* | --libd=*)
621     libdir=$ac_optarg ;;
622
623   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624   | --libexe | --libex | --libe)
625     ac_prev=libexecdir ;;
626   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627   | --libexe=* | --libex=* | --libe=*)
628     libexecdir=$ac_optarg ;;
629
630   -localstatedir | --localstatedir | --localstatedi | --localstated \
631   | --localstate | --localstat | --localsta | --localst \
632   | --locals | --local | --loca | --loc | --lo)
633     ac_prev=localstatedir ;;
634   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637     localstatedir=$ac_optarg ;;
638
639   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640     ac_prev=mandir ;;
641   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642     mandir=$ac_optarg ;;
643
644   -nfp | --nfp | --nf)
645     # Obsolete; use --without-fp.
646     with_fp=no ;;
647
648   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649   | --no-cr | --no-c | -n)
650     no_create=yes ;;
651
652   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654     no_recursion=yes ;;
655
656   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658   | --oldin | --oldi | --old | --ol | --o)
659     ac_prev=oldincludedir ;;
660   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663     oldincludedir=$ac_optarg ;;
664
665   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666     ac_prev=prefix ;;
667   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668     prefix=$ac_optarg ;;
669
670   -program-prefix | --program-prefix | --program-prefi | --program-pref \
671   | --program-pre | --program-pr | --program-p)
672     ac_prev=program_prefix ;;
673   -program-prefix=* | --program-prefix=* | --program-prefi=* \
674   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675     program_prefix=$ac_optarg ;;
676
677   -program-suffix | --program-suffix | --program-suffi | --program-suff \
678   | --program-suf | --program-su | --program-s)
679     ac_prev=program_suffix ;;
680   -program-suffix=* | --program-suffix=* | --program-suffi=* \
681   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682     program_suffix=$ac_optarg ;;
683
684   -program-transform-name | --program-transform-name \
685   | --program-transform-nam | --program-transform-na \
686   | --program-transform-n | --program-transform- \
687   | --program-transform | --program-transfor \
688   | --program-transfo | --program-transf \
689   | --program-trans | --program-tran \
690   | --progr-tra | --program-tr | --program-t)
691     ac_prev=program_transform_name ;;
692   -program-transform-name=* | --program-transform-name=* \
693   | --program-transform-nam=* | --program-transform-na=* \
694   | --program-transform-n=* | --program-transform-=* \
695   | --program-transform=* | --program-transfor=* \
696   | --program-transfo=* | --program-transf=* \
697   | --program-trans=* | --program-tran=* \
698   | --progr-tra=* | --program-tr=* | --program-t=*)
699     program_transform_name=$ac_optarg ;;
700
701   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702   | -silent | --silent | --silen | --sile | --sil)
703     silent=yes ;;
704
705   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706     ac_prev=sbindir ;;
707   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708   | --sbi=* | --sb=*)
709     sbindir=$ac_optarg ;;
710
711   -sharedstatedir | --sharedstatedir | --sharedstatedi \
712   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713   | --sharedst | --shareds | --shared | --share | --shar \
714   | --sha | --sh)
715     ac_prev=sharedstatedir ;;
716   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719   | --sha=* | --sh=*)
720     sharedstatedir=$ac_optarg ;;
721
722   -site | --site | --sit)
723     ac_prev=site ;;
724   -site=* | --site=* | --sit=*)
725     site=$ac_optarg ;;
726
727   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728     ac_prev=srcdir ;;
729   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730     srcdir=$ac_optarg ;;
731
732   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733   | --syscon | --sysco | --sysc | --sys | --sy)
734     ac_prev=sysconfdir ;;
735   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737     sysconfdir=$ac_optarg ;;
738
739   -target | --target | --targe | --targ | --tar | --ta | --t)
740     ac_prev=target_alias ;;
741   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742     target_alias=$ac_optarg ;;
743
744   -v | -verbose | --verbose | --verbos | --verbo | --verb)
745     verbose=yes ;;
746
747   -version | --version | --versio | --versi | --vers | -V)
748     ac_init_version=: ;;
749
750   -with-* | --with-*)
751     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package| sed 's/-/_/g'`
757     case $ac_option in
758       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759       *) ac_optarg=yes ;;
760     esac
761     eval "with_$ac_package='$ac_optarg'" ;;
762
763   -without-* | --without-*)
764     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid package name: $ac_package" >&2
768    { (exit 1); exit 1; }; }
769     ac_package=`echo $ac_package | sed 's/-/_/g'`
770     eval "with_$ac_package=no" ;;
771
772   --x)
773     # Obsolete; use --with-x.
774     with_x=yes ;;
775
776   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777   | --x-incl | --x-inc | --x-in | --x-i)
778     ac_prev=x_includes ;;
779   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781     x_includes=$ac_optarg ;;
782
783   -x-libraries | --x-libraries | --x-librarie | --x-librari \
784   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785     ac_prev=x_libraries ;;
786   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788     x_libraries=$ac_optarg ;;
789
790   -*) { echo "$as_me: error: unrecognized option: $ac_option
791 Try \`$0 --help' for more information." >&2
792    { (exit 1); exit 1; }; }
793     ;;
794
795   *=*)
796     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797     # Reject names that are not valid shell variable names.
798     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800    { (exit 1); exit 1; }; }
801     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802     eval "$ac_envvar='$ac_optarg'"
803     export $ac_envvar ;;
804
805   *)
806     # FIXME: should be removed in autoconf 3.0.
807     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811     ;;
812
813   esac
814 done
815
816 if test -n "$ac_prev"; then
817   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818   { echo "$as_me: error: missing argument to $ac_option" >&2
819    { (exit 1); exit 1; }; }
820 fi
821
822 # Be sure to have absolute paths.
823 for ac_var in exec_prefix prefix
824 do
825   eval ac_val=$`echo $ac_var`
826   case $ac_val in
827     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829    { (exit 1); exit 1; }; };;
830   esac
831 done
832
833 # Be sure to have absolute paths.
834 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835               localstatedir libdir includedir oldincludedir infodir mandir
836 do
837   eval ac_val=$`echo $ac_var`
838   case $ac_val in
839     [\\/$]* | ?:[\\/]* ) ;;
840     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841    { (exit 1); exit 1; }; };;
842   esac
843 done
844
845 # There might be people who depend on the old broken behavior: `$host'
846 # used to hold the argument of --host etc.
847 # FIXME: To remove some day.
848 build=$build_alias
849 host=$host_alias
850 target=$target_alias
851
852 # FIXME: To remove some day.
853 if test "x$host_alias" != x; then
854   if test "x$build_alias" = x; then
855     cross_compiling=maybe
856     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857     If a cross compiler is detected then cross compile mode will be used." >&2
858   elif test "x$build_alias" != "x$host_alias"; then
859     cross_compiling=yes
860   fi
861 fi
862
863 ac_tool_prefix=
864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866 test "$silent" = yes && exec 6>/dev/null
867
868
869 # Find the source files, if location was not specified.
870 if test -z "$srcdir"; then
871   ac_srcdir_defaulted=yes
872   # Try the directory containing this script, then its parent.
873   ac_confdir=`(dirname "$0") 2>/dev/null ||
874 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875          X"$0" : 'X\(//\)[^/]' \| \
876          X"$0" : 'X\(//\)$' \| \
877          X"$0" : 'X\(/\)' \| \
878          .     : '\(.\)' 2>/dev/null ||
879 echo X"$0" |
880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882           /^X\(\/\/\)$/{ s//\1/; q; }
883           /^X\(\/\).*/{ s//\1/; q; }
884           s/.*/./; q'`
885   srcdir=$ac_confdir
886   if test ! -r $srcdir/$ac_unique_file; then
887     srcdir=..
888   fi
889 else
890   ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893   if test "$ac_srcdir_defaulted" = yes; then
894     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895    { (exit 1); exit 1; }; }
896   else
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898    { (exit 1); exit 1; }; }
899   fi
900 fi
901 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903    { (exit 1); exit 1; }; }
904 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905 ac_env_build_alias_set=${build_alias+set}
906 ac_env_build_alias_value=$build_alias
907 ac_cv_env_build_alias_set=${build_alias+set}
908 ac_cv_env_build_alias_value=$build_alias
909 ac_env_host_alias_set=${host_alias+set}
910 ac_env_host_alias_value=$host_alias
911 ac_cv_env_host_alias_set=${host_alias+set}
912 ac_cv_env_host_alias_value=$host_alias
913 ac_env_target_alias_set=${target_alias+set}
914 ac_env_target_alias_value=$target_alias
915 ac_cv_env_target_alias_set=${target_alias+set}
916 ac_cv_env_target_alias_value=$target_alias
917 ac_env_CXX_set=${CXX+set}
918 ac_env_CXX_value=$CXX
919 ac_cv_env_CXX_set=${CXX+set}
920 ac_cv_env_CXX_value=$CXX
921 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922 ac_env_CXXFLAGS_value=$CXXFLAGS
923 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925 ac_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_env_LDFLAGS_value=$LDFLAGS
927 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928 ac_cv_env_LDFLAGS_value=$LDFLAGS
929 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_env_CPPFLAGS_value=$CPPFLAGS
931 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933 ac_env_CC_set=${CC+set}
934 ac_env_CC_value=$CC
935 ac_cv_env_CC_set=${CC+set}
936 ac_cv_env_CC_value=$CC
937 ac_env_CFLAGS_set=${CFLAGS+set}
938 ac_env_CFLAGS_value=$CFLAGS
939 ac_cv_env_CFLAGS_set=${CFLAGS+set}
940 ac_cv_env_CFLAGS_value=$CFLAGS
941 ac_env_CPP_set=${CPP+set}
942 ac_env_CPP_value=$CPP
943 ac_cv_env_CPP_set=${CPP+set}
944 ac_cv_env_CPP_value=$CPP
945 ac_env_CXXCPP_set=${CXXCPP+set}
946 ac_env_CXXCPP_value=$CXXCPP
947 ac_cv_env_CXXCPP_set=${CXXCPP+set}
948 ac_cv_env_CXXCPP_value=$CXXCPP
949 ac_env_F77_set=${F77+set}
950 ac_env_F77_value=$F77
951 ac_cv_env_F77_set=${F77+set}
952 ac_cv_env_F77_value=$F77
953 ac_env_FFLAGS_set=${FFLAGS+set}
954 ac_env_FFLAGS_value=$FFLAGS
955 ac_cv_env_FFLAGS_set=${FFLAGS+set}
956 ac_cv_env_FFLAGS_value=$FFLAGS
957
958 #
959 # Report the --help message.
960 #
961 if test "$ac_init_help" = "long"; then
962   # Omit some internal or obsolete options to make the list less imposing.
963   # This message is too long to be a string in the A/UX 3.1 sh.
964   cat <<_ACEOF
965 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
966
967 Usage: $0 [OPTION]... [VAR=VALUE]...
968
969 To assign environment variables (e.g., CC, CFLAGS...), specify them as
970 VAR=VALUE.  See below for descriptions of some of the useful variables.
971
972 Defaults for the options are specified in brackets.
973
974 Configuration:
975   -h, --help              display this help and exit
976       --help=short        display options specific to this package
977       --help=recursive    display the short help of all the included packages
978   -V, --version           display version information and exit
979   -q, --quiet, --silent   do not print \`checking...' messages
980       --cache-file=FILE   cache test results in FILE [disabled]
981   -C, --config-cache      alias for \`--cache-file=config.cache'
982   -n, --no-create         do not create output files
983       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
984
985 _ACEOF
986
987   cat <<_ACEOF
988 Installation directories:
989   --prefix=PREFIX         install architecture-independent files in PREFIX
990                           [$ac_default_prefix]
991   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
992                           [PREFIX]
993
994 By default, \`make install' will install all the files in
995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997 for instance \`--prefix=\$HOME'.
998
999 For better control, use the options below.
1000
1001 Fine tuning of the installation directories:
1002   --bindir=DIR           user executables [EPREFIX/bin]
1003   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1004   --libexecdir=DIR       program executables [EPREFIX/libexec]
1005   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1006   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1007   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1008   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1009   --libdir=DIR           object code libraries [EPREFIX/lib]
1010   --includedir=DIR       C header files [PREFIX/include]
1011   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1012   --infodir=DIR          info documentation [PREFIX/info]
1013   --mandir=DIR           man documentation [PREFIX/man]
1014 _ACEOF
1015
1016   cat <<\_ACEOF
1017
1018 System types:
1019   --build=BUILD     configure for building on BUILD [guessed]
1020   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021   --target=TARGET   configure for building compilers for TARGET [HOST]
1022 _ACEOF
1023 fi
1024
1025 if test -n "$ac_init_help"; then
1026   case $ac_init_help in
1027      short | recursive ) echo "Configuration of LLVM 1.4:";;
1028    esac
1029   cat <<\_ACEOF
1030
1031 Optional Features:
1032   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034   --enable-shared[=PKGS]
1035                           build shared libraries [default=yes]
1036   --enable-static[=PKGS]
1037                           build static libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-optimized      Compile with optimizations enabled (default is NO)
1042   --enable-jit            Enable Just In Time Compiling (default is YES)
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052   --with-llvmgccdir       Location of LLVM GCC front-end
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105
1106 # Do not use `cd foo && pwd` to compute absolute paths, because
1107 # the directories may not exist.
1108 case `pwd` in
1109 .) ac_abs_builddir="$ac_dir";;
1110 *)
1111   case "$ac_dir" in
1112   .) ac_abs_builddir=`pwd`;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1119 *)
1120   case ${ac_top_builddir}. in
1121   .) ac_abs_top_builddir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_srcdir=$ac_srcdir;;
1128 *)
1129   case $ac_srcdir in
1130   .) ac_abs_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1137 *)
1138   case $ac_top_srcdir in
1139   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142   esac;;
1143 esac
1144
1145     cd $ac_dir
1146     # Check for guested configure; otherwise get Cygnus style configure.
1147     if test -f $ac_srcdir/configure.gnu; then
1148       echo
1149       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1150     elif test -f $ac_srcdir/configure; then
1151       echo
1152       $SHELL $ac_srcdir/configure  --help=recursive
1153     elif test -f $ac_srcdir/configure.ac ||
1154            test -f $ac_srcdir/configure.in; then
1155       echo
1156       $ac_configure --help
1157     else
1158       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159     fi
1160     cd $ac_popdir
1161   done
1162 fi
1163
1164 test -n "$ac_init_help" && exit 0
1165 if $ac_init_version; then
1166   cat <<\_ACEOF
1167 LLVM configure 1.4
1168 generated by GNU Autoconf 2.59
1169
1170 Copyright (C) 2003 Free Software Foundation, Inc.
1171 This configure script is free software; the Free Software Foundation
1172 gives unlimited permission to copy, distribute and modify it.
1173 _ACEOF
1174   exit 0
1175 fi
1176 exec 5>config.log
1177 cat >&5 <<_ACEOF
1178 This file contains any messages produced by compilers while
1179 running configure, to aid debugging if configure makes a mistake.
1180
1181 It was created by LLVM $as_me 1.4, which was
1182 generated by GNU Autoconf 2.59.  Invocation command line was
1183
1184   $ $0 $@
1185
1186 _ACEOF
1187 {
1188 cat <<_ASUNAME
1189 ## --------- ##
1190 ## Platform. ##
1191 ## --------- ##
1192
1193 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1201
1202 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1203 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1204 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1206 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1207 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1208 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1209
1210 _ASUNAME
1211
1212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213 for as_dir in $PATH
1214 do
1215   IFS=$as_save_IFS
1216   test -z "$as_dir" && as_dir=.
1217   echo "PATH: $as_dir"
1218 done
1219
1220 } >&5
1221
1222 cat >&5 <<_ACEOF
1223
1224
1225 ## ----------- ##
1226 ## Core tests. ##
1227 ## ----------- ##
1228
1229 _ACEOF
1230
1231
1232 # Keep a trace of the command line.
1233 # Strip out --no-create and --no-recursion so they do not pile up.
1234 # Strip out --silent because we don't want to record it for future runs.
1235 # Also quote any args containing shell meta-characters.
1236 # Make two passes to allow for proper duplicate-argument suppression.
1237 ac_configure_args=
1238 ac_configure_args0=
1239 ac_configure_args1=
1240 ac_sep=
1241 ac_must_keep_next=false
1242 for ac_pass in 1 2
1243 do
1244   for ac_arg
1245   do
1246     case $ac_arg in
1247     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249     | -silent | --silent | --silen | --sile | --sil)
1250       continue ;;
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     esac
1254     case $ac_pass in
1255     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256     2)
1257       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258       if test $ac_must_keep_next = true; then
1259         ac_must_keep_next=false # Got value, back to normal.
1260       else
1261         case $ac_arg in
1262           *=* | --config-cache | -C | -disable-* | --disable-* \
1263           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265           | -with-* | --with-* | -without-* | --without-* | --x)
1266             case "$ac_configure_args0 " in
1267               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268             esac
1269             ;;
1270           -* ) ac_must_keep_next=true ;;
1271         esac
1272       fi
1273       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274       # Get rid of the leading space.
1275       ac_sep=" "
1276       ;;
1277     esac
1278   done
1279 done
1280 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1282
1283 # When interrupted or exit'd, cleanup temporary files, and complete
1284 # config.log.  We remove comments because anyway the quotes in there
1285 # would cause problems or look ugly.
1286 # WARNING: Be sure not to use single quotes in there, as some shells,
1287 # such as our DU 5.0 friend, will then `close' the trap.
1288 trap 'exit_status=$?
1289   # Save into config.log some information that might help in debugging.
1290   {
1291     echo
1292
1293     cat <<\_ASBOX
1294 ## ---------------- ##
1295 ## Cache variables. ##
1296 ## ---------------- ##
1297 _ASBOX
1298     echo
1299     # The following way of writing the cache mishandles newlines in values,
1300 {
1301   (set) 2>&1 |
1302     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303     *ac_space=\ *)
1304       sed -n \
1305         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1307       ;;
1308     *)
1309       sed -n \
1310         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1311       ;;
1312     esac;
1313 }
1314     echo
1315
1316     cat <<\_ASBOX
1317 ## ----------------- ##
1318 ## Output variables. ##
1319 ## ----------------- ##
1320 _ASBOX
1321     echo
1322     for ac_var in $ac_subst_vars
1323     do
1324       eval ac_val=$`echo $ac_var`
1325       echo "$ac_var='"'"'$ac_val'"'"'"
1326     done | sort
1327     echo
1328
1329     if test -n "$ac_subst_files"; then
1330       cat <<\_ASBOX
1331 ## ------------- ##
1332 ## Output files. ##
1333 ## ------------- ##
1334 _ASBOX
1335       echo
1336       for ac_var in $ac_subst_files
1337       do
1338         eval ac_val=$`echo $ac_var`
1339         echo "$ac_var='"'"'$ac_val'"'"'"
1340       done | sort
1341       echo
1342     fi
1343
1344     if test -s confdefs.h; then
1345       cat <<\_ASBOX
1346 ## ----------- ##
1347 ## confdefs.h. ##
1348 ## ----------- ##
1349 _ASBOX
1350       echo
1351       sed "/^$/d" confdefs.h | sort
1352       echo
1353     fi
1354     test "$ac_signal" != 0 &&
1355       echo "$as_me: caught signal $ac_signal"
1356     echo "$as_me: exit $exit_status"
1357   } >&5
1358   rm -f core *.core &&
1359   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360     exit $exit_status
1361      ' 0
1362 for ac_signal in 1 2 13 15; do
1363   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364 done
1365 ac_signal=0
1366
1367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1368 rm -rf conftest* confdefs.h
1369 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370 echo >confdefs.h
1371
1372 # Predefined preprocessor variables.
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_NAME "$PACKAGE_NAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_STRING "$PACKAGE_STRING"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396 _ACEOF
1397
1398
1399 # Let the site file select an alternate cache file if it wants to.
1400 # Prefer explicitly selected file to automatically selected ones.
1401 if test -z "$CONFIG_SITE"; then
1402   if test "x$prefix" != xNONE; then
1403     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404   else
1405     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406   fi
1407 fi
1408 for ac_site_file in $CONFIG_SITE; do
1409   if test -r "$ac_site_file"; then
1410     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411 echo "$as_me: loading site script $ac_site_file" >&6;}
1412     sed 's/^/| /' "$ac_site_file" >&5
1413     . "$ac_site_file"
1414   fi
1415 done
1416
1417 if test -r "$cache_file"; then
1418   # Some versions of bash will fail to source /dev/null (special
1419   # files actually), so we avoid doing that.
1420   if test -f "$cache_file"; then
1421     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422 echo "$as_me: loading cache $cache_file" >&6;}
1423     case $cache_file in
1424       [\\/]* | ?:[\\/]* ) . $cache_file;;
1425       *)                      . ./$cache_file;;
1426     esac
1427   fi
1428 else
1429   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430 echo "$as_me: creating cache $cache_file" >&6;}
1431   >$cache_file
1432 fi
1433
1434 # Check that the precious variables saved in the cache have kept the same
1435 # value.
1436 ac_cache_corrupted=false
1437 for ac_var in `(set) 2>&1 |
1438                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1439   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440   eval ac_new_set=\$ac_env_${ac_var}_set
1441   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442   eval ac_new_val="\$ac_env_${ac_var}_value"
1443   case $ac_old_set,$ac_new_set in
1444     set,)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,set)
1449       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451       ac_cache_corrupted=: ;;
1452     ,);;
1453     *)
1454       if test "x$ac_old_val" != "x$ac_new_val"; then
1455         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1456 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1457         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1458 echo "$as_me:   former value:  $ac_old_val" >&2;}
1459         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1460 echo "$as_me:   current value: $ac_new_val" >&2;}
1461         ac_cache_corrupted=:
1462       fi;;
1463   esac
1464   # Pass precious variables to config.status.
1465   if test "$ac_new_set" = set; then
1466     case $ac_new_val in
1467     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469     *) ac_arg=$ac_var=$ac_new_val ;;
1470     esac
1471     case " $ac_configure_args " in
1472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1473       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474     esac
1475   fi
1476 done
1477 if $ac_cache_corrupted; then
1478   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482    { (exit 1); exit 1; }; }
1483 fi
1484
1485 ac_ext=c
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 ac_aux_dir=
1519 for ac_dir in autoconf $srcdir/autoconf; do
1520   if test -f $ac_dir/install-sh; then
1521     ac_aux_dir=$ac_dir
1522     ac_install_sh="$ac_aux_dir/install-sh -c"
1523     break
1524   elif test -f $ac_dir/install.sh; then
1525     ac_aux_dir=$ac_dir
1526     ac_install_sh="$ac_aux_dir/install.sh -c"
1527     break
1528   elif test -f $ac_dir/shtool; then
1529     ac_aux_dir=$ac_dir
1530     ac_install_sh="$ac_aux_dir/shtool install -c"
1531     break
1532   fi
1533 done
1534 if test -z "$ac_aux_dir"; then
1535   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543
1544
1545 if test ${srcdir} != "." ; then
1546         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1547                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1548 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549    { (exit 1); exit 1; }; }
1550         fi
1551 fi
1552
1553 for i in `ls ${srcdir}/projects`
1554 do
1555   if test -d ${srcdir}/projects/${i} ; then
1556     case ${i} in
1557       "CVS") ;;
1558       "sample")
1559
1560 subdirs="$subdirs projects/sample"
1561     ;;
1562       "Stacker")
1563
1564 subdirs="$subdirs projects/Stacker"
1565    ;;
1566       "llvm-test")
1567
1568 subdirs="$subdirs projects/llvm-test"
1569  ;;
1570       "llvm-reopt")
1571
1572 subdirs="$subdirs projects/llvm-reopt"
1573 ;;
1574       "llvm-gcc")
1575
1576 subdirs="$subdirs projects/llvm-gcc"
1577   ;;
1578       "Java")
1579
1580 subdirs="$subdirs projects/Java"
1581       ;;
1582       "llvm-tv")
1583
1584 subdirs="$subdirs projects/llvm-tv"
1585    ;;
1586       "llvm-fefw")
1587
1588 subdirs="$subdirs projects/llvm-fefw"
1589  ;;
1590       *)
1591         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1592 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1593         ;;
1594     esac
1595   fi
1596 done
1597
1598           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1599
1600
1601           ac_config_files="$ac_config_files Makefile.config"
1602
1603           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1604
1605           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
1609           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1610
1611           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1612
1613
1614           ac_config_commands="$ac_config_commands Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands Makefile.common"
1618
1619
1620           ac_config_commands="$ac_config_commands examples/Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands lib/Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands runtime/Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Makefile.tests"
1633
1634
1635           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1636
1637
1638           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1639
1640
1641           ac_config_commands="$ac_config_commands tools/Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1645
1646
1647           ac_config_commands="$ac_config_commands utils/Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands projects/Makefile"
1651
1652
1653
1654 # Find a good install program.  We prefer a C program (faster),
1655 # so one script is as good as another.  But avoid the broken or
1656 # incompatible versions:
1657 # SysV /etc/install, /usr/sbin/install
1658 # SunOS /usr/etc/install
1659 # IRIX /sbin/install
1660 # AIX /bin/install
1661 # AmigaOS /C/install, which installs bootblocks on floppy discs
1662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1665 # OS/2's system install, which has a completely different semantic
1666 # ./install, which can be erroneously created by make from ./install.sh.
1667 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669 if test -z "$INSTALL"; then
1670 if test "${ac_cv_path_install+set}" = set; then
1671   echo $ECHO_N "(cached) $ECHO_C" >&6
1672 else
1673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   # Account for people who put trailing slashes in PATH elements.
1679 case $as_dir/ in
1680   ./ | .// | /cC/* | \
1681   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1682   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1683   /usr/ucb/* ) ;;
1684   *)
1685     # OSF1 and SCO ODT 3.0 have their own names for install.
1686     # Don't use installbsd from OSF since it installs stuff as root
1687     # by default.
1688     for ac_prog in ginstall scoinst install; do
1689       for ac_exec_ext in '' $ac_executable_extensions; do
1690         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691           if test $ac_prog = install &&
1692             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693             # AIX install.  It has an incompatible calling convention.
1694             :
1695           elif test $ac_prog = install &&
1696             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697             # program-specific install script used by HP pwplus--don't use.
1698             :
1699           else
1700             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701             break 3
1702           fi
1703         fi
1704       done
1705     done
1706     ;;
1707 esac
1708 done
1709
1710
1711 fi
1712   if test "${ac_cv_path_install+set}" = set; then
1713     INSTALL=$ac_cv_path_install
1714   else
1715     # As a last resort, use the slow shell script.  We don't cache a
1716     # path for INSTALL within a source directory, because that will
1717     # break other packages using the cache if that directory is
1718     # removed, or if the path is relative.
1719     INSTALL=$ac_install_sh
1720   fi
1721 fi
1722 echo "$as_me:$LINENO: result: $INSTALL" >&5
1723 echo "${ECHO_T}$INSTALL" >&6
1724
1725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726 # It thinks the first close brace ends the variable substitution.
1727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728
1729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730
1731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732
1733
1734 # Make sure we can run config.sub.
1735 $ac_config_sub sun4 >/dev/null 2>&1 ||
1736   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1737 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1738    { (exit 1); exit 1; }; }
1739
1740 echo "$as_me:$LINENO: checking build system type" >&5
1741 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1742 if test "${ac_cv_build+set}" = set; then
1743   echo $ECHO_N "(cached) $ECHO_C" >&6
1744 else
1745   ac_cv_build_alias=$build_alias
1746 test -z "$ac_cv_build_alias" &&
1747   ac_cv_build_alias=`$ac_config_guess`
1748 test -z "$ac_cv_build_alias" &&
1749   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1750 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1751    { (exit 1); exit 1; }; }
1752 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1753   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1754 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1755    { (exit 1); exit 1; }; }
1756
1757 fi
1758 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1759 echo "${ECHO_T}$ac_cv_build" >&6
1760 build=$ac_cv_build
1761 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764
1765
1766 echo "$as_me:$LINENO: checking host system type" >&5
1767 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1768 if test "${ac_cv_host+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   ac_cv_host_alias=$host_alias
1772 test -z "$ac_cv_host_alias" &&
1773   ac_cv_host_alias=$ac_cv_build_alias
1774 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1775   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1776 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1777    { (exit 1); exit 1; }; }
1778
1779 fi
1780 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1781 echo "${ECHO_T}$ac_cv_host" >&6
1782 host=$ac_cv_host
1783 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788 echo "$as_me:$LINENO: checking target system type" >&5
1789 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1790 if test "${ac_cv_target+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   ac_cv_target_alias=$target_alias
1794 test "x$ac_cv_target_alias" = "x" &&
1795   ac_cv_target_alias=$ac_cv_host_alias
1796 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1797   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1798 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1799    { (exit 1); exit 1; }; }
1800
1801 fi
1802 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1803 echo "${ECHO_T}$ac_cv_target" >&6
1804 target=$ac_cv_target
1805 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808
1809
1810 # The aliases save the names the user supplied, while $host etc.
1811 # will get canonicalized.
1812 test -n "$target_alias" &&
1813   test "$program_prefix$program_suffix$program_transform_name" = \
1814     NONENONEs,x,x, &&
1815   program_prefix=${target_alias}-
1816
1817
1818 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1819 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1820 case $build in
1821         *-*-aix*)
1822              OS=AIX
1823
1824              platform_type="AIX"
1825              ;;
1826         *-*-cygwin*)
1827              OS=Cygwin
1828
1829              platform_type="Cygwin"
1830              ;;
1831         *-*-darwin*)
1832              OS=Darwin
1833
1834              platform_type="Darwin"
1835              ;;
1836         *-*-freebsd*)
1837              OS=Linux
1838
1839              platform_type="FreeBSD"
1840              ;;
1841         *-*-interix*)
1842              OS=SunOS
1843
1844              platform_type="Interix"
1845              ;;
1846         *-*-linux*)
1847              OS=Linux
1848
1849              platform_type="Linux"
1850              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1851              then
1852                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1853
1854              fi
1855              ;;
1856         *-*-solaris*)
1857              OS=SunOS
1858
1859              platform_type="SunOS"
1860              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1861              then
1862                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1863
1864              fi
1865              ;;
1866         *-*-win32*)
1867              OS=Win32
1868
1869              platform_type="Win32"
1870              ;;
1871         *-*-mingw*)
1872              OS=Win32
1873
1874              platform_type="Win32"
1875              ;;
1876         *)
1877              OS=Unknown
1878
1879              platform_type="Unknown"
1880              ;;
1881 esac
1882
1883 if test "$platform_type" = "Unknown" ; then
1884   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1885 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1886    { (exit 1); exit 1; }; }
1887 fi
1888
1889           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1890
1891
1892
1893 echo "$as_me:$LINENO: checking target architecture" >&5
1894 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1895 case $target in
1896         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1897
1898                             ;;
1899 esac
1900
1901 case $target in
1902         i*86-*)
1903           ARCH="x86"
1904           ARCH=x86
1905
1906           ;;
1907         sparc*-*)
1908           ARCH="Sparc"
1909           ARCH=Sparc
1910
1911           ;;
1912         powerpc*-*)
1913           ARCH="PowerPC"
1914           ARCH=PowerPC
1915
1916           ;;
1917         *)
1918           ARCH="Unknown"
1919           ARCH=Unknown
1920
1921           ;;
1922 esac
1923
1924 echo "$as_me:$LINENO: result: $ARCH" >&5
1925 echo "${ECHO_T}$ARCH" >&6
1926
1927 ac_ext=cc
1928 ac_cpp='$CXXCPP $CPPFLAGS'
1929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1934   do
1935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CXX+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$CXX"; then
1943   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 CXX=$ac_cv_prog_CXX
1962 if test -n "$CXX"; then
1963   echo "$as_me:$LINENO: result: $CXX" >&5
1964 echo "${ECHO_T}$CXX" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970     test -n "$CXX" && break
1971   done
1972 fi
1973 if test -z "$CXX"; then
1974   ac_ct_CXX=$CXX
1975   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1976 do
1977   # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$ac_ct_CXX"; then
1985   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1986 else
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     ac_cv_prog_ac_ct_CXX="$ac_prog"
1995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996     break 2
1997   fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2004 if test -n "$ac_ct_CXX"; then
2005   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2006 echo "${ECHO_T}$ac_ct_CXX" >&6
2007 else
2008   echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012   test -n "$ac_ct_CXX" && break
2013 done
2014 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2015
2016   CXX=$ac_ct_CXX
2017 fi
2018
2019
2020 # Provide some information about the compiler.
2021 echo "$as_me:$LINENO:" \
2022      "checking for C++ compiler version" >&5
2023 ac_compiler=`set X $ac_compile; echo $2`
2024 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2025   (eval $ac_compiler --version </dev/null >&5) 2>&5
2026   ac_status=$?
2027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028   (exit $ac_status); }
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2030   (eval $ac_compiler -v </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2035   (eval $ac_compiler -V </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039
2040 cat >conftest.$ac_ext <<_ACEOF
2041 /* confdefs.h.  */
2042 _ACEOF
2043 cat confdefs.h >>conftest.$ac_ext
2044 cat >>conftest.$ac_ext <<_ACEOF
2045 /* end confdefs.h.  */
2046
2047 int
2048 main ()
2049 {
2050
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 ac_clean_files_save=$ac_clean_files
2056 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2057 # Try to create an executable without -o first, disregard a.out.
2058 # It will help us diagnose broken compilers, and finding out an intuition
2059 # of exeext.
2060 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2061 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064   (eval $ac_link_default) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; then
2068   # Find the output, starting from the most likely.  This scheme is
2069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2070 # resort.
2071
2072 # Be careful to initialize this variable, since it used to be cached.
2073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2074 ac_cv_exeext=
2075 # b.out is created by i960 compilers.
2076 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2077 do
2078   test -f "$ac_file" || continue
2079   case $ac_file in
2080     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2081         ;;
2082     conftest.$ac_ext )
2083         # This is the source file.
2084         ;;
2085     [ab].out )
2086         # We found the default executable, but exeext='' is most
2087         # certainly right.
2088         break;;
2089     *.* )
2090         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091         # FIXME: I believe we export ac_cv_exeext for Libtool,
2092         # but it would be cool to find out if it's true.  Does anybody
2093         # maintain Libtool? --akim.
2094         export ac_cv_exeext
2095         break;;
2096     * )
2097         break;;
2098   esac
2099 done
2100 else
2101   echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2103
2104 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: C++ compiler cannot create executables
2107 See \`config.log' for more details." >&2;}
2108    { (exit 77); exit 77; }; }
2109 fi
2110
2111 ac_exeext=$ac_cv_exeext
2112 echo "$as_me:$LINENO: result: $ac_file" >&5
2113 echo "${ECHO_T}$ac_file" >&6
2114
2115 # Check the compiler produces executables we can run.  If not, either
2116 # the compiler is broken, or we cross compile.
2117 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2118 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2119 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2120 # If not cross compiling, check that we can run a simple program.
2121 if test "$cross_compiling" != yes; then
2122   if { ac_try='./$ac_file'
2123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124   (eval $ac_try) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }; }; then
2128     cross_compiling=no
2129   else
2130     if test "$cross_compiling" = maybe; then
2131         cross_compiling=yes
2132     else
2133         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot run C++ compiled programs.
2137 If you meant to cross compile, use \`--host'.
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140     fi
2141   fi
2142 fi
2143 echo "$as_me:$LINENO: result: yes" >&5
2144 echo "${ECHO_T}yes" >&6
2145
2146 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2147 ac_clean_files=$ac_clean_files_save
2148 # Check the compiler produces executables we can run.  If not, either
2149 # the compiler is broken, or we cross compile.
2150 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2151 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2152 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2153 echo "${ECHO_T}$cross_compiling" >&6
2154
2155 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2156 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2158   (eval $ac_link) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2165 # `rm'.
2166 for ac_file in conftest.exe conftest conftest.*; do
2167   test -f "$ac_file" || continue
2168   case $ac_file in
2169     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2170     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171           export ac_cv_exeext
2172           break;;
2173     * ) break;;
2174   esac
2175 done
2176 else
2177   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2180 See \`config.log' for more details." >&2;}
2181    { (exit 1); exit 1; }; }
2182 fi
2183
2184 rm -f conftest$ac_cv_exeext
2185 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2186 echo "${ECHO_T}$ac_cv_exeext" >&6
2187
2188 rm -f conftest.$ac_ext
2189 EXEEXT=$ac_cv_exeext
2190 ac_exeext=$EXEEXT
2191 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2192 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2193 if test "${ac_cv_objext+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202
2203 int
2204 main ()
2205 {
2206
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.o conftest.obj
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2218   case $ac_file in
2219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2220     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2221        break;;
2222   esac
2223 done
2224 else
2225   echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&5
2230 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234
2235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2236 fi
2237 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2238 echo "${ECHO_T}$ac_cv_objext" >&6
2239 OBJEXT=$ac_cv_objext
2240 ac_objext=$OBJEXT
2241 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2242 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252
2253 int
2254 main ()
2255 {
2256 #ifndef __GNUC__
2257        choke me
2258 #endif
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266   (eval $ac_compile) 2>conftest.er1
2267   ac_status=$?
2268   grep -v '^ *+' conftest.er1 >conftest.err
2269   rm -f conftest.er1
2270   cat conftest.err >&5
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -z "$ac_cxx_werror_flag"
2274                          || test ! -s conftest.err'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   ac_compiler_gnu=yes
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_compiler_gnu=no
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2295
2296 fi
2297 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2298 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2299 GXX=`test $ac_compiler_gnu = yes && echo yes`
2300 ac_test_CXXFLAGS=${CXXFLAGS+set}
2301 ac_save_CXXFLAGS=$CXXFLAGS
2302 CXXFLAGS="-g"
2303 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2304 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cxx_g+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325   (eval $ac_compile) 2>conftest.er1
2326   ac_status=$?
2327   grep -v '^ *+' conftest.er1 >conftest.err
2328   rm -f conftest.er1
2329   cat conftest.err >&5
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); } &&
2332          { ac_try='test -z "$ac_cxx_werror_flag"
2333                          || test ! -s conftest.err'
2334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335   (eval $ac_try) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; } &&
2339          { ac_try='test -s conftest.$ac_objext'
2340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341   (eval $ac_try) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; }; then
2345   ac_cv_prog_cxx_g=yes
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_cv_prog_cxx_g=no
2351 fi
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 fi
2354 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356 if test "$ac_test_CXXFLAGS" = set; then
2357   CXXFLAGS=$ac_save_CXXFLAGS
2358 elif test $ac_cv_prog_cxx_g = yes; then
2359   if test "$GXX" = yes; then
2360     CXXFLAGS="-g -O2"
2361   else
2362     CXXFLAGS="-g"
2363   fi
2364 else
2365   if test "$GXX" = yes; then
2366     CXXFLAGS="-O2"
2367   else
2368     CXXFLAGS=
2369   fi
2370 fi
2371 for ac_declaration in \
2372    '' \
2373    'extern "C" void std::exit (int) throw (); using std::exit;' \
2374    'extern "C" void std::exit (int); using std::exit;' \
2375    'extern "C" void exit (int) throw ();' \
2376    'extern "C" void exit (int);' \
2377    'void exit (int);'
2378 do
2379   cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h.  */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h.  */
2385 $ac_declaration
2386 #include <stdlib.h>
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>conftest.er1
2398   ac_status=$?
2399   grep -v '^ *+' conftest.er1 >conftest.err
2400   rm -f conftest.er1
2401   cat conftest.err >&5
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -z "$ac_cxx_werror_flag"
2405                          || test ! -s conftest.err'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; } &&
2411          { ac_try='test -s conftest.$ac_objext'
2412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413   (eval $ac_try) 2>&5
2414   ac_status=$?
2415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416   (exit $ac_status); }; }; then
2417   :
2418 else
2419   echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 continue
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425   cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431 $ac_declaration
2432 int
2433 main ()
2434 {
2435 exit (42);
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>conftest.er1
2443   ac_status=$?
2444   grep -v '^ *+' conftest.er1 >conftest.err
2445   rm -f conftest.er1
2446   cat conftest.err >&5
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); } &&
2449          { ac_try='test -z "$ac_cxx_werror_flag"
2450                          || test ! -s conftest.err'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; } &&
2456          { ac_try='test -s conftest.$ac_objext'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462   break
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 fi
2468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469 done
2470 rm -f conftest*
2471 if test -n "$ac_declaration"; then
2472   echo '#ifdef __cplusplus' >>confdefs.h
2473   echo $ac_declaration      >>confdefs.h
2474   echo '#endif'             >>confdefs.h
2475 fi
2476
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 if test -n "$ac_tool_prefix"; then
2489   for ac_prog in gcc
2490   do
2491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2493 echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495 if test "${ac_cv_prog_CC+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$CC"; then
2499   ac_cv_prog_CC="$CC" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6
2521 else
2522   echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6
2524 fi
2525
2526     test -n "$CC" && break
2527   done
2528 fi
2529 if test -z "$CC"; then
2530   ac_ct_CC=$CC
2531   for ac_prog in gcc
2532 do
2533   # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538   echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540   if test -n "$ac_ct_CC"; then
2541   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     ac_cv_prog_ac_ct_CC="$ac_prog"
2551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552     break 2
2553   fi
2554 done
2555 done
2556
2557 fi
2558 fi
2559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560 if test -n "$ac_ct_CC"; then
2561   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2562 echo "${ECHO_T}$ac_ct_CC" >&6
2563 else
2564   echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6
2566 fi
2567
2568   test -n "$ac_ct_CC" && break
2569 done
2570
2571   CC=$ac_ct_CC
2572 fi
2573
2574
2575 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: no acceptable C compiler found in \$PATH
2578 See \`config.log' for more details." >&2;}
2579    { (exit 1); exit 1; }; }
2580
2581 # Provide some information about the compiler.
2582 echo "$as_me:$LINENO:" \
2583      "checking for C compiler version" >&5
2584 ac_compiler=`set X $ac_compile; echo $2`
2585 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2586   (eval $ac_compiler --version </dev/null >&5) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2591   (eval $ac_compiler -v </dev/null >&5) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2596   (eval $ac_compiler -V </dev/null >&5) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }
2600
2601 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   cat >conftest.$ac_ext <<_ACEOF
2607 /* confdefs.h.  */
2608 _ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h.  */
2612
2613 int
2614 main ()
2615 {
2616 #ifndef __GNUC__
2617        choke me
2618 #endif
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -z "$ac_c_werror_flag"
2634                          || test ! -s conftest.err'
2635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636   (eval $ac_try) 2>&5
2637   ac_status=$?
2638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639   (exit $ac_status); }; } &&
2640          { ac_try='test -s conftest.$ac_objext'
2641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642   (eval $ac_try) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); }; }; then
2646   ac_compiler_gnu=yes
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_compiler_gnu=no
2652 fi
2653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2655
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659 GCC=`test $ac_compiler_gnu = yes && echo yes`
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 CFLAGS="-g"
2663 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_g+set}" = set; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h.  */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h.  */
2674
2675 int
2676 main ()
2677 {
2678
2679   ;
2680   return 0;
2681 }
2682 _ACEOF
2683 rm -f conftest.$ac_objext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685   (eval $ac_compile) 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } &&
2692          { ac_try='test -z "$ac_c_werror_flag"
2693                          || test ! -s conftest.err'
2694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; } &&
2699          { ac_try='test -s conftest.$ac_objext'
2700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701   (eval $ac_try) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }; }; then
2705   ac_cv_prog_cc_g=yes
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 ac_cv_prog_cc_g=no
2711 fi
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713 fi
2714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716 if test "$ac_test_CFLAGS" = set; then
2717   CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719   if test "$GCC" = yes; then
2720     CFLAGS="-g -O2"
2721   else
2722     CFLAGS="-g"
2723   fi
2724 else
2725   if test "$GCC" = yes; then
2726     CFLAGS="-O2"
2727   else
2728     CFLAGS=
2729   fi
2730 fi
2731 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   ac_cv_prog_cc_stdc=no
2737 ac_save_CC=$CC
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744 #include <stdarg.h>
2745 #include <stdio.h>
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2752      char **p;
2753      int i;
2754 {
2755   return p[i];
2756 }
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2758 {
2759   char *s;
2760   va_list v;
2761   va_start (v,p);
2762   s = g (p, va_arg (v,int));
2763   va_end (v);
2764   return s;
2765 }
2766
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2768    function prototypes and stuff, but not '\xHH' hex character constants.
2769    These don't provoke an error unfortunately, instead are silently treated
2770    as 'x'.  The following induces an error, until -std1 is added to get
2771    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2772    array size at least.  It's necessary to write '\x00'==0 to get something
2773    that's true only with -std1.  */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
2776 int test (int i, double x);
2777 struct s1 {int (*f) (int a);};
2778 struct s2 {int (*f) (double a);};
2779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780 int argc;
2781 char **argv;
2782 int
2783 main ()
2784 {
2785 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 # Don't try gcc -ansi; that turns off useful extensions and
2791 # breaks some systems' header files.
2792 # AIX                   -qlanglvl=ansi
2793 # Ultrix and OSF/1      -std1
2794 # HP-UX 10.20 and later -Ae
2795 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2796 # SVR4                  -Xc -D__EXTENSIONS__
2797 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 do
2799   CC="$ac_save_CC $ac_arg"
2800   rm -f conftest.$ac_objext
2801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802   (eval $ac_compile) 2>conftest.er1
2803   ac_status=$?
2804   grep -v '^ *+' conftest.er1 >conftest.err
2805   rm -f conftest.er1
2806   cat conftest.err >&5
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); } &&
2809          { ac_try='test -z "$ac_c_werror_flag"
2810                          || test ! -s conftest.err'
2811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812   (eval $ac_try) 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; } &&
2816          { ac_try='test -s conftest.$ac_objext'
2817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); }; }; then
2822   ac_cv_prog_cc_stdc=$ac_arg
2823 break
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 fi
2829 rm -f conftest.err conftest.$ac_objext
2830 done
2831 rm -f conftest.$ac_ext conftest.$ac_objext
2832 CC=$ac_save_CC
2833
2834 fi
2835
2836 case "x$ac_cv_prog_cc_stdc" in
2837   x|xno)
2838     echo "$as_me:$LINENO: result: none needed" >&5
2839 echo "${ECHO_T}none needed" >&6 ;;
2840   *)
2841     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843     CC="$CC $ac_cv_prog_cc_stdc" ;;
2844 esac
2845
2846 # Some people use a C++ compiler to compile C.  Since we use `exit',
2847 # in C++ we need to declare it.  In case someone uses the same compiler
2848 # for both compiling C and C++ we need to have the C++ compiler decide
2849 # the declaration of exit, since it's the most demanding environment.
2850 cat >conftest.$ac_ext <<_ACEOF
2851 #ifndef __cplusplus
2852   choke me
2853 #endif
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   (eval $ac_compile) 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } &&
2864          { ac_try='test -z "$ac_c_werror_flag"
2865                          || test ! -s conftest.err'
2866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867   (eval $ac_try) 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; } &&
2871          { ac_try='test -s conftest.$ac_objext'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877   for ac_declaration in \
2878    '' \
2879    'extern "C" void std::exit (int) throw (); using std::exit;' \
2880    'extern "C" void std::exit (int); using std::exit;' \
2881    'extern "C" void exit (int) throw ();' \
2882    'extern "C" void exit (int);' \
2883    'void exit (int);'
2884 do
2885   cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891 $ac_declaration
2892 #include <stdlib.h>
2893 int
2894 main ()
2895 {
2896 exit (42);
2897   ;
2898   return 0;
2899 }
2900 _ACEOF
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903   (eval $ac_compile) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } &&
2910          { ac_try='test -z "$ac_c_werror_flag"
2911                          || test ! -s conftest.err'
2912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913   (eval $ac_try) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928 continue
2929 fi
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 $ac_declaration
2938 int
2939 main ()
2940 {
2941 exit (42);
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948   (eval $ac_compile) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -z "$ac_c_werror_flag"
2956                          || test ! -s conftest.err'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; } &&
2962          { ac_try='test -s conftest.$ac_objext'
2963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964   (eval $ac_try) 2>&5
2965   ac_status=$?
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }; }; then
2968   break
2969 else
2970   echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 fi
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 done
2976 rm -f conftest*
2977 if test -n "$ac_declaration"; then
2978   echo '#ifdef __cplusplus' >>confdefs.h
2979   echo $ac_declaration      >>confdefs.h
2980   echo '#endif'             >>confdefs.h
2981 fi
2982
2983 else
2984   echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2986
2987 fi
2988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995 if test "$GCC" != "yes"
2996 then
2997         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2998 echo "$as_me: error: gcc required but not found" >&2;}
2999    { (exit 1); exit 1; }; }
3000 fi
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3007 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3008 # On Suns, sometimes $CPP names a directory.
3009 if test -n "$CPP" && test -d "$CPP"; then
3010   CPP=
3011 fi
3012 if test -z "$CPP"; then
3013   if test "${ac_cv_prog_CPP+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016       # Double quotes because CPP needs to be expanded
3017     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3018     do
3019       ac_preproc_ok=false
3020 for ac_c_preproc_warn_flag in '' yes
3021 do
3022   # Use a header file that comes with gcc, so configuring glibc
3023   # with a fresh cross-compiler works.
3024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025   # <limits.h> exists even on freestanding compilers.
3026   # On the NeXT, cc -E runs the code through the compiler's parser,
3027   # not just through cpp. "Syntax error" is here to catch this case.
3028   cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034 #ifdef __STDC__
3035 # include <limits.h>
3036 #else
3037 # include <assert.h>
3038 #endif
3039                      Syntax error
3040 _ACEOF
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } >/dev/null; then
3049   if test -s conftest.err; then
3050     ac_cpp_err=$ac_c_preproc_warn_flag
3051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052   else
3053     ac_cpp_err=
3054   fi
3055 else
3056   ac_cpp_err=yes
3057 fi
3058 if test -z "$ac_cpp_err"; then
3059   :
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064   # Broken: fails on valid input.
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_ext
3068
3069   # OK, works on sane cases.  Now check whether non-existent headers
3070   # can be detected and how.
3071   cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077 #include <ac_nonexistent.h>
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   # Broken: success on invalid input.
3098 continue
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103   # Passes both tests.
3104 ac_preproc_ok=:
3105 break
3106 fi
3107 rm -f conftest.err conftest.$ac_ext
3108
3109 done
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3113   break
3114 fi
3115
3116     done
3117     ac_cv_prog_CPP=$CPP
3118
3119 fi
3120   CPP=$ac_cv_prog_CPP
3121 else
3122   ac_cv_prog_CPP=$CPP
3123 fi
3124 echo "$as_me:$LINENO: result: $CPP" >&5
3125 echo "${ECHO_T}$CPP" >&6
3126 ac_preproc_ok=false
3127 for ac_c_preproc_warn_flag in '' yes
3128 do
3129   # Use a header file that comes with gcc, so configuring glibc
3130   # with a fresh cross-compiler works.
3131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3132   # <limits.h> exists even on freestanding compilers.
3133   # On the NeXT, cc -E runs the code through the compiler's parser,
3134   # not just through cpp. "Syntax error" is here to catch this case.
3135   cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141 #ifdef __STDC__
3142 # include <limits.h>
3143 #else
3144 # include <assert.h>
3145 #endif
3146                      Syntax error
3147 _ACEOF
3148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3150   ac_status=$?
3151   grep -v '^ *+' conftest.er1 >conftest.err
3152   rm -f conftest.er1
3153   cat conftest.err >&5
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); } >/dev/null; then
3156   if test -s conftest.err; then
3157     ac_cpp_err=$ac_c_preproc_warn_flag
3158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3159   else
3160     ac_cpp_err=
3161   fi
3162 else
3163   ac_cpp_err=yes
3164 fi
3165 if test -z "$ac_cpp_err"; then
3166   :
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171   # Broken: fails on valid input.
3172 continue
3173 fi
3174 rm -f conftest.err conftest.$ac_ext
3175
3176   # OK, works on sane cases.  Now check whether non-existent headers
3177   # can be detected and how.
3178   cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h.  */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h.  */
3184 #include <ac_nonexistent.h>
3185 _ACEOF
3186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } >/dev/null; then
3194   if test -s conftest.err; then
3195     ac_cpp_err=$ac_c_preproc_warn_flag
3196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3197   else
3198     ac_cpp_err=
3199   fi
3200 else
3201   ac_cpp_err=yes
3202 fi
3203 if test -z "$ac_cpp_err"; then
3204   # Broken: success on invalid input.
3205 continue
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210   # Passes both tests.
3211 ac_preproc_ok=:
3212 break
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215
3216 done
3217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218 rm -f conftest.err conftest.$ac_ext
3219 if $ac_preproc_ok; then
3220   :
3221 else
3222   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3225 See \`config.log' for more details." >&2;}
3226    { (exit 1); exit 1; }; }
3227 fi
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235 if test "$GXX" != "yes"
3236 then
3237         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3238 echo "$as_me: error: g++ required but not found" >&2;}
3239    { (exit 1); exit 1; }; }
3240 fi
3241
3242 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3243 if test "$gccmajor" -lt "3"
3244 then
3245         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3246 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3247    { (exit 1); exit 1; }; }
3248 fi
3249
3250  echo "$as_me:$LINENO: checking for GNU make" >&5
3251 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3252 if test "${_cv_gnu_make_command+set}" = set; then
3253   echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255   _cv_gnu_make_command='' ;
3256                 for a in "$MAKE" make gmake gnumake ; do
3257                         if test -z "$a" ; then continue ; fi ;
3258                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3259                                 _cv_gnu_make_command=$a ;
3260                                 break;
3261                         fi
3262                 done ;
3263
3264 fi
3265 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3266 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3267         if test  "x$_cv_gnu_make_command" != "x"  ; then
3268                 ifGNUmake='' ;
3269         else
3270                 ifGNUmake='#' ;
3271                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3272 echo "${ECHO_T}\"Not found\"" >&6;
3273         fi
3274
3275
3276 if test -z "$_cv_gnu_make_command"
3277 then
3278         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3279 echo "$as_me: error: GNU Make required but not found" >&2;}
3280    { (exit 1); exit 1; }; }
3281 fi
3282
3283
3284 echo "$as_me:$LINENO: checking " >&5
3285 echo $ECHO_N "checking ... $ECHO_C" >&6
3286 if test "${ac_cv_has_flex+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   for ac_prog in flex lex
3290 do
3291   # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_prog_LEX+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   if test -n "$LEX"; then
3299   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306   for ac_exec_ext in '' $ac_executable_extensions; do
3307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308     ac_cv_prog_LEX="$ac_prog"
3309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313 done
3314
3315 fi
3316 fi
3317 LEX=$ac_cv_prog_LEX
3318 if test -n "$LEX"; then
3319   echo "$as_me:$LINENO: result: $LEX" >&5
3320 echo "${ECHO_T}$LEX" >&6
3321 else
3322   echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 fi
3325
3326   test -n "$LEX" && break
3327 done
3328 test -n "$LEX" || LEX=":"
3329
3330 if test -z "$LEXLIB"
3331 then
3332   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3333 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3334 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   ac_check_lib_save_LIBS=$LIBS
3338 LIBS="-lfl  $LIBS"
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345
3346 /* Override any gcc2 internal prototype to avoid an error.  */
3347 #ifdef __cplusplus
3348 extern "C"
3349 #endif
3350 /* We use char because int might match the return type of a gcc2
3351    builtin and then its argument prototype would still apply.  */
3352 char yywrap ();
3353 int
3354 main ()
3355 {
3356 yywrap ();
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext conftest$ac_exeext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363   (eval $ac_link) 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } &&
3370          { ac_try='test -z "$ac_c_werror_flag"
3371                          || test ! -s conftest.err'
3372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373   (eval $ac_try) 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; } &&
3377          { ac_try='test -s conftest$ac_exeext'
3378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379   (eval $ac_try) 2>&5
3380   ac_status=$?
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); }; }; then
3383   ac_cv_lib_fl_yywrap=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 ac_cv_lib_fl_yywrap=no
3389 fi
3390 rm -f conftest.err conftest.$ac_objext \
3391       conftest$ac_exeext conftest.$ac_ext
3392 LIBS=$ac_check_lib_save_LIBS
3393 fi
3394 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3395 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3396 if test $ac_cv_lib_fl_yywrap = yes; then
3397   LEXLIB="-lfl"
3398 else
3399   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3400 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3401 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   ac_check_lib_save_LIBS=$LIBS
3405 LIBS="-ll  $LIBS"
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412
3413 /* Override any gcc2 internal prototype to avoid an error.  */
3414 #ifdef __cplusplus
3415 extern "C"
3416 #endif
3417 /* We use char because int might match the return type of a gcc2
3418    builtin and then its argument prototype would still apply.  */
3419 char yywrap ();
3420 int
3421 main ()
3422 {
3423 yywrap ();
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 rm -f conftest.$ac_objext conftest$ac_exeext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3430   (eval $ac_link) 2>conftest.er1
3431   ac_status=$?
3432   grep -v '^ *+' conftest.er1 >conftest.err
3433   rm -f conftest.er1
3434   cat conftest.err >&5
3435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436   (exit $ac_status); } &&
3437          { ac_try='test -z "$ac_c_werror_flag"
3438                          || test ! -s conftest.err'
3439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440   (eval $ac_try) 2>&5
3441   ac_status=$?
3442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443   (exit $ac_status); }; } &&
3444          { ac_try='test -s conftest$ac_exeext'
3445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446   (eval $ac_try) 2>&5
3447   ac_status=$?
3448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449   (exit $ac_status); }; }; then
3450   ac_cv_lib_l_yywrap=yes
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 ac_cv_lib_l_yywrap=no
3456 fi
3457 rm -f conftest.err conftest.$ac_objext \
3458       conftest$ac_exeext conftest.$ac_ext
3459 LIBS=$ac_check_lib_save_LIBS
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3462 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3463 if test $ac_cv_lib_l_yywrap = yes; then
3464   LEXLIB="-ll"
3465 fi
3466
3467 fi
3468
3469 fi
3470
3471 if test "x$LEX" != "x:"; then
3472   echo "$as_me:$LINENO: checking lex output file root" >&5
3473 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3474 if test "${ac_cv_prog_lex_root+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   # The minimal lex program is just a single line: %%.  But some broken lexes
3478 # (Solaris, I think it was) want two %% lines, so accommodate them.
3479 cat >conftest.l <<_ACEOF
3480 %%
3481 %%
3482 _ACEOF
3483 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3484   (eval $LEX conftest.l) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }
3488 if test -f lex.yy.c; then
3489   ac_cv_prog_lex_root=lex.yy
3490 elif test -f lexyy.c; then
3491   ac_cv_prog_lex_root=lexyy
3492 else
3493   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3494 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3495    { (exit 1); exit 1; }; }
3496 fi
3497 fi
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3499 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3500 rm -f conftest.l
3501 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3502
3503 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3504 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3505 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   # POSIX says lex can declare yytext either as a pointer or an array; the
3509 # default is implementation-dependent. Figure out which it is, since
3510 # not all implementations provide the %pointer and %array declarations.
3511 ac_cv_prog_lex_yytext_pointer=no
3512 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3513 ac_save_LIBS=$LIBS
3514 LIBS="$LIBS $LEXLIB"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 `cat $LEX_OUTPUT_ROOT.c`
3517 _ACEOF
3518 rm -f conftest.$ac_objext conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520   (eval $ac_link) 2>conftest.er1
3521   ac_status=$?
3522   grep -v '^ *+' conftest.er1 >conftest.err
3523   rm -f conftest.er1
3524   cat conftest.err >&5
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -z "$ac_c_werror_flag"
3528                          || test ! -s conftest.err'
3529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530   (eval $ac_try) 2>&5
3531   ac_status=$?
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }; } &&
3534          { ac_try='test -s conftest$ac_exeext'
3535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536   (eval $ac_try) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; }; then
3540   ac_cv_prog_lex_yytext_pointer=yes
3541 else
3542   echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 fi
3546 rm -f conftest.err conftest.$ac_objext \
3547       conftest$ac_exeext conftest.$ac_ext
3548 LIBS=$ac_save_LIBS
3549 rm -f "${LEX_OUTPUT_ROOT}.c"
3550
3551 fi
3552 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3553 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3554 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3555
3556 cat >>confdefs.h <<\_ACEOF
3557 #define YYTEXT_POINTER 1
3558 _ACEOF
3559
3560 fi
3561
3562 fi
3563
3564 fi
3565 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3566 echo "${ECHO_T}$ac_cv_has_flex" >&6
3567 if test "$LEX" != "flex"; then
3568   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3569 echo "$as_me: error: flex not found but required" >&2;}
3570    { (exit 1); exit 1; }; }
3571 else
3572   FLEX=flex
3573
3574 fi
3575
3576 echo "$as_me:$LINENO: checking " >&5
3577 echo $ECHO_N "checking ... $ECHO_C" >&6
3578 if test "${ac_cv_has_bison+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   for ac_prog in 'bison -y' byacc
3582 do
3583   # Extract the first word of "$ac_prog", so it can be a program name with args.
3584 set dummy $ac_prog; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_prog_YACC+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   if test -n "$YACC"; then
3591   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3592 else
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH
3595 do
3596   IFS=$as_save_IFS
3597   test -z "$as_dir" && as_dir=.
3598   for ac_exec_ext in '' $ac_executable_extensions; do
3599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600     ac_cv_prog_YACC="$ac_prog"
3601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602     break 2
3603   fi
3604 done
3605 done
3606
3607 fi
3608 fi
3609 YACC=$ac_cv_prog_YACC
3610 if test -n "$YACC"; then
3611   echo "$as_me:$LINENO: result: $YACC" >&5
3612 echo "${ECHO_T}$YACC" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618   test -n "$YACC" && break
3619 done
3620 test -n "$YACC" || YACC="yacc"
3621
3622
3623 fi
3624 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3625 echo "${ECHO_T}$ac_cv_has_bison" >&6
3626 if test "$YACC" != "bison -y"; then
3627   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3628 echo "$as_me: error: bison not found but required" >&2;}
3629    { (exit 1); exit 1; }; }
3630 else
3631   BISON=bison
3632
3633 fi
3634
3635 # Check whether --enable-shared or --disable-shared was given.
3636 if test "${enable_shared+set}" = set; then
3637   enableval="$enable_shared"
3638   p=${PACKAGE-default}
3639     case $enableval in
3640     yes) enable_shared=yes ;;
3641     no) enable_shared=no ;;
3642     *)
3643       enable_shared=no
3644       # Look at the argument we got.  We use all the common list separators.
3645       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646       for pkg in $enableval; do
3647         IFS="$lt_save_ifs"
3648         if test "X$pkg" = "X$p"; then
3649           enable_shared=yes
3650         fi
3651       done
3652       IFS="$lt_save_ifs"
3653       ;;
3654     esac
3655 else
3656   enable_shared=yes
3657 fi;
3658
3659 # Check whether --enable-static or --disable-static was given.
3660 if test "${enable_static+set}" = set; then
3661   enableval="$enable_static"
3662   p=${PACKAGE-default}
3663     case $enableval in
3664     yes) enable_static=yes ;;
3665     no) enable_static=no ;;
3666     *)
3667      enable_static=no
3668       # Look at the argument we got.  We use all the common list separators.
3669       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3670       for pkg in $enableval; do
3671         IFS="$lt_save_ifs"
3672         if test "X$pkg" = "X$p"; then
3673           enable_static=yes
3674         fi
3675       done
3676       IFS="$lt_save_ifs"
3677       ;;
3678     esac
3679 else
3680   enable_static=yes
3681 fi;
3682
3683 # Check whether --enable-fast-install or --disable-fast-install was given.
3684 if test "${enable_fast_install+set}" = set; then
3685   enableval="$enable_fast_install"
3686   p=${PACKAGE-default}
3687     case $enableval in
3688     yes) enable_fast_install=yes ;;
3689     no) enable_fast_install=no ;;
3690     *)
3691       enable_fast_install=no
3692       # Look at the argument we got.  We use all the common list separators.
3693       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3694       for pkg in $enableval; do
3695         IFS="$lt_save_ifs"
3696         if test "X$pkg" = "X$p"; then
3697           enable_fast_install=yes
3698         fi
3699       done
3700       IFS="$lt_save_ifs"
3701       ;;
3702     esac
3703 else
3704   enable_fast_install=yes
3705 fi;
3706
3707 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3708 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3709 if test "${lt_cv_path_SED+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   # Loop through the user's path and test for sed and gsed.
3713 # Then use that list of sed's as ones to test for truncation.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for lt_ac_prog in sed gsed; do
3720     for ac_exec_ext in '' $ac_executable_extensions; do
3721       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3722         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3723       fi
3724     done
3725   done
3726 done
3727 lt_ac_max=0
3728 lt_ac_count=0
3729 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3730 # along with /bin/sed that truncates output.
3731 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3732   test ! -f $lt_ac_sed && break
3733   cat /dev/null > conftest.in
3734   lt_ac_count=0
3735   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3736   # Check for GNU sed and select it if it is found.
3737   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3738     lt_cv_path_SED=$lt_ac_sed
3739     break
3740   fi
3741   while true; do
3742     cat conftest.in conftest.in >conftest.tmp
3743     mv conftest.tmp conftest.in
3744     cp conftest.in conftest.nl
3745     echo >>conftest.nl
3746     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3747     cmp -s conftest.out conftest.nl || break
3748     # 10000 chars as input seems more than enough
3749     test $lt_ac_count -gt 10 && break
3750     lt_ac_count=`expr $lt_ac_count + 1`
3751     if test $lt_ac_count -gt $lt_ac_max; then
3752       lt_ac_max=$lt_ac_count
3753       lt_cv_path_SED=$lt_ac_sed
3754     fi
3755   done
3756 done
3757
3758 fi
3759
3760 SED=$lt_cv_path_SED
3761 echo "$as_me:$LINENO: result: $SED" >&5
3762 echo "${ECHO_T}$SED" >&6
3763
3764 echo "$as_me:$LINENO: checking for egrep" >&5
3765 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3766 if test "${ac_cv_prog_egrep+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3770     then ac_cv_prog_egrep='grep -E'
3771     else ac_cv_prog_egrep='egrep'
3772     fi
3773 fi
3774 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3775 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3776  EGREP=$ac_cv_prog_egrep
3777
3778
3779
3780 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3781 if test "${with_gnu_ld+set}" = set; then
3782   withval="$with_gnu_ld"
3783   test "$withval" = no || with_gnu_ld=yes
3784 else
3785   with_gnu_ld=no
3786 fi;
3787 ac_prog=ld
3788 if test "$GCC" = yes; then
3789   # Check if gcc -print-prog-name=ld gives a path.
3790   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3792   case $host in
3793   *-*-mingw*)
3794     # gcc leaves a trailing carriage return which upsets mingw
3795     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3796   *)
3797     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3798   esac
3799   case $ac_prog in
3800     # Accept absolute paths.
3801     [\\/]* | ?:[\\/]*)
3802       re_direlt='/[^/][^/]*/\.\./'
3803       # Canonicalize the pathname of ld
3804       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3805       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3806         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3807       done
3808       test -z "$LD" && LD="$ac_prog"
3809       ;;
3810   "")
3811     # If it fails, then pretend we aren't using GCC.
3812     ac_prog=ld
3813     ;;
3814   *)
3815     # If it is relative, then search for the first ld in PATH.
3816     with_gnu_ld=unknown
3817     ;;
3818   esac
3819 elif test "$with_gnu_ld" = yes; then
3820   echo "$as_me:$LINENO: checking for GNU ld" >&5
3821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3822 else
3823   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3825 fi
3826 if test "${lt_cv_path_LD+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test -z "$LD"; then
3830   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3831   for ac_dir in $PATH; do
3832     IFS="$lt_save_ifs"
3833     test -z "$ac_dir" && ac_dir=.
3834     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3835       lt_cv_path_LD="$ac_dir/$ac_prog"
3836       # Check to see if the program is GNU ld.  I'd rather use --version,
3837       # but apparently some GNU ld's only accept -v.
3838       # Break only if it was the GNU/non-GNU ld that we prefer.
3839       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840       *GNU* | *'with BFD'*)
3841         test "$with_gnu_ld" != no && break
3842         ;;
3843       *)
3844         test "$with_gnu_ld" != yes && break
3845         ;;
3846       esac
3847     fi
3848   done
3849   IFS="$lt_save_ifs"
3850 else
3851   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3852 fi
3853 fi
3854
3855 LD="$lt_cv_path_LD"
3856 if test -n "$LD"; then
3857   echo "$as_me:$LINENO: result: $LD" >&5
3858 echo "${ECHO_T}$LD" >&6
3859 else
3860   echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3862 fi
3863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3865    { (exit 1); exit 1; }; }
3866 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3872 case `$LD -v 2>&1 </dev/null` in
3873 *GNU* | *'with BFD'*)
3874   lt_cv_prog_gnu_ld=yes
3875   ;;
3876 *)
3877   lt_cv_prog_gnu_ld=no
3878   ;;
3879 esac
3880 fi
3881 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3883 with_gnu_ld=$lt_cv_prog_gnu_ld
3884
3885
3886 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3887 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3888 if test "${lt_cv_ld_reload_flag+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   lt_cv_ld_reload_flag='-r'
3892 fi
3893 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3894 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3895 reload_flag=$lt_cv_ld_reload_flag
3896 case $reload_flag in
3897 "" | " "*) ;;
3898 *) reload_flag=" $reload_flag" ;;
3899 esac
3900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3901 case $host_os in
3902   darwin*)
3903     if test "$GCC" = yes; then
3904       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3905     else
3906       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3907     fi
3908     ;;
3909 esac
3910
3911 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3912 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3913 if test "${lt_cv_path_NM+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if test -n "$NM"; then
3917   # Let the user override the test.
3918   lt_cv_path_NM="$NM"
3919 else
3920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3921   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3922     IFS="$lt_save_ifs"
3923     test -z "$ac_dir" && ac_dir=.
3924     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3925     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3926       # Check to see if the nm accepts a BSD-compat flag.
3927       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3928       #   nm: unknown option "B" ignored
3929       # Tru64's nm complains that /dev/null is an invalid object file
3930       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3931       */dev/null* | *'Invalid file or object type'*)
3932         lt_cv_path_NM="$tmp_nm -B"
3933         break
3934         ;;
3935       *)
3936         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3937         */dev/null*)
3938           lt_cv_path_NM="$tmp_nm -p"
3939           break
3940           ;;
3941         *)
3942           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3943           continue # so that we can try to find one that supports BSD flags
3944           ;;
3945         esac
3946       esac
3947     fi
3948   done
3949   IFS="$lt_save_ifs"
3950   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3951 fi
3952 fi
3953 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954 echo "${ECHO_T}$lt_cv_path_NM" >&6
3955 NM="$lt_cv_path_NM"
3956
3957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3959 LN_S=$as_ln_s
3960 if test "$LN_S" = "ln -s"; then
3961   echo "$as_me:$LINENO: result: yes" >&5
3962 echo "${ECHO_T}yes" >&6
3963 else
3964   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3965 echo "${ECHO_T}no, using $LN_S" >&6
3966 fi
3967
3968 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3969 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3970 if test "${lt_cv_deplibs_check_method+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   lt_cv_file_magic_cmd='$MAGIC_CMD'
3974 lt_cv_file_magic_test_file=
3975 lt_cv_deplibs_check_method='unknown'
3976 # Need to set the preceding variable on all platforms that support
3977 # interlibrary dependencies.
3978 # 'none' -- dependencies not supported.
3979 # `unknown' -- same as none, but documents that we really don't know.
3980 # 'pass_all' -- all dependencies passed with no checks.
3981 # 'test_compile' -- check by making test program.
3982 # 'file_magic [[regex]]' -- check by looking for files in library path
3983 # which responds to the $file_magic_cmd with a given extended regex.
3984 # If you have `file' or equivalent on your system and you're not sure
3985 # whether `pass_all' will *always* work, you probably want this one.
3986
3987 case $host_os in
3988 aix4* | aix5*)
3989   lt_cv_deplibs_check_method=pass_all
3990   ;;
3991
3992 beos*)
3993   lt_cv_deplibs_check_method=pass_all
3994   ;;
3995
3996 bsdi[45]*)
3997   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3998   lt_cv_file_magic_cmd='/usr/bin/file -L'
3999   lt_cv_file_magic_test_file=/shlib/libc.so
4000   ;;
4001
4002 cygwin*)
4003   # func_win32_libid is a shell function defined in ltmain.sh
4004   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4005   lt_cv_file_magic_cmd='func_win32_libid'
4006   ;;
4007
4008 mingw* | pw32*)
4009   # Base MSYS/MinGW do not provide the 'file' command needed by
4010   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4011   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4012   lt_cv_file_magic_cmd='$OBJDUMP -f'
4013   ;;
4014
4015 darwin* | rhapsody*)
4016   lt_cv_deplibs_check_method=pass_all
4017   ;;
4018
4019 freebsd* | kfreebsd*-gnu)
4020   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021     case $host_cpu in
4022     i*86 )
4023       # Not sure whether the presence of OpenBSD here was a mistake.
4024       # Let's accept both of them until this is cleared up.
4025       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026       lt_cv_file_magic_cmd=/usr/bin/file
4027       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028       ;;
4029     esac
4030   else
4031     lt_cv_deplibs_check_method=pass_all
4032   fi
4033   ;;
4034
4035 gnu*)
4036   lt_cv_deplibs_check_method=pass_all
4037   ;;
4038
4039 hpux10.20* | hpux11*)
4040   lt_cv_file_magic_cmd=/usr/bin/file
4041   case "$host_cpu" in
4042   ia64*)
4043     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4044     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4045     ;;
4046   hppa*64*)
4047     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]'
4048     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4049     ;;
4050   *)
4051     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4052     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4053     ;;
4054   esac
4055   ;;
4056
4057 irix5* | irix6* | nonstopux*)
4058   case $LD in
4059   *-32|*"-32 ") libmagic=32-bit;;
4060   *-n32|*"-n32 ") libmagic=N32;;
4061   *-64|*"-64 ") libmagic=64-bit;;
4062   *) libmagic=never-match;;
4063   esac
4064   lt_cv_deplibs_check_method=pass_all
4065   ;;
4066
4067 # This must be Linux ELF.
4068 linux*)
4069   lt_cv_deplibs_check_method=pass_all
4070   ;;
4071
4072 netbsd*)
4073   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4075   else
4076     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4077   fi
4078   ;;
4079
4080 newos6*)
4081   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4082   lt_cv_file_magic_cmd=/usr/bin/file
4083   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084   ;;
4085
4086 nto-qnx*)
4087   lt_cv_deplibs_check_method=unknown
4088   ;;
4089
4090 openbsd*)
4091   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4093   else
4094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4095   fi
4096   ;;
4097
4098 osf3* | osf4* | osf5*)
4099   lt_cv_deplibs_check_method=pass_all
4100   ;;
4101
4102 sco3.2v5*)
4103   lt_cv_deplibs_check_method=pass_all
4104   ;;
4105
4106 solaris*)
4107   lt_cv_deplibs_check_method=pass_all
4108   ;;
4109
4110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111   case $host_vendor in
4112   motorola)
4113     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]'
4114     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115     ;;
4116   ncr)
4117     lt_cv_deplibs_check_method=pass_all
4118     ;;
4119   sequent)
4120     lt_cv_file_magic_cmd='/bin/file'
4121     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122     ;;
4123   sni)
4124     lt_cv_file_magic_cmd='/bin/file'
4125     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126     lt_cv_file_magic_test_file=/lib/libc.so
4127     ;;
4128   siemens)
4129     lt_cv_deplibs_check_method=pass_all
4130     ;;
4131   esac
4132   ;;
4133
4134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4135   lt_cv_deplibs_check_method=pass_all
4136   ;;
4137 esac
4138
4139 fi
4140 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4141 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4142 file_magic_cmd=$lt_cv_file_magic_cmd
4143 deplibs_check_method=$lt_cv_deplibs_check_method
4144 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4145
4146
4147
4148
4149 # If no C compiler was specified, use CC.
4150 LTCC=${LTCC-"$CC"}
4151
4152 # Allow CC to be a program name with arguments.
4153 compiler=$CC
4154
4155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4156 if test "${enable_libtool_lock+set}" = set; then
4157   enableval="$enable_libtool_lock"
4158
4159 fi;
4160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4161
4162 # Some flags need to be propagated to the compiler or linker for good
4163 # libtool support.
4164 case $host in
4165 ia64-*-hpux*)
4166   # Find out which ABI we are using.
4167   echo 'int i;' > conftest.$ac_ext
4168   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169   (eval $ac_compile) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; then
4173     case `/usr/bin/file conftest.$ac_objext` in
4174     *ELF-32*)
4175       HPUX_IA64_MODE="32"
4176       ;;
4177     *ELF-64*)
4178       HPUX_IA64_MODE="64"
4179       ;;
4180     esac
4181   fi
4182   rm -rf conftest*
4183   ;;
4184 *-*-irix6*)
4185   # Find out which ABI we are using.
4186   echo '#line 4186 "configure"' > conftest.$ac_ext
4187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188   (eval $ac_compile) 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; then
4192    if test "$lt_cv_prog_gnu_ld" = yes; then
4193     case `/usr/bin/file conftest.$ac_objext` in
4194     *32-bit*)
4195       LD="${LD-ld} -melf32bsmip"
4196       ;;
4197     *N32*)
4198       LD="${LD-ld} -melf32bmipn32"
4199       ;;
4200     *64-bit*)
4201       LD="${LD-ld} -melf64bmip"
4202       ;;
4203     esac
4204    else
4205     case `/usr/bin/file conftest.$ac_objext` in
4206     *32-bit*)
4207       LD="${LD-ld} -32"
4208       ;;
4209     *N32*)
4210       LD="${LD-ld} -n32"
4211       ;;
4212     *64-bit*)
4213       LD="${LD-ld} -64"
4214       ;;
4215     esac
4216    fi
4217   fi
4218   rm -rf conftest*
4219   ;;
4220
4221 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4222   # Find out which ABI we are using.
4223   echo 'int i;' > conftest.$ac_ext
4224   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225   (eval $ac_compile) 2>&5
4226   ac_status=$?
4227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228   (exit $ac_status); }; then
4229     case "`/usr/bin/file conftest.o`" in
4230     *32-bit*)
4231       case $host in
4232         x86_64-*linux*)
4233           LD="${LD-ld} -m elf_i386"
4234           ;;
4235         ppc64-*linux*|powerpc64-*linux*)
4236           LD="${LD-ld} -m elf32ppclinux"
4237           ;;
4238         s390x-*linux*)
4239           LD="${LD-ld} -m elf_s390"
4240           ;;
4241         sparc64-*linux*)
4242           LD="${LD-ld} -m elf32_sparc"
4243           ;;
4244       esac
4245       ;;
4246     *64-bit*)
4247       case $host in
4248         x86_64-*linux*)
4249           LD="${LD-ld} -m elf_x86_64"
4250           ;;
4251         ppc*-*linux*|powerpc*-*linux*)
4252           LD="${LD-ld} -m elf64ppc"
4253           ;;
4254         s390*-*linux*)
4255           LD="${LD-ld} -m elf64_s390"
4256           ;;
4257         sparc*-*linux*)
4258           LD="${LD-ld} -m elf64_sparc"
4259           ;;
4260       esac
4261       ;;
4262     esac
4263   fi
4264   rm -rf conftest*
4265   ;;
4266
4267 *-*-sco3.2v5*)
4268   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4269   SAVE_CFLAGS="$CFLAGS"
4270   CFLAGS="$CFLAGS -belf"
4271   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4272 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4273 if test "${lt_cv_cc_needs_belf+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282      cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288
4289 _ACEOF
4290 rm -f conftest.$ac_objext conftest$ac_exeext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4292   (eval $ac_link) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest$ac_exeext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   lt_cv_cc_needs_belf=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 lt_cv_cc_needs_belf=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext \
4320       conftest$ac_exeext conftest.$ac_ext
4321      ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 fi
4328 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332     CFLAGS="$SAVE_CFLAGS"
4333   fi
4334   ;;
4335
4336 esac
4337
4338 need_locks="$enable_libtool_lock"
4339
4340
4341
4342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344 if test "${ac_cv_header_stdc+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353 #include <stdlib.h>
4354 #include <stdarg.h>
4355 #include <string.h>
4356 #include <float.h>
4357
4358 int
4359 main ()
4360 {
4361
4362   ;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest.$ac_objext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>conftest.er1
4369   ac_status=$?
4370   grep -v '^ *+' conftest.er1 >conftest.err
4371   rm -f conftest.er1
4372   cat conftest.err >&5
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); } &&
4375          { ac_try='test -z "$ac_c_werror_flag"
4376                          || test ! -s conftest.err'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; } &&
4382          { ac_try='test -s conftest.$ac_objext'
4383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384   (eval $ac_try) 2>&5
4385   ac_status=$?
4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   ac_cv_header_stdc=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 ac_cv_header_stdc=no
4394 fi
4395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4396
4397 if test $ac_cv_header_stdc = yes; then
4398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <string.h>
4406
4407 _ACEOF
4408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409   $EGREP "memchr" >/dev/null 2>&1; then
4410   :
4411 else
4412   ac_cv_header_stdc=no
4413 fi
4414 rm -f conftest*
4415
4416 fi
4417
4418 if test $ac_cv_header_stdc = yes; then
4419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #include <stdlib.h>
4427
4428 _ACEOF
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430   $EGREP "free" >/dev/null 2>&1; then
4431   :
4432 else
4433   ac_cv_header_stdc=no
4434 fi
4435 rm -f conftest*
4436
4437 fi
4438
4439 if test $ac_cv_header_stdc = yes; then
4440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441   if test "$cross_compiling" = yes; then
4442   :
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 #include <ctype.h>
4451 #if ((' ' & 0x0FF) == 0x020)
4452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454 #else
4455 # define ISLOWER(c) \
4456                    (('a' <= (c) && (c) <= 'i') \
4457                      || ('j' <= (c) && (c) <= 'r') \
4458                      || ('s' <= (c) && (c) <= 'z'))
4459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460 #endif
4461
4462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463 int
4464 main ()
4465 {
4466   int i;
4467   for (i = 0; i < 256; i++)
4468     if (XOR (islower (i), ISLOWER (i))
4469         || toupper (i) != TOUPPER (i))
4470       exit(2);
4471   exit (0);
4472 }
4473 _ACEOF
4474 rm -f conftest$ac_exeext
4475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476   (eval $ac_link) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481   (eval $ac_try) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); }; }; then
4485   :
4486 else
4487   echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ( exit $ac_status )
4492 ac_cv_header_stdc=no
4493 fi
4494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4495 fi
4496 fi
4497 fi
4498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500 if test $ac_cv_header_stdc = yes; then
4501
4502 cat >>confdefs.h <<\_ACEOF
4503 #define STDC_HEADERS 1
4504 _ACEOF
4505
4506 fi
4507
4508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4519                   inttypes.h stdint.h unistd.h
4520 do
4521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522 echo "$as_me:$LINENO: checking for $ac_header" >&5
4523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h.  */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h.  */
4533 $ac_includes_default
4534
4535 #include <$ac_header>
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -z "$ac_c_werror_flag"
4547                          || test ! -s conftest.err'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; } &&
4553          { ac_try='test -s conftest.$ac_objext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   eval "$as_ac_Header=yes"
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 eval "$as_ac_Header=no"
4565 fi
4566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567 fi
4568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571   cat >>confdefs.h <<_ACEOF
4572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573 _ACEOF
4574
4575 fi
4576
4577 done
4578
4579
4580
4581 for ac_header in dlfcn.h
4582 do
4583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 fi
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 else
4593   # Is the header compilable?
4594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h.  */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h.  */
4602 $ac_includes_default
4603 #include <$ac_header>
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607   (eval $ac_compile) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_header_compiler=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_header_compiler=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636 echo "${ECHO_T}$ac_header_compiler" >&6
4637
4638 # Is the header present?
4639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 #include <$ac_header>
4648 _ACEOF
4649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651   ac_status=$?
4652   grep -v '^ *+' conftest.er1 >conftest.err
4653   rm -f conftest.er1
4654   cat conftest.err >&5
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); } >/dev/null; then
4657   if test -s conftest.err; then
4658     ac_cpp_err=$ac_c_preproc_warn_flag
4659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4660   else
4661     ac_cpp_err=
4662   fi
4663 else
4664   ac_cpp_err=yes
4665 fi
4666 if test -z "$ac_cpp_err"; then
4667   ac_header_preproc=yes
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672   ac_header_preproc=no
4673 fi
4674 rm -f conftest.err conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676 echo "${ECHO_T}$ac_header_preproc" >&6
4677
4678 # So?  What about this header?
4679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4680   yes:no: )
4681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685     ac_header_preproc=yes
4686     ;;
4687   no:yes:* )
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4700     (
4701       cat <<\_ASBOX
4702 ## ----------------------------------- ##
4703 ## Report this to llvmbugs@cs.uiuc.edu ##
4704 ## ----------------------------------- ##
4705 _ASBOX
4706     ) |
4707       sed "s/^/$as_me: WARNING:     /" >&2
4708     ;;
4709 esac
4710 echo "$as_me:$LINENO: checking for $ac_header" >&5
4711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   eval "$as_ac_Header=\$ac_header_preproc"
4716 fi
4717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719
4720 fi
4721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722   cat >>confdefs.h <<_ACEOF
4723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 _ACEOF
4725
4726 fi
4727
4728 done
4729
4730
4731
4732 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734     (test "X$CXX" != "Xg++"))) ; then
4735   ac_ext=cc
4736 ac_cpp='$CXXCPP $CPPFLAGS'
4737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742 if test -z "$CXXCPP"; then
4743   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746       # Double quotes because CXXCPP needs to be expanded
4747     for CXXCPP in "$CXX -E" "/lib/cpp"
4748     do
4749       ac_preproc_ok=false
4750 for ac_cxx_preproc_warn_flag in '' yes
4751 do
4752   # Use a header file that comes with gcc, so configuring glibc
4753   # with a fresh cross-compiler works.
4754   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755   # <limits.h> exists even on freestanding compilers.
4756   # On the NeXT, cc -E runs the code through the compiler's parser,
4757   # not just through cpp. "Syntax error" is here to catch this case.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #ifdef __STDC__
4765 # include <limits.h>
4766 #else
4767 # include <assert.h>
4768 #endif
4769                      Syntax error
4770 _ACEOF
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_cxx_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   :
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794   # Broken: fails on valid input.
4795 continue
4796 fi
4797 rm -f conftest.err conftest.$ac_ext
4798
4799   # OK, works on sane cases.  Now check whether non-existent headers
4800   # can be detected and how.
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 #include <ac_nonexistent.h>
4808 _ACEOF
4809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811   ac_status=$?
4812   grep -v '^ *+' conftest.er1 >conftest.err
4813   rm -f conftest.er1
4814   cat conftest.err >&5
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); } >/dev/null; then
4817   if test -s conftest.err; then
4818     ac_cpp_err=$ac_cxx_preproc_warn_flag
4819     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4820   else
4821     ac_cpp_err=
4822   fi
4823 else
4824   ac_cpp_err=yes
4825 fi
4826 if test -z "$ac_cpp_err"; then
4827   # Broken: success on invalid input.
4828 continue
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833   # Passes both tests.
4834 ac_preproc_ok=:
4835 break
4836 fi
4837 rm -f conftest.err conftest.$ac_ext
4838
4839 done
4840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841 rm -f conftest.err conftest.$ac_ext
4842 if $ac_preproc_ok; then
4843   break
4844 fi
4845
4846     done
4847     ac_cv_prog_CXXCPP=$CXXCPP
4848
4849 fi
4850   CXXCPP=$ac_cv_prog_CXXCPP
4851 else
4852   ac_cv_prog_CXXCPP=$CXXCPP
4853 fi
4854 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855 echo "${ECHO_T}$CXXCPP" >&6
4856 ac_preproc_ok=false
4857 for ac_cxx_preproc_warn_flag in '' yes
4858 do
4859   # Use a header file that comes with gcc, so configuring glibc
4860   # with a fresh cross-compiler works.
4861   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862   # <limits.h> exists even on freestanding compilers.
4863   # On the NeXT, cc -E runs the code through the compiler's parser,
4864   # not just through cpp. "Syntax error" is here to catch this case.
4865   cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 #ifdef __STDC__
4872 # include <limits.h>
4873 #else
4874 # include <assert.h>
4875 #endif
4876                      Syntax error
4877 _ACEOF
4878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } >/dev/null; then
4886   if test -s conftest.err; then
4887     ac_cpp_err=$ac_cxx_preproc_warn_flag
4888     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4889   else
4890     ac_cpp_err=
4891   fi
4892 else
4893   ac_cpp_err=yes
4894 fi
4895 if test -z "$ac_cpp_err"; then
4896   :
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901   # Broken: fails on valid input.
4902 continue
4903 fi
4904 rm -f conftest.err conftest.$ac_ext
4905
4906   # OK, works on sane cases.  Now check whether non-existent headers
4907   # can be detected and how.
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 #include <ac_nonexistent.h>
4915 _ACEOF
4916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null; then
4924   if test -s conftest.err; then
4925     ac_cpp_err=$ac_cxx_preproc_warn_flag
4926     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4927   else
4928     ac_cpp_err=
4929   fi
4930 else
4931   ac_cpp_err=yes
4932 fi
4933 if test -z "$ac_cpp_err"; then
4934   # Broken: success on invalid input.
4935 continue
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940   # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4943 fi
4944 rm -f conftest.err conftest.$ac_ext
4945
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then
4950   :
4951 else
4952   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953 See \`config.log' for more details." >&5
4954 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955 See \`config.log' for more details." >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958
4959 ac_ext=cc
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
4965 fi
4966
4967
4968 ac_ext=f
4969 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972 if test -n "$ac_tool_prefix"; then
4973   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4974   do
4975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979 if test "${ac_cv_prog_F77+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$F77"; then
4983   ac_cv_prog_F77="$F77" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998
4999 fi
5000 fi
5001 F77=$ac_cv_prog_F77
5002 if test -n "$F77"; then
5003   echo "$as_me:$LINENO: result: $F77" >&5
5004 echo "${ECHO_T}$F77" >&6
5005 else
5006   echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6
5008 fi
5009
5010     test -n "$F77" && break
5011   done
5012 fi
5013 if test -z "$F77"; then
5014   ac_ct_F77=$F77
5015   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5016 do
5017   # Extract the first word of "$ac_prog", so it can be a program name with args.
5018 set dummy $ac_prog; ac_word=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   if test -n "$ac_ct_F77"; then
5025   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032   for ac_exec_ext in '' $ac_executable_extensions; do
5033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_prog_ac_ct_F77="$ac_prog"
5035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039 done
5040
5041 fi
5042 fi
5043 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044 if test -n "$ac_ct_F77"; then
5045   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046 echo "${ECHO_T}$ac_ct_F77" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052   test -n "$ac_ct_F77" && break
5053 done
5054
5055   F77=$ac_ct_F77
5056 fi
5057
5058
5059 # Provide some information about the compiler.
5060 echo "$as_me:5060:" \
5061      "checking for Fortran 77 compiler version" >&5
5062 ac_compiler=`set X $ac_compile; echo $2`
5063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064   (eval $ac_compiler --version </dev/null >&5) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069   (eval $ac_compiler -v </dev/null >&5) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074   (eval $ac_compiler -V </dev/null >&5) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }
5078 rm -f a.out
5079
5080 # If we don't use `.F' as extension, the preprocessor is not run on the
5081 # input file.  (Note that this only needs to work for GNU compilers.)
5082 ac_save_ext=$ac_ext
5083 ac_ext=F
5084 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat >conftest.$ac_ext <<_ACEOF
5090       program main
5091 #ifndef __GNUC__
5092        choke me
5093 #endif
5094
5095       end
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>conftest.er1
5100   ac_status=$?
5101   grep -v '^ *+' conftest.er1 >conftest.err
5102   rm -f conftest.er1
5103   cat conftest.err >&5
5104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105   (exit $ac_status); } &&
5106          { ac_try='test -z "$ac_f77_werror_flag"
5107                          || test ! -s conftest.err'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest.$ac_objext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   ac_compiler_gnu=yes
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_compiler_gnu=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5128
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5132 ac_ext=$ac_save_ext
5133 ac_test_FFLAGS=${FFLAGS+set}
5134 ac_save_FFLAGS=$FFLAGS
5135 FFLAGS=
5136 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138 if test "${ac_cv_prog_f77_g+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   FFLAGS=-g
5142 cat >conftest.$ac_ext <<_ACEOF
5143       program main
5144
5145       end
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149   (eval $ac_compile) 2>conftest.er1
5150   ac_status=$?
5151   grep -v '^ *+' conftest.er1 >conftest.err
5152   rm -f conftest.er1
5153   cat conftest.err >&5
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); } &&
5156          { ac_try='test -z "$ac_f77_werror_flag"
5157                          || test ! -s conftest.err'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   ac_cv_prog_f77_g=yes
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 ac_cv_prog_f77_g=no
5175 fi
5176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177
5178 fi
5179 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181 if test "$ac_test_FFLAGS" = set; then
5182   FFLAGS=$ac_save_FFLAGS
5183 elif test $ac_cv_prog_f77_g = yes; then
5184   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5185     FFLAGS="-g -O2"
5186   else
5187     FFLAGS="-g"
5188   fi
5189 else
5190   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5191     FFLAGS="-O2"
5192   else
5193     FFLAGS=
5194   fi
5195 fi
5196
5197 G77=`test $ac_compiler_gnu = yes && echo yes`
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205
5206 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5207
5208 # find the maximum length of command line arguments
5209 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214     i=0
5215   teststring="ABCD"
5216
5217   case $build_os in
5218   msdosdjgpp*)
5219     # On DJGPP, this test can blow up pretty badly due to problems in libc
5220     # (any single argument exceeding 2000 bytes causes a buffer overrun
5221     # during glob expansion).  Even if it were fixed, the result of this
5222     # check would be larger than it should be.
5223     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5224     ;;
5225
5226   gnu*)
5227     # Under GNU Hurd, this test is not required because there is
5228     # no limit to the length of command line arguments.
5229     # Libtool will interpret -1 as no limit whatsoever
5230     lt_cv_sys_max_cmd_len=-1;
5231     ;;
5232
5233   cygwin* | mingw*)
5234     # On Win9x/ME, this test blows up -- it succeeds, but takes
5235     # about 5 minutes as the teststring grows exponentially.
5236     # Worse, since 9x/ME are not pre-emptively multitasking,
5237     # you end up with a "frozen" computer, even though with patience
5238     # the test eventually succeeds (with a max line length of 256k).
5239     # Instead, let's just punt: use the minimum linelength reported by
5240     # all of the supported platforms: 8192 (on NT/2K/XP).
5241     lt_cv_sys_max_cmd_len=8192;
5242     ;;
5243
5244   amigaos*)
5245     # On AmigaOS with pdksh, this test takes hours, literally.
5246     # So we just punt and use a minimum line length of 8192.
5247     lt_cv_sys_max_cmd_len=8192;
5248     ;;
5249
5250   netbsd* | freebsd* | openbsd* | darwin* )
5251     # This has been around since 386BSD, at least.  Likely further.
5252     if test -x /sbin/sysctl; then
5253       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254     elif test -x /usr/sbin/sysctl; then
5255       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256     else
5257       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258     fi
5259     # And add a safety zone
5260     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261     ;;
5262
5263  *)
5264     # If test is not a shell built-in, we'll probably end up computing a
5265     # maximum length that is only half of the actual maximum length, but
5266     # we can't tell.
5267     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269                = "XX$teststring") >/dev/null 2>&1 &&
5270             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5271             lt_cv_sys_max_cmd_len=$new_result &&
5272             test $i != 17 # 1/2 MB should be enough
5273     do
5274       i=`expr $i + 1`
5275       teststring=$teststring$teststring
5276     done
5277     teststring=
5278     # Add a significant safety factor because C++ compilers can tack on massive
5279     # amounts of additional arguments before passing them to the linker.
5280     # It appears as though 1/2 is a usable value.
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282     ;;
5283   esac
5284
5285 fi
5286
5287 if test -n $lt_cv_sys_max_cmd_len ; then
5288   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5290 else
5291   echo "$as_me:$LINENO: result: none" >&5
5292 echo "${ECHO_T}none" >&6
5293 fi
5294
5295
5296
5297
5298 # Check for command to grab the raw symbol name followed by C symbol from nm.
5299 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304
5305 # These are sane defaults that work on at least a few old systems.
5306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5307
5308 # Character class describing NM global symbol codes.
5309 symcode='[BCDEGRST]'
5310
5311 # Regexp to match symbols that can be accessed directly from C.
5312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314 # Transform the above into a raw symbol and a C symbol.
5315 symxfrm='\1 \2\3 \3'
5316
5317 # Transform an extracted symbol line into a proper C declaration
5318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320 # Transform an extracted symbol line into symbol name and symbol address
5321 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'"
5322
5323 # Define system-specific variables.
5324 case $host_os in
5325 aix*)
5326   symcode='[BCDT]'
5327   ;;
5328 cygwin* | mingw* | pw32*)
5329   symcode='[ABCDGISTW]'
5330   ;;
5331 hpux*) # Its linker distinguishes data from code symbols
5332   if test "$host_cpu" = ia64; then
5333     symcode='[ABCDEGRST]'
5334   fi
5335   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336   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'"
5337   ;;
5338 linux*)
5339   if test "$host_cpu" = ia64; then
5340     symcode='[ABCDGIRSTW]'
5341     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342     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'"
5343   fi
5344   ;;
5345 irix* | nonstopux*)
5346   symcode='[BCDEGRST]'
5347   ;;
5348 osf*)
5349   symcode='[BCDEGQRST]'
5350   ;;
5351 solaris* | sysv5*)
5352   symcode='[BDRT]'
5353   ;;
5354 sysv4)
5355   symcode='[DFNSTU]'
5356   ;;
5357 esac
5358
5359 # Handle CRLF in mingw tool chain
5360 opt_cr=
5361 case $build_os in
5362 mingw*)
5363   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364   ;;
5365 esac
5366
5367 # If we're using GNU nm, then use its standard symbol codes.
5368 case `$NM -V 2>&1` in
5369 *GNU* | *'with BFD'*)
5370   symcode='[ABCDGIRSTW]' ;;
5371 esac
5372
5373 # Try without a prefix undercore, then with it.
5374 for ac_symprfx in "" "_"; do
5375
5376   # Write the raw and C identifiers.
5377   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5378
5379   # Check to see that the pipe works correctly.
5380   pipe_works=no
5381
5382   rm -f conftest*
5383   cat > conftest.$ac_ext <<EOF
5384 #ifdef __cplusplus
5385 extern "C" {
5386 #endif
5387 char nm_test_var;
5388 void nm_test_func(){}
5389 #ifdef __cplusplus
5390 }
5391 #endif
5392 int main(){nm_test_var='a';nm_test_func();return(0);}
5393 EOF
5394
5395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396   (eval $ac_compile) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; then
5400     # Now try to grab the symbols.
5401     nlist=conftest.nm
5402     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } && test -s "$nlist"; then
5407       # Try sorting and uniquifying the output.
5408       if sort "$nlist" | uniq > "$nlist"T; then
5409         mv -f "$nlist"T "$nlist"
5410       else
5411         rm -f "$nlist"T
5412       fi
5413
5414       # Make sure that we snagged all the symbols we need.
5415       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417           cat <<EOF > conftest.$ac_ext
5418 #ifdef __cplusplus
5419 extern "C" {
5420 #endif
5421
5422 EOF
5423           # Now generate the symbol file.
5424           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5425
5426           cat <<EOF >> conftest.$ac_ext
5427 #if defined (__STDC__) && __STDC__
5428 # define lt_ptr_t void *
5429 #else
5430 # define lt_ptr_t char *
5431 # define const
5432 #endif
5433
5434 /* The mapping between symbol names and symbols. */
5435 const struct {
5436   const char *name;
5437   lt_ptr_t address;
5438 }
5439 lt_preloaded_symbols[] =
5440 {
5441 EOF
5442           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443           cat <<\EOF >> conftest.$ac_ext
5444   {0, (lt_ptr_t) 0}
5445 };
5446
5447 #ifdef __cplusplus
5448 }
5449 #endif
5450 EOF
5451           # Now try linking the two files.
5452           mv conftest.$ac_objext conftstm.$ac_objext
5453           lt_save_LIBS="$LIBS"
5454           lt_save_CFLAGS="$CFLAGS"
5455           LIBS="conftstm.$ac_objext"
5456           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5462             pipe_works=yes
5463           fi
5464           LIBS="$lt_save_LIBS"
5465           CFLAGS="$lt_save_CFLAGS"
5466         else
5467           echo "cannot find nm_test_func in $nlist" >&5
5468         fi
5469       else
5470         echo "cannot find nm_test_var in $nlist" >&5
5471       fi
5472     else
5473       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5474     fi
5475   else
5476     echo "$progname: failed program was:" >&5
5477     cat conftest.$ac_ext >&5
5478   fi
5479   rm -f conftest* conftst*
5480
5481   # Do not use the global_symbol_pipe unless it works.
5482   if test "$pipe_works" = yes; then
5483     break
5484   else
5485     lt_cv_sys_global_symbol_pipe=
5486   fi
5487 done
5488
5489 fi
5490
5491 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492   lt_cv_sys_global_symbol_to_cdecl=
5493 fi
5494 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495   echo "$as_me:$LINENO: result: failed" >&5
5496 echo "${ECHO_T}failed" >&6
5497 else
5498   echo "$as_me:$LINENO: result: ok" >&5
5499 echo "${ECHO_T}ok" >&6
5500 fi
5501
5502 echo "$as_me:$LINENO: checking for objdir" >&5
5503 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504 if test "${lt_cv_objdir+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   rm -f .libs 2>/dev/null
5508 mkdir .libs 2>/dev/null
5509 if test -d .libs; then
5510   lt_cv_objdir=.libs
5511 else
5512   # MS-DOS does not allow filenames that begin with a dot.
5513   lt_cv_objdir=_libs
5514 fi
5515 rmdir .libs 2>/dev/null
5516 fi
5517 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518 echo "${ECHO_T}$lt_cv_objdir" >&6
5519 objdir=$lt_cv_objdir
5520
5521
5522
5523
5524
5525 case $host_os in
5526 aix3*)
5527   # AIX sometimes has problems with the GCC collect2 program.  For some
5528   # reason, if we set the COLLECT_NAMES environment variable, the problems
5529   # vanish in a puff of smoke.
5530   if test "X${COLLECT_NAMES+set}" != Xset; then
5531     COLLECT_NAMES=
5532     export COLLECT_NAMES
5533   fi
5534   ;;
5535 esac
5536
5537 # Sed substitution that helps us do robust quoting.  It backslashifies
5538 # metacharacters that are still active within double-quoted strings.
5539 Xsed='sed -e s/^X//'
5540 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5541
5542 # Same as above, but do not quote variable references.
5543 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5544
5545 # Sed substitution to delay expansion of an escaped shell variable in a
5546 # double_quote_subst'ed string.
5547 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549 # Sed substitution to avoid accidental globbing in evaled expressions
5550 no_glob_subst='s/\*/\\\*/g'
5551
5552 # Constants:
5553 rm="rm -f"
5554
5555 # Global variables:
5556 default_ofile=mklib
5557 can_build_shared=yes
5558
5559 # All known linkers require a `.a' archive for static linking (except M$VC,
5560 # which needs '.lib').
5561 libext=a
5562 ltmain="$ac_aux_dir/ltmain.sh"
5563 ofile="$default_ofile"
5564 with_gnu_ld="$lt_cv_prog_gnu_ld"
5565
5566 if test -n "$ac_tool_prefix"; then
5567   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568 set dummy ${ac_tool_prefix}ar; ac_word=$2
5569 echo "$as_me:$LINENO: checking for $ac_word" >&5
5570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571 if test "${ac_cv_prog_AR+set}" = set; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   if test -n "$AR"; then
5575   ac_cv_prog_AR="$AR" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582   for ac_exec_ext in '' $ac_executable_extensions; do
5583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_AR="${ac_tool_prefix}ar"
5585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589 done
5590
5591 fi
5592 fi
5593 AR=$ac_cv_prog_AR
5594 if test -n "$AR"; then
5595   echo "$as_me:$LINENO: result: $AR" >&5
5596 echo "${ECHO_T}$AR" >&6
5597 else
5598   echo "$as_me:$LINENO: result: no" >&5
5599 echo "${ECHO_T}no" >&6
5600 fi
5601
5602 fi
5603 if test -z "$ac_cv_prog_AR"; then
5604   ac_ct_AR=$AR
5605   # Extract the first word of "ar", so it can be a program name with args.
5606 set dummy ar; ac_word=$2
5607 echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$ac_ct_AR"; then
5613   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620   for ac_exec_ext in '' $ac_executable_extensions; do
5621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_ac_ct_AR="ar"
5623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627 done
5628
5629   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5630 fi
5631 fi
5632 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633 if test -n "$ac_ct_AR"; then
5634   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635 echo "${ECHO_T}$ac_ct_AR" >&6
5636 else
5637   echo "$as_me:$LINENO: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5639 fi
5640
5641   AR=$ac_ct_AR
5642 else
5643   AR="$ac_cv_prog_AR"
5644 fi
5645
5646 if test -n "$ac_tool_prefix"; then
5647   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   if test -n "$RANLIB"; then
5655   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662   for ac_exec_ext in '' $ac_executable_extensions; do
5663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669 done
5670
5671 fi
5672 fi
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675   echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5677 else
5678   echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5680 fi
5681
5682 fi
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684   ac_ct_RANLIB=$RANLIB
5685   # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690   echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692   if test -n "$ac_ct_RANLIB"; then
5693   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_exec_ext in '' $ac_executable_extensions; do
5701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_ac_ct_RANLIB="ranlib"
5703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707 done
5708
5709   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5710 fi
5711 fi
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716 else
5717   echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 fi
5720
5721   RANLIB=$ac_ct_RANLIB
5722 else
5723   RANLIB="$ac_cv_prog_RANLIB"
5724 fi
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732   echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734   if test -n "$STRIP"; then
5735   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742   for ac_exec_ext in '' $ac_executable_extensions; do
5743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749 done
5750
5751 fi
5752 fi
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755   echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5757 else
5758   echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760 fi
5761
5762 fi
5763 if test -z "$ac_cv_prog_STRIP"; then
5764   ac_ct_STRIP=$STRIP
5765   # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   if test -n "$ac_ct_STRIP"; then
5773   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780   for ac_exec_ext in '' $ac_executable_extensions; do
5781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782     ac_cv_prog_ac_ct_STRIP="strip"
5783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787 done
5788
5789   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790 fi
5791 fi
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801   STRIP=$ac_ct_STRIP
5802 else
5803   STRIP="$ac_cv_prog_STRIP"
5804 fi
5805
5806
5807 old_CC="$CC"
5808 old_CFLAGS="$CFLAGS"
5809
5810 # Set sane defaults for various variables
5811 test -z "$AR" && AR=ar
5812 test -z "$AR_FLAGS" && AR_FLAGS=cru
5813 test -z "$AS" && AS=as
5814 test -z "$CC" && CC=cc
5815 test -z "$LTCC" && LTCC=$CC
5816 test -z "$DLLTOOL" && DLLTOOL=dlltool
5817 test -z "$LD" && LD=ld
5818 test -z "$LN_S" && LN_S="ln -s"
5819 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820 test -z "$NM" && NM=nm
5821 test -z "$SED" && SED=sed
5822 test -z "$OBJDUMP" && OBJDUMP=objdump
5823 test -z "$RANLIB" && RANLIB=:
5824 test -z "$STRIP" && STRIP=:
5825 test -z "$ac_objext" && ac_objext=o
5826
5827 # Determine commands to create old-style static archives.
5828 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829 old_postinstall_cmds='chmod 644 $oldlib'
5830 old_postuninstall_cmds=
5831
5832 if test -n "$RANLIB"; then
5833   case $host_os in
5834   openbsd*)
5835     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5836     ;;
5837   *)
5838     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5839     ;;
5840   esac
5841   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5842 fi
5843
5844 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5845
5846 # Only perform the check for file, if the check method requires it
5847 case $deplibs_check_method in
5848 file_magic*)
5849   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   case $MAGIC_CMD in
5856 [\\/*] |  ?:[\\/]*)
5857   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5858   ;;
5859 *)
5860   lt_save_MAGIC_CMD="$MAGIC_CMD"
5861   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863   for ac_dir in $ac_dummy; do
5864     IFS="$lt_save_ifs"
5865     test -z "$ac_dir" && ac_dir=.
5866     if test -f $ac_dir/${ac_tool_prefix}file; then
5867       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868       if test -n "$file_magic_test_file"; then
5869         case $deplibs_check_method in
5870         "file_magic "*)
5871           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874             $EGREP "$file_magic_regex" > /dev/null; then
5875             :
5876           else
5877             cat <<EOF 1>&2
5878
5879 *** Warning: the command libtool uses to detect shared libraries,
5880 *** $file_magic_cmd, produces output that libtool cannot recognize.
5881 *** The result is that libtool may fail to recognize shared libraries
5882 *** as such.  This will affect the creation of libtool libraries that
5883 *** depend on shared libraries, but programs linked with such libtool
5884 *** libraries will work regardless of this problem.  Nevertheless, you
5885 *** may want to report the problem to your system manager and/or to
5886 *** bug-libtool@gnu.org
5887
5888 EOF
5889           fi ;;
5890         esac
5891       fi
5892       break
5893     fi
5894   done
5895   IFS="$lt_save_ifs"
5896   MAGIC_CMD="$lt_save_MAGIC_CMD"
5897   ;;
5898 esac
5899 fi
5900
5901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902 if test -n "$MAGIC_CMD"; then
5903   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904 echo "${ECHO_T}$MAGIC_CMD" >&6
5905 else
5906   echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 if test -z "$lt_cv_path_MAGIC_CMD"; then
5911   if test -n "$ac_tool_prefix"; then
5912     echo "$as_me:$LINENO: checking for file" >&5
5913 echo $ECHO_N "checking for file... $ECHO_C" >&6
5914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $MAGIC_CMD in
5918 [\\/*] |  ?:[\\/]*)
5919   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920   ;;
5921 *)
5922   lt_save_MAGIC_CMD="$MAGIC_CMD"
5923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925   for ac_dir in $ac_dummy; do
5926     IFS="$lt_save_ifs"
5927     test -z "$ac_dir" && ac_dir=.
5928     if test -f $ac_dir/file; then
5929       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930       if test -n "$file_magic_test_file"; then
5931         case $deplibs_check_method in
5932         "file_magic "*)
5933           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936             $EGREP "$file_magic_regex" > /dev/null; then
5937             :
5938           else
5939             cat <<EOF 1>&2
5940
5941 *** Warning: the command libtool uses to detect shared libraries,
5942 *** $file_magic_cmd, produces output that libtool cannot recognize.
5943 *** The result is that libtool may fail to recognize shared libraries
5944 *** as such.  This will affect the creation of libtool libraries that
5945 *** depend on shared libraries, but programs linked with such libtool
5946 *** libraries will work regardless of this problem.  Nevertheless, you
5947 *** may want to report the problem to your system manager and/or to
5948 *** bug-libtool@gnu.org
5949
5950 EOF
5951           fi ;;
5952         esac
5953       fi
5954       break
5955     fi
5956   done
5957   IFS="$lt_save_ifs"
5958   MAGIC_CMD="$lt_save_MAGIC_CMD"
5959   ;;
5960 esac
5961 fi
5962
5963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964 if test -n "$MAGIC_CMD"; then
5965   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966 echo "${ECHO_T}$MAGIC_CMD" >&6
5967 else
5968   echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 fi
5971
5972   else
5973     MAGIC_CMD=:
5974   fi
5975 fi
5976
5977   fi
5978   ;;
5979 esac
5980
5981 enable_dlopen=no
5982 enable_win32_dll=no
5983
5984 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985 if test "${enable_libtool_lock+set}" = set; then
5986   enableval="$enable_libtool_lock"
5987
5988 fi;
5989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990
5991
5992 # Check whether --with-pic or --without-pic was given.
5993 if test "${with_pic+set}" = set; then
5994   withval="$with_pic"
5995   pic_mode="$withval"
5996 else
5997   pic_mode=default
5998 fi;
5999 test -z "$pic_mode" && pic_mode=default
6000
6001 # Use C for the default configuration in the libtool script
6002 tagname=
6003 lt_save_CC="$CC"
6004 ac_ext=c
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011 # Source file extension for C test sources.
6012 ac_ext=c
6013
6014 # Object file extension for compiled C test sources.
6015 objext=o
6016 objext=$objext
6017
6018 # Code to be used in simple compile tests
6019 lt_simple_compile_test_code="int some_variable = 0;\n"
6020
6021 # Code to be used in simple link tests
6022 lt_simple_link_test_code='int main(){return(0);}\n'
6023
6024
6025 # If no C compiler was specified, use CC.
6026 LTCC=${LTCC-"$CC"}
6027
6028 # Allow CC to be a program name with arguments.
6029 compiler=$CC
6030
6031
6032 #
6033 # Check for any special shared library compilation flags.
6034 #
6035 lt_prog_cc_shlib=
6036 if test "$GCC" = no; then
6037   case $host_os in
6038   sco3.2v5*)
6039     lt_prog_cc_shlib='-belf'
6040     ;;
6041   esac
6042 fi
6043 if test -n "$lt_prog_cc_shlib"; then
6044   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6047   else
6048     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050     lt_cv_prog_cc_can_build_shared=no
6051   fi
6052 fi
6053
6054
6055 #
6056 # Check to make sure the static flag actually works.
6057 #
6058 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060 if test "${lt_prog_compiler_static_works+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   lt_prog_compiler_static_works=no
6064    save_LDFLAGS="$LDFLAGS"
6065    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068      # The compiler can only warn and ignore the option if not recognized
6069      # So say no if there are warnings
6070      if test -s conftest.err; then
6071        # Append any errors to the config.log.
6072        cat conftest.err 1>&5
6073      else
6074        lt_prog_compiler_static_works=yes
6075      fi
6076    fi
6077    $rm conftest*
6078    LDFLAGS="$save_LDFLAGS"
6079
6080 fi
6081 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6083
6084 if test x"$lt_prog_compiler_static_works" = xyes; then
6085     :
6086 else
6087     lt_prog_compiler_static=
6088 fi
6089
6090
6091
6092
6093 lt_prog_compiler_no_builtin_flag=
6094
6095 if test "$GCC" = yes; then
6096   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6097
6098
6099 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6100 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104   lt_cv_prog_compiler_rtti_exceptions=no
6105   ac_outfile=conftest.$ac_objext
6106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107    lt_compiler_flag="-fno-rtti -fno-exceptions"
6108    # Insert the option either (1) after the last *FLAGS variable, or
6109    # (2) before a word containing "conftest.", or (3) at the end.
6110    # Note that $ac_compile itself does not contain backslashes and begins
6111    # with a dollar sign (not a hyphen), so the echo should work correctly.
6112    # The option is referenced via a variable to avoid confusing sed.
6113    lt_compile=`echo "$ac_compile" | $SED \
6114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116    -e 's:$: $lt_compiler_flag:'`
6117    (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
6118    (eval "$lt_compile" 2>conftest.err)
6119    ac_status=$?
6120    cat conftest.err >&5
6121    echo "$as_me:6121: \$? = $ac_status" >&5
6122    if (exit $ac_status) && test -s "$ac_outfile"; then
6123      # The compiler can only warn and ignore the option if not recognized
6124      # So say no if there are warnings
6125      if test ! -s conftest.err; then
6126        lt_cv_prog_compiler_rtti_exceptions=yes
6127      fi
6128    fi
6129    $rm conftest*
6130
6131 fi
6132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6134
6135 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137 else
6138     :
6139 fi
6140
6141 fi
6142
6143 lt_prog_compiler_wl=
6144 lt_prog_compiler_pic=
6145 lt_prog_compiler_static=
6146
6147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6149
6150   if test "$GCC" = yes; then
6151     lt_prog_compiler_wl='-Wl,'
6152     lt_prog_compiler_static='-static'
6153
6154     case $host_os in
6155       aix*)
6156       # All AIX code is PIC.
6157       if test "$host_cpu" = ia64; then
6158         # AIX 5 now supports IA64 processor
6159         lt_prog_compiler_static='-Bstatic'
6160       fi
6161       ;;
6162
6163     amigaos*)
6164       # FIXME: we need at least 68020 code to build shared libraries, but
6165       # adding the `-m68020' flag to GCC prevents building anything better,
6166       # like `-m68040'.
6167       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6168       ;;
6169
6170     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6171       # PIC is the default for these OSes.
6172       ;;
6173
6174     mingw* | pw32* | os2*)
6175       # This hack is so that the source file can tell whether it is being
6176       # built for inclusion in a dll (and should export symbols for example).
6177       lt_prog_compiler_pic='-DDLL_EXPORT'
6178       ;;
6179
6180     darwin* | rhapsody*)
6181       # PIC is the default on this platform
6182       # Common symbols not allowed in MH_DYLIB files
6183       lt_prog_compiler_pic='-fno-common'
6184       ;;
6185
6186     msdosdjgpp*)
6187       # Just because we use GCC doesn't mean we suddenly get shared libraries
6188       # on systems that don't support them.
6189       lt_prog_compiler_can_build_shared=no
6190       enable_shared=no
6191       ;;
6192
6193     sysv4*MP*)
6194       if test -d /usr/nec; then
6195         lt_prog_compiler_pic=-Kconform_pic
6196       fi
6197       ;;
6198
6199     hpux*)
6200       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201       # not for PA HP-UX.
6202       case "$host_cpu" in
6203       hppa*64*|ia64*)
6204         # +Z the default
6205         ;;
6206       *)
6207         lt_prog_compiler_pic='-fPIC'
6208         ;;
6209       esac
6210       ;;
6211
6212     *)
6213       lt_prog_compiler_pic='-fPIC'
6214       ;;
6215     esac
6216   else
6217     # PORTME Check for flag to pass linker flags through the system compiler.
6218     case $host_os in
6219     aix*)
6220       lt_prog_compiler_wl='-Wl,'
6221       if test "$host_cpu" = ia64; then
6222         # AIX 5 now supports IA64 processor
6223         lt_prog_compiler_static='-Bstatic'
6224       else
6225         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6226       fi
6227       ;;
6228       darwin*)
6229         # PIC is the default on this platform
6230         # Common symbols not allowed in MH_DYLIB files
6231        case "$cc_basename" in
6232          xlc*)
6233          lt_prog_compiler_pic='-qnocommon'
6234          lt_prog_compiler_wl='-Wl,'
6235          ;;
6236        esac
6237        ;;
6238
6239     mingw* | pw32* | os2*)
6240       # This hack is so that the source file can tell whether it is being
6241       # built for inclusion in a dll (and should export symbols for example).
6242       lt_prog_compiler_pic='-DDLL_EXPORT'
6243       ;;
6244
6245     hpux9* | hpux10* | hpux11*)
6246       lt_prog_compiler_wl='-Wl,'
6247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248       # not for PA HP-UX.
6249       case "$host_cpu" in
6250       hppa*64*|ia64*)
6251         # +Z the default
6252         ;;
6253       *)
6254         lt_prog_compiler_pic='+Z'
6255         ;;
6256       esac
6257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258       lt_prog_compiler_static='${wl}-a ${wl}archive'
6259       ;;
6260
6261     irix5* | irix6* | nonstopux*)
6262       lt_prog_compiler_wl='-Wl,'
6263       # PIC (with -KPIC) is the default.
6264       lt_prog_compiler_static='-non_shared'
6265       ;;
6266
6267     newsos6)
6268       lt_prog_compiler_pic='-KPIC'
6269       lt_prog_compiler_static='-Bstatic'
6270       ;;
6271
6272     linux*)
6273       case $CC in
6274       icc* | ecc*)
6275         lt_prog_compiler_wl='-Wl,'
6276         lt_prog_compiler_pic='-KPIC'
6277         lt_prog_compiler_static='-static'
6278         ;;
6279       ccc*)
6280         lt_prog_compiler_wl='-Wl,'
6281         # All Alpha code is PIC.
6282         lt_prog_compiler_static='-non_shared'
6283         ;;
6284       esac
6285       ;;
6286
6287     osf3* | osf4* | osf5*)
6288       lt_prog_compiler_wl='-Wl,'
6289       # All OSF/1 code is PIC.
6290       lt_prog_compiler_static='-non_shared'
6291       ;;
6292
6293     sco3.2v5*)
6294       lt_prog_compiler_pic='-Kpic'
6295       lt_prog_compiler_static='-dn'
6296       ;;
6297
6298     solaris*)
6299       lt_prog_compiler_wl='-Wl,'
6300       lt_prog_compiler_pic='-KPIC'
6301       lt_prog_compiler_static='-Bstatic'
6302       ;;
6303
6304     sunos4*)
6305       lt_prog_compiler_wl='-Qoption ld '
6306       lt_prog_compiler_pic='-PIC'
6307       lt_prog_compiler_static='-Bstatic'
6308       ;;
6309
6310     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6311       lt_prog_compiler_wl='-Wl,'
6312       lt_prog_compiler_pic='-KPIC'
6313       lt_prog_compiler_static='-Bstatic'
6314       ;;
6315
6316     sysv4*MP*)
6317       if test -d /usr/nec ;then
6318         lt_prog_compiler_pic='-Kconform_pic'
6319         lt_prog_compiler_static='-Bstatic'
6320       fi
6321       ;;
6322
6323     uts4*)
6324       lt_prog_compiler_pic='-pic'
6325       lt_prog_compiler_static='-Bstatic'
6326       ;;
6327
6328     *)
6329       lt_prog_compiler_can_build_shared=no
6330       ;;
6331     esac
6332   fi
6333
6334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6336
6337 #
6338 # Check to make sure the PIC flag actually works.
6339 #
6340 if test -n "$lt_prog_compiler_pic"; then
6341
6342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344 if test "${lt_prog_compiler_pic_works+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   lt_prog_compiler_pic_works=no
6348   ac_outfile=conftest.$ac_objext
6349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351    # Insert the option either (1) after the last *FLAGS variable, or
6352    # (2) before a word containing "conftest.", or (3) at the end.
6353    # Note that $ac_compile itself does not contain backslashes and begins
6354    # with a dollar sign (not a hyphen), so the echo should work correctly.
6355    # The option is referenced via a variable to avoid confusing sed.
6356    lt_compile=`echo "$ac_compile" | $SED \
6357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359    -e 's:$: $lt_compiler_flag:'`
6360    (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361    (eval "$lt_compile" 2>conftest.err)
6362    ac_status=$?
6363    cat conftest.err >&5
6364    echo "$as_me:6364: \$? = $ac_status" >&5
6365    if (exit $ac_status) && test -s "$ac_outfile"; then
6366      # The compiler can only warn and ignore the option if not recognized
6367      # So say no if there are warnings
6368      if test ! -s conftest.err; then
6369        lt_prog_compiler_pic_works=yes
6370      fi
6371    fi
6372    $rm conftest*
6373
6374 fi
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6377
6378 if test x"$lt_prog_compiler_pic_works" = xyes; then
6379     case $lt_prog_compiler_pic in
6380      "" | " "*) ;;
6381      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6382      esac
6383 else
6384     lt_prog_compiler_pic=
6385      lt_prog_compiler_can_build_shared=no
6386 fi
6387
6388 fi
6389 case "$host_os" in
6390   # For platforms which do not support PIC, -DPIC is meaningless:
6391   *djgpp*)
6392     lt_prog_compiler_pic=
6393     ;;
6394   *)
6395     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396     ;;
6397 esac
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   lt_cv_prog_compiler_c_o=no
6405    $rm -r conftest 2>/dev/null
6406    mkdir conftest
6407    cd conftest
6408    mkdir out
6409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6410
6411    lt_compiler_flag="-o out/conftest2.$ac_objext"
6412    # Insert the option either (1) after the last *FLAGS variable, or
6413    # (2) before a word containing "conftest.", or (3) at the end.
6414    # Note that $ac_compile itself does not contain backslashes and begins
6415    # with a dollar sign (not a hyphen), so the echo should work correctly.
6416    lt_compile=`echo "$ac_compile" | $SED \
6417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419    -e 's:$: $lt_compiler_flag:'`
6420    (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421    (eval "$lt_compile" 2>out/conftest.err)
6422    ac_status=$?
6423    cat out/conftest.err >&5
6424    echo "$as_me:6424: \$? = $ac_status" >&5
6425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426    then
6427      # The compiler can only warn and ignore the option if not recognized
6428      # So say no if there are warnings
6429      if test ! -s out/conftest.err; then
6430        lt_cv_prog_compiler_c_o=yes
6431      fi
6432    fi
6433    chmod u+w .
6434    $rm conftest*
6435    # SGI C++ compiler will create directory out/ii_files/ for
6436    # template instantiation
6437    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438    $rm out/* && rmdir out
6439    cd ..
6440    rmdir conftest
6441    $rm conftest*
6442
6443 fi
6444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6446
6447
6448 hard_links="nottested"
6449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6450   # do not overwrite the value of need_locks provided by the user
6451   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6453   hard_links=yes
6454   $rm conftest*
6455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456   touch conftest.a
6457   ln conftest.a conftest.b 2>&5 || hard_links=no
6458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459   echo "$as_me:$LINENO: result: $hard_links" >&5
6460 echo "${ECHO_T}$hard_links" >&6
6461   if test "$hard_links" = no; then
6462     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464     need_locks=warn
6465   fi
6466 else
6467   need_locks=no
6468 fi
6469
6470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6472
6473   runpath_var=
6474   allow_undefined_flag=
6475   enable_shared_with_static_runtimes=no
6476   archive_cmds=
6477   archive_expsym_cmds=
6478   old_archive_From_new_cmds=
6479   old_archive_from_expsyms_cmds=
6480   export_dynamic_flag_spec=
6481   whole_archive_flag_spec=
6482   thread_safe_flag_spec=
6483   hardcode_libdir_flag_spec=
6484   hardcode_libdir_flag_spec_ld=
6485   hardcode_libdir_separator=
6486   hardcode_direct=no
6487   hardcode_minus_L=no
6488   hardcode_shlibpath_var=unsupported
6489   link_all_deplibs=unknown
6490   hardcode_automatic=no
6491   module_cmds=
6492   module_expsym_cmds=
6493   always_export_symbols=no
6494   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495   # include_expsyms should be a list of space-separated symbols to be *always*
6496   # included in the symbol list
6497   include_expsyms=
6498   # exclude_expsyms can be an extended regexp of symbols to exclude
6499   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501   # as well as any symbol that contains `d'.
6502   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504   # platforms (ab)use it in PIC code, but their linkers get confused if
6505   # the symbol is explicitly referenced.  Since portable code cannot
6506   # rely on this symbol name, it's probably fine to never include it in
6507   # preloaded symbol tables.
6508   extract_expsyms_cmds=
6509
6510   case $host_os in
6511   cygwin* | mingw* | pw32*)
6512     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513     # When not using gcc, we currently assume that we are using
6514     # Microsoft Visual C++.
6515     if test "$GCC" != yes; then
6516       with_gnu_ld=no
6517     fi
6518     ;;
6519   openbsd*)
6520     with_gnu_ld=no
6521     ;;
6522   esac
6523
6524   ld_shlibs=yes
6525   if test "$with_gnu_ld" = yes; then
6526     # If archive_cmds runs LD, not CC, wlarc should be empty
6527     wlarc='${wl}'
6528
6529     # See if GNU ld supports shared libraries.
6530     case $host_os in
6531     aix3* | aix4* | aix5*)
6532       # On AIX/PPC, the GNU linker is very broken
6533       if test "$host_cpu" != ia64; then
6534         ld_shlibs=no
6535         cat <<EOF 1>&2
6536
6537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538 *** to be unable to reliably create shared libraries on AIX.
6539 *** Therefore, libtool is disabling shared libraries support.  If you
6540 *** really care for shared libraries, you may want to modify your PATH
6541 *** so that a non-GNU linker is found, and then restart.
6542
6543 EOF
6544       fi
6545       ;;
6546
6547     amigaos*)
6548       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)'
6549       hardcode_libdir_flag_spec='-L$libdir'
6550       hardcode_minus_L=yes
6551
6552       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553       # that the semantics of dynamic libraries on AmigaOS, at least up
6554       # to version 4, is to share data among multiple programs linked
6555       # with the same dynamic library.  Since this doesn't match the
6556       # behavior of shared libraries on other platforms, we can't use
6557       # them.
6558       ld_shlibs=no
6559       ;;
6560
6561     beos*)
6562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563         allow_undefined_flag=unsupported
6564         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565         # support --undefined.  This deserves some investigation.  FIXME
6566         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567       else
6568         ld_shlibs=no
6569       fi
6570       ;;
6571
6572     cygwin* | mingw* | pw32*)
6573       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574       # as there is no search path for DLLs.
6575       hardcode_libdir_flag_spec='-L$libdir'
6576       allow_undefined_flag=unsupported
6577       always_export_symbols=no
6578       enable_shared_with_static_runtimes=yes
6579       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583         # If the export-symbols file already is a .def file (1st line
6584         # is EXPORTS), use it as is; otherwise, prepend...
6585         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586           cp $export_symbols $output_objdir/$soname.def;
6587         else
6588           echo EXPORTS > $output_objdir/$soname.def;
6589           cat $export_symbols >> $output_objdir/$soname.def;
6590         fi~
6591         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6592       else
6593         ld_shlibs=no
6594       fi
6595       ;;
6596
6597     netbsd*)
6598       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6599         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6600         wlarc=
6601       else
6602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6604       fi
6605       ;;
6606
6607     solaris* | sysv5*)
6608       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6609         ld_shlibs=no
6610         cat <<EOF 1>&2
6611
6612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6613 *** create shared libraries on Solaris systems.  Therefore, libtool
6614 *** is disabling shared libraries support.  We urge you to upgrade GNU
6615 *** binutils to release 2.9.1 or newer.  Another option is to modify
6616 *** your PATH or compiler configuration so that the native linker is
6617 *** used, and then restart.
6618
6619 EOF
6620       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6623       else
6624         ld_shlibs=no
6625       fi
6626       ;;
6627
6628     sunos4*)
6629       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6630       wlarc=
6631       hardcode_direct=yes
6632       hardcode_shlibpath_var=no
6633       ;;
6634
6635   linux*)
6636     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6637         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6638         archive_cmds="$tmp_archive_cmds"
6639       supports_anon_versioning=no
6640       case `$LD -v 2>/dev/null` in
6641         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6642         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6643         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6644         *\ 2.11.*) ;; # other 2.11 versions
6645         *) supports_anon_versioning=yes ;;
6646       esac
6647       if test $supports_anon_versioning = yes; then
6648         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6650 $echo "local: *; };" >> $output_objdir/$libname.ver~
6651         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6652       else
6653         archive_expsym_cmds="$tmp_archive_cmds"
6654       fi
6655     else
6656       ld_shlibs=no
6657     fi
6658     ;;
6659
6660     *)
6661       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6662         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6663         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6664       else
6665         ld_shlibs=no
6666       fi
6667       ;;
6668     esac
6669
6670     if test "$ld_shlibs" = yes; then
6671       runpath_var=LD_RUN_PATH
6672       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6673       export_dynamic_flag_spec='${wl}--export-dynamic'
6674       # ancient GNU ld didn't support --whole-archive et. al.
6675       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6676         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6677       else
6678         whole_archive_flag_spec=
6679       fi
6680     fi
6681   else
6682     # PORTME fill in a description of your system's linker (not GNU ld)
6683     case $host_os in
6684     aix3*)
6685       allow_undefined_flag=unsupported
6686       always_export_symbols=yes
6687       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'
6688       # Note: this linker hardcodes the directories in LIBPATH if there
6689       # are no directories specified by -L.
6690       hardcode_minus_L=yes
6691       if test "$GCC" = yes && test -z "$link_static_flag"; then
6692         # Neither direct hardcoding nor static linking is supported with a
6693         # broken collect2.
6694         hardcode_direct=unsupported
6695       fi
6696       ;;
6697
6698     aix4* | aix5*)
6699       if test "$host_cpu" = ia64; then
6700         # On IA64, the linker does run time linking by default, so we don't
6701         # have to do anything special.
6702         aix_use_runtimelinking=no
6703         exp_sym_flag='-Bexport'
6704         no_entry_flag=""
6705       else
6706         # If we're using GNU nm, then we don't want the "-C" option.
6707         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6708         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6709           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'
6710         else
6711           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'
6712         fi
6713         aix_use_runtimelinking=no
6714
6715         # Test if we are trying to use run time linking or normal
6716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6717         # need to do runtime linking.
6718         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6719           for ld_flag in $LDFLAGS; do
6720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6721             aix_use_runtimelinking=yes
6722             break
6723           fi
6724           done
6725         esac
6726
6727         exp_sym_flag='-bexport'
6728         no_entry_flag='-bnoentry'
6729       fi
6730
6731       # When large executables or shared objects are built, AIX ld can
6732       # have problems creating the table of contents.  If linking a library
6733       # or program results in "error TOC overflow" add -mminimal-toc to
6734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6736
6737       archive_cmds=''
6738       hardcode_direct=yes
6739       hardcode_libdir_separator=':'
6740       link_all_deplibs=yes
6741
6742       if test "$GCC" = yes; then
6743         case $host_os in aix4.012|aix4.012.*)
6744         # We only want to do this on AIX 4.2 and lower, the check
6745         # below for broken collect2 doesn't work under 4.3+
6746           collect2name=`${CC} -print-prog-name=collect2`
6747           if test -f "$collect2name" && \
6748            strings "$collect2name" | grep resolve_lib_name >/dev/null
6749           then
6750           # We have reworked collect2
6751           hardcode_direct=yes
6752           else
6753           # We have old collect2
6754           hardcode_direct=unsupported
6755           # It fails to find uninstalled libraries when the uninstalled
6756           # path is not listed in the libpath.  Setting hardcode_minus_L
6757           # to unsupported forces relinking
6758           hardcode_minus_L=yes
6759           hardcode_libdir_flag_spec='-L$libdir'
6760           hardcode_libdir_separator=
6761           fi
6762         esac
6763         shared_flag='-shared'
6764       else
6765         # not using gcc
6766         if test "$host_cpu" = ia64; then
6767         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6768         # chokes on -Wl,-G. The following line is correct:
6769           shared_flag='-G'
6770         else
6771         if test "$aix_use_runtimelinking" = yes; then
6772             shared_flag='${wl}-G'
6773           else
6774             shared_flag='${wl}-bM:SRE'
6775         fi
6776         fi
6777       fi
6778
6779       # It seems that -bexpall does not export symbols beginning with
6780       # underscore (_), so it is better to generate a list of symbols to export.
6781       always_export_symbols=yes
6782       if test "$aix_use_runtimelinking" = yes; then
6783         # Warning - without using the other runtime loading flags (-brtl),
6784         # -berok will link without error, but may produce a broken library.
6785         allow_undefined_flag='-berok'
6786        # Determine the default libpath from the value encoded in an empty executable.
6787        cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest$ac_exeext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824
6825 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6826 }'`
6827 # Check for a 64-bit object if we didn't find anything.
6828 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; }
6829 }'`; fi
6830 else
6831   echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 fi
6835 rm -f conftest.err conftest.$ac_objext \
6836       conftest$ac_exeext conftest.$ac_ext
6837 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6838
6839        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6840         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"
6841        else
6842         if test "$host_cpu" = ia64; then
6843           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6844           allow_undefined_flag="-z nodefs"
6845           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"
6846         else
6847          # Determine the default libpath from the value encoded in an empty executable.
6848          cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854
6855 int
6856 main ()
6857 {
6858
6859   ;
6860   return 0;
6861 }
6862 _ACEOF
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6865   (eval $ac_link) 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } &&
6872          { ac_try='test -z "$ac_c_werror_flag"
6873                          || test ! -s conftest.err'
6874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875   (eval $ac_try) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); }; } &&
6879          { ac_try='test -s conftest$ac_exeext'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; }; then
6885
6886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6887 }'`
6888 # Check for a 64-bit object if we didn't find anything.
6889 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; }
6890 }'`; fi
6891 else
6892   echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 fi
6896 rm -f conftest.err conftest.$ac_objext \
6897       conftest$ac_exeext conftest.$ac_ext
6898 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6899
6900          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6901           # Warning - without using the other run time loading flags,
6902           # -berok will link without error, but may produce a broken library.
6903           no_undefined_flag=' ${wl}-bernotok'
6904           allow_undefined_flag=' ${wl}-berok'
6905           # -bexpall does not export symbols beginning with underscore (_)
6906           always_export_symbols=yes
6907           # Exported symbols can be pulled into shared objects from archives
6908           whole_archive_flag_spec=' '
6909           archive_cmds_need_lc=yes
6910           # This is similar to how AIX traditionally builds it's shared libraries.
6911           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'
6912         fi
6913       fi
6914       ;;
6915
6916     amigaos*)
6917       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)'
6918       hardcode_libdir_flag_spec='-L$libdir'
6919       hardcode_minus_L=yes
6920       # see comment about different semantics on the GNU ld section
6921       ld_shlibs=no
6922       ;;
6923
6924     bsdi[45]*)
6925       export_dynamic_flag_spec=-rdynamic
6926       ;;
6927
6928     cygwin* | mingw* | pw32*)
6929       # When not using gcc, we currently assume that we are using
6930       # Microsoft Visual C++.
6931       # hardcode_libdir_flag_spec is actually meaningless, as there is
6932       # no search path for DLLs.
6933       hardcode_libdir_flag_spec=' '
6934       allow_undefined_flag=unsupported
6935       # Tell ltmain to make .lib files, not .a files.
6936       libext=lib
6937       # Tell ltmain to make .dll files, not .so files.
6938       shrext_cmds=".dll"
6939       # FIXME: Setting linknames here is a bad hack.
6940       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6941       # The linker will automatically build a .lib file if we build a DLL.
6942       old_archive_From_new_cmds='true'
6943       # FIXME: Should let the user specify the lib program.
6944       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6945       fix_srcfile_path='`cygpath -w "$srcfile"`'
6946       enable_shared_with_static_runtimes=yes
6947       ;;
6948
6949     darwin* | rhapsody*)
6950       case "$host_os" in
6951         rhapsody* | darwin1.[012])
6952          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6953          ;;
6954        *) # Darwin 1.3 on
6955          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6956            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6957          else
6958            case ${MACOSX_DEPLOYMENT_TARGET} in
6959              10.[012])
6960                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6961                ;;
6962              10.*)
6963                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6964                ;;
6965            esac
6966          fi
6967          ;;
6968       esac
6969       archive_cmds_need_lc=no
6970       hardcode_direct=no
6971       hardcode_automatic=yes
6972       hardcode_shlibpath_var=unsupported
6973       whole_archive_flag_spec=''
6974       link_all_deplibs=yes
6975     if test "$GCC" = yes ; then
6976         output_verbose_link_cmd='echo'
6977         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6980       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}'
6981       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}'
6982     else
6983       case "$cc_basename" in
6984         xlc*)
6985          output_verbose_link_cmd='echo'
6986          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6987          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6988           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6989          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}'
6990           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}'
6991           ;;
6992        *)
6993          ld_shlibs=no
6994           ;;
6995       esac
6996     fi
6997       ;;
6998
6999     dgux*)
7000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7001       hardcode_libdir_flag_spec='-L$libdir'
7002       hardcode_shlibpath_var=no
7003       ;;
7004
7005     freebsd1*)
7006       ld_shlibs=no
7007       ;;
7008
7009     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7010     # support.  Future versions do this automatically, but an explicit c++rt0.o
7011     # does not break anything, and helps significantly (at the cost of a little
7012     # extra space).
7013     freebsd2.2*)
7014       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7015       hardcode_libdir_flag_spec='-R$libdir'
7016       hardcode_direct=yes
7017       hardcode_shlibpath_var=no
7018       ;;
7019
7020     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7021     freebsd2*)
7022       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7023       hardcode_direct=yes
7024       hardcode_minus_L=yes
7025       hardcode_shlibpath_var=no
7026       ;;
7027
7028     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7029     freebsd* | kfreebsd*-gnu)
7030       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7031       hardcode_libdir_flag_spec='-R$libdir'
7032       hardcode_direct=yes
7033       hardcode_shlibpath_var=no
7034       ;;
7035
7036     hpux9*)
7037       if test "$GCC" = yes; then
7038         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'
7039       else
7040         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'
7041       fi
7042       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7043       hardcode_libdir_separator=:
7044       hardcode_direct=yes
7045
7046       # hardcode_minus_L: Not really in the search PATH,
7047       # but as the default location of the library.
7048       hardcode_minus_L=yes
7049       export_dynamic_flag_spec='${wl}-E'
7050       ;;
7051
7052     hpux10* | hpux11*)
7053       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7054         case "$host_cpu" in
7055         hppa*64*|ia64*)
7056           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7057           ;;
7058         *)
7059           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7060           ;;
7061         esac
7062       else
7063         case "$host_cpu" in
7064         hppa*64*|ia64*)
7065           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7066           ;;
7067         *)
7068           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7069           ;;
7070         esac
7071       fi
7072       if test "$with_gnu_ld" = no; then
7073         case "$host_cpu" in
7074         hppa*64*)
7075           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7076           hardcode_libdir_flag_spec_ld='+b $libdir'
7077           hardcode_libdir_separator=:
7078           hardcode_direct=no
7079           hardcode_shlibpath_var=no
7080           ;;
7081         ia64*)
7082           hardcode_libdir_flag_spec='-L$libdir'
7083           hardcode_direct=no
7084           hardcode_shlibpath_var=no
7085
7086           # hardcode_minus_L: Not really in the search PATH,
7087           # but as the default location of the library.
7088           hardcode_minus_L=yes
7089           ;;
7090         *)
7091           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7092           hardcode_libdir_separator=:
7093           hardcode_direct=yes
7094           export_dynamic_flag_spec='${wl}-E'
7095
7096           # hardcode_minus_L: Not really in the search PATH,
7097           # but as the default location of the library.
7098           hardcode_minus_L=yes
7099           ;;
7100         esac
7101       fi
7102       ;;
7103
7104     irix5* | irix6* | nonstopux*)
7105       if test "$GCC" = yes; then
7106         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'
7107       else
7108         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'
7109         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7110       fi
7111       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7112       hardcode_libdir_separator=:
7113       link_all_deplibs=yes
7114       ;;
7115
7116     netbsd*)
7117       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7119       else
7120         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7121       fi
7122       hardcode_libdir_flag_spec='-R$libdir'
7123       hardcode_direct=yes
7124       hardcode_shlibpath_var=no
7125       ;;
7126
7127     newsos6)
7128       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7129       hardcode_direct=yes
7130       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131       hardcode_libdir_separator=:
7132       hardcode_shlibpath_var=no
7133       ;;
7134
7135     openbsd*)
7136       hardcode_direct=yes
7137       hardcode_shlibpath_var=no
7138       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7139         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7140         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7141         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7142         export_dynamic_flag_spec='${wl}-E'
7143       else
7144        case $host_os in
7145          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7146            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7147            hardcode_libdir_flag_spec='-R$libdir'
7148            ;;
7149          *)
7150            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7151            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7152            ;;
7153        esac
7154       fi
7155       ;;
7156
7157     os2*)
7158       hardcode_libdir_flag_spec='-L$libdir'
7159       hardcode_minus_L=yes
7160       allow_undefined_flag=unsupported
7161       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'
7162       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163       ;;
7164
7165     osf3*)
7166       if test "$GCC" = yes; then
7167         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7168         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'
7169       else
7170         allow_undefined_flag=' -expect_unresolved \*'
7171         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'
7172       fi
7173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174       hardcode_libdir_separator=:
7175       ;;
7176
7177     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7178       if test "$GCC" = yes; then
7179         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7180         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'
7181         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7182       else
7183         allow_undefined_flag=' -expect_unresolved \*'
7184         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'
7185         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7186         $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'
7187
7188         # Both c and cxx compiler support -rpath directly
7189         hardcode_libdir_flag_spec='-rpath $libdir'
7190       fi
7191       hardcode_libdir_separator=:
7192       ;;
7193
7194     sco3.2v5*)
7195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196       hardcode_shlibpath_var=no
7197       export_dynamic_flag_spec='${wl}-Bexport'
7198       runpath_var=LD_RUN_PATH
7199       hardcode_runpath_var=yes
7200       ;;
7201
7202     solaris*)
7203       no_undefined_flag=' -z text'
7204       if test "$GCC" = yes; then
7205         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7207           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7208       else
7209         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7210         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7211         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7212       fi
7213       hardcode_libdir_flag_spec='-R$libdir'
7214       hardcode_shlibpath_var=no
7215       case $host_os in
7216       solaris2.[0-5] | solaris2.[0-5].*) ;;
7217       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7218         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7219       esac
7220       link_all_deplibs=yes
7221       ;;
7222
7223     sunos4*)
7224       if test "x$host_vendor" = xsequent; then
7225         # Use $CC to link under sequent, because it throws in some extra .o
7226         # files that make .init and .fini sections work.
7227         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7228       else
7229         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7230       fi
7231       hardcode_libdir_flag_spec='-L$libdir'
7232       hardcode_direct=yes
7233       hardcode_minus_L=yes
7234       hardcode_shlibpath_var=no
7235       ;;
7236
7237     sysv4)
7238       case $host_vendor in
7239         sni)
7240           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241           hardcode_direct=yes # is this really true???
7242         ;;
7243         siemens)
7244           ## LD is ld it makes a PLAMLIB
7245           ## CC just makes a GrossModule.
7246           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7247           reload_cmds='$CC -r -o $output$reload_objs'
7248           hardcode_direct=no
7249         ;;
7250         motorola)
7251           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7252           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7253         ;;
7254       esac
7255       runpath_var='LD_RUN_PATH'
7256       hardcode_shlibpath_var=no
7257       ;;
7258
7259     sysv4.3*)
7260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261       hardcode_shlibpath_var=no
7262       export_dynamic_flag_spec='-Bexport'
7263       ;;
7264
7265     sysv4*MP*)
7266       if test -d /usr/nec; then
7267         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268         hardcode_shlibpath_var=no
7269         runpath_var=LD_RUN_PATH
7270         hardcode_runpath_var=yes
7271         ld_shlibs=yes
7272       fi
7273       ;;
7274
7275     sysv4.2uw2*)
7276       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7277       hardcode_direct=yes
7278       hardcode_minus_L=no
7279       hardcode_shlibpath_var=no
7280       hardcode_runpath_var=yes
7281       runpath_var=LD_RUN_PATH
7282       ;;
7283
7284    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7285       no_undefined_flag='${wl}-z ${wl}text'
7286       if test "$GCC" = yes; then
7287         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288       else
7289         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290       fi
7291       runpath_var='LD_RUN_PATH'
7292       hardcode_shlibpath_var=no
7293       ;;
7294
7295     sysv5*)
7296       no_undefined_flag=' -z text'
7297       # $CC -shared without GNU ld will not create a library from C++
7298       # object files and a static libstdc++, better avoid it by now
7299       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7300       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7302       hardcode_libdir_flag_spec=
7303       hardcode_shlibpath_var=no
7304       runpath_var='LD_RUN_PATH'
7305       ;;
7306
7307     uts4*)
7308       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309       hardcode_libdir_flag_spec='-L$libdir'
7310       hardcode_shlibpath_var=no
7311       ;;
7312
7313     *)
7314       ld_shlibs=no
7315       ;;
7316     esac
7317   fi
7318
7319 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7320 echo "${ECHO_T}$ld_shlibs" >&6
7321 test "$ld_shlibs" = no && can_build_shared=no
7322
7323 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7324 if test "$GCC" = yes; then
7325   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7326 fi
7327
7328 #
7329 # Do we need to explicitly link libc?
7330 #
7331 case "x$archive_cmds_need_lc" in
7332 x|xyes)
7333   # Assume -lc should be added
7334   archive_cmds_need_lc=yes
7335
7336   if test "$enable_shared" = yes && test "$GCC" = yes; then
7337     case $archive_cmds in
7338     *'~'*)
7339       # FIXME: we may have to deal with multi-command sequences.
7340       ;;
7341     '$CC '*)
7342       # Test whether the compiler implicitly links with -lc since on some
7343       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7344       # to ld, don't add -lc before -lgcc.
7345       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7346 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7347       $rm conftest*
7348       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349
7350       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351   (eval $ac_compile) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); } 2>conftest.err; then
7355         soname=conftest
7356         lib=conftest
7357         libobjs=conftest.$ac_objext
7358         deplibs=
7359         wl=$lt_prog_compiler_wl
7360         compiler_flags=-v
7361         linker_flags=-v
7362         verstring=
7363         output_objdir=.
7364         libname=conftest
7365         lt_save_allow_undefined_flag=$allow_undefined_flag
7366         allow_undefined_flag=
7367         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7368   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }
7372         then
7373           archive_cmds_need_lc=no
7374         else
7375           archive_cmds_need_lc=yes
7376         fi
7377         allow_undefined_flag=$lt_save_allow_undefined_flag
7378       else
7379         cat conftest.err 1>&5
7380       fi
7381       $rm conftest*
7382       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7383 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7384       ;;
7385     esac
7386   fi
7387   ;;
7388 esac
7389
7390 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7391 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7392 library_names_spec=
7393 libname_spec='lib$name'
7394 soname_spec=
7395 shrext_cmds=".so"
7396 postinstall_cmds=
7397 postuninstall_cmds=
7398 finish_cmds=
7399 finish_eval=
7400 shlibpath_var=
7401 shlibpath_overrides_runpath=unknown
7402 version_type=none
7403 dynamic_linker="$host_os ld.so"
7404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7405 if test "$GCC" = yes; then
7406   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7407   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7408     # if the path contains ";" then we assume it to be the separator
7409     # otherwise default to the standard path separator (i.e. ":") - it is
7410     # assumed that no part of a normal pathname contains ";" but that should
7411     # okay in the real world where ";" in dirpaths is itself problematic.
7412     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7413   else
7414     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7415   fi
7416 else
7417   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7418 fi
7419 need_lib_prefix=unknown
7420 hardcode_into_libs=no
7421
7422 # when you set need_version to no, make sure it does not cause -set_version
7423 # flags to be left without arguments
7424 need_version=unknown
7425
7426 case $host_os in
7427 aix3*)
7428   version_type=linux
7429   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7430   shlibpath_var=LIBPATH
7431
7432   # AIX 3 has no versioning support, so we append a major version to the name.
7433   soname_spec='${libname}${release}${shared_ext}$major'
7434   ;;
7435
7436 aix4* | aix5*)
7437   version_type=linux
7438   need_lib_prefix=no
7439   need_version=no
7440   hardcode_into_libs=yes
7441   if test "$host_cpu" = ia64; then
7442     # AIX 5 supports IA64
7443     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7444     shlibpath_var=LD_LIBRARY_PATH
7445   else
7446     # With GCC up to 2.95.x, collect2 would create an import file
7447     # for dependence libraries.  The import file would start with
7448     # the line `#! .'.  This would cause the generated library to
7449     # depend on `.', always an invalid library.  This was fixed in
7450     # development snapshots of GCC prior to 3.0.
7451     case $host_os in
7452       aix4 | aix4.[01] | aix4.[01].*)
7453       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7454            echo ' yes '
7455            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7456         :
7457       else
7458         can_build_shared=no
7459       fi
7460       ;;
7461     esac
7462     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7463     # soname into executable. Probably we can add versioning support to
7464     # collect2, so additional links can be useful in future.
7465     if test "$aix_use_runtimelinking" = yes; then
7466       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7467       # instead of lib<name>.a to let people know that these are not
7468       # typical AIX shared libraries.
7469       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7470     else
7471       # We preserve .a as extension for shared libraries through AIX4.2
7472       # and later when we are not doing run time linking.
7473       library_names_spec='${libname}${release}.a $libname.a'
7474       soname_spec='${libname}${release}${shared_ext}$major'
7475     fi
7476     shlibpath_var=LIBPATH
7477   fi
7478   ;;
7479
7480 amigaos*)
7481   library_names_spec='$libname.ixlibrary $libname.a'
7482   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7483   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'
7484   ;;
7485
7486 beos*)
7487   library_names_spec='${libname}${shared_ext}'
7488   dynamic_linker="$host_os ld.so"
7489   shlibpath_var=LIBRARY_PATH
7490   ;;
7491
7492 bsdi[45]*)
7493   version_type=linux
7494   need_version=no
7495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496   soname_spec='${libname}${release}${shared_ext}$major'
7497   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7498   shlibpath_var=LD_LIBRARY_PATH
7499   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7500   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7501   # the default ld.so.conf also contains /usr/contrib/lib and
7502   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7503   # libtool to hard-code these into programs
7504   ;;
7505
7506 cygwin* | mingw* | pw32*)
7507   version_type=windows
7508   shrext_cmds=".dll"
7509   need_version=no
7510   need_lib_prefix=no
7511
7512   case $GCC,$host_os in
7513   yes,cygwin* | yes,mingw* | yes,pw32*)
7514     library_names_spec='$libname.dll.a'
7515     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7516     postinstall_cmds='base_file=`basename \${file}`~
7517       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7518       dldir=$destdir/`dirname \$dlpath`~
7519       test -d \$dldir || mkdir -p \$dldir~
7520       $install_prog $dir/$dlname \$dldir/$dlname'
7521     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7522       dlpath=$dir/\$dldll~
7523        $rm \$dlpath'
7524     shlibpath_overrides_runpath=yes
7525
7526     case $host_os in
7527     cygwin*)
7528       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7529       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7530       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7531       ;;
7532     mingw*)
7533       # MinGW DLLs use traditional 'lib' prefix
7534       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7536       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7537         # It is most probably a Windows format PATH printed by
7538         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7539         # path with ; separators, and with drive letters. We can handle the
7540         # drive letters (cygwin fileutils understands them), so leave them,
7541         # especially as we might pass files found there to a mingw objdump,
7542         # which wouldn't understand a cygwinified path. Ahh.
7543         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544       else
7545         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7546       fi
7547       ;;
7548     pw32*)
7549       # pw32 DLLs use 'pw' prefix rather than 'lib'
7550       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7551       ;;
7552     esac
7553     ;;
7554
7555   *)
7556     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7557     ;;
7558   esac
7559   dynamic_linker='Win32 ld.exe'
7560   # FIXME: first we should search . and the directory the executable is in
7561   shlibpath_var=PATH
7562   ;;
7563
7564 darwin* | rhapsody*)
7565   dynamic_linker="$host_os dyld"
7566   version_type=darwin
7567   need_lib_prefix=no
7568   need_version=no
7569   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7570   soname_spec='${libname}${release}${major}$shared_ext'
7571   shlibpath_overrides_runpath=yes
7572   shlibpath_var=DYLD_LIBRARY_PATH
7573   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7574   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7575   if test "$GCC" = yes; then
7576     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"`
7577   else
7578     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7579   fi
7580   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7581   ;;
7582
7583 dgux*)
7584   version_type=linux
7585   need_lib_prefix=no
7586   need_version=no
7587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7588   soname_spec='${libname}${release}${shared_ext}$major'
7589   shlibpath_var=LD_LIBRARY_PATH
7590   ;;
7591
7592 freebsd1*)
7593   dynamic_linker=no
7594   ;;
7595
7596 kfreebsd*-gnu)
7597   version_type=linux
7598   need_lib_prefix=no
7599   need_version=no
7600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7601   soname_spec='${libname}${release}${shared_ext}$major'
7602   shlibpath_var=LD_LIBRARY_PATH
7603   shlibpath_overrides_runpath=no
7604   hardcode_into_libs=yes
7605   dynamic_linker='GNU ld.so'
7606   ;;
7607
7608 freebsd*)
7609   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7610   version_type=freebsd-$objformat
7611   case $version_type in
7612     freebsd-elf*)
7613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7614       need_version=no
7615       need_lib_prefix=no
7616       ;;
7617     freebsd-*)
7618       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7619       need_version=yes
7620       ;;
7621   esac
7622   shlibpath_var=LD_LIBRARY_PATH
7623   case $host_os in
7624   freebsd2*)
7625     shlibpath_overrides_runpath=yes
7626     ;;
7627   freebsd3.01* | freebsdelf3.01*)
7628     shlibpath_overrides_runpath=yes
7629     hardcode_into_libs=yes
7630     ;;
7631   *) # from 3.2 on
7632     shlibpath_overrides_runpath=no
7633     hardcode_into_libs=yes
7634     ;;
7635   esac
7636   ;;
7637
7638 gnu*)
7639   version_type=linux
7640   need_lib_prefix=no
7641   need_version=no
7642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7643   soname_spec='${libname}${release}${shared_ext}$major'
7644   shlibpath_var=LD_LIBRARY_PATH
7645   hardcode_into_libs=yes
7646   ;;
7647
7648 hpux9* | hpux10* | hpux11*)
7649   # Give a soname corresponding to the major version so that dld.sl refuses to
7650   # link against other versions.
7651   version_type=sunos
7652   need_lib_prefix=no
7653   need_version=no
7654   case "$host_cpu" in
7655   ia64*)
7656     shrext_cmds='.so'
7657     hardcode_into_libs=yes
7658     dynamic_linker="$host_os dld.so"
7659     shlibpath_var=LD_LIBRARY_PATH
7660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662     soname_spec='${libname}${release}${shared_ext}$major'
7663     if test "X$HPUX_IA64_MODE" = X32; then
7664       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7665     else
7666       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7667     fi
7668     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7669     ;;
7670    hppa*64*)
7671      shrext_cmds='.sl'
7672      hardcode_into_libs=yes
7673      dynamic_linker="$host_os dld.sl"
7674      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7675      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7676      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677      soname_spec='${libname}${release}${shared_ext}$major'
7678      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7679      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7680      ;;
7681    *)
7682     shrext_cmds='.sl'
7683     dynamic_linker="$host_os dld.sl"
7684     shlibpath_var=SHLIB_PATH
7685     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687     soname_spec='${libname}${release}${shared_ext}$major'
7688     ;;
7689   esac
7690   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7691   postinstall_cmds='chmod 555 $lib'
7692   ;;
7693
7694 irix5* | irix6* | nonstopux*)
7695   case $host_os in
7696     nonstopux*) version_type=nonstopux ;;
7697     *)
7698         if test "$lt_cv_prog_gnu_ld" = yes; then
7699                 version_type=linux
7700         else
7701                 version_type=irix
7702         fi ;;
7703   esac
7704   need_lib_prefix=no
7705   need_version=no
7706   soname_spec='${libname}${release}${shared_ext}$major'
7707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7708   case $host_os in
7709   irix5* | nonstopux*)
7710     libsuff= shlibsuff=
7711     ;;
7712   *)
7713     case $LD in # libtool.m4 will add one of these switches to LD
7714     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7715       libsuff= shlibsuff= libmagic=32-bit;;
7716     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7717       libsuff=32 shlibsuff=N32 libmagic=N32;;
7718     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7719       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7720     *) libsuff= shlibsuff= libmagic=never-match;;
7721     esac
7722     ;;
7723   esac
7724   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7725   shlibpath_overrides_runpath=no
7726   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7727   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7728   hardcode_into_libs=yes
7729   ;;
7730
7731 # No shared lib support for Linux oldld, aout, or coff.
7732 linux*oldld* | linux*aout* | linux*coff*)
7733   dynamic_linker=no
7734   ;;
7735
7736 # This must be Linux ELF.
7737 linux*)
7738   version_type=linux
7739   need_lib_prefix=no
7740   need_version=no
7741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742   soname_spec='${libname}${release}${shared_ext}$major'
7743   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7744   shlibpath_var=LD_LIBRARY_PATH
7745   shlibpath_overrides_runpath=no
7746   # This implies no fast_install, which is unacceptable.
7747   # Some rework will be needed to allow for fast_install
7748   # before this can be enabled.
7749   hardcode_into_libs=yes
7750
7751   # Append ld.so.conf contents to the search path
7752   if test -f /etc/ld.so.conf; then
7753     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7754     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7755   fi
7756
7757   # We used to test for /lib/ld.so.1 and disable shared libraries on
7758   # powerpc, because MkLinux only supported shared libraries with the
7759   # GNU dynamic linker.  Since this was broken with cross compilers,
7760   # most powerpc-linux boxes support dynamic linking these days and
7761   # people can always --disable-shared, the test was removed, and we
7762   # assume the GNU/Linux dynamic linker is in use.
7763   dynamic_linker='GNU/Linux ld.so'
7764   ;;
7765
7766 knetbsd*-gnu)
7767   version_type=linux
7768   need_lib_prefix=no
7769   need_version=no
7770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7771   soname_spec='${libname}${release}${shared_ext}$major'
7772   shlibpath_var=LD_LIBRARY_PATH
7773   shlibpath_overrides_runpath=no
7774   hardcode_into_libs=yes
7775   dynamic_linker='GNU ld.so'
7776   ;;
7777
7778 netbsd*)
7779   version_type=sunos
7780   need_lib_prefix=no
7781   need_version=no
7782   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7784     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7785     dynamic_linker='NetBSD (a.out) ld.so'
7786   else
7787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7788     soname_spec='${libname}${release}${shared_ext}$major'
7789     dynamic_linker='NetBSD ld.elf_so'
7790   fi
7791   shlibpath_var=LD_LIBRARY_PATH
7792   shlibpath_overrides_runpath=yes
7793   hardcode_into_libs=yes
7794   ;;
7795
7796 newsos6)
7797   version_type=linux
7798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799   shlibpath_var=LD_LIBRARY_PATH
7800   shlibpath_overrides_runpath=yes
7801   ;;
7802
7803 nto-qnx*)
7804   version_type=linux
7805   need_lib_prefix=no
7806   need_version=no
7807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808   soname_spec='${libname}${release}${shared_ext}$major'
7809   shlibpath_var=LD_LIBRARY_PATH
7810   shlibpath_overrides_runpath=yes
7811   ;;
7812
7813 openbsd*)
7814   version_type=sunos
7815   need_lib_prefix=no
7816   need_version=no
7817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819   shlibpath_var=LD_LIBRARY_PATH
7820   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7821     case $host_os in
7822       openbsd2.[89] | openbsd2.[89].*)
7823         shlibpath_overrides_runpath=no
7824         ;;
7825       *)
7826         shlibpath_overrides_runpath=yes
7827         ;;
7828       esac
7829   else
7830     shlibpath_overrides_runpath=yes
7831   fi
7832   ;;
7833
7834 os2*)
7835   libname_spec='$name'
7836   shrext_cmds=".dll"
7837   need_lib_prefix=no
7838   library_names_spec='$libname${shared_ext} $libname.a'
7839   dynamic_linker='OS/2 ld.exe'
7840   shlibpath_var=LIBPATH
7841   ;;
7842
7843 osf3* | osf4* | osf5*)
7844   version_type=osf
7845   need_lib_prefix=no
7846   need_version=no
7847   soname_spec='${libname}${release}${shared_ext}$major'
7848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849   shlibpath_var=LD_LIBRARY_PATH
7850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7852   ;;
7853
7854 sco3.2v5*)
7855   version_type=osf
7856   soname_spec='${libname}${release}${shared_ext}$major'
7857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858   shlibpath_var=LD_LIBRARY_PATH
7859   ;;
7860
7861 solaris*)
7862   version_type=linux
7863   need_lib_prefix=no
7864   need_version=no
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866   soname_spec='${libname}${release}${shared_ext}$major'
7867   shlibpath_var=LD_LIBRARY_PATH
7868   shlibpath_overrides_runpath=yes
7869   hardcode_into_libs=yes
7870   # ldd complains unless libraries are executable
7871   postinstall_cmds='chmod +x $lib'
7872   ;;
7873
7874 sunos4*)
7875   version_type=sunos
7876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7877   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7878   shlibpath_var=LD_LIBRARY_PATH
7879   shlibpath_overrides_runpath=yes
7880   if test "$with_gnu_ld" = yes; then
7881     need_lib_prefix=no
7882   fi
7883   need_version=yes
7884   ;;
7885
7886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7887   version_type=linux
7888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889   soname_spec='${libname}${release}${shared_ext}$major'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   case $host_vendor in
7892     sni)
7893       shlibpath_overrides_runpath=no
7894       need_lib_prefix=no
7895       export_dynamic_flag_spec='${wl}-Blargedynsym'
7896       runpath_var=LD_RUN_PATH
7897       ;;
7898     siemens)
7899       need_lib_prefix=no
7900       ;;
7901     motorola)
7902       need_lib_prefix=no
7903       need_version=no
7904       shlibpath_overrides_runpath=no
7905       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7906       ;;
7907   esac
7908   ;;
7909
7910 sysv4*MP*)
7911   if test -d /usr/nec ;then
7912     version_type=linux
7913     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7914     soname_spec='$libname${shared_ext}.$major'
7915     shlibpath_var=LD_LIBRARY_PATH
7916   fi
7917   ;;
7918
7919 uts4*)
7920   version_type=linux
7921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922   soname_spec='${libname}${release}${shared_ext}$major'
7923   shlibpath_var=LD_LIBRARY_PATH
7924   ;;
7925
7926 *)
7927   dynamic_linker=no
7928   ;;
7929 esac
7930 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7931 echo "${ECHO_T}$dynamic_linker" >&6
7932 test "$dynamic_linker" = no && can_build_shared=no
7933
7934 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7935 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7936 hardcode_action=
7937 if test -n "$hardcode_libdir_flag_spec" || \
7938    test -n "$runpath_var" || \
7939    test "X$hardcode_automatic" = "Xyes" ; then
7940
7941   # We can hardcode non-existant directories.
7942   if test "$hardcode_direct" != no &&
7943      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7944      # have to relink, otherwise we might link with an installed library
7945      # when we should be linking with a yet-to-be-installed one
7946      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7947      test "$hardcode_minus_L" != no; then
7948     # Linking always hardcodes the temporary library directory.
7949     hardcode_action=relink
7950   else
7951     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7952     hardcode_action=immediate
7953   fi
7954 else
7955   # We cannot hardcode anything, or else we can only hardcode existing
7956   # directories.
7957   hardcode_action=unsupported
7958 fi
7959 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7960 echo "${ECHO_T}$hardcode_action" >&6
7961
7962 if test "$hardcode_action" = relink; then
7963   # Fast installation is not supported
7964   enable_fast_install=no
7965 elif test "$shlibpath_overrides_runpath" = yes ||
7966      test "$enable_shared" = no; then
7967   # Fast installation is not necessary
7968   enable_fast_install=needless
7969 fi
7970
7971 striplib=
7972 old_striplib=
7973 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7974 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7975 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7976   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7977   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7978   echo "$as_me:$LINENO: result: yes" >&5
7979 echo "${ECHO_T}yes" >&6
7980 else
7981 # FIXME - insert some real tests, host_os isn't really good enough
7982   case $host_os in
7983    darwin*)
7984        if test -n "$STRIP" ; then
7985          striplib="$STRIP -x"
7986          echo "$as_me:$LINENO: result: yes" >&5
7987 echo "${ECHO_T}yes" >&6
7988        else
7989   echo "$as_me:$LINENO: result: no" >&5
7990 echo "${ECHO_T}no" >&6
7991 fi
7992        ;;
7993    *)
7994   echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996     ;;
7997   esac
7998 fi
7999
8000 if test "x$enable_dlopen" != xyes; then
8001   enable_dlopen=unknown
8002   enable_dlopen_self=unknown
8003   enable_dlopen_self_static=unknown
8004 else
8005   lt_cv_dlopen=no
8006   lt_cv_dlopen_libs=
8007
8008   case $host_os in
8009   beos*)
8010     lt_cv_dlopen="load_add_on"
8011     lt_cv_dlopen_libs=
8012     lt_cv_dlopen_self=yes
8013     ;;
8014
8015   mingw* | pw32*)
8016     lt_cv_dlopen="LoadLibrary"
8017     lt_cv_dlopen_libs=
8018    ;;
8019
8020   cygwin*)
8021     lt_cv_dlopen="dlopen"
8022     lt_cv_dlopen_libs=
8023    ;;
8024
8025   darwin*)
8026   # if libdl is installed we need to link against it
8027     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8028 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8029 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-ldl  $LIBS"
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040
8041 /* Override any gcc2 internal prototype to avoid an error.  */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 /* We use char because int might match the return type of a gcc2
8046    builtin and then its argument prototype would still apply.  */
8047 char dlopen ();
8048 int
8049 main ()
8050 {
8051 dlopen ();
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_lib_dl_dlopen=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_lib_dl_dlopen=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8091 if test $ac_cv_lib_dl_dlopen = yes; then
8092   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8093 else
8094
8095     lt_cv_dlopen="dyld"
8096     lt_cv_dlopen_libs=
8097     lt_cv_dlopen_self=yes
8098
8099 fi
8100
8101    ;;
8102
8103   *)
8104     echo "$as_me:$LINENO: checking for shl_load" >&5
8105 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8106 if test "${ac_cv_func_shl_load+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8117 #define shl_load innocuous_shl_load
8118
8119 /* System header to define __stub macros and hopefully few prototypes,
8120     which can conflict with char shl_load (); below.
8121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122     <limits.h> exists even on freestanding compilers.  */
8123
8124 #ifdef __STDC__
8125 # include <limits.h>
8126 #else
8127 # include <assert.h>
8128 #endif
8129
8130 #undef shl_load
8131
8132 /* Override any gcc2 internal prototype to avoid an error.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 {
8136 #endif
8137 /* We use char because int might match the return type of a gcc2
8138    builtin and then its argument prototype would still apply.  */
8139 char shl_load ();
8140 /* The GNU C library defines this for functions which it implements
8141     to always fail with ENOSYS.  Some functions are actually named
8142     something starting with __ and the normal name is an alias.  */
8143 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8144 choke me
8145 #else
8146 char (*f) () = shl_load;
8147 #endif
8148 #ifdef __cplusplus
8149 }
8150 #endif
8151
8152 int
8153 main ()
8154 {
8155 return f != shl_load;
8156   ;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162   (eval $ac_link) 2>conftest.er1
8163   ac_status=$?
8164   grep -v '^ *+' conftest.er1 >conftest.err
8165   rm -f conftest.er1
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } &&
8169          { ac_try='test -z "$ac_c_werror_flag"
8170                          || test ! -s conftest.err'
8171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172   (eval $ac_try) 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest$ac_exeext'
8177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178   (eval $ac_try) 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   ac_cv_func_shl_load=yes
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_func_shl_load=no
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194 if test $ac_cv_func_shl_load = yes; then
8195   lt_cv_dlopen="shl_load"
8196 else
8197   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   ac_check_lib_save_LIBS=$LIBS
8203 LIBS="-ldld  $LIBS"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 /* Override any gcc2 internal prototype to avoid an error.  */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 /* We use char because int might match the return type of a gcc2
8216    builtin and then its argument prototype would still apply.  */
8217 char shl_load ();
8218 int
8219 main ()
8220 {
8221 shl_load ();
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } &&
8235          { ac_try='test -z "$ac_c_werror_flag"
8236                          || test ! -s conftest.err'
8237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238   (eval $ac_try) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; } &&
8242          { ac_try='test -s conftest$ac_exeext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_cv_lib_dld_shl_load=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_cv_lib_dld_shl_load=no
8254 fi
8255 rm -f conftest.err conftest.$ac_objext \
8256       conftest$ac_exeext conftest.$ac_ext
8257 LIBS=$ac_check_lib_save_LIBS
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261 if test $ac_cv_lib_dld_shl_load = yes; then
8262   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8263 else
8264   echo "$as_me:$LINENO: checking for dlopen" >&5
8265 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266 if test "${ac_cv_func_dlopen+set}" = set; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8277 #define dlopen innocuous_dlopen
8278
8279 /* System header to define __stub macros and hopefully few prototypes,
8280     which can conflict with char dlopen (); below.
8281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282     <limits.h> exists even on freestanding compilers.  */
8283
8284 #ifdef __STDC__
8285 # include <limits.h>
8286 #else
8287 # include <assert.h>
8288 #endif
8289
8290 #undef dlopen
8291
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 {
8296 #endif
8297 /* We use char because int might match the return type of a gcc2
8298    builtin and then its argument prototype would still apply.  */
8299 char dlopen ();
8300 /* The GNU C library defines this for functions which it implements
8301     to always fail with ENOSYS.  Some functions are actually named
8302     something starting with __ and the normal name is an alias.  */
8303 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8304 choke me
8305 #else
8306 char (*f) () = dlopen;
8307 #endif
8308 #ifdef __cplusplus
8309 }
8310 #endif
8311
8312 int
8313 main ()
8314 {
8315 return f != dlopen;
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext conftest$ac_exeext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8322   (eval $ac_link) 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -z "$ac_c_werror_flag"
8330                          || test ! -s conftest.err'
8331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332   (eval $ac_try) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); }; } &&
8336          { ac_try='test -s conftest$ac_exeext'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; }; then
8342   ac_cv_func_dlopen=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_func_dlopen=no
8348 fi
8349 rm -f conftest.err conftest.$ac_objext \
8350       conftest$ac_exeext conftest.$ac_ext
8351 fi
8352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354 if test $ac_cv_func_dlopen = yes; then
8355   lt_cv_dlopen="dlopen"
8356 else
8357   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360   echo $ECHO_N "(cached) $ECHO_C" >&6
8361 else
8362   ac_check_lib_save_LIBS=$LIBS
8363 LIBS="-ldl  $LIBS"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370
8371 /* Override any gcc2 internal prototype to avoid an error.  */
8372 #ifdef __cplusplus
8373 extern "C"
8374 #endif
8375 /* We use char because int might match the return type of a gcc2
8376    builtin and then its argument prototype would still apply.  */
8377 char dlopen ();
8378 int
8379 main ()
8380 {
8381 dlopen ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8388   (eval $ac_link) 2>conftest.er1
8389   ac_status=$?
8390   grep -v '^ *+' conftest.er1 >conftest.err
8391   rm -f conftest.er1
8392   cat conftest.err >&5
8393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394   (exit $ac_status); } &&
8395          { ac_try='test -z "$ac_c_werror_flag"
8396                          || test ! -s conftest.err'
8397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398   (eval $ac_try) 2>&5
8399   ac_status=$?
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); }; } &&
8402          { ac_try='test -s conftest$ac_exeext'
8403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404   (eval $ac_try) 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; }; then
8408   ac_cv_lib_dl_dlopen=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_cv_lib_dl_dlopen=no
8414 fi
8415 rm -f conftest.err conftest.$ac_objext \
8416       conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8421 if test $ac_cv_lib_dl_dlopen = yes; then
8422   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8423 else
8424   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8425 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lsvld  $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437
8438 /* Override any gcc2 internal prototype to avoid an error.  */
8439 #ifdef __cplusplus
8440 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443    builtin and then its argument prototype would still apply.  */
8444 char dlopen ();
8445 int
8446 main ()
8447 {
8448 dlopen ();
8449   ;
8450   return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455   (eval $ac_link) 2>conftest.er1
8456   ac_status=$?
8457   grep -v '^ *+' conftest.er1 >conftest.err
8458   rm -f conftest.er1
8459   cat conftest.err >&5
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); } &&
8462          { ac_try='test -z "$ac_c_werror_flag"
8463                          || test ! -s conftest.err'
8464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465   (eval $ac_try) 2>&5
8466   ac_status=$?
8467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468   (exit $ac_status); }; } &&
8469          { ac_try='test -s conftest$ac_exeext'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; }; then
8475   ac_cv_lib_svld_dlopen=yes
8476 else
8477   echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 ac_cv_lib_svld_dlopen=no
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484 LIBS=$ac_check_lib_save_LIBS
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8488 if test $ac_cv_lib_svld_dlopen = yes; then
8489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8490 else
8491   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8492 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8493 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8494   echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496   ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-ldld  $LIBS"
8498 cat >conftest.$ac_ext <<_ACEOF
8499 /* confdefs.h.  */
8500 _ACEOF
8501 cat confdefs.h >>conftest.$ac_ext
8502 cat >>conftest.$ac_ext <<_ACEOF
8503 /* end confdefs.h.  */
8504
8505 /* Override any gcc2 internal prototype to avoid an error.  */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 /* We use char because int might match the return type of a gcc2
8510    builtin and then its argument prototype would still apply.  */
8511 char dld_link ();
8512 int
8513 main ()
8514 {
8515 dld_link ();
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext conftest$ac_exeext
8521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522   (eval $ac_link) 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } &&
8529          { ac_try='test -z "$ac_c_werror_flag"
8530                          || test ! -s conftest.err'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; } &&
8536          { ac_try='test -s conftest$ac_exeext'
8537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538   (eval $ac_try) 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; }; then
8542   ac_cv_lib_dld_dld_link=yes
8543 else
8544   echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8546
8547 ac_cv_lib_dld_dld_link=no
8548 fi
8549 rm -f conftest.err conftest.$ac_objext \
8550       conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8552 fi
8553 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8554 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8555 if test $ac_cv_lib_dld_dld_link = yes; then
8556   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8557 fi
8558
8559
8560 fi
8561
8562
8563 fi
8564
8565
8566 fi
8567
8568
8569 fi
8570
8571
8572 fi
8573
8574     ;;
8575   esac
8576
8577   if test "x$lt_cv_dlopen" != xno; then
8578     enable_dlopen=yes
8579   else
8580     enable_dlopen=no
8581   fi
8582
8583   case $lt_cv_dlopen in
8584   dlopen)
8585     save_CPPFLAGS="$CPPFLAGS"
8586     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8587
8588     save_LDFLAGS="$LDFLAGS"
8589     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8590
8591     save_LIBS="$LIBS"
8592     LIBS="$lt_cv_dlopen_libs $LIBS"
8593
8594     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8595 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8596 if test "${lt_cv_dlopen_self+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599           if test "$cross_compiling" = yes; then :
8600   lt_cv_dlopen_self=cross
8601 else
8602   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8603   lt_status=$lt_dlunknown
8604   cat > conftest.$ac_ext <<EOF
8605 #line 8605 "configure"
8606 #include "confdefs.h"
8607
8608 #if HAVE_DLFCN_H
8609 #include <dlfcn.h>
8610 #endif
8611
8612 #include <stdio.h>
8613
8614 #ifdef RTLD_GLOBAL
8615 #  define LT_DLGLOBAL           RTLD_GLOBAL
8616 #else
8617 #  ifdef DL_GLOBAL
8618 #    define LT_DLGLOBAL         DL_GLOBAL
8619 #  else
8620 #    define LT_DLGLOBAL         0
8621 #  endif
8622 #endif
8623
8624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8625    find out it does not work in some platform. */
8626 #ifndef LT_DLLAZY_OR_NOW
8627 #  ifdef RTLD_LAZY
8628 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8629 #  else
8630 #    ifdef DL_LAZY
8631 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8632 #    else
8633 #      ifdef RTLD_NOW
8634 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8635 #      else
8636 #        ifdef DL_NOW
8637 #          define LT_DLLAZY_OR_NOW      DL_NOW
8638 #        else
8639 #          define LT_DLLAZY_OR_NOW      0
8640 #        endif
8641 #      endif
8642 #    endif
8643 #  endif
8644 #endif
8645
8646 #ifdef __cplusplus
8647 extern "C" void exit (int);
8648 #endif
8649
8650 void fnord() { int i=42;}
8651 int main ()
8652 {
8653   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8654   int status = $lt_dlunknown;
8655
8656   if (self)
8657     {
8658       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8659       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8660       /* dlclose (self); */
8661     }
8662
8663     exit (status);
8664 }
8665 EOF
8666   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8671     (./conftest; exit; ) 2>/dev/null
8672     lt_status=$?
8673     case x$lt_status in
8674       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8675       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8676       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8677     esac
8678   else :
8679     # compilation failed
8680     lt_cv_dlopen_self=no
8681   fi
8682 fi
8683 rm -fr conftest*
8684
8685
8686 fi
8687 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8688 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8689
8690     if test "x$lt_cv_dlopen_self" = xyes; then
8691       LDFLAGS="$LDFLAGS $link_static_flag"
8692       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8693 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8694 if test "${lt_cv_dlopen_self_static+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697           if test "$cross_compiling" = yes; then :
8698   lt_cv_dlopen_self_static=cross
8699 else
8700   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8701   lt_status=$lt_dlunknown
8702   cat > conftest.$ac_ext <<EOF
8703 #line 8703 "configure"
8704 #include "confdefs.h"
8705
8706 #if HAVE_DLFCN_H
8707 #include <dlfcn.h>
8708 #endif
8709
8710 #include <stdio.h>
8711
8712 #ifdef RTLD_GLOBAL
8713 #  define LT_DLGLOBAL           RTLD_GLOBAL
8714 #else
8715 #  ifdef DL_GLOBAL
8716 #    define LT_DLGLOBAL         DL_GLOBAL
8717 #  else
8718 #    define LT_DLGLOBAL         0
8719 #  endif
8720 #endif
8721
8722 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8723    find out it does not work in some platform. */
8724 #ifndef LT_DLLAZY_OR_NOW
8725 #  ifdef RTLD_LAZY
8726 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8727 #  else
8728 #    ifdef DL_LAZY
8729 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8730 #    else
8731 #      ifdef RTLD_NOW
8732 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8733 #      else
8734 #        ifdef DL_NOW
8735 #          define LT_DLLAZY_OR_NOW      DL_NOW
8736 #        else
8737 #          define LT_DLLAZY_OR_NOW      0
8738 #        endif
8739 #      endif
8740 #    endif
8741 #  endif
8742 #endif
8743
8744 #ifdef __cplusplus
8745 extern "C" void exit (int);
8746 #endif
8747
8748 void fnord() { int i=42;}
8749 int main ()
8750 {
8751   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8752   int status = $lt_dlunknown;
8753
8754   if (self)
8755     {
8756       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8757       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8758       /* dlclose (self); */
8759     }
8760
8761     exit (status);
8762 }
8763 EOF
8764   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765   (eval $ac_link) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8769     (./conftest; exit; ) 2>/dev/null
8770     lt_status=$?
8771     case x$lt_status in
8772       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8773       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8774       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8775     esac
8776   else :
8777     # compilation failed
8778     lt_cv_dlopen_self_static=no
8779   fi
8780 fi
8781 rm -fr conftest*
8782
8783
8784 fi
8785 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8786 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8787     fi
8788
8789     CPPFLAGS="$save_CPPFLAGS"
8790     LDFLAGS="$save_LDFLAGS"
8791     LIBS="$save_LIBS"
8792     ;;
8793   esac
8794
8795   case $lt_cv_dlopen_self in
8796   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8797   *) enable_dlopen_self=unknown ;;
8798   esac
8799
8800   case $lt_cv_dlopen_self_static in
8801   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8802   *) enable_dlopen_self_static=unknown ;;
8803   esac
8804 fi
8805
8806
8807 # Report which librarie types wil actually be built
8808 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8809 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8810 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8811 echo "${ECHO_T}$can_build_shared" >&6
8812
8813 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8814 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8815 test "$can_build_shared" = "no" && enable_shared=no
8816
8817 # On AIX, shared libraries and static libraries use the same namespace, and
8818 # are all built from PIC.
8819 case "$host_os" in
8820 aix3*)
8821   test "$enable_shared" = yes && enable_static=no
8822   if test -n "$RANLIB"; then
8823     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8824     postinstall_cmds='$RANLIB $lib'
8825   fi
8826   ;;
8827
8828 aix4* | aix5*)
8829   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8830     test "$enable_shared" = yes && enable_static=no
8831   fi
8832     ;;
8833 esac
8834 echo "$as_me:$LINENO: result: $enable_shared" >&5
8835 echo "${ECHO_T}$enable_shared" >&6
8836
8837 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8838 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8839 # Make sure either enable_shared or enable_static is yes.
8840 test "$enable_shared" = yes || enable_static=yes
8841 echo "$as_me:$LINENO: result: $enable_static" >&5
8842 echo "${ECHO_T}$enable_static" >&6
8843
8844 # The else clause should only fire when bootstrapping the
8845 # libtool distribution, otherwise you forgot to ship ltmain.sh
8846 # with your package, and you will get complaints that there are
8847 # no rules to generate ltmain.sh.
8848 if test -f "$ltmain"; then
8849   # See if we are running on zsh, and set the options which allow our commands through
8850   # without removal of \ escapes.
8851   if test -n "${ZSH_VERSION+set}" ; then
8852     setopt NO_GLOB_SUBST
8853   fi
8854   # Now quote all the things that may contain metacharacters while being
8855   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8856   # variables and quote the copies for generation of the libtool script.
8857   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8858     SED SHELL STRIP \
8859     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861     deplibs_check_method reload_flag reload_cmds need_locks \
8862     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863     lt_cv_sys_global_symbol_to_c_name_address \
8864     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8865     old_postinstall_cmds old_postuninstall_cmds \
8866     compiler \
8867     CC \
8868     LD \
8869     lt_prog_compiler_wl \
8870     lt_prog_compiler_pic \
8871     lt_prog_compiler_static \
8872     lt_prog_compiler_no_builtin_flag \
8873     export_dynamic_flag_spec \
8874     thread_safe_flag_spec \
8875     whole_archive_flag_spec \
8876     enable_shared_with_static_runtimes \
8877     old_archive_cmds \
8878     old_archive_from_new_cmds \
8879     predep_objects \
8880     postdep_objects \
8881     predeps \
8882     postdeps \
8883     compiler_lib_search_path \
8884     archive_cmds \
8885     archive_expsym_cmds \
8886     postinstall_cmds \
8887     postuninstall_cmds \
8888     old_archive_from_expsyms_cmds \
8889     allow_undefined_flag \
8890     no_undefined_flag \
8891     export_symbols_cmds \
8892     hardcode_libdir_flag_spec \
8893     hardcode_libdir_flag_spec_ld \
8894     hardcode_libdir_separator \
8895     hardcode_automatic \
8896     module_cmds \
8897     module_expsym_cmds \
8898     lt_cv_prog_compiler_c_o \
8899     exclude_expsyms \
8900     include_expsyms; do
8901
8902     case $var in
8903     old_archive_cmds | \
8904     old_archive_from_new_cmds | \
8905     archive_cmds | \
8906     archive_expsym_cmds | \
8907     module_cmds | \
8908     module_expsym_cmds | \
8909     old_archive_from_expsyms_cmds | \
8910     export_symbols_cmds | \
8911     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8912     postinstall_cmds | postuninstall_cmds | \
8913     old_postinstall_cmds | old_postuninstall_cmds | \
8914     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8915       # Double-quote double-evaled strings.
8916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8917       ;;
8918     *)
8919       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920       ;;
8921     esac
8922   done
8923
8924   case $lt_echo in
8925   *'\$0 --fallback-echo"')
8926     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927     ;;
8928   esac
8929
8930 cfgfile="${ofile}T"
8931   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8932   $rm -f "$cfgfile"
8933   { echo "$as_me:$LINENO: creating $ofile" >&5
8934 echo "$as_me: creating $ofile" >&6;}
8935
8936   cat <<__EOF__ >> "$cfgfile"
8937 #! $SHELL
8938
8939 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8940 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8942 #
8943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944 # Free Software Foundation, Inc.
8945 #
8946 # This file is part of GNU Libtool:
8947 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8948 #
8949 # This program is free software; you can redistribute it and/or modify
8950 # it under the terms of the GNU General Public License as published by
8951 # the Free Software Foundation; either version 2 of the License, or
8952 # (at your option) any later version.
8953 #
8954 # This program is distributed in the hope that it will be useful, but
8955 # WITHOUT ANY WARRANTY; without even the implied warranty of
8956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8957 # General Public License for more details.
8958 #
8959 # You should have received a copy of the GNU General Public License
8960 # along with this program; if not, write to the Free Software
8961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8962 #
8963 # As a special exception to the GNU General Public License, if you
8964 # distribute this file as part of a program that contains a
8965 # configuration script generated by Autoconf, you may include it under
8966 # the same distribution terms that you use for the rest of that program.
8967
8968 # A sed program that does not truncate output.
8969 SED=$lt_SED
8970
8971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8972 Xsed="$SED -e s/^X//"
8973
8974 # The HP-UX ksh and POSIX shell print the target directory to stdout
8975 # if CDPATH is set.
8976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8977
8978 # The names of the tagged configurations supported by this script.
8979 available_tags=
8980
8981 # ### BEGIN LIBTOOL CONFIG
8982
8983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8984
8985 # Shell to use when invoking shell scripts.
8986 SHELL=$lt_SHELL
8987
8988 # Whether or not to build shared libraries.
8989 build_libtool_libs=$enable_shared
8990
8991 # Whether or not to build static libraries.
8992 build_old_libs=$enable_static
8993
8994 # Whether or not to add -lc for building shared libraries.
8995 build_libtool_need_lc=$archive_cmds_need_lc
8996
8997 # Whether or not to disallow shared libs when runtime libs are static
8998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8999
9000 # Whether or not to optimize for fast installation.
9001 fast_install=$enable_fast_install
9002
9003 # The host system.
9004 host_alias=$host_alias
9005 host=$host
9006
9007 # An echo program that does not interpret backslashes.
9008 echo=$lt_echo
9009
9010 # The archiver.
9011 AR=$lt_AR
9012 AR_FLAGS=$lt_AR_FLAGS
9013
9014 # A C compiler.
9015 LTCC=$lt_LTCC
9016
9017 # A language-specific compiler.
9018 CC=$lt_compiler
9019
9020 # Is the compiler the GNU C compiler?
9021 with_gcc=$GCC
9022
9023 # An ERE matcher.
9024 EGREP=$lt_EGREP
9025
9026 # The linker used to build libraries.
9027 LD=$lt_LD
9028
9029 # Whether we need hard or soft links.
9030 LN_S=$lt_LN_S
9031
9032 # A BSD-compatible nm program.
9033 NM=$lt_NM
9034
9035 # A symbol stripping program
9036 STRIP=$lt_STRIP
9037
9038 # Used to examine libraries when file_magic_cmd begins "file"
9039 MAGIC_CMD=$MAGIC_CMD
9040
9041 # Used on cygwin: DLL creation program.
9042 DLLTOOL="$DLLTOOL"
9043
9044 # Used on cygwin: object dumper.
9045 OBJDUMP="$OBJDUMP"
9046
9047 # Used on cygwin: assembler.
9048 AS="$AS"
9049
9050 # The name of the directory that contains temporary libtool files.
9051 objdir=$objdir
9052
9053 # How to create reloadable object files.
9054 reload_flag=$lt_reload_flag
9055 reload_cmds=$lt_reload_cmds
9056
9057 # How to pass a linker flag through the compiler.
9058 wl=$lt_lt_prog_compiler_wl
9059
9060 # Object file suffix (normally "o").
9061 objext="$ac_objext"
9062
9063 # Old archive suffix (normally "a").
9064 libext="$libext"
9065
9066 # Shared library suffix (normally ".so").
9067 shrext_cmds='$shrext_cmds'
9068
9069 # Executable file suffix (normally "").
9070 exeext="$exeext"
9071
9072 # Additional compiler flags for building library objects.
9073 pic_flag=$lt_lt_prog_compiler_pic
9074 pic_mode=$pic_mode
9075
9076 # What is the maximum length of a command?
9077 max_cmd_len=$lt_cv_sys_max_cmd_len
9078
9079 # Does compiler simultaneously support -c and -o options?
9080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9081
9082 # Must we lock files when doing compilation ?
9083 need_locks=$lt_need_locks
9084
9085 # Do we need the lib prefix for modules?
9086 need_lib_prefix=$need_lib_prefix
9087
9088 # Do we need a version for libraries?
9089 need_version=$need_version
9090
9091 # Whether dlopen is supported.
9092 dlopen_support=$enable_dlopen
9093
9094 # Whether dlopen of programs is supported.
9095 dlopen_self=$enable_dlopen_self
9096
9097 # Whether dlopen of statically linked programs is supported.
9098 dlopen_self_static=$enable_dlopen_self_static
9099
9100 # Compiler flag to prevent dynamic linking.
9101 link_static_flag=$lt_lt_prog_compiler_static
9102
9103 # Compiler flag to turn off builtin functions.
9104 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9105
9106 # Compiler flag to allow reflexive dlopens.
9107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9108
9109 # Compiler flag to generate shared objects directly from archives.
9110 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9111
9112 # Compiler flag to generate thread-safe objects.
9113 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9114
9115 # Library versioning type.
9116 version_type=$version_type
9117
9118 # Format of library name prefix.
9119 libname_spec=$lt_libname_spec
9120
9121 # List of archive names.  First name is the real one, the rest are links.
9122 # The last name is the one that the linker finds with -lNAME.
9123 library_names_spec=$lt_library_names_spec
9124
9125 # The coded name of the library, if different from the real name.
9126 soname_spec=$lt_soname_spec
9127
9128 # Commands used to build and install an old-style archive.
9129 RANLIB=$lt_RANLIB
9130 old_archive_cmds=$lt_old_archive_cmds
9131 old_postinstall_cmds=$lt_old_postinstall_cmds
9132 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9133
9134 # Create an old-style archive from a shared archive.
9135 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9136
9137 # Create a temporary old-style archive to link instead of a shared archive.
9138 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9139
9140 # Commands used to build and install a shared archive.
9141 archive_cmds=$lt_archive_cmds
9142 archive_expsym_cmds=$lt_archive_expsym_cmds
9143 postinstall_cmds=$lt_postinstall_cmds
9144 postuninstall_cmds=$lt_postuninstall_cmds
9145
9146 # Commands used to build a loadable module (assumed same as above if empty)
9147 module_cmds=$lt_module_cmds
9148 module_expsym_cmds=$lt_module_expsym_cmds
9149
9150 # Commands to strip libraries.
9151 old_striplib=$lt_old_striplib
9152 striplib=$lt_striplib
9153
9154 # Dependencies to place before the objects being linked to create a
9155 # shared library.
9156 predep_objects=$lt_predep_objects
9157
9158 # Dependencies to place after the objects being linked to create a
9159 # shared library.
9160 postdep_objects=$lt_postdep_objects
9161
9162 # Dependencies to place before the objects being linked to create a
9163 # shared library.
9164 predeps=$lt_predeps
9165
9166 # Dependencies to place after the objects being linked to create a
9167 # shared library.
9168 postdeps=$lt_postdeps
9169
9170 # The library search path used internally by the compiler when linking
9171 # a shared library.
9172 compiler_lib_search_path=$lt_compiler_lib_search_path
9173
9174 # Method to check whether dependent libraries are shared objects.
9175 deplibs_check_method=$lt_deplibs_check_method
9176
9177 # Command to use when deplibs_check_method == file_magic.
9178 file_magic_cmd=$lt_file_magic_cmd
9179
9180 # Flag that allows shared libraries with undefined symbols to be built.
9181 allow_undefined_flag=$lt_allow_undefined_flag
9182
9183 # Flag that forces no undefined symbols.
9184 no_undefined_flag=$lt_no_undefined_flag
9185
9186 # Commands used to finish a libtool library installation in a directory.
9187 finish_cmds=$lt_finish_cmds
9188
9189 # Same as above, but a single script fragment to be evaled but not shown.
9190 finish_eval=$lt_finish_eval
9191
9192 # Take the output of nm and produce a listing of raw symbols and C names.
9193 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9194
9195 # Transform the output of nm in a proper C declaration
9196 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9197
9198 # Transform the output of nm in a C name address pair
9199 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9200
9201 # This is the shared library runtime path variable.
9202 runpath_var=$runpath_var
9203
9204 # This is the shared library path variable.
9205 shlibpath_var=$shlibpath_var
9206
9207 # Is shlibpath searched before the hard-coded library search path?
9208 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9209
9210 # How to hardcode a shared library path into an executable.
9211 hardcode_action=$hardcode_action
9212
9213 # Whether we should hardcode library paths into libraries.
9214 hardcode_into_libs=$hardcode_into_libs
9215
9216 # Flag to hardcode \$libdir into a binary during linking.
9217 # This must work even if \$libdir does not exist.
9218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9219
9220 # If ld is used when linking, flag to hardcode \$libdir into
9221 # a binary during linking. This must work even if \$libdir does
9222 # not exist.
9223 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9224
9225 # Whether we need a single -rpath flag with a separated argument.
9226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9227
9228 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9229 # resulting binary.
9230 hardcode_direct=$hardcode_direct
9231
9232 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9233 # resulting binary.
9234 hardcode_minus_L=$hardcode_minus_L
9235
9236 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237 # the resulting binary.
9238 hardcode_shlibpath_var=$hardcode_shlibpath_var
9239
9240 # Set to yes if building a shared library automatically hardcodes DIR into the library
9241 # and all subsequent libraries and executables linked against it.
9242 hardcode_automatic=$hardcode_automatic
9243
9244 # Variables whose values should be saved in libtool wrapper scripts and
9245 # restored at relink time.
9246 variables_saved_for_relink="$variables_saved_for_relink"
9247
9248 # Whether libtool must link a program against all its dependency libraries.
9249 link_all_deplibs=$link_all_deplibs
9250
9251 # Compile-time system search path for libraries
9252 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9253
9254 # Run-time system search path for libraries
9255 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9256
9257 # Fix the shell variable \$srcfile for the compiler.
9258 fix_srcfile_path="$fix_srcfile_path"
9259
9260 # Set to yes if exported symbols are required.
9261 always_export_symbols=$always_export_symbols
9262
9263 # The commands to list exported symbols.
9264 export_symbols_cmds=$lt_export_symbols_cmds
9265
9266 # The commands to extract the exported symbol list from a shared archive.
9267 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9268
9269 # Symbols that should not be listed in the preloaded symbols.
9270 exclude_expsyms=$lt_exclude_expsyms
9271
9272 # Symbols that must always be exported.
9273 include_expsyms=$lt_include_expsyms
9274
9275 # ### END LIBTOOL CONFIG
9276
9277 __EOF__
9278
9279
9280   case $host_os in
9281   aix3*)
9282     cat <<\EOF >> "$cfgfile"
9283
9284 # AIX sometimes has problems with the GCC collect2 program.  For some
9285 # reason, if we set the COLLECT_NAMES environment variable, the problems
9286 # vanish in a puff of smoke.
9287 if test "X${COLLECT_NAMES+set}" != Xset; then
9288   COLLECT_NAMES=
9289   export COLLECT_NAMES
9290 fi
9291 EOF
9292     ;;
9293   esac
9294
9295   # We use sed instead of cat because bash on DJGPP gets confused if
9296   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9297   # text mode, it properly converts lines to CR/LF.  This bash problem
9298   # is reportedly fixed, but why not run on old versions too?
9299   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9300
9301   mv -f "$cfgfile" "$ofile" || \
9302     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9303   chmod +x "$ofile"
9304
9305 else
9306   # If there is no Makefile yet, we rely on a make rule to execute
9307   # `config.status --recheck' to rerun these tests and create the
9308   # libtool script then.
9309   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9310   if test -f "$ltmain_in"; then
9311     test -f Makefile && make "$ltmain"
9312   fi
9313 fi
9314
9315
9316 ac_ext=c
9317 ac_cpp='$CPP $CPPFLAGS'
9318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321
9322 CC="$lt_save_CC"
9323
9324
9325 # Check whether --with-tags or --without-tags was given.
9326 if test "${with_tags+set}" = set; then
9327   withval="$with_tags"
9328   tagnames="$withval"
9329 fi;
9330
9331 if test -f "$ltmain" && test -n "$tagnames"; then
9332   if test ! -f "${ofile}"; then
9333     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9334 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9335   fi
9336
9337   if test -z "$LTCC"; then
9338     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9339     if test -z "$LTCC"; then
9340       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9341 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9342     else
9343       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9344 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9345     fi
9346   fi
9347
9348   # Extract list of available tagged configurations in $ofile.
9349   # Note that this assumes the entire list is on one line.
9350   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9351
9352   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9353   for tagname in $tagnames; do
9354     IFS="$lt_save_ifs"
9355     # Check whether tagname contains only valid characters
9356     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9357     "") ;;
9358     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9359 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9360    { (exit 1); exit 1; }; }
9361         ;;
9362     esac
9363
9364     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9365     then
9366       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9367 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9368    { (exit 1); exit 1; }; }
9369     fi
9370
9371     # Update the list of available tags.
9372     if test -n "$tagname"; then
9373       echo appending configuration tag "$tagname" to $ofile
9374
9375       case $tagname in
9376       CXX)
9377         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9378             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9379             (test "X$CXX" != "Xg++"))) ; then
9380           ac_ext=cc
9381 ac_cpp='$CXXCPP $CPPFLAGS'
9382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9385
9386
9387
9388
9389 archive_cmds_need_lc_CXX=no
9390 allow_undefined_flag_CXX=
9391 always_export_symbols_CXX=no
9392 archive_expsym_cmds_CXX=
9393 export_dynamic_flag_spec_CXX=
9394 hardcode_direct_CXX=no
9395 hardcode_libdir_flag_spec_CXX=
9396 hardcode_libdir_flag_spec_ld_CXX=
9397 hardcode_libdir_separator_CXX=
9398 hardcode_minus_L_CXX=no
9399 hardcode_automatic_CXX=no
9400 module_cmds_CXX=
9401 module_expsym_cmds_CXX=
9402 link_all_deplibs_CXX=unknown
9403 old_archive_cmds_CXX=$old_archive_cmds
9404 no_undefined_flag_CXX=
9405 whole_archive_flag_spec_CXX=
9406 enable_shared_with_static_runtimes_CXX=no
9407
9408 # Dependencies to place before and after the object being linked:
9409 predep_objects_CXX=
9410 postdep_objects_CXX=
9411 predeps_CXX=
9412 postdeps_CXX=
9413 compiler_lib_search_path_CXX=
9414
9415 # Source file extension for C++ test sources.
9416 ac_ext=cc
9417
9418 # Object file extension for compiled C++ test sources.
9419 objext=o
9420 objext_CXX=$objext
9421
9422 # Code to be used in simple compile tests
9423 lt_simple_compile_test_code="int some_variable = 0;\n"
9424
9425 # Code to be used in simple link tests
9426 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9427
9428 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9429
9430 # If no C compiler was specified, use CC.
9431 LTCC=${LTCC-"$CC"}
9432
9433 # Allow CC to be a program name with arguments.
9434 compiler=$CC
9435
9436
9437 # Allow CC to be a program name with arguments.
9438 lt_save_CC=$CC
9439 lt_save_LD=$LD
9440 lt_save_GCC=$GCC
9441 GCC=$GXX
9442 lt_save_with_gnu_ld=$with_gnu_ld
9443 lt_save_path_LD=$lt_cv_path_LD
9444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9445   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9446 else
9447   unset lt_cv_prog_gnu_ld
9448 fi
9449 if test -n "${lt_cv_path_LDCXX+set}"; then
9450   lt_cv_path_LD=$lt_cv_path_LDCXX
9451 else
9452   unset lt_cv_path_LD
9453 fi
9454 test -z "${LDCXX+set}" || LD=$LDCXX
9455 CC=${CXX-"c++"}
9456 compiler=$CC
9457 compiler_CXX=$CC
9458 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9459
9460 # We don't want -fno-exception wen compiling C++ code, so set the
9461 # no_builtin_flag separately
9462 if test "$GXX" = yes; then
9463   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9464 else
9465   lt_prog_compiler_no_builtin_flag_CXX=
9466 fi
9467
9468 if test "$GXX" = yes; then
9469   # Set up default GNU C++ configuration
9470
9471
9472 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9473 if test "${with_gnu_ld+set}" = set; then
9474   withval="$with_gnu_ld"
9475   test "$withval" = no || with_gnu_ld=yes
9476 else
9477   with_gnu_ld=no
9478 fi;
9479 ac_prog=ld
9480 if test "$GCC" = yes; then
9481   # Check if gcc -print-prog-name=ld gives a path.
9482   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9483 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9484   case $host in
9485   *-*-mingw*)
9486     # gcc leaves a trailing carriage return which upsets mingw
9487     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9488   *)
9489     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9490   esac
9491   case $ac_prog in
9492     # Accept absolute paths.
9493     [\\/]* | ?:[\\/]*)
9494       re_direlt='/[^/][^/]*/\.\./'
9495       # Canonicalize the pathname of ld
9496       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9497       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9498         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9499       done
9500       test -z "$LD" && LD="$ac_prog"
9501       ;;
9502   "")
9503     # If it fails, then pretend we aren't using GCC.
9504     ac_prog=ld
9505     ;;
9506   *)
9507     # If it is relative, then search for the first ld in PATH.
9508     with_gnu_ld=unknown
9509     ;;
9510   esac
9511 elif test "$with_gnu_ld" = yes; then
9512   echo "$as_me:$LINENO: checking for GNU ld" >&5
9513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9514 else
9515   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9517 fi
9518 if test "${lt_cv_path_LD+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   if test -z "$LD"; then
9522   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9523   for ac_dir in $PATH; do
9524     IFS="$lt_save_ifs"
9525     test -z "$ac_dir" && ac_dir=.
9526     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9527       lt_cv_path_LD="$ac_dir/$ac_prog"
9528       # Check to see if the program is GNU ld.  I'd rather use --version,
9529       # but apparently some GNU ld's only accept -v.
9530       # Break only if it was the GNU/non-GNU ld that we prefer.
9531       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9532       *GNU* | *'with BFD'*)
9533         test "$with_gnu_ld" != no && break
9534         ;;
9535       *)
9536         test "$with_gnu_ld" != yes && break
9537         ;;
9538       esac
9539     fi
9540   done
9541   IFS="$lt_save_ifs"
9542 else
9543   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9544 fi
9545 fi
9546
9547 LD="$lt_cv_path_LD"
9548 if test -n "$LD"; then
9549   echo "$as_me:$LINENO: result: $LD" >&5
9550 echo "${ECHO_T}$LD" >&6
9551 else
9552   echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554 fi
9555 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9556 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9557    { (exit 1); exit 1; }; }
9558 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9559 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9560 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9564 case `$LD -v 2>&1 </dev/null` in
9565 *GNU* | *'with BFD'*)
9566   lt_cv_prog_gnu_ld=yes
9567   ;;
9568 *)
9569   lt_cv_prog_gnu_ld=no
9570   ;;
9571 esac
9572 fi
9573 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9574 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9575 with_gnu_ld=$lt_cv_prog_gnu_ld
9576
9577
9578
9579   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9580   # archiving commands below assume that GNU ld is being used.
9581   if test "$with_gnu_ld" = yes; then
9582     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583     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'
9584
9585     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9586     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9587
9588     # If archive_cmds runs LD, not CC, wlarc should be empty
9589     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9590     #     investigate it a little bit more. (MM)
9591     wlarc='${wl}'
9592
9593     # ancient GNU ld didn't support --whole-archive et. al.
9594     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9595         grep 'no-whole-archive' > /dev/null; then
9596       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9597     else
9598       whole_archive_flag_spec_CXX=
9599     fi
9600   else
9601     with_gnu_ld=no
9602     wlarc=
9603
9604     # A generic and very simple default shared library creation
9605     # command for GNU C++ for the case where it uses the native
9606     # linker, instead of GNU ld.  If possible, this setting should
9607     # overridden to take advantage of the native linker features on
9608     # the platform it is being used on.
9609     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9610   fi
9611
9612   # Commands to make compiler produce verbose output that lists
9613   # what "hidden" libraries, object files and flags are used when
9614   # linking a shared library.
9615   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9616
9617 else
9618   GXX=no
9619   with_gnu_ld=no
9620   wlarc=
9621 fi
9622
9623 # PORTME: fill in a description of your system's C++ link characteristics
9624 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9625 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9626 ld_shlibs_CXX=yes
9627 case $host_os in
9628   aix3*)
9629     # FIXME: insert proper C++ library support
9630     ld_shlibs_CXX=no
9631     ;;
9632   aix4* | aix5*)
9633     if test "$host_cpu" = ia64; then
9634       # On IA64, the linker does run time linking by default, so we don't
9635       # have to do anything special.
9636       aix_use_runtimelinking=no
9637       exp_sym_flag='-Bexport'
9638       no_entry_flag=""
9639     else
9640       aix_use_runtimelinking=no
9641
9642       # Test if we are trying to use run time linking or normal
9643       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644       # need to do runtime linking.
9645       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9646         for ld_flag in $LDFLAGS; do
9647           case $ld_flag in
9648           *-brtl*)
9649             aix_use_runtimelinking=yes
9650             break
9651             ;;
9652           esac
9653         done
9654       esac
9655
9656       exp_sym_flag='-bexport'
9657       no_entry_flag='-bnoentry'
9658     fi
9659
9660     # When large executables or shared objects are built, AIX ld can
9661     # have problems creating the table of contents.  If linking a library
9662     # or program results in "error TOC overflow" add -mminimal-toc to
9663     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9664     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9665
9666     archive_cmds_CXX=''
9667     hardcode_direct_CXX=yes
9668     hardcode_libdir_separator_CXX=':'
9669     link_all_deplibs_CXX=yes
9670
9671     if test "$GXX" = yes; then
9672       case $host_os in aix4.012|aix4.012.*)
9673       # We only want to do this on AIX 4.2 and lower, the check
9674       # below for broken collect2 doesn't work under 4.3+
9675         collect2name=`${CC} -print-prog-name=collect2`
9676         if test -f "$collect2name" && \
9677            strings "$collect2name" | grep resolve_lib_name >/dev/null
9678         then
9679           # We have reworked collect2
9680           hardcode_direct_CXX=yes
9681         else
9682           # We have old collect2
9683           hardcode_direct_CXX=unsupported
9684           # It fails to find uninstalled libraries when the uninstalled
9685           # path is not listed in the libpath.  Setting hardcode_minus_L
9686           # to unsupported forces relinking
9687           hardcode_minus_L_CXX=yes
9688           hardcode_libdir_flag_spec_CXX='-L$libdir'
9689           hardcode_libdir_separator_CXX=
9690         fi
9691       esac
9692       shared_flag='-shared'
9693     else
9694       # not using gcc
9695       if test "$host_cpu" = ia64; then
9696         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9697         # chokes on -Wl,-G. The following line is correct:
9698         shared_flag='-G'
9699       else
9700         if test "$aix_use_runtimelinking" = yes; then
9701           shared_flag='${wl}-G'
9702         else
9703           shared_flag='${wl}-bM:SRE'
9704         fi
9705       fi
9706     fi
9707
9708     # It seems that -bexpall does not export symbols beginning with
9709     # underscore (_), so it is better to generate a list of symbols to export.
9710     always_export_symbols_CXX=yes
9711     if test "$aix_use_runtimelinking" = yes; then
9712       # Warning - without using the other runtime loading flags (-brtl),
9713       # -berok will link without error, but may produce a broken library.
9714       allow_undefined_flag_CXX='-berok'
9715       # Determine the default libpath from the value encoded in an empty executable.
9716       cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722
9723 int
9724 main ()
9725 {
9726
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733   (eval $ac_link) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_cxx_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753
9754 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9755 }'`
9756 # Check for a 64-bit object if we didn't find anything.
9757 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; }
9758 }'`; fi
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 fi
9764 rm -f conftest.err conftest.$ac_objext \
9765       conftest$ac_exeext conftest.$ac_ext
9766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769
9770       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"
9771      else
9772       if test "$host_cpu" = ia64; then
9773         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774         allow_undefined_flag_CXX="-z nodefs"
9775         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"
9776       else
9777         # Determine the default libpath from the value encoded in an empty executable.
9778         cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 int
9786 main ()
9787 {
9788
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795   (eval $ac_link) 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } &&
9802          { ac_try='test -z "$ac_cxx_werror_flag"
9803                          || test ! -s conftest.err'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; } &&
9809          { ac_try='test -s conftest$ac_exeext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815
9816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9817 }'`
9818 # Check for a 64-bit object if we didn't find anything.
9819 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; }
9820 }'`; fi
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 fi
9826 rm -f conftest.err conftest.$ac_objext \
9827       conftest$ac_exeext conftest.$ac_ext
9828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9829
9830         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9831         # Warning - without using the other run time loading flags,
9832         # -berok will link without error, but may produce a broken library.
9833         no_undefined_flag_CXX=' ${wl}-bernotok'
9834         allow_undefined_flag_CXX=' ${wl}-berok'
9835         # -bexpall does not export symbols beginning with underscore (_)
9836         always_export_symbols_CXX=yes
9837         # Exported symbols can be pulled into shared objects from archives
9838         whole_archive_flag_spec_CXX=' '
9839         archive_cmds_need_lc_CXX=yes
9840         # This is similar to how AIX traditionally builds it's shared libraries.
9841         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'
9842       fi
9843     fi
9844     ;;
9845   chorus*)
9846     case $cc_basename in
9847       *)
9848         # FIXME: insert proper C++ library support
9849         ld_shlibs_CXX=no
9850         ;;
9851     esac
9852     ;;
9853
9854
9855   cygwin* | mingw* | pw32*)
9856     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9857     # as there is no search path for DLLs.
9858     hardcode_libdir_flag_spec_CXX='-L$libdir'
9859     allow_undefined_flag_CXX=unsupported
9860     always_export_symbols_CXX=no
9861     enable_shared_with_static_runtimes_CXX=yes
9862
9863     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9864       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'
9865       # If the export-symbols file already is a .def file (1st line
9866       # is EXPORTS), use it as is; otherwise, prepend...
9867       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868         cp $export_symbols $output_objdir/$soname.def;
9869       else
9870         echo EXPORTS > $output_objdir/$soname.def;
9871         cat $export_symbols >> $output_objdir/$soname.def;
9872       fi~
9873       $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'
9874     else
9875       ld_shlibs_CXX=no
9876     fi
9877   ;;
9878       darwin* | rhapsody*)
9879         case "$host_os" in
9880         rhapsody* | darwin1.[012])
9881          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9882          ;;
9883        *) # Darwin 1.3 on
9884          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9885            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9886          else
9887            case ${MACOSX_DEPLOYMENT_TARGET} in
9888              10.[012])
9889                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9890                ;;
9891              10.*)
9892                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9893                ;;
9894            esac
9895          fi
9896          ;;
9897         esac
9898       archive_cmds_need_lc_CXX=no
9899       hardcode_direct_CXX=no
9900       hardcode_automatic_CXX=yes
9901       hardcode_shlibpath_var_CXX=unsupported
9902       whole_archive_flag_spec_CXX=''
9903       link_all_deplibs_CXX=yes
9904
9905     if test "$GXX" = yes ; then
9906       lt_int_apple_cc_single_mod=no
9907       output_verbose_link_cmd='echo'
9908       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9909        lt_int_apple_cc_single_mod=yes
9910       fi
9911       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9912        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9913       else
9914           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'
9915         fi
9916         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9917         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9918           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9919             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}'
9920           else
9921             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}'
9922           fi
9923             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}'
9924       else
9925       case "$cc_basename" in
9926         xlc*)
9927          output_verbose_link_cmd='echo'
9928           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'
9929           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9930           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9931           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}'
9932           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}'
9933           ;;
9934        *)
9935          ld_shlibs_CXX=no
9936           ;;
9937       esac
9938       fi
9939         ;;
9940
9941   dgux*)
9942     case $cc_basename in
9943       ec++)
9944         # FIXME: insert proper C++ library support
9945         ld_shlibs_CXX=no
9946         ;;
9947       ghcx)
9948         # Green Hills C++ Compiler
9949         # FIXME: insert proper C++ library support
9950         ld_shlibs_CXX=no
9951         ;;
9952       *)
9953         # FIXME: insert proper C++ library support
9954         ld_shlibs_CXX=no
9955         ;;
9956     esac
9957     ;;
9958   freebsd12*)
9959     # C++ shared libraries reported to be fairly broken before switch to ELF
9960     ld_shlibs_CXX=no
9961     ;;
9962   freebsd-elf*)
9963     archive_cmds_need_lc_CXX=no
9964     ;;
9965   freebsd* | kfreebsd*-gnu)
9966     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9967     # conventions
9968     ld_shlibs_CXX=yes
9969     ;;
9970   gnu*)
9971     ;;
9972   hpux9*)
9973     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9974     hardcode_libdir_separator_CXX=:
9975     export_dynamic_flag_spec_CXX='${wl}-E'
9976     hardcode_direct_CXX=yes
9977     hardcode_minus_L_CXX=yes # Not in the search PATH,
9978                                 # but as the default
9979                                 # location of the library.
9980
9981     case $cc_basename in
9982     CC)
9983       # FIXME: insert proper C++ library support
9984       ld_shlibs_CXX=no
9985       ;;
9986     aCC)
9987       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'
9988       # Commands to make compiler produce verbose output that lists
9989       # what "hidden" libraries, object files and flags are used when
9990       # linking a shared library.
9991       #
9992       # There doesn't appear to be a way to prevent this compiler from
9993       # explicitly linking system object files so we need to strip them
9994       # from the output so that they don't get included in the library
9995       # dependencies.
9996       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'
9997       ;;
9998     *)
9999       if test "$GXX" = yes; then
10000         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'
10001       else
10002         # FIXME: insert proper C++ library support
10003         ld_shlibs_CXX=no
10004       fi
10005       ;;
10006     esac
10007     ;;
10008   hpux10*|hpux11*)
10009     if test $with_gnu_ld = no; then
10010       case "$host_cpu" in
10011       hppa*64*)
10012         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10013         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10014         hardcode_libdir_separator_CXX=:
10015         ;;
10016       ia64*)
10017         hardcode_libdir_flag_spec_CXX='-L$libdir'
10018         ;;
10019       *)
10020         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021         hardcode_libdir_separator_CXX=:
10022         export_dynamic_flag_spec_CXX='${wl}-E'
10023         ;;
10024       esac
10025     fi
10026     case "$host_cpu" in
10027     hppa*64*)
10028       hardcode_direct_CXX=no
10029       hardcode_shlibpath_var_CXX=no
10030       ;;
10031     ia64*)
10032       hardcode_direct_CXX=no
10033       hardcode_shlibpath_var_CXX=no
10034       hardcode_minus_L_CXX=yes # Not in the search PATH,
10035                                               # but as the default
10036                                               # location of the library.
10037       ;;
10038     *)
10039       hardcode_direct_CXX=yes
10040       hardcode_minus_L_CXX=yes # Not in the search PATH,
10041                                               # but as the default
10042                                               # location of the library.
10043       ;;
10044     esac
10045
10046     case $cc_basename in
10047       CC)
10048         # FIXME: insert proper C++ library support
10049         ld_shlibs_CXX=no
10050         ;;
10051       aCC)
10052         case "$host_cpu" in
10053         hppa*64*|ia64*)
10054           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10055           ;;
10056         *)
10057           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10058           ;;
10059         esac
10060         # Commands to make compiler produce verbose output that lists
10061         # what "hidden" libraries, object files and flags are used when
10062         # linking a shared library.
10063         #
10064         # There doesn't appear to be a way to prevent this compiler from
10065         # explicitly linking system object files so we need to strip them
10066         # from the output so that they don't get included in the library
10067         # dependencies.
10068         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'
10069         ;;
10070       *)
10071         if test "$GXX" = yes; then
10072           if test $with_gnu_ld = no; then
10073             case "$host_cpu" in
10074             ia64*|hppa*64*)
10075               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10076               ;;
10077             *)
10078               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'
10079               ;;
10080             esac
10081           fi
10082         else
10083           # FIXME: insert proper C++ library support
10084           ld_shlibs_CXX=no
10085         fi
10086         ;;
10087     esac
10088     ;;
10089   irix5* | irix6*)
10090     case $cc_basename in
10091       CC)
10092         # SGI C++
10093         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'
10094
10095         # Archives containing C++ object files must be created using
10096         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10097         # necessary to make sure instantiated templates are included
10098         # in the archive.
10099         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10100         ;;
10101       *)
10102         if test "$GXX" = yes; then
10103           if test "$with_gnu_ld" = no; then
10104             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'
10105           else
10106             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'
10107           fi
10108         fi
10109         link_all_deplibs_CXX=yes
10110         ;;
10111     esac
10112     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113     hardcode_libdir_separator_CXX=:
10114     ;;
10115   linux*)
10116     case $cc_basename in
10117       KCC)
10118         # Kuck and Associates, Inc. (KAI) C++ Compiler
10119
10120         # KCC will only create a shared library if the output file
10121         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10122         # to its proper name (with version) after linking.
10123         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'
10124         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'
10125         # Commands to make compiler produce verbose output that lists
10126         # what "hidden" libraries, object files and flags are used when
10127         # linking a shared library.
10128         #
10129         # There doesn't appear to be a way to prevent this compiler from
10130         # explicitly linking system object files so we need to strip them
10131         # from the output so that they don't get included in the library
10132         # dependencies.
10133         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'
10134
10135         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10136         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10137
10138         # Archives containing C++ object files must be created using
10139         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10140         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10141         ;;
10142       icpc)
10143         # Intel C++
10144         with_gnu_ld=yes
10145         # version 8.0 and above of icpc choke on multiply defined symbols
10146         # if we add $predep_objects and $postdep_objects, however 7.1 and
10147         # earlier do not add the objects themselves.
10148         case `$CC -V 2>&1` in
10149         *"Version 7."*)
10150           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151           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'
10152           ;;
10153         *)  # Version 8.0 or newer
10154           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156           ;;
10157         esac
10158         archive_cmds_need_lc_CXX=no
10159         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10160         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10162         ;;
10163       cxx)
10164         # Compaq C++
10165         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10166         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'
10167
10168         runpath_var=LD_RUN_PATH
10169         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10170         hardcode_libdir_separator_CXX=:
10171
10172         # Commands to make compiler produce verbose output that lists
10173         # what "hidden" libraries, object files and flags are used when
10174         # linking a shared library.
10175         #
10176         # There doesn't appear to be a way to prevent this compiler from
10177         # explicitly linking system object files so we need to strip them
10178         # from the output so that they don't get included in the library
10179         # dependencies.
10180         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'
10181         ;;
10182     esac
10183     ;;
10184   lynxos*)
10185     # FIXME: insert proper C++ library support
10186     ld_shlibs_CXX=no
10187     ;;
10188   m88k*)
10189     # FIXME: insert proper C++ library support
10190     ld_shlibs_CXX=no
10191     ;;
10192   mvs*)
10193     case $cc_basename in
10194       cxx)
10195         # FIXME: insert proper C++ library support
10196         ld_shlibs_CXX=no
10197         ;;
10198       *)
10199         # FIXME: insert proper C++ library support
10200         ld_shlibs_CXX=no
10201         ;;
10202     esac
10203     ;;
10204   netbsd*)
10205     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10206       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10207       wlarc=
10208       hardcode_libdir_flag_spec_CXX='-R$libdir'
10209       hardcode_direct_CXX=yes
10210       hardcode_shlibpath_var_CXX=no
10211     fi
10212     # Workaround some broken pre-1.5 toolchains
10213     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10214     ;;
10215   openbsd2*)
10216     # C++ shared libraries are fairly broken
10217     ld_shlibs_CXX=no
10218     ;;
10219   openbsd*)
10220     hardcode_direct_CXX=yes
10221     hardcode_shlibpath_var_CXX=no
10222     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10223     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10224     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10225       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10226       export_dynamic_flag_spec_CXX='${wl}-E'
10227       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10228     fi
10229     output_verbose_link_cmd='echo'
10230     ;;
10231   osf3*)
10232     case $cc_basename in
10233       KCC)
10234         # Kuck and Associates, Inc. (KAI) C++ Compiler
10235
10236         # KCC will only create a shared library if the output file
10237         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10238         # to its proper name (with version) after linking.
10239         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'
10240
10241         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242         hardcode_libdir_separator_CXX=:
10243
10244         # Archives containing C++ object files must be created using
10245         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10246         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10247
10248         ;;
10249       RCC)
10250         # Rational C++ 2.4.1
10251         # FIXME: insert proper C++ library support
10252         ld_shlibs_CXX=no
10253         ;;
10254       cxx)
10255         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256         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'
10257
10258         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259         hardcode_libdir_separator_CXX=:
10260
10261         # Commands to make compiler produce verbose output that lists
10262         # what "hidden" libraries, object files and flags are used when
10263         # linking a shared library.
10264         #
10265         # There doesn't appear to be a way to prevent this compiler from
10266         # explicitly linking system object files so we need to strip them
10267         # from the output so that they don't get included in the library
10268         # dependencies.
10269         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'
10270         ;;
10271       *)
10272         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10273           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10274           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'
10275
10276           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10277           hardcode_libdir_separator_CXX=:
10278
10279           # Commands to make compiler produce verbose output that lists
10280           # what "hidden" libraries, object files and flags are used when
10281           # linking a shared library.
10282           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10283
10284         else
10285           # FIXME: insert proper C++ library support
10286           ld_shlibs_CXX=no
10287         fi
10288         ;;
10289     esac
10290     ;;
10291   osf4* | osf5*)
10292     case $cc_basename in
10293       KCC)
10294         # Kuck and Associates, Inc. (KAI) C++ Compiler
10295
10296         # KCC will only create a shared library if the output file
10297         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298         # to its proper name (with version) after linking.
10299         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'
10300
10301         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10302         hardcode_libdir_separator_CXX=:
10303
10304         # Archives containing C++ object files must be created using
10305         # the KAI C++ compiler.
10306         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10307         ;;
10308       RCC)
10309         # Rational C++ 2.4.1
10310         # FIXME: insert proper C++ library support
10311         ld_shlibs_CXX=no
10312         ;;
10313       cxx)
10314         allow_undefined_flag_CXX=' -expect_unresolved \*'
10315         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'
10316         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10317           echo "-hidden">> $lib.exp~
10318           $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~
10319           $rm $lib.exp'
10320
10321         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10322         hardcode_libdir_separator_CXX=:
10323
10324         # Commands to make compiler produce verbose output that lists
10325         # what "hidden" libraries, object files and flags are used when
10326         # linking a shared library.
10327         #
10328         # There doesn't appear to be a way to prevent this compiler from
10329         # explicitly linking system object files so we need to strip them
10330         # from the output so that they don't get included in the library
10331         # dependencies.
10332         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'
10333         ;;
10334       *)
10335         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10336           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10337          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'
10338
10339           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10340           hardcode_libdir_separator_CXX=:
10341
10342           # Commands to make compiler produce verbose output that lists
10343           # what "hidden" libraries, object files and flags are used when
10344           # linking a shared library.
10345           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10346
10347         else
10348           # FIXME: insert proper C++ library support
10349           ld_shlibs_CXX=no
10350         fi
10351         ;;
10352     esac
10353     ;;
10354   psos*)
10355     # FIXME: insert proper C++ library support
10356     ld_shlibs_CXX=no
10357     ;;
10358   sco*)
10359     archive_cmds_need_lc_CXX=no
10360     case $cc_basename in
10361       CC)
10362         # FIXME: insert proper C++ library support
10363         ld_shlibs_CXX=no
10364         ;;
10365       *)
10366         # FIXME: insert proper C++ library support
10367         ld_shlibs_CXX=no
10368         ;;
10369     esac
10370     ;;
10371   sunos4*)
10372     case $cc_basename in
10373       CC)
10374         # Sun C++ 4.x
10375         # FIXME: insert proper C++ library support
10376         ld_shlibs_CXX=no
10377         ;;
10378       lcc)
10379         # Lucid
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382         ;;
10383       *)
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387     esac
10388     ;;
10389   solaris*)
10390     case $cc_basename in
10391       CC)
10392         # Sun C++ 4.2, 5.x and Centerline C++
10393         no_undefined_flag_CXX=' -zdefs'
10394         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10395         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396         $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'
10397
10398         hardcode_libdir_flag_spec_CXX='-R$libdir'
10399         hardcode_shlibpath_var_CXX=no
10400         case $host_os in
10401           solaris2.0-5 | solaris2.0-5.*) ;;
10402           *)
10403             # The C++ compiler is used as linker so we must use $wl
10404             # flag to pass the commands to the underlying system
10405             # linker.
10406             # Supported since Solaris 2.6 (maybe 2.5.1?)
10407             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10408             ;;
10409         esac
10410         link_all_deplibs_CXX=yes
10411
10412         # Commands to make compiler produce verbose output that lists
10413         # what "hidden" libraries, object files and flags are used when
10414         # linking a shared library.
10415         #
10416         # There doesn't appear to be a way to prevent this compiler from
10417         # explicitly linking system object files so we need to strip them
10418         # from the output so that they don't get included in the library
10419         # dependencies.
10420         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'
10421
10422         # Archives containing C++ object files must be created using
10423         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10424         # necessary to make sure instantiated templates are included
10425         # in the archive.
10426         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10427         ;;
10428       gcx)
10429         # Green Hills C++ Compiler
10430         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10431
10432         # The C++ compiler must be used to create the archive.
10433         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10434         ;;
10435       *)
10436         # GNU C++ compiler with Solaris linker
10437         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10438           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10439           if $CC --version | grep -v '^2\.7' > /dev/null; then
10440             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10441             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10442                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10443
10444             # Commands to make compiler produce verbose output that lists
10445             # what "hidden" libraries, object files and flags are used when
10446             # linking a shared library.
10447             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10448           else
10449             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10450             # platform.
10451             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10452             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10454
10455             # Commands to make compiler produce verbose output that lists
10456             # what "hidden" libraries, object files and flags are used when
10457             # linking a shared library.
10458             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10459           fi
10460
10461           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10462         fi
10463         ;;
10464     esac
10465     ;;
10466   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10467     archive_cmds_need_lc_CXX=no
10468     ;;
10469   tandem*)
10470     case $cc_basename in
10471       NCC)
10472         # NonStop-UX NCC 3.20
10473         # FIXME: insert proper C++ library support
10474         ld_shlibs_CXX=no
10475         ;;
10476       *)
10477         # FIXME: insert proper C++ library support
10478         ld_shlibs_CXX=no
10479         ;;
10480     esac
10481     ;;
10482   vxworks*)
10483     # FIXME: insert proper C++ library support
10484     ld_shlibs_CXX=no
10485     ;;
10486   *)
10487     # FIXME: insert proper C++ library support
10488     ld_shlibs_CXX=no
10489     ;;
10490 esac
10491 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10492 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10493 test "$ld_shlibs_CXX" = no && can_build_shared=no
10494
10495 GCC_CXX="$GXX"
10496 LD_CXX="$LD"
10497
10498
10499 cat > conftest.$ac_ext <<EOF
10500 class Foo
10501 {
10502 public:
10503   Foo (void) { a = 0; }
10504 private:
10505   int a;
10506 };
10507 EOF
10508
10509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510   (eval $ac_compile) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; then
10514   # Parse the compiler output and extract the necessary
10515   # objects, libraries and library flags.
10516
10517   # Sentinel used to keep track of whether or not we are before
10518   # the conftest object file.
10519   pre_test_object_deps_done=no
10520
10521   # The `*' in the case matches for architectures that use `case' in
10522   # $output_verbose_cmd can trigger glob expansion during the loop
10523   # eval without this substitution.
10524   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10525
10526   for p in `eval $output_verbose_link_cmd`; do
10527     case $p in
10528
10529     -L* | -R* | -l*)
10530        # Some compilers place space between "-{L,R}" and the path.
10531        # Remove the space.
10532        if test $p = "-L" \
10533           || test $p = "-R"; then
10534          prev=$p
10535          continue
10536        else
10537          prev=
10538        fi
10539
10540        if test "$pre_test_object_deps_done" = no; then
10541          case $p in
10542          -L* | -R*)
10543            # Internal compiler library paths should come after those
10544            # provided the user.  The postdeps already come after the
10545            # user supplied libs so there is no need to process them.
10546            if test -z "$compiler_lib_search_path_CXX"; then
10547              compiler_lib_search_path_CXX="${prev}${p}"
10548            else
10549              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10550            fi
10551            ;;
10552          # The "-l" case would never come before the object being
10553          # linked, so don't bother handling this case.
10554          esac
10555        else
10556          if test -z "$postdeps_CXX"; then
10557            postdeps_CXX="${prev}${p}"
10558          else
10559            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10560          fi
10561        fi
10562        ;;
10563
10564     *.$objext)
10565        # This assumes that the test object file only shows up
10566        # once in the compiler output.
10567        if test "$p" = "conftest.$objext"; then
10568          pre_test_object_deps_done=yes
10569          continue
10570        fi
10571
10572        if test "$pre_test_object_deps_done" = no; then
10573          if test -z "$predep_objects_CXX"; then
10574            predep_objects_CXX="$p"
10575          else
10576            predep_objects_CXX="$predep_objects_CXX $p"
10577          fi
10578        else
10579          if test -z "$postdep_objects_CXX"; then
10580            postdep_objects_CXX="$p"
10581          else
10582            postdep_objects_CXX="$postdep_objects_CXX $p"
10583          fi
10584        fi
10585        ;;
10586
10587     *) ;; # Ignore the rest.
10588
10589     esac
10590   done
10591
10592   # Clean up.
10593   rm -f a.out a.exe
10594 else
10595   echo "libtool.m4: error: problem compiling CXX test program"
10596 fi
10597
10598 $rm -f confest.$objext
10599
10600 case " $postdeps_CXX " in
10601 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10602 esac
10603
10604 lt_prog_compiler_wl_CXX=
10605 lt_prog_compiler_pic_CXX=
10606 lt_prog_compiler_static_CXX=
10607
10608 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10610
10611   # C++ specific cases for pic, static, wl, etc.
10612   if test "$GXX" = yes; then
10613     lt_prog_compiler_wl_CXX='-Wl,'
10614     lt_prog_compiler_static_CXX='-static'
10615
10616     case $host_os in
10617     aix*)
10618       # All AIX code is PIC.
10619       if test "$host_cpu" = ia64; then
10620         # AIX 5 now supports IA64 processor
10621         lt_prog_compiler_static_CXX='-Bstatic'
10622       fi
10623       ;;
10624     amigaos*)
10625       # FIXME: we need at least 68020 code to build shared libraries, but
10626       # adding the `-m68020' flag to GCC prevents building anything better,
10627       # like `-m68040'.
10628       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10629       ;;
10630     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10631       # PIC is the default for these OSes.
10632       ;;
10633     mingw* | os2* | pw32*)
10634       # This hack is so that the source file can tell whether it is being
10635       # built for inclusion in a dll (and should export symbols for example).
10636       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10637       ;;
10638     darwin* | rhapsody*)
10639       # PIC is the default on this platform
10640       # Common symbols not allowed in MH_DYLIB files
10641       lt_prog_compiler_pic_CXX='-fno-common'
10642       ;;
10643     *djgpp*)
10644       # DJGPP does not support shared libraries at all
10645       lt_prog_compiler_pic_CXX=
10646       ;;
10647     sysv4*MP*)
10648       if test -d /usr/nec; then
10649         lt_prog_compiler_pic_CXX=-Kconform_pic
10650       fi
10651       ;;
10652     hpux*)
10653       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10654       # not for PA HP-UX.
10655       case "$host_cpu" in
10656       hppa*64*|ia64*)
10657         ;;
10658       *)
10659         lt_prog_compiler_pic_CXX='-fPIC'
10660         ;;
10661       esac
10662       ;;
10663     *)
10664       lt_prog_compiler_pic_CXX='-fPIC'
10665       ;;
10666     esac
10667   else
10668     case $host_os in
10669       aix4* | aix5*)
10670         # All AIX code is PIC.
10671         if test "$host_cpu" = ia64; then
10672           # AIX 5 now supports IA64 processor
10673           lt_prog_compiler_static_CXX='-Bstatic'
10674         else
10675           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10676         fi
10677         ;;
10678       chorus*)
10679         case $cc_basename in
10680         cxch68)
10681           # Green Hills C++ Compiler
10682           # _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"
10683           ;;
10684         esac
10685         ;;
10686        darwin*)
10687          # PIC is the default on this platform
10688          # Common symbols not allowed in MH_DYLIB files
10689          case "$cc_basename" in
10690            xlc*)
10691            lt_prog_compiler_pic_CXX='-qnocommon'
10692            lt_prog_compiler_wl_CXX='-Wl,'
10693            ;;
10694          esac
10695        ;;
10696       dgux*)
10697         case $cc_basename in
10698           ec++)
10699             lt_prog_compiler_pic_CXX='-KPIC'
10700             ;;
10701           ghcx)
10702             # Green Hills C++ Compiler
10703             lt_prog_compiler_pic_CXX='-pic'
10704             ;;
10705           *)
10706             ;;
10707         esac
10708         ;;
10709       freebsd* | kfreebsd*-gnu)
10710         # FreeBSD uses GNU C++
10711         ;;
10712       hpux9* | hpux10* | hpux11*)
10713         case $cc_basename in
10714           CC)
10715             lt_prog_compiler_wl_CXX='-Wl,'
10716             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717             if test "$host_cpu" != ia64; then
10718               lt_prog_compiler_pic_CXX='+Z'
10719             fi
10720             ;;
10721           aCC)
10722             lt_prog_compiler_wl_CXX='-Wl,'
10723             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724             case "$host_cpu" in
10725             hppa*64*|ia64*)
10726               # +Z the default
10727               ;;
10728             *)
10729               lt_prog_compiler_pic_CXX='+Z'
10730               ;;
10731             esac
10732             ;;
10733           *)
10734             ;;
10735         esac
10736         ;;
10737       irix5* | irix6* | nonstopux*)
10738         case $cc_basename in
10739           CC)
10740             lt_prog_compiler_wl_CXX='-Wl,'
10741             lt_prog_compiler_static_CXX='-non_shared'
10742             # CC pic flag -KPIC is the default.
10743             ;;
10744           *)
10745             ;;
10746         esac
10747         ;;
10748       linux*)
10749         case $cc_basename in
10750           KCC)
10751             # KAI C++ Compiler
10752             lt_prog_compiler_wl_CXX='--backend -Wl,'
10753             lt_prog_compiler_pic_CXX='-fPIC'
10754             ;;
10755           icpc)
10756             # Intel C++
10757             lt_prog_compiler_wl_CXX='-Wl,'
10758             lt_prog_compiler_pic_CXX='-KPIC'
10759             lt_prog_compiler_static_CXX='-static'
10760             ;;
10761           cxx)
10762             # Compaq C++
10763             # Make sure the PIC flag is empty.  It appears that all Alpha
10764             # Linux and Compaq Tru64 Unix objects are PIC.
10765             lt_prog_compiler_pic_CXX=
10766             lt_prog_compiler_static_CXX='-non_shared'
10767             ;;
10768           *)
10769             ;;
10770         esac
10771         ;;
10772       lynxos*)
10773         ;;
10774       m88k*)
10775         ;;
10776       mvs*)
10777         case $cc_basename in
10778           cxx)
10779             lt_prog_compiler_pic_CXX='-W c,exportall'
10780             ;;
10781           *)
10782             ;;
10783         esac
10784         ;;
10785       netbsd*)
10786         ;;
10787       osf3* | osf4* | osf5*)
10788         case $cc_basename in
10789           KCC)
10790             lt_prog_compiler_wl_CXX='--backend -Wl,'
10791             ;;
10792           RCC)
10793             # Rational C++ 2.4.1
10794             lt_prog_compiler_pic_CXX='-pic'
10795             ;;
10796           cxx)
10797             # Digital/Compaq C++
10798             lt_prog_compiler_wl_CXX='-Wl,'
10799             # Make sure the PIC flag is empty.  It appears that all Alpha
10800             # Linux and Compaq Tru64 Unix objects are PIC.
10801             lt_prog_compiler_pic_CXX=
10802             lt_prog_compiler_static_CXX='-non_shared'
10803             ;;
10804           *)
10805             ;;
10806         esac
10807         ;;
10808       psos*)
10809         ;;
10810       sco*)
10811         case $cc_basename in
10812           CC)
10813             lt_prog_compiler_pic_CXX='-fPIC'
10814             ;;
10815           *)
10816             ;;
10817         esac
10818         ;;
10819       solaris*)
10820         case $cc_basename in
10821           CC)
10822             # Sun C++ 4.2, 5.x and Centerline C++
10823             lt_prog_compiler_pic_CXX='-KPIC'
10824             lt_prog_compiler_static_CXX='-Bstatic'
10825             lt_prog_compiler_wl_CXX='-Qoption ld '
10826             ;;
10827           gcx)
10828             # Green Hills C++ Compiler
10829             lt_prog_compiler_pic_CXX='-PIC'
10830             ;;
10831           *)
10832             ;;
10833         esac
10834         ;;
10835       sunos4*)
10836         case $cc_basename in
10837           CC)
10838             # Sun C++ 4.x
10839             lt_prog_compiler_pic_CXX='-pic'
10840             lt_prog_compiler_static_CXX='-Bstatic'
10841             ;;
10842           lcc)
10843             # Lucid
10844             lt_prog_compiler_pic_CXX='-pic'
10845             ;;
10846           *)
10847             ;;
10848         esac
10849         ;;
10850       tandem*)
10851         case $cc_basename in
10852           NCC)
10853             # NonStop-UX NCC 3.20
10854             lt_prog_compiler_pic_CXX='-KPIC'
10855             ;;
10856           *)
10857             ;;
10858         esac
10859         ;;
10860       unixware*)
10861         ;;
10862       vxworks*)
10863         ;;
10864       *)
10865         lt_prog_compiler_can_build_shared_CXX=no
10866         ;;
10867     esac
10868   fi
10869
10870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10871 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10872
10873 #
10874 # Check to make sure the PIC flag actually works.
10875 #
10876 if test -n "$lt_prog_compiler_pic_CXX"; then
10877
10878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10880 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   lt_prog_compiler_pic_works_CXX=no
10884   ac_outfile=conftest.$ac_objext
10885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10886    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10887    # Insert the option either (1) after the last *FLAGS variable, or
10888    # (2) before a word containing "conftest.", or (3) at the end.
10889    # Note that $ac_compile itself does not contain backslashes and begins
10890    # with a dollar sign (not a hyphen), so the echo should work correctly.
10891    # The option is referenced via a variable to avoid confusing sed.
10892    lt_compile=`echo "$ac_compile" | $SED \
10893    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895    -e 's:$: $lt_compiler_flag:'`
10896    (eval echo "\"\$as_me:10896: $lt_compile\"" >&5)
10897    (eval "$lt_compile" 2>conftest.err)
10898    ac_status=$?
10899    cat conftest.err >&5
10900    echo "$as_me:10900: \$? = $ac_status" >&5
10901    if (exit $ac_status) && test -s "$ac_outfile"; then
10902      # The compiler can only warn and ignore the option if not recognized
10903      # So say no if there are warnings
10904      if test ! -s conftest.err; then
10905        lt_prog_compiler_pic_works_CXX=yes
10906      fi
10907    fi
10908    $rm conftest*
10909
10910 fi
10911 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10912 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10913
10914 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10915     case $lt_prog_compiler_pic_CXX in
10916      "" | " "*) ;;
10917      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10918      esac
10919 else
10920     lt_prog_compiler_pic_CXX=
10921      lt_prog_compiler_can_build_shared_CXX=no
10922 fi
10923
10924 fi
10925 case "$host_os" in
10926   # For platforms which do not support PIC, -DPIC is meaningless:
10927   *djgpp*)
10928     lt_prog_compiler_pic_CXX=
10929     ;;
10930   *)
10931     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10932     ;;
10933 esac
10934
10935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10937 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   lt_cv_prog_compiler_c_o_CXX=no
10941    $rm -r conftest 2>/dev/null
10942    mkdir conftest
10943    cd conftest
10944    mkdir out
10945    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10946
10947    lt_compiler_flag="-o out/conftest2.$ac_objext"
10948    # Insert the option either (1) after the last *FLAGS variable, or
10949    # (2) before a word containing "conftest.", or (3) at the end.
10950    # Note that $ac_compile itself does not contain backslashes and begins
10951    # with a dollar sign (not a hyphen), so the echo should work correctly.
10952    lt_compile=`echo "$ac_compile" | $SED \
10953    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10955    -e 's:$: $lt_compiler_flag:'`
10956    (eval echo "\"\$as_me:10956: $lt_compile\"" >&5)
10957    (eval "$lt_compile" 2>out/conftest.err)
10958    ac_status=$?
10959    cat out/conftest.err >&5
10960    echo "$as_me:10960: \$? = $ac_status" >&5
10961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10962    then
10963      # The compiler can only warn and ignore the option if not recognized
10964      # So say no if there are warnings
10965      if test ! -s out/conftest.err; then
10966        lt_cv_prog_compiler_c_o_CXX=yes
10967      fi
10968    fi
10969    chmod u+w .
10970    $rm conftest*
10971    # SGI C++ compiler will create directory out/ii_files/ for
10972    # template instantiation
10973    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10974    $rm out/* && rmdir out
10975    cd ..
10976    rmdir conftest
10977    $rm conftest*
10978
10979 fi
10980 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10982
10983
10984 hard_links="nottested"
10985 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10986   # do not overwrite the value of need_locks provided by the user
10987   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10989   hard_links=yes
10990   $rm conftest*
10991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992   touch conftest.a
10993   ln conftest.a conftest.b 2>&5 || hard_links=no
10994   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10995   echo "$as_me:$LINENO: result: $hard_links" >&5
10996 echo "${ECHO_T}$hard_links" >&6
10997   if test "$hard_links" = no; then
10998     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11000     need_locks=warn
11001   fi
11002 else
11003   need_locks=no
11004 fi
11005
11006 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11008
11009   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11010   case $host_os in
11011   aix4* | aix5*)
11012     # If we're using GNU nm, then we don't want the "-C" option.
11013     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11014     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11015       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'
11016     else
11017       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'
11018     fi
11019     ;;
11020   pw32*)
11021     export_symbols_cmds_CXX="$ltdll_cmds"
11022   ;;
11023   cygwin* | mingw*)
11024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11025   ;;
11026   *)
11027     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11028   ;;
11029   esac
11030
11031 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11032 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11033 test "$ld_shlibs_CXX" = no && can_build_shared=no
11034
11035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11036 if test "$GCC" = yes; then
11037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11038 fi
11039
11040 #
11041 # Do we need to explicitly link libc?
11042 #
11043 case "x$archive_cmds_need_lc_CXX" in
11044 x|xyes)
11045   # Assume -lc should be added
11046   archive_cmds_need_lc_CXX=yes
11047
11048   if test "$enable_shared" = yes && test "$GCC" = yes; then
11049     case $archive_cmds_CXX in
11050     *'~'*)
11051       # FIXME: we may have to deal with multi-command sequences.
11052       ;;
11053     '$CC '*)
11054       # Test whether the compiler implicitly links with -lc since on some
11055       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11056       # to ld, don't add -lc before -lgcc.
11057       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11058 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11059       $rm conftest*
11060       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061
11062       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063   (eval $ac_compile) 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } 2>conftest.err; then
11067         soname=conftest
11068         lib=conftest
11069         libobjs=conftest.$ac_objext
11070         deplibs=
11071         wl=$lt_prog_compiler_wl_CXX
11072         compiler_flags=-v
11073         linker_flags=-v
11074         verstring=
11075         output_objdir=.
11076         libname=conftest
11077         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11078         allow_undefined_flag_CXX=
11079         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11080   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }
11084         then
11085           archive_cmds_need_lc_CXX=no
11086         else
11087           archive_cmds_need_lc_CXX=yes
11088         fi
11089         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11090       else
11091         cat conftest.err 1>&5
11092       fi
11093       $rm conftest*
11094       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11095 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11096       ;;
11097     esac
11098   fi
11099   ;;
11100 esac
11101
11102 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11103 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11104 library_names_spec=
11105 libname_spec='lib$name'
11106 soname_spec=
11107 shrext_cmds=".so"
11108 postinstall_cmds=
11109 postuninstall_cmds=
11110 finish_cmds=
11111 finish_eval=
11112 shlibpath_var=
11113 shlibpath_overrides_runpath=unknown
11114 version_type=none
11115 dynamic_linker="$host_os ld.so"
11116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11117 if test "$GCC" = yes; then
11118   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11119   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11120     # if the path contains ";" then we assume it to be the separator
11121     # otherwise default to the standard path separator (i.e. ":") - it is
11122     # assumed that no part of a normal pathname contains ";" but that should
11123     # okay in the real world where ";" in dirpaths is itself problematic.
11124     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11125   else
11126     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11127   fi
11128 else
11129   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11130 fi
11131 need_lib_prefix=unknown
11132 hardcode_into_libs=no
11133
11134 # when you set need_version to no, make sure it does not cause -set_version
11135 # flags to be left without arguments
11136 need_version=unknown
11137
11138 case $host_os in
11139 aix3*)
11140   version_type=linux
11141   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11142   shlibpath_var=LIBPATH
11143
11144   # AIX 3 has no versioning support, so we append a major version to the name.
11145   soname_spec='${libname}${release}${shared_ext}$major'
11146   ;;
11147
11148 aix4* | aix5*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   hardcode_into_libs=yes
11153   if test "$host_cpu" = ia64; then
11154     # AIX 5 supports IA64
11155     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11156     shlibpath_var=LD_LIBRARY_PATH
11157   else
11158     # With GCC up to 2.95.x, collect2 would create an import file
11159     # for dependence libraries.  The import file would start with
11160     # the line `#! .'.  This would cause the generated library to
11161     # depend on `.', always an invalid library.  This was fixed in
11162     # development snapshots of GCC prior to 3.0.
11163     case $host_os in
11164       aix4 | aix4.[01] | aix4.[01].*)
11165       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166            echo ' yes '
11167            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11168         :
11169       else
11170         can_build_shared=no
11171       fi
11172       ;;
11173     esac
11174     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11175     # soname into executable. Probably we can add versioning support to
11176     # collect2, so additional links can be useful in future.
11177     if test "$aix_use_runtimelinking" = yes; then
11178       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11179       # instead of lib<name>.a to let people know that these are not
11180       # typical AIX shared libraries.
11181       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182     else
11183       # We preserve .a as extension for shared libraries through AIX4.2
11184       # and later when we are not doing run time linking.
11185       library_names_spec='${libname}${release}.a $libname.a'
11186       soname_spec='${libname}${release}${shared_ext}$major'
11187     fi
11188     shlibpath_var=LIBPATH
11189   fi
11190   ;;
11191
11192 amigaos*)
11193   library_names_spec='$libname.ixlibrary $libname.a'
11194   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11195   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'
11196   ;;
11197
11198 beos*)
11199   library_names_spec='${libname}${shared_ext}'
11200   dynamic_linker="$host_os ld.so"
11201   shlibpath_var=LIBRARY_PATH
11202   ;;
11203
11204 bsdi[45]*)
11205   version_type=linux
11206   need_version=no
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208   soname_spec='${libname}${release}${shared_ext}$major'
11209   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11212   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11213   # the default ld.so.conf also contains /usr/contrib/lib and
11214   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11215   # libtool to hard-code these into programs
11216   ;;
11217
11218 cygwin* | mingw* | pw32*)
11219   version_type=windows
11220   shrext_cmds=".dll"
11221   need_version=no
11222   need_lib_prefix=no
11223
11224   case $GCC,$host_os in
11225   yes,cygwin* | yes,mingw* | yes,pw32*)
11226     library_names_spec='$libname.dll.a'
11227     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228     postinstall_cmds='base_file=`basename \${file}`~
11229       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11230       dldir=$destdir/`dirname \$dlpath`~
11231       test -d \$dldir || mkdir -p \$dldir~
11232       $install_prog $dir/$dlname \$dldir/$dlname'
11233     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234       dlpath=$dir/\$dldll~
11235        $rm \$dlpath'
11236     shlibpath_overrides_runpath=yes
11237
11238     case $host_os in
11239     cygwin*)
11240       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11242       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11243       ;;
11244     mingw*)
11245       # MinGW DLLs use traditional 'lib' prefix
11246       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11249         # It is most probably a Windows format PATH printed by
11250         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11251         # path with ; separators, and with drive letters. We can handle the
11252         # drive letters (cygwin fileutils understands them), so leave them,
11253         # especially as we might pass files found there to a mingw objdump,
11254         # which wouldn't understand a cygwinified path. Ahh.
11255         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11256       else
11257         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11258       fi
11259       ;;
11260     pw32*)
11261       # pw32 DLLs use 'pw' prefix rather than 'lib'
11262       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11263       ;;
11264     esac
11265     ;;
11266
11267   *)
11268     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11269     ;;
11270   esac
11271   dynamic_linker='Win32 ld.exe'
11272   # FIXME: first we should search . and the directory the executable is in
11273   shlibpath_var=PATH
11274   ;;
11275
11276 darwin* | rhapsody*)
11277   dynamic_linker="$host_os dyld"
11278   version_type=darwin
11279   need_lib_prefix=no
11280   need_version=no
11281   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11282   soname_spec='${libname}${release}${major}$shared_ext'
11283   shlibpath_overrides_runpath=yes
11284   shlibpath_var=DYLD_LIBRARY_PATH
11285   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11286   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11287   if test "$GCC" = yes; then
11288     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"`
11289   else
11290     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11291   fi
11292   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11293   ;;
11294
11295 dgux*)
11296   version_type=linux
11297   need_lib_prefix=no
11298   need_version=no
11299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11300   soname_spec='${libname}${release}${shared_ext}$major'
11301   shlibpath_var=LD_LIBRARY_PATH
11302   ;;
11303
11304 freebsd1*)
11305   dynamic_linker=no
11306   ;;
11307
11308 kfreebsd*-gnu)
11309   version_type=linux
11310   need_lib_prefix=no
11311   need_version=no
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11313   soname_spec='${libname}${release}${shared_ext}$major'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   shlibpath_overrides_runpath=no
11316   hardcode_into_libs=yes
11317   dynamic_linker='GNU ld.so'
11318   ;;
11319
11320 freebsd*)
11321   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11322   version_type=freebsd-$objformat
11323   case $version_type in
11324     freebsd-elf*)
11325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11326       need_version=no
11327       need_lib_prefix=no
11328       ;;
11329     freebsd-*)
11330       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11331       need_version=yes
11332       ;;
11333   esac
11334   shlibpath_var=LD_LIBRARY_PATH
11335   case $host_os in
11336   freebsd2*)
11337     shlibpath_overrides_runpath=yes
11338     ;;
11339   freebsd3.01* | freebsdelf3.01*)
11340     shlibpath_overrides_runpath=yes
11341     hardcode_into_libs=yes
11342     ;;
11343   *) # from 3.2 on
11344     shlibpath_overrides_runpath=no
11345     hardcode_into_libs=yes
11346     ;;
11347   esac
11348   ;;
11349
11350 gnu*)
11351   version_type=linux
11352   need_lib_prefix=no
11353   need_version=no
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11355   soname_spec='${libname}${release}${shared_ext}$major'
11356   shlibpath_var=LD_LIBRARY_PATH
11357   hardcode_into_libs=yes
11358   ;;
11359
11360 hpux9* | hpux10* | hpux11*)
11361   # Give a soname corresponding to the major version so that dld.sl refuses to
11362   # link against other versions.
11363   version_type=sunos
11364   need_lib_prefix=no
11365   need_version=no
11366   case "$host_cpu" in
11367   ia64*)
11368     shrext_cmds='.so'
11369     hardcode_into_libs=yes
11370     dynamic_linker="$host_os dld.so"
11371     shlibpath_var=LD_LIBRARY_PATH
11372     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374     soname_spec='${libname}${release}${shared_ext}$major'
11375     if test "X$HPUX_IA64_MODE" = X32; then
11376       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11377     else
11378       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11379     fi
11380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381     ;;
11382    hppa*64*)
11383      shrext_cmds='.sl'
11384      hardcode_into_libs=yes
11385      dynamic_linker="$host_os dld.sl"
11386      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11387      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389      soname_spec='${libname}${release}${shared_ext}$major'
11390      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11391      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392      ;;
11393    *)
11394     shrext_cmds='.sl'
11395     dynamic_linker="$host_os dld.sl"
11396     shlibpath_var=SHLIB_PATH
11397     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11398     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399     soname_spec='${libname}${release}${shared_ext}$major'
11400     ;;
11401   esac
11402   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11403   postinstall_cmds='chmod 555 $lib'
11404   ;;
11405
11406 irix5* | irix6* | nonstopux*)
11407   case $host_os in
11408     nonstopux*) version_type=nonstopux ;;
11409     *)
11410         if test "$lt_cv_prog_gnu_ld" = yes; then
11411                 version_type=linux
11412         else
11413                 version_type=irix
11414         fi ;;
11415   esac
11416   need_lib_prefix=no
11417   need_version=no
11418   soname_spec='${libname}${release}${shared_ext}$major'
11419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11420   case $host_os in
11421   irix5* | nonstopux*)
11422     libsuff= shlibsuff=
11423     ;;
11424   *)
11425     case $LD in # libtool.m4 will add one of these switches to LD
11426     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427       libsuff= shlibsuff= libmagic=32-bit;;
11428     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429       libsuff=32 shlibsuff=N32 libmagic=N32;;
11430     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432     *) libsuff= shlibsuff= libmagic=never-match;;
11433     esac
11434     ;;
11435   esac
11436   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437   shlibpath_overrides_runpath=no
11438   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440   hardcode_into_libs=yes
11441   ;;
11442
11443 # No shared lib support for Linux oldld, aout, or coff.
11444 linux*oldld* | linux*aout* | linux*coff*)
11445   dynamic_linker=no
11446   ;;
11447
11448 # This must be Linux ELF.
11449 linux*)
11450   version_type=linux
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454   soname_spec='${libname}${release}${shared_ext}$major'
11455   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456   shlibpath_var=LD_LIBRARY_PATH
11457   shlibpath_overrides_runpath=no
11458   # This implies no fast_install, which is unacceptable.
11459   # Some rework will be needed to allow for fast_install
11460   # before this can be enabled.
11461   hardcode_into_libs=yes
11462
11463   # Append ld.so.conf contents to the search path
11464   if test -f /etc/ld.so.conf; then
11465     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11466     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11467   fi
11468
11469   # We used to test for /lib/ld.so.1 and disable shared libraries on
11470   # powerpc, because MkLinux only supported shared libraries with the
11471   # GNU dynamic linker.  Since this was broken with cross compilers,
11472   # most powerpc-linux boxes support dynamic linking these days and
11473   # people can always --disable-shared, the test was removed, and we
11474   # assume the GNU/Linux dynamic linker is in use.
11475   dynamic_linker='GNU/Linux ld.so'
11476   ;;
11477
11478 knetbsd*-gnu)
11479   version_type=linux
11480   need_lib_prefix=no
11481   need_version=no
11482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483   soname_spec='${libname}${release}${shared_ext}$major'
11484   shlibpath_var=LD_LIBRARY_PATH
11485   shlibpath_overrides_runpath=no
11486   hardcode_into_libs=yes
11487   dynamic_linker='GNU ld.so'
11488   ;;
11489
11490 netbsd*)
11491   version_type=sunos
11492   need_lib_prefix=no
11493   need_version=no
11494   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497     dynamic_linker='NetBSD (a.out) ld.so'
11498   else
11499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500     soname_spec='${libname}${release}${shared_ext}$major'
11501     dynamic_linker='NetBSD ld.elf_so'
11502   fi
11503   shlibpath_var=LD_LIBRARY_PATH
11504   shlibpath_overrides_runpath=yes
11505   hardcode_into_libs=yes
11506   ;;
11507
11508 newsos6)
11509   version_type=linux
11510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   shlibpath_overrides_runpath=yes
11513   ;;
11514
11515 nto-qnx*)
11516   version_type=linux
11517   need_lib_prefix=no
11518   need_version=no
11519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520   soname_spec='${libname}${release}${shared_ext}$major'
11521   shlibpath_var=LD_LIBRARY_PATH
11522   shlibpath_overrides_runpath=yes
11523   ;;
11524
11525 openbsd*)
11526   version_type=sunos
11527   need_lib_prefix=no
11528   need_version=no
11529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11533     case $host_os in
11534       openbsd2.[89] | openbsd2.[89].*)
11535         shlibpath_overrides_runpath=no
11536         ;;
11537       *)
11538         shlibpath_overrides_runpath=yes
11539         ;;
11540       esac
11541   else
11542     shlibpath_overrides_runpath=yes
11543   fi
11544   ;;
11545
11546 os2*)
11547   libname_spec='$name'
11548   shrext_cmds=".dll"
11549   need_lib_prefix=no
11550   library_names_spec='$libname${shared_ext} $libname.a'
11551   dynamic_linker='OS/2 ld.exe'
11552   shlibpath_var=LIBPATH
11553   ;;
11554
11555 osf3* | osf4* | osf5*)
11556   version_type=osf
11557   need_lib_prefix=no
11558   need_version=no
11559   soname_spec='${libname}${release}${shared_ext}$major'
11560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561   shlibpath_var=LD_LIBRARY_PATH
11562   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11563   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11564   ;;
11565
11566 sco3.2v5*)
11567   version_type=osf
11568   soname_spec='${libname}${release}${shared_ext}$major'
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570   shlibpath_var=LD_LIBRARY_PATH
11571   ;;
11572
11573 solaris*)
11574   version_type=linux
11575   need_lib_prefix=no
11576   need_version=no
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578   soname_spec='${libname}${release}${shared_ext}$major'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   shlibpath_overrides_runpath=yes
11581   hardcode_into_libs=yes
11582   # ldd complains unless libraries are executable
11583   postinstall_cmds='chmod +x $lib'
11584   ;;
11585
11586 sunos4*)
11587   version_type=sunos
11588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11590   shlibpath_var=LD_LIBRARY_PATH
11591   shlibpath_overrides_runpath=yes
11592   if test "$with_gnu_ld" = yes; then
11593     need_lib_prefix=no
11594   fi
11595   need_version=yes
11596   ;;
11597
11598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11599   version_type=linux
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   shlibpath_var=LD_LIBRARY_PATH
11603   case $host_vendor in
11604     sni)
11605       shlibpath_overrides_runpath=no
11606       need_lib_prefix=no
11607       export_dynamic_flag_spec='${wl}-Blargedynsym'
11608       runpath_var=LD_RUN_PATH
11609       ;;
11610     siemens)
11611       need_lib_prefix=no
11612       ;;
11613     motorola)
11614       need_lib_prefix=no
11615       need_version=no
11616       shlibpath_overrides_runpath=no
11617       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11618       ;;
11619   esac
11620   ;;
11621
11622 sysv4*MP*)
11623   if test -d /usr/nec ;then
11624     version_type=linux
11625     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11626     soname_spec='$libname${shared_ext}.$major'
11627     shlibpath_var=LD_LIBRARY_PATH
11628   fi
11629   ;;
11630
11631 uts4*)
11632   version_type=linux
11633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634   soname_spec='${libname}${release}${shared_ext}$major'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   ;;
11637
11638 *)
11639   dynamic_linker=no
11640   ;;
11641 esac
11642 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11643 echo "${ECHO_T}$dynamic_linker" >&6
11644 test "$dynamic_linker" = no && can_build_shared=no
11645
11646 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11648 hardcode_action_CXX=
11649 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11650    test -n "$runpath_var_CXX" || \
11651    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11652
11653   # We can hardcode non-existant directories.
11654   if test "$hardcode_direct_CXX" != no &&
11655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656      # have to relink, otherwise we might link with an installed library
11657      # when we should be linking with a yet-to-be-installed one
11658      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11659      test "$hardcode_minus_L_CXX" != no; then
11660     # Linking always hardcodes the temporary library directory.
11661     hardcode_action_CXX=relink
11662   else
11663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664     hardcode_action_CXX=immediate
11665   fi
11666 else
11667   # We cannot hardcode anything, or else we can only hardcode existing
11668   # directories.
11669   hardcode_action_CXX=unsupported
11670 fi
11671 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11672 echo "${ECHO_T}$hardcode_action_CXX" >&6
11673
11674 if test "$hardcode_action_CXX" = relink; then
11675   # Fast installation is not supported
11676   enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678      test "$enable_shared" = no; then
11679   # Fast installation is not necessary
11680   enable_fast_install=needless
11681 fi
11682
11683 striplib=
11684 old_striplib=
11685 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11686 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11687 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11688   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690   echo "$as_me:$LINENO: result: yes" >&5
11691 echo "${ECHO_T}yes" >&6
11692 else
11693 # FIXME - insert some real tests, host_os isn't really good enough
11694   case $host_os in
11695    darwin*)
11696        if test -n "$STRIP" ; then
11697          striplib="$STRIP -x"
11698          echo "$as_me:$LINENO: result: yes" >&5
11699 echo "${ECHO_T}yes" >&6
11700        else
11701   echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11703 fi
11704        ;;
11705    *)
11706   echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6
11708     ;;
11709   esac
11710 fi
11711
11712 if test "x$enable_dlopen" != xyes; then
11713   enable_dlopen=unknown
11714   enable_dlopen_self=unknown
11715   enable_dlopen_self_static=unknown
11716 else
11717   lt_cv_dlopen=no
11718   lt_cv_dlopen_libs=
11719
11720   case $host_os in
11721   beos*)
11722     lt_cv_dlopen="load_add_on"
11723     lt_cv_dlopen_libs=
11724     lt_cv_dlopen_self=yes
11725     ;;
11726
11727   mingw* | pw32*)
11728     lt_cv_dlopen="LoadLibrary"
11729     lt_cv_dlopen_libs=
11730    ;;
11731
11732   cygwin*)
11733     lt_cv_dlopen="dlopen"
11734     lt_cv_dlopen_libs=
11735    ;;
11736
11737   darwin*)
11738   # if libdl is installed we need to link against it
11739     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   ac_check_lib_save_LIBS=$LIBS
11745 LIBS="-ldl  $LIBS"
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752
11753 /* Override any gcc2 internal prototype to avoid an error.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 /* We use char because int might match the return type of a gcc2
11758    builtin and then its argument prototype would still apply.  */
11759 char dlopen ();
11760 int
11761 main ()
11762 {
11763 dlopen ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770   (eval $ac_link) 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } &&
11777          { ac_try='test -z "$ac_cxx_werror_flag"
11778                          || test ! -s conftest.err'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; } &&
11784          { ac_try='test -s conftest$ac_exeext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790   ac_cv_lib_dl_dlopen=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 ac_cv_lib_dl_dlopen=no
11796 fi
11797 rm -f conftest.err conftest.$ac_objext \
11798       conftest$ac_exeext conftest.$ac_ext
11799 LIBS=$ac_check_lib_save_LIBS
11800 fi
11801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11803 if test $ac_cv_lib_dl_dlopen = yes; then
11804   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805 else
11806
11807     lt_cv_dlopen="dyld"
11808     lt_cv_dlopen_libs=
11809     lt_cv_dlopen_self=yes
11810
11811 fi
11812
11813    ;;
11814
11815   *)
11816     echo "$as_me:$LINENO: checking for shl_load" >&5
11817 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11818 if test "${ac_cv_func_shl_load+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11829 #define shl_load innocuous_shl_load
11830
11831 /* System header to define __stub macros and hopefully few prototypes,
11832     which can conflict with char shl_load (); below.
11833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834     <limits.h> exists even on freestanding compilers.  */
11835
11836 #ifdef __STDC__
11837 # include <limits.h>
11838 #else
11839 # include <assert.h>
11840 #endif
11841
11842 #undef shl_load
11843
11844 /* Override any gcc2 internal prototype to avoid an error.  */
11845 #ifdef __cplusplus
11846 extern "C"
11847 {
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850    builtin and then its argument prototype would still apply.  */
11851 char shl_load ();
11852 /* The GNU C library defines this for functions which it implements
11853     to always fail with ENOSYS.  Some functions are actually named
11854     something starting with __ and the normal name is an alias.  */
11855 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11856 choke me
11857 #else
11858 char (*f) () = shl_load;
11859 #endif
11860 #ifdef __cplusplus
11861 }
11862 #endif
11863
11864 int
11865 main ()
11866 {
11867 return f != shl_load;
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874   (eval $ac_link) 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -z "$ac_cxx_werror_flag"
11882                          || test ! -s conftest.err'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; } &&
11888          { ac_try='test -s conftest$ac_exeext'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; }; then
11894   ac_cv_func_shl_load=yes
11895 else
11896   echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_cv_func_shl_load=no
11900 fi
11901 rm -f conftest.err conftest.$ac_objext \
11902       conftest$ac_exeext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11905 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11906 if test $ac_cv_func_shl_load = yes; then
11907   lt_cv_dlopen="shl_load"
11908 else
11909   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11910 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11911 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11912   echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914   ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-ldld  $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922
11923 /* Override any gcc2 internal prototype to avoid an error.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 /* We use char because int might match the return type of a gcc2
11928    builtin and then its argument prototype would still apply.  */
11929 char shl_load ();
11930 int
11931 main ()
11932 {
11933 shl_load ();
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11940   (eval $ac_link) 2>conftest.er1
11941   ac_status=$?
11942   grep -v '^ *+' conftest.er1 >conftest.err
11943   rm -f conftest.er1
11944   cat conftest.err >&5
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); } &&
11947          { ac_try='test -z "$ac_cxx_werror_flag"
11948                          || test ! -s conftest.err'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; } &&
11954          { ac_try='test -s conftest$ac_exeext'
11955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956   (eval $ac_try) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); }; }; then
11960   ac_cv_lib_dld_shl_load=yes
11961 else
11962   echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_lib_dld_shl_load=no
11966 fi
11967 rm -f conftest.err conftest.$ac_objext \
11968       conftest$ac_exeext conftest.$ac_ext
11969 LIBS=$ac_check_lib_save_LIBS
11970 fi
11971 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11972 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11973 if test $ac_cv_lib_dld_shl_load = yes; then
11974   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11975 else
11976   echo "$as_me:$LINENO: checking for dlopen" >&5
11977 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11978 if test "${ac_cv_func_dlopen+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11989 #define dlopen innocuous_dlopen
11990
11991 /* System header to define __stub macros and hopefully few prototypes,
11992     which can conflict with char dlopen (); below.
11993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11994     <limits.h> exists even on freestanding compilers.  */
11995
11996 #ifdef __STDC__
11997 # include <limits.h>
11998 #else
11999 # include <assert.h>
12000 #endif
12001
12002 #undef dlopen
12003
12004 /* Override any gcc2 internal prototype to avoid an error.  */
12005 #ifdef __cplusplus
12006 extern "C"
12007 {
12008 #endif
12009 /* We use char because int might match the return type of a gcc2
12010    builtin and then its argument prototype would still apply.  */
12011 char dlopen ();
12012 /* The GNU C library defines this for functions which it implements
12013     to always fail with ENOSYS.  Some functions are actually named
12014     something starting with __ and the normal name is an alias.  */
12015 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12016 choke me
12017 #else
12018 char (*f) () = dlopen;
12019 #endif
12020 #ifdef __cplusplus
12021 }
12022 #endif
12023
12024 int
12025 main ()
12026 {
12027 return f != dlopen;
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12034   (eval $ac_link) 2>conftest.er1
12035   ac_status=$?
12036   grep -v '^ *+' conftest.er1 >conftest.err
12037   rm -f conftest.er1
12038   cat conftest.err >&5
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); } &&
12041          { ac_try='test -z "$ac_cxx_werror_flag"
12042                          || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_func_dlopen=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_func_dlopen=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 fi
12064 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12065 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12066 if test $ac_cv_func_dlopen = yes; then
12067   lt_cv_dlopen="dlopen"
12068 else
12069   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12070 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12071 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   ac_check_lib_save_LIBS=$LIBS
12075 LIBS="-ldl  $LIBS"
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082
12083 /* Override any gcc2 internal prototype to avoid an error.  */
12084 #ifdef __cplusplus
12085 extern "C"
12086 #endif
12087 /* We use char because int might match the return type of a gcc2
12088    builtin and then its argument prototype would still apply.  */
12089 char dlopen ();
12090 int
12091 main ()
12092 {
12093 dlopen ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100   (eval $ac_link) 2>conftest.er1
12101   ac_status=$?
12102   grep -v '^ *+' conftest.er1 >conftest.err
12103   rm -f conftest.er1
12104   cat conftest.err >&5
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -z "$ac_cxx_werror_flag"
12108                          || test ! -s conftest.err'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; } &&
12114          { ac_try='test -s conftest$ac_exeext'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; }; then
12120   ac_cv_lib_dl_dlopen=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_cv_lib_dl_dlopen=no
12126 fi
12127 rm -f conftest.err conftest.$ac_objext \
12128       conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12130 fi
12131 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12132 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12133 if test $ac_cv_lib_dl_dlopen = yes; then
12134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12135 else
12136   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12137 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12138 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12139   echo $ECHO_N "(cached) $ECHO_C" >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lsvld  $LIBS"
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149
12150 /* Override any gcc2 internal prototype to avoid an error.  */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 /* We use char because int might match the return type of a gcc2
12155    builtin and then its argument prototype would still apply.  */
12156 char dlopen ();
12157 int
12158 main ()
12159 {
12160 dlopen ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167   (eval $ac_link) 2>conftest.er1
12168   ac_status=$?
12169   grep -v '^ *+' conftest.er1 >conftest.err
12170   rm -f conftest.er1
12171   cat conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } &&
12174          { ac_try='test -z "$ac_cxx_werror_flag"
12175                          || test ! -s conftest.err'
12176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177   (eval $ac_try) 2>&5
12178   ac_status=$?
12179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180   (exit $ac_status); }; } &&
12181          { ac_try='test -s conftest$ac_exeext'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; }; then
12187   ac_cv_lib_svld_dlopen=yes
12188 else
12189   echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 ac_cv_lib_svld_dlopen=no
12193 fi
12194 rm -f conftest.err conftest.$ac_objext \
12195       conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12199 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12200 if test $ac_cv_lib_svld_dlopen = yes; then
12201   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12202 else
12203   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12204 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12205 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12206   echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208   ac_check_lib_save_LIBS=$LIBS
12209 LIBS="-ldld  $LIBS"
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h.  */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h.  */
12216
12217 /* Override any gcc2 internal prototype to avoid an error.  */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char dld_link ();
12224 int
12225 main ()
12226 {
12227 dld_link ();
12228   ;
12229   return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12234   (eval $ac_link) 2>conftest.er1
12235   ac_status=$?
12236   grep -v '^ *+' conftest.er1 >conftest.err
12237   rm -f conftest.er1
12238   cat conftest.err >&5
12239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240   (exit $ac_status); } &&
12241          { ac_try='test -z "$ac_cxx_werror_flag"
12242                          || test ! -s conftest.err'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } &&
12248          { ac_try='test -s conftest$ac_exeext'
12249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250   (eval $ac_try) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }; }; then
12254   ac_cv_lib_dld_dld_link=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_cv_lib_dld_dld_link=no
12260 fi
12261 rm -f conftest.err conftest.$ac_objext \
12262       conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12266 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12267 if test $ac_cv_lib_dld_dld_link = yes; then
12268   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12269 fi
12270
12271
12272 fi
12273
12274
12275 fi
12276
12277
12278 fi
12279
12280
12281 fi
12282
12283
12284 fi
12285
12286     ;;
12287   esac
12288
12289   if test "x$lt_cv_dlopen" != xno; then
12290     enable_dlopen=yes
12291   else
12292     enable_dlopen=no
12293   fi
12294
12295   case $lt_cv_dlopen in
12296   dlopen)
12297     save_CPPFLAGS="$CPPFLAGS"
12298     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12299
12300     save_LDFLAGS="$LDFLAGS"
12301     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12302
12303     save_LIBS="$LIBS"
12304     LIBS="$lt_cv_dlopen_libs $LIBS"
12305
12306     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12307 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12308 if test "${lt_cv_dlopen_self+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311           if test "$cross_compiling" = yes; then :
12312   lt_cv_dlopen_self=cross
12313 else
12314   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12315   lt_status=$lt_dlunknown
12316   cat > conftest.$ac_ext <<EOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12319
12320 #if HAVE_DLFCN_H
12321 #include <dlfcn.h>
12322 #endif
12323
12324 #include <stdio.h>
12325
12326 #ifdef RTLD_GLOBAL
12327 #  define LT_DLGLOBAL           RTLD_GLOBAL
12328 #else
12329 #  ifdef DL_GLOBAL
12330 #    define LT_DLGLOBAL         DL_GLOBAL
12331 #  else
12332 #    define LT_DLGLOBAL         0
12333 #  endif
12334 #endif
12335
12336 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12337    find out it does not work in some platform. */
12338 #ifndef LT_DLLAZY_OR_NOW
12339 #  ifdef RTLD_LAZY
12340 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12341 #  else
12342 #    ifdef DL_LAZY
12343 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12344 #    else
12345 #      ifdef RTLD_NOW
12346 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12347 #      else
12348 #        ifdef DL_NOW
12349 #          define LT_DLLAZY_OR_NOW      DL_NOW
12350 #        else
12351 #          define LT_DLLAZY_OR_NOW      0
12352 #        endif
12353 #      endif
12354 #    endif
12355 #  endif
12356 #endif
12357
12358 #ifdef __cplusplus
12359 extern "C" void exit (int);
12360 #endif
12361
12362 void fnord() { int i=42;}
12363 int main ()
12364 {
12365   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12366   int status = $lt_dlunknown;
12367
12368   if (self)
12369     {
12370       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12371       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12372       /* dlclose (self); */
12373     }
12374
12375     exit (status);
12376 }
12377 EOF
12378   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379   (eval $ac_link) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12383     (./conftest; exit; ) 2>/dev/null
12384     lt_status=$?
12385     case x$lt_status in
12386       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12387       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12388       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12389     esac
12390   else :
12391     # compilation failed
12392     lt_cv_dlopen_self=no
12393   fi
12394 fi
12395 rm -fr conftest*
12396
12397
12398 fi
12399 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12400 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12401
12402     if test "x$lt_cv_dlopen_self" = xyes; then
12403       LDFLAGS="$LDFLAGS $link_static_flag"
12404       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12405 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12406 if test "${lt_cv_dlopen_self_static+set}" = set; then
12407   echo $ECHO_N "(cached) $ECHO_C" >&6
12408 else
12409           if test "$cross_compiling" = yes; then :
12410   lt_cv_dlopen_self_static=cross
12411 else
12412   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12413   lt_status=$lt_dlunknown
12414   cat > conftest.$ac_ext <<EOF
12415 #line 12415 "configure"
12416 #include "confdefs.h"
12417
12418 #if HAVE_DLFCN_H
12419 #include <dlfcn.h>
12420 #endif
12421
12422 #include <stdio.h>
12423
12424 #ifdef RTLD_GLOBAL
12425 #  define LT_DLGLOBAL           RTLD_GLOBAL
12426 #else
12427 #  ifdef DL_GLOBAL
12428 #    define LT_DLGLOBAL         DL_GLOBAL
12429 #  else
12430 #    define LT_DLGLOBAL         0
12431 #  endif
12432 #endif
12433
12434 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12435    find out it does not work in some platform. */
12436 #ifndef LT_DLLAZY_OR_NOW
12437 #  ifdef RTLD_LAZY
12438 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12439 #  else
12440 #    ifdef DL_LAZY
12441 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12442 #    else
12443 #      ifdef RTLD_NOW
12444 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12445 #      else
12446 #        ifdef DL_NOW
12447 #          define LT_DLLAZY_OR_NOW      DL_NOW
12448 #        else
12449 #          define LT_DLLAZY_OR_NOW      0
12450 #        endif
12451 #      endif
12452 #    endif
12453 #  endif
12454 #endif
12455
12456 #ifdef __cplusplus
12457 extern "C" void exit (int);
12458 #endif
12459
12460 void fnord() { int i=42;}
12461 int main ()
12462 {
12463   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464   int status = $lt_dlunknown;
12465
12466   if (self)
12467     {
12468       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12469       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12470       /* dlclose (self); */
12471     }
12472
12473     exit (status);
12474 }
12475 EOF
12476   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477   (eval $ac_link) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12481     (./conftest; exit; ) 2>/dev/null
12482     lt_status=$?
12483     case x$lt_status in
12484       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12485       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12486       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12487     esac
12488   else :
12489     # compilation failed
12490     lt_cv_dlopen_self_static=no
12491   fi
12492 fi
12493 rm -fr conftest*
12494
12495
12496 fi
12497 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12498 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12499     fi
12500
12501     CPPFLAGS="$save_CPPFLAGS"
12502     LDFLAGS="$save_LDFLAGS"
12503     LIBS="$save_LIBS"
12504     ;;
12505   esac
12506
12507   case $lt_cv_dlopen_self in
12508   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12509   *) enable_dlopen_self=unknown ;;
12510   esac
12511
12512   case $lt_cv_dlopen_self_static in
12513   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12514   *) enable_dlopen_self_static=unknown ;;
12515   esac
12516 fi
12517
12518
12519 # The else clause should only fire when bootstrapping the
12520 # libtool distribution, otherwise you forgot to ship ltmain.sh
12521 # with your package, and you will get complaints that there are
12522 # no rules to generate ltmain.sh.
12523 if test -f "$ltmain"; then
12524   # See if we are running on zsh, and set the options which allow our commands through
12525   # without removal of \ escapes.
12526   if test -n "${ZSH_VERSION+set}" ; then
12527     setopt NO_GLOB_SUBST
12528   fi
12529   # Now quote all the things that may contain metacharacters while being
12530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12531   # variables and quote the copies for generation of the libtool script.
12532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12533     SED SHELL STRIP \
12534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12536     deplibs_check_method reload_flag reload_cmds need_locks \
12537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12538     lt_cv_sys_global_symbol_to_c_name_address \
12539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12540     old_postinstall_cmds old_postuninstall_cmds \
12541     compiler_CXX \
12542     CC_CXX \
12543     LD_CXX \
12544     lt_prog_compiler_wl_CXX \
12545     lt_prog_compiler_pic_CXX \
12546     lt_prog_compiler_static_CXX \
12547     lt_prog_compiler_no_builtin_flag_CXX \
12548     export_dynamic_flag_spec_CXX \
12549     thread_safe_flag_spec_CXX \
12550     whole_archive_flag_spec_CXX \
12551     enable_shared_with_static_runtimes_CXX \
12552     old_archive_cmds_CXX \
12553     old_archive_from_new_cmds_CXX \
12554     predep_objects_CXX \
12555     postdep_objects_CXX \
12556     predeps_CXX \
12557     postdeps_CXX \
12558     compiler_lib_search_path_CXX \
12559     archive_cmds_CXX \
12560     archive_expsym_cmds_CXX \
12561     postinstall_cmds_CXX \
12562     postuninstall_cmds_CXX \
12563     old_archive_from_expsyms_cmds_CXX \
12564     allow_undefined_flag_CXX \
12565     no_undefined_flag_CXX \
12566     export_symbols_cmds_CXX \
12567     hardcode_libdir_flag_spec_CXX \
12568     hardcode_libdir_flag_spec_ld_CXX \
12569     hardcode_libdir_separator_CXX \
12570     hardcode_automatic_CXX \
12571     module_cmds_CXX \
12572     module_expsym_cmds_CXX \
12573     lt_cv_prog_compiler_c_o_CXX \
12574     exclude_expsyms_CXX \
12575     include_expsyms_CXX; do
12576
12577     case $var in
12578     old_archive_cmds_CXX | \
12579     old_archive_from_new_cmds_CXX | \
12580     archive_cmds_CXX | \
12581     archive_expsym_cmds_CXX | \
12582     module_cmds_CXX | \
12583     module_expsym_cmds_CXX | \
12584     old_archive_from_expsyms_cmds_CXX | \
12585     export_symbols_cmds_CXX | \
12586     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12587     postinstall_cmds | postuninstall_cmds | \
12588     old_postinstall_cmds | old_postuninstall_cmds | \
12589     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12590       # Double-quote double-evaled strings.
12591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12592       ;;
12593     *)
12594       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12595       ;;
12596     esac
12597   done
12598
12599   case $lt_echo in
12600   *'\$0 --fallback-echo"')
12601     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12602     ;;
12603   esac
12604
12605 cfgfile="$ofile"
12606
12607   cat <<__EOF__ >> "$cfgfile"
12608 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12609
12610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12611
12612 # Shell to use when invoking shell scripts.
12613 SHELL=$lt_SHELL
12614
12615 # Whether or not to build shared libraries.
12616 build_libtool_libs=$enable_shared
12617
12618 # Whether or not to build static libraries.
12619 build_old_libs=$enable_static
12620
12621 # Whether or not to add -lc for building shared libraries.
12622 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12623
12624 # Whether or not to disallow shared libs when runtime libs are static
12625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12626
12627 # Whether or not to optimize for fast installation.
12628 fast_install=$enable_fast_install
12629
12630 # The host system.
12631 host_alias=$host_alias
12632 host=$host
12633
12634 # An echo program that does not interpret backslashes.
12635 echo=$lt_echo
12636
12637 # The archiver.
12638 AR=$lt_AR
12639 AR_FLAGS=$lt_AR_FLAGS
12640
12641 # A C compiler.
12642 LTCC=$lt_LTCC
12643
12644 # A language-specific compiler.
12645 CC=$lt_compiler_CXX
12646
12647 # Is the compiler the GNU C compiler?
12648 with_gcc=$GCC_CXX
12649
12650 # An ERE matcher.
12651 EGREP=$lt_EGREP
12652
12653 # The linker used to build libraries.
12654 LD=$lt_LD_CXX
12655
12656 # Whether we need hard or soft links.
12657 LN_S=$lt_LN_S
12658
12659 # A BSD-compatible nm program.
12660 NM=$lt_NM
12661
12662 # A symbol stripping program
12663 STRIP=$lt_STRIP
12664
12665 # Used to examine libraries when file_magic_cmd begins "file"
12666 MAGIC_CMD=$MAGIC_CMD
12667
12668 # Used on cygwin: DLL creation program.
12669 DLLTOOL="$DLLTOOL"
12670
12671 # Used on cygwin: object dumper.
12672 OBJDUMP="$OBJDUMP"
12673
12674 # Used on cygwin: assembler.
12675 AS="$AS"
12676
12677 # The name of the directory that contains temporary libtool files.
12678 objdir=$objdir
12679
12680 # How to create reloadable object files.
12681 reload_flag=$lt_reload_flag
12682 reload_cmds=$lt_reload_cmds
12683
12684 # How to pass a linker flag through the compiler.
12685 wl=$lt_lt_prog_compiler_wl_CXX
12686
12687 # Object file suffix (normally "o").
12688 objext="$ac_objext"
12689
12690 # Old archive suffix (normally "a").
12691 libext="$libext"
12692
12693 # Shared library suffix (normally ".so").
12694 shrext_cmds='$shrext_cmds'
12695
12696 # Executable file suffix (normally "").
12697 exeext="$exeext"
12698
12699 # Additional compiler flags for building library objects.
12700 pic_flag=$lt_lt_prog_compiler_pic_CXX
12701 pic_mode=$pic_mode
12702
12703 # What is the maximum length of a command?
12704 max_cmd_len=$lt_cv_sys_max_cmd_len
12705
12706 # Does compiler simultaneously support -c and -o options?
12707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12708
12709 # Must we lock files when doing compilation ?
12710 need_locks=$lt_need_locks
12711
12712 # Do we need the lib prefix for modules?
12713 need_lib_prefix=$need_lib_prefix
12714
12715 # Do we need a version for libraries?
12716 need_version=$need_version
12717
12718 # Whether dlopen is supported.
12719 dlopen_support=$enable_dlopen
12720
12721 # Whether dlopen of programs is supported.
12722 dlopen_self=$enable_dlopen_self
12723
12724 # Whether dlopen of statically linked programs is supported.
12725 dlopen_self_static=$enable_dlopen_self_static
12726
12727 # Compiler flag to prevent dynamic linking.
12728 link_static_flag=$lt_lt_prog_compiler_static_CXX
12729
12730 # Compiler flag to turn off builtin functions.
12731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12732
12733 # Compiler flag to allow reflexive dlopens.
12734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12735
12736 # Compiler flag to generate shared objects directly from archives.
12737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12738
12739 # Compiler flag to generate thread-safe objects.
12740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12741
12742 # Library versioning type.
12743 version_type=$version_type
12744
12745 # Format of library name prefix.
12746 libname_spec=$lt_libname_spec
12747
12748 # List of archive names.  First name is the real one, the rest are links.
12749 # The last name is the one that the linker finds with -lNAME.
12750 library_names_spec=$lt_library_names_spec
12751
12752 # The coded name of the library, if different from the real name.
12753 soname_spec=$lt_soname_spec
12754
12755 # Commands used to build and install an old-style archive.
12756 RANLIB=$lt_RANLIB
12757 old_archive_cmds=$lt_old_archive_cmds_CXX
12758 old_postinstall_cmds=$lt_old_postinstall_cmds
12759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12760
12761 # Create an old-style archive from a shared archive.
12762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12763
12764 # Create a temporary old-style archive to link instead of a shared archive.
12765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12766
12767 # Commands used to build and install a shared archive.
12768 archive_cmds=$lt_archive_cmds_CXX
12769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12770 postinstall_cmds=$lt_postinstall_cmds
12771 postuninstall_cmds=$lt_postuninstall_cmds
12772
12773 # Commands used to build a loadable module (assumed same as above if empty)
12774 module_cmds=$lt_module_cmds_CXX
12775 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12776
12777 # Commands to strip libraries.
12778 old_striplib=$lt_old_striplib
12779 striplib=$lt_striplib
12780
12781 # Dependencies to place before the objects being linked to create a
12782 # shared library.
12783 predep_objects=$lt_predep_objects_CXX
12784
12785 # Dependencies to place after the objects being linked to create a
12786 # shared library.
12787 postdep_objects=$lt_postdep_objects_CXX
12788
12789 # Dependencies to place before the objects being linked to create a
12790 # shared library.
12791 predeps=$lt_predeps_CXX
12792
12793 # Dependencies to place after the objects being linked to create a
12794 # shared library.
12795 postdeps=$lt_postdeps_CXX
12796
12797 # The library search path used internally by the compiler when linking
12798 # a shared library.
12799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12800
12801 # Method to check whether dependent libraries are shared objects.
12802 deplibs_check_method=$lt_deplibs_check_method
12803
12804 # Command to use when deplibs_check_method == file_magic.
12805 file_magic_cmd=$lt_file_magic_cmd
12806
12807 # Flag that allows shared libraries with undefined symbols to be built.
12808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12809
12810 # Flag that forces no undefined symbols.
12811 no_undefined_flag=$lt_no_undefined_flag_CXX
12812
12813 # Commands used to finish a libtool library installation in a directory.
12814 finish_cmds=$lt_finish_cmds
12815
12816 # Same as above, but a single script fragment to be evaled but not shown.
12817 finish_eval=$lt_finish_eval
12818
12819 # Take the output of nm and produce a listing of raw symbols and C names.
12820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12821
12822 # Transform the output of nm in a proper C declaration
12823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12824
12825 # Transform the output of nm in a C name address pair
12826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12827
12828 # This is the shared library runtime path variable.
12829 runpath_var=$runpath_var
12830
12831 # This is the shared library path variable.
12832 shlibpath_var=$shlibpath_var
12833
12834 # Is shlibpath searched before the hard-coded library search path?
12835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12836
12837 # How to hardcode a shared library path into an executable.
12838 hardcode_action=$hardcode_action_CXX
12839
12840 # Whether we should hardcode library paths into libraries.
12841 hardcode_into_libs=$hardcode_into_libs
12842
12843 # Flag to hardcode \$libdir into a binary during linking.
12844 # This must work even if \$libdir does not exist.
12845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12846
12847 # If ld is used when linking, flag to hardcode \$libdir into
12848 # a binary during linking. This must work even if \$libdir does
12849 # not exist.
12850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12851
12852 # Whether we need a single -rpath flag with a separated argument.
12853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12854
12855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856 # resulting binary.
12857 hardcode_direct=$hardcode_direct_CXX
12858
12859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860 # resulting binary.
12861 hardcode_minus_L=$hardcode_minus_L_CXX
12862
12863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864 # the resulting binary.
12865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12866
12867 # Set to yes if building a shared library automatically hardcodes DIR into the library
12868 # and all subsequent libraries and executables linked against it.
12869 hardcode_automatic=$hardcode_automatic_CXX
12870
12871 # Variables whose values should be saved in libtool wrapper scripts and
12872 # restored at relink time.
12873 variables_saved_for_relink="$variables_saved_for_relink"
12874
12875 # Whether libtool must link a program against all its dependency libraries.
12876 link_all_deplibs=$link_all_deplibs_CXX
12877
12878 # Compile-time system search path for libraries
12879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12880
12881 # Run-time system search path for libraries
12882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12883
12884 # Fix the shell variable \$srcfile for the compiler.
12885 fix_srcfile_path="$fix_srcfile_path_CXX"
12886
12887 # Set to yes if exported symbols are required.
12888 always_export_symbols=$always_export_symbols_CXX
12889
12890 # The commands to list exported symbols.
12891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12892
12893 # The commands to extract the exported symbol list from a shared archive.
12894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12895
12896 # Symbols that should not be listed in the preloaded symbols.
12897 exclude_expsyms=$lt_exclude_expsyms_CXX
12898
12899 # Symbols that must always be exported.
12900 include_expsyms=$lt_include_expsyms_CXX
12901
12902 # ### END LIBTOOL TAG CONFIG: $tagname
12903
12904 __EOF__
12905
12906
12907 else
12908   # If there is no Makefile yet, we rely on a make rule to execute
12909   # `config.status --recheck' to rerun these tests and create the
12910   # libtool script then.
12911   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912   if test -f "$ltmain_in"; then
12913     test -f Makefile && make "$ltmain"
12914   fi
12915 fi
12916
12917
12918 ac_ext=c
12919 ac_cpp='$CPP $CPPFLAGS'
12920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924 CC=$lt_save_CC
12925 LDCXX=$LD
12926 LD=$lt_save_LD
12927 GCC=$lt_save_GCC
12928 with_gnu_ldcxx=$with_gnu_ld
12929 with_gnu_ld=$lt_save_with_gnu_ld
12930 lt_cv_path_LDCXX=$lt_cv_path_LD
12931 lt_cv_path_LD=$lt_save_path_LD
12932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12934
12935         else
12936           tagname=""
12937         fi
12938         ;;
12939
12940       F77)
12941         if test -n "$F77" && test "X$F77" != "Xno"; then
12942
12943 ac_ext=f
12944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947
12948
12949 archive_cmds_need_lc_F77=no
12950 allow_undefined_flag_F77=
12951 always_export_symbols_F77=no
12952 archive_expsym_cmds_F77=
12953 export_dynamic_flag_spec_F77=
12954 hardcode_direct_F77=no
12955 hardcode_libdir_flag_spec_F77=
12956 hardcode_libdir_flag_spec_ld_F77=
12957 hardcode_libdir_separator_F77=
12958 hardcode_minus_L_F77=no
12959 hardcode_automatic_F77=no
12960 module_cmds_F77=
12961 module_expsym_cmds_F77=
12962 link_all_deplibs_F77=unknown
12963 old_archive_cmds_F77=$old_archive_cmds
12964 no_undefined_flag_F77=
12965 whole_archive_flag_spec_F77=
12966 enable_shared_with_static_runtimes_F77=no
12967
12968 # Source file extension for f77 test sources.
12969 ac_ext=f
12970
12971 # Object file extension for compiled f77 test sources.
12972 objext=o
12973 objext_F77=$objext
12974
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12977
12978 # Code to be used in simple link tests
12979 lt_simple_link_test_code="      program t\n      end\n"
12980
12981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12982
12983 # If no C compiler was specified, use CC.
12984 LTCC=${LTCC-"$CC"}
12985
12986 # Allow CC to be a program name with arguments.
12987 compiler=$CC
12988
12989
12990 # Allow CC to be a program name with arguments.
12991 lt_save_CC="$CC"
12992 CC=${F77-"f77"}
12993 compiler=$CC
12994 compiler_F77=$CC
12995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12996
12997 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12998 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12999 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13000 echo "${ECHO_T}$can_build_shared" >&6
13001
13002 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13003 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13004 test "$can_build_shared" = "no" && enable_shared=no
13005
13006 # On AIX, shared libraries and static libraries use the same namespace, and
13007 # are all built from PIC.
13008 case "$host_os" in
13009 aix3*)
13010   test "$enable_shared" = yes && enable_static=no
13011   if test -n "$RANLIB"; then
13012     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13013     postinstall_cmds='$RANLIB $lib'
13014   fi
13015   ;;
13016 aix4* | aix5*)
13017   test "$enable_shared" = yes && enable_static=no
13018   ;;
13019 esac
13020 echo "$as_me:$LINENO: result: $enable_shared" >&5
13021 echo "${ECHO_T}$enable_shared" >&6
13022
13023 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13024 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13025 # Make sure either enable_shared or enable_static is yes.
13026 test "$enable_shared" = yes || enable_static=yes
13027 echo "$as_me:$LINENO: result: $enable_static" >&5
13028 echo "${ECHO_T}$enable_static" >&6
13029
13030 test "$ld_shlibs_F77" = no && can_build_shared=no
13031
13032 GCC_F77="$G77"
13033 LD_F77="$LD"
13034
13035 lt_prog_compiler_wl_F77=
13036 lt_prog_compiler_pic_F77=
13037 lt_prog_compiler_static_F77=
13038
13039 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13040 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13041
13042   if test "$GCC" = yes; then
13043     lt_prog_compiler_wl_F77='-Wl,'
13044     lt_prog_compiler_static_F77='-static'
13045
13046     case $host_os in
13047       aix*)
13048       # All AIX code is PIC.
13049       if test "$host_cpu" = ia64; then
13050         # AIX 5 now supports IA64 processor
13051         lt_prog_compiler_static_F77='-Bstatic'
13052       fi
13053       ;;
13054
13055     amigaos*)
13056       # FIXME: we need at least 68020 code to build shared libraries, but
13057       # adding the `-m68020' flag to GCC prevents building anything better,
13058       # like `-m68040'.
13059       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13060       ;;
13061
13062     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063       # PIC is the default for these OSes.
13064       ;;
13065
13066     mingw* | pw32* | os2*)
13067       # This hack is so that the source file can tell whether it is being
13068       # built for inclusion in a dll (and should export symbols for example).
13069       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13070       ;;
13071
13072     darwin* | rhapsody*)
13073       # PIC is the default on this platform
13074       # Common symbols not allowed in MH_DYLIB files
13075       lt_prog_compiler_pic_F77='-fno-common'
13076       ;;
13077
13078     msdosdjgpp*)
13079       # Just because we use GCC doesn't mean we suddenly get shared libraries
13080       # on systems that don't support them.
13081       lt_prog_compiler_can_build_shared_F77=no
13082       enable_shared=no
13083       ;;
13084
13085     sysv4*MP*)
13086       if test -d /usr/nec; then
13087         lt_prog_compiler_pic_F77=-Kconform_pic
13088       fi
13089       ;;
13090
13091     hpux*)
13092       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13093       # not for PA HP-UX.
13094       case "$host_cpu" in
13095       hppa*64*|ia64*)
13096         # +Z the default
13097         ;;
13098       *)
13099         lt_prog_compiler_pic_F77='-fPIC'
13100         ;;
13101       esac
13102       ;;
13103
13104     *)
13105       lt_prog_compiler_pic_F77='-fPIC'
13106       ;;
13107     esac
13108   else
13109     # PORTME Check for flag to pass linker flags through the system compiler.
13110     case $host_os in
13111     aix*)
13112       lt_prog_compiler_wl_F77='-Wl,'
13113       if test "$host_cpu" = ia64; then
13114         # AIX 5 now supports IA64 processor
13115         lt_prog_compiler_static_F77='-Bstatic'
13116       else
13117         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13118       fi
13119       ;;
13120       darwin*)
13121         # PIC is the default on this platform
13122         # Common symbols not allowed in MH_DYLIB files
13123        case "$cc_basename" in
13124          xlc*)
13125          lt_prog_compiler_pic_F77='-qnocommon'
13126          lt_prog_compiler_wl_F77='-Wl,'
13127          ;;
13128        esac
13129        ;;
13130
13131     mingw* | pw32* | os2*)
13132       # This hack is so that the source file can tell whether it is being
13133       # built for inclusion in a dll (and should export symbols for example).
13134       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13135       ;;
13136
13137     hpux9* | hpux10* | hpux11*)
13138       lt_prog_compiler_wl_F77='-Wl,'
13139       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13140       # not for PA HP-UX.
13141       case "$host_cpu" in
13142       hppa*64*|ia64*)
13143         # +Z the default
13144         ;;
13145       *)
13146         lt_prog_compiler_pic_F77='+Z'
13147         ;;
13148       esac
13149       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13150       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13151       ;;
13152
13153     irix5* | irix6* | nonstopux*)
13154       lt_prog_compiler_wl_F77='-Wl,'
13155       # PIC (with -KPIC) is the default.
13156       lt_prog_compiler_static_F77='-non_shared'
13157       ;;
13158
13159     newsos6)
13160       lt_prog_compiler_pic_F77='-KPIC'
13161       lt_prog_compiler_static_F77='-Bstatic'
13162       ;;
13163
13164     linux*)
13165       case $CC in
13166       icc* | ecc*)
13167         lt_prog_compiler_wl_F77='-Wl,'
13168         lt_prog_compiler_pic_F77='-KPIC'
13169         lt_prog_compiler_static_F77='-static'
13170         ;;
13171       ccc*)
13172         lt_prog_compiler_wl_F77='-Wl,'
13173         # All Alpha code is PIC.
13174         lt_prog_compiler_static_F77='-non_shared'
13175         ;;
13176       esac
13177       ;;
13178
13179     osf3* | osf4* | osf5*)
13180       lt_prog_compiler_wl_F77='-Wl,'
13181       # All OSF/1 code is PIC.
13182       lt_prog_compiler_static_F77='-non_shared'
13183       ;;
13184
13185     sco3.2v5*)
13186       lt_prog_compiler_pic_F77='-Kpic'
13187       lt_prog_compiler_static_F77='-dn'
13188       ;;
13189
13190     solaris*)
13191       lt_prog_compiler_wl_F77='-Wl,'
13192       lt_prog_compiler_pic_F77='-KPIC'
13193       lt_prog_compiler_static_F77='-Bstatic'
13194       ;;
13195
13196     sunos4*)
13197       lt_prog_compiler_wl_F77='-Qoption ld '
13198       lt_prog_compiler_pic_F77='-PIC'
13199       lt_prog_compiler_static_F77='-Bstatic'
13200       ;;
13201
13202     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13203       lt_prog_compiler_wl_F77='-Wl,'
13204       lt_prog_compiler_pic_F77='-KPIC'
13205       lt_prog_compiler_static_F77='-Bstatic'
13206       ;;
13207
13208     sysv4*MP*)
13209       if test -d /usr/nec ;then
13210         lt_prog_compiler_pic_F77='-Kconform_pic'
13211         lt_prog_compiler_static_F77='-Bstatic'
13212       fi
13213       ;;
13214
13215     uts4*)
13216       lt_prog_compiler_pic_F77='-pic'
13217       lt_prog_compiler_static_F77='-Bstatic'
13218       ;;
13219
13220     *)
13221       lt_prog_compiler_can_build_shared_F77=no
13222       ;;
13223     esac
13224   fi
13225
13226 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13227 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13228
13229 #
13230 # Check to make sure the PIC flag actually works.
13231 #
13232 if test -n "$lt_prog_compiler_pic_F77"; then
13233
13234 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13236 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13237   echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239   lt_prog_compiler_pic_works_F77=no
13240   ac_outfile=conftest.$ac_objext
13241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13242    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13243    # Insert the option either (1) after the last *FLAGS variable, or
13244    # (2) before a word containing "conftest.", or (3) at the end.
13245    # Note that $ac_compile itself does not contain backslashes and begins
13246    # with a dollar sign (not a hyphen), so the echo should work correctly.
13247    # The option is referenced via a variable to avoid confusing sed.
13248    lt_compile=`echo "$ac_compile" | $SED \
13249    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251    -e 's:$: $lt_compiler_flag:'`
13252    (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
13253    (eval "$lt_compile" 2>conftest.err)
13254    ac_status=$?
13255    cat conftest.err >&5
13256    echo "$as_me:13256: \$? = $ac_status" >&5
13257    if (exit $ac_status) && test -s "$ac_outfile"; then
13258      # The compiler can only warn and ignore the option if not recognized
13259      # So say no if there are warnings
13260      if test ! -s conftest.err; then
13261        lt_prog_compiler_pic_works_F77=yes
13262      fi
13263    fi
13264    $rm conftest*
13265
13266 fi
13267 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13268 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13269
13270 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13271     case $lt_prog_compiler_pic_F77 in
13272      "" | " "*) ;;
13273      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13274      esac
13275 else
13276     lt_prog_compiler_pic_F77=
13277      lt_prog_compiler_can_build_shared_F77=no
13278 fi
13279
13280 fi
13281 case "$host_os" in
13282   # For platforms which do not support PIC, -DPIC is meaningless:
13283   *djgpp*)
13284     lt_prog_compiler_pic_F77=
13285     ;;
13286   *)
13287     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13288     ;;
13289 esac
13290
13291 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13292 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13293 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   lt_cv_prog_compiler_c_o_F77=no
13297    $rm -r conftest 2>/dev/null
13298    mkdir conftest
13299    cd conftest
13300    mkdir out
13301    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13302
13303    lt_compiler_flag="-o out/conftest2.$ac_objext"
13304    # Insert the option either (1) after the last *FLAGS variable, or
13305    # (2) before a word containing "conftest.", or (3) at the end.
13306    # Note that $ac_compile itself does not contain backslashes and begins
13307    # with a dollar sign (not a hyphen), so the echo should work correctly.
13308    lt_compile=`echo "$ac_compile" | $SED \
13309    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13311    -e 's:$: $lt_compiler_flag:'`
13312    (eval echo "\"\$as_me:13312: $lt_compile\"" >&5)
13313    (eval "$lt_compile" 2>out/conftest.err)
13314    ac_status=$?
13315    cat out/conftest.err >&5
13316    echo "$as_me:13316: \$? = $ac_status" >&5
13317    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13318    then
13319      # The compiler can only warn and ignore the option if not recognized
13320      # So say no if there are warnings
13321      if test ! -s out/conftest.err; then
13322        lt_cv_prog_compiler_c_o_F77=yes
13323      fi
13324    fi
13325    chmod u+w .
13326    $rm conftest*
13327    # SGI C++ compiler will create directory out/ii_files/ for
13328    # template instantiation
13329    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13330    $rm out/* && rmdir out
13331    cd ..
13332    rmdir conftest
13333    $rm conftest*
13334
13335 fi
13336 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13337 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13338
13339
13340 hard_links="nottested"
13341 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13342   # do not overwrite the value of need_locks provided by the user
13343   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13344 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13345   hard_links=yes
13346   $rm conftest*
13347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348   touch conftest.a
13349   ln conftest.a conftest.b 2>&5 || hard_links=no
13350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13351   echo "$as_me:$LINENO: result: $hard_links" >&5
13352 echo "${ECHO_T}$hard_links" >&6
13353   if test "$hard_links" = no; then
13354     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13355 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13356     need_locks=warn
13357   fi
13358 else
13359   need_locks=no
13360 fi
13361
13362 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13363 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13364
13365   runpath_var=
13366   allow_undefined_flag_F77=
13367   enable_shared_with_static_runtimes_F77=no
13368   archive_cmds_F77=
13369   archive_expsym_cmds_F77=
13370   old_archive_From_new_cmds_F77=
13371   old_archive_from_expsyms_cmds_F77=
13372   export_dynamic_flag_spec_F77=
13373   whole_archive_flag_spec_F77=
13374   thread_safe_flag_spec_F77=
13375   hardcode_libdir_flag_spec_F77=
13376   hardcode_libdir_flag_spec_ld_F77=
13377   hardcode_libdir_separator_F77=
13378   hardcode_direct_F77=no
13379   hardcode_minus_L_F77=no
13380   hardcode_shlibpath_var_F77=unsupported
13381   link_all_deplibs_F77=unknown
13382   hardcode_automatic_F77=no
13383   module_cmds_F77=
13384   module_expsym_cmds_F77=
13385   always_export_symbols_F77=no
13386   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387   # include_expsyms should be a list of space-separated symbols to be *always*
13388   # included in the symbol list
13389   include_expsyms_F77=
13390   # exclude_expsyms can be an extended regexp of symbols to exclude
13391   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13392   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13393   # as well as any symbol that contains `d'.
13394   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13395   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13396   # platforms (ab)use it in PIC code, but their linkers get confused if
13397   # the symbol is explicitly referenced.  Since portable code cannot
13398   # rely on this symbol name, it's probably fine to never include it in
13399   # preloaded symbol tables.
13400   extract_expsyms_cmds=
13401
13402   case $host_os in
13403   cygwin* | mingw* | pw32*)
13404     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13405     # When not using gcc, we currently assume that we are using
13406     # Microsoft Visual C++.
13407     if test "$GCC" != yes; then
13408       with_gnu_ld=no
13409     fi
13410     ;;
13411   openbsd*)
13412     with_gnu_ld=no
13413     ;;
13414   esac
13415
13416   ld_shlibs_F77=yes
13417   if test "$with_gnu_ld" = yes; then
13418     # If archive_cmds runs LD, not CC, wlarc should be empty
13419     wlarc='${wl}'
13420
13421     # See if GNU ld supports shared libraries.
13422     case $host_os in
13423     aix3* | aix4* | aix5*)
13424       # On AIX/PPC, the GNU linker is very broken
13425       if test "$host_cpu" != ia64; then
13426         ld_shlibs_F77=no
13427         cat <<EOF 1>&2
13428
13429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13430 *** to be unable to reliably create shared libraries on AIX.
13431 *** Therefore, libtool is disabling shared libraries support.  If you
13432 *** really care for shared libraries, you may want to modify your PATH
13433 *** so that a non-GNU linker is found, and then restart.
13434
13435 EOF
13436       fi
13437       ;;
13438
13439     amigaos*)
13440       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)'
13441       hardcode_libdir_flag_spec_F77='-L$libdir'
13442       hardcode_minus_L_F77=yes
13443
13444       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13445       # that the semantics of dynamic libraries on AmigaOS, at least up
13446       # to version 4, is to share data among multiple programs linked
13447       # with the same dynamic library.  Since this doesn't match the
13448       # behavior of shared libraries on other platforms, we can't use
13449       # them.
13450       ld_shlibs_F77=no
13451       ;;
13452
13453     beos*)
13454       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13455         allow_undefined_flag_F77=unsupported
13456         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13457         # support --undefined.  This deserves some investigation.  FIXME
13458         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459       else
13460         ld_shlibs_F77=no
13461       fi
13462       ;;
13463
13464     cygwin* | mingw* | pw32*)
13465       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13466       # as there is no search path for DLLs.
13467       hardcode_libdir_flag_spec_F77='-L$libdir'
13468       allow_undefined_flag_F77=unsupported
13469       always_export_symbols_F77=no
13470       enable_shared_with_static_runtimes_F77=yes
13471       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13472
13473       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13474         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13475         # If the export-symbols file already is a .def file (1st line
13476         # is EXPORTS), use it as is; otherwise, prepend...
13477         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478           cp $export_symbols $output_objdir/$soname.def;
13479         else
13480           echo EXPORTS > $output_objdir/$soname.def;
13481           cat $export_symbols >> $output_objdir/$soname.def;
13482         fi~
13483         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13484       else
13485         ld_shlibs=no
13486       fi
13487       ;;
13488
13489     netbsd*)
13490       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13491         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13492         wlarc=
13493       else
13494         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13496       fi
13497       ;;
13498
13499     solaris* | sysv5*)
13500       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13501         ld_shlibs_F77=no
13502         cat <<EOF 1>&2
13503
13504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13505 *** create shared libraries on Solaris systems.  Therefore, libtool
13506 *** is disabling shared libraries support.  We urge you to upgrade GNU
13507 *** binutils to release 2.9.1 or newer.  Another option is to modify
13508 *** your PATH or compiler configuration so that the native linker is
13509 *** used, and then restart.
13510
13511 EOF
13512       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13515       else
13516         ld_shlibs_F77=no
13517       fi
13518       ;;
13519
13520     sunos4*)
13521       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13522       wlarc=
13523       hardcode_direct_F77=yes
13524       hardcode_shlibpath_var_F77=no
13525       ;;
13526
13527   linux*)
13528     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530         archive_cmds_F77="$tmp_archive_cmds"
13531       supports_anon_versioning=no
13532       case `$LD -v 2>/dev/null` in
13533         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13534         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13535         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13536         *\ 2.11.*) ;; # other 2.11 versions
13537         *) supports_anon_versioning=yes ;;
13538       esac
13539       if test $supports_anon_versioning = yes; then
13540         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542 $echo "local: *; };" >> $output_objdir/$libname.ver~
13543         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544       else
13545         archive_expsym_cmds_F77="$tmp_archive_cmds"
13546       fi
13547     else
13548       ld_shlibs_F77=no
13549     fi
13550     ;;
13551
13552     *)
13553       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13554         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13556       else
13557         ld_shlibs_F77=no
13558       fi
13559       ;;
13560     esac
13561
13562     if test "$ld_shlibs_F77" = yes; then
13563       runpath_var=LD_RUN_PATH
13564       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566       # ancient GNU ld didn't support --whole-archive et. al.
13567       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13569       else
13570         whole_archive_flag_spec_F77=
13571       fi
13572     fi
13573   else
13574     # PORTME fill in a description of your system's linker (not GNU ld)
13575     case $host_os in
13576     aix3*)
13577       allow_undefined_flag_F77=unsupported
13578       always_export_symbols_F77=yes
13579       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'
13580       # Note: this linker hardcodes the directories in LIBPATH if there
13581       # are no directories specified by -L.
13582       hardcode_minus_L_F77=yes
13583       if test "$GCC" = yes && test -z "$link_static_flag"; then
13584         # Neither direct hardcoding nor static linking is supported with a
13585         # broken collect2.
13586         hardcode_direct_F77=unsupported
13587       fi
13588       ;;
13589
13590     aix4* | aix5*)
13591       if test "$host_cpu" = ia64; then
13592         # On IA64, the linker does run time linking by default, so we don't
13593         # have to do anything special.
13594         aix_use_runtimelinking=no
13595         exp_sym_flag='-Bexport'
13596         no_entry_flag=""
13597       else
13598         # If we're using GNU nm, then we don't want the "-C" option.
13599         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13600         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13601           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'
13602         else
13603           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'
13604         fi
13605         aix_use_runtimelinking=no
13606
13607         # Test if we are trying to use run time linking or normal
13608         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13609         # need to do runtime linking.
13610         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13611           for ld_flag in $LDFLAGS; do
13612           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13613             aix_use_runtimelinking=yes
13614             break
13615           fi
13616           done
13617         esac
13618
13619         exp_sym_flag='-bexport'
13620         no_entry_flag='-bnoentry'
13621       fi
13622
13623       # When large executables or shared objects are built, AIX ld can
13624       # have problems creating the table of contents.  If linking a library
13625       # or program results in "error TOC overflow" add -mminimal-toc to
13626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13628
13629       archive_cmds_F77=''
13630       hardcode_direct_F77=yes
13631       hardcode_libdir_separator_F77=':'
13632       link_all_deplibs_F77=yes
13633
13634       if test "$GCC" = yes; then
13635         case $host_os in aix4.012|aix4.012.*)
13636         # We only want to do this on AIX 4.2 and lower, the check
13637         # below for broken collect2 doesn't work under 4.3+
13638           collect2name=`${CC} -print-prog-name=collect2`
13639           if test -f "$collect2name" && \
13640            strings "$collect2name" | grep resolve_lib_name >/dev/null
13641           then
13642           # We have reworked collect2
13643           hardcode_direct_F77=yes
13644           else
13645           # We have old collect2
13646           hardcode_direct_F77=unsupported
13647           # It fails to find uninstalled libraries when the uninstalled
13648           # path is not listed in the libpath.  Setting hardcode_minus_L
13649           # to unsupported forces relinking
13650           hardcode_minus_L_F77=yes
13651           hardcode_libdir_flag_spec_F77='-L$libdir'
13652           hardcode_libdir_separator_F77=
13653           fi
13654         esac
13655         shared_flag='-shared'
13656       else
13657         # not using gcc
13658         if test "$host_cpu" = ia64; then
13659         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660         # chokes on -Wl,-G. The following line is correct:
13661           shared_flag='-G'
13662         else
13663         if test "$aix_use_runtimelinking" = yes; then
13664             shared_flag='${wl}-G'
13665           else
13666             shared_flag='${wl}-bM:SRE'
13667         fi
13668         fi
13669       fi
13670
13671       # It seems that -bexpall does not export symbols beginning with
13672       # underscore (_), so it is better to generate a list of symbols to export.
13673       always_export_symbols_F77=yes
13674       if test "$aix_use_runtimelinking" = yes; then
13675         # Warning - without using the other runtime loading flags (-brtl),
13676         # -berok will link without error, but may produce a broken library.
13677         allow_undefined_flag_F77='-berok'
13678        # Determine the default libpath from the value encoded in an empty executable.
13679        cat >conftest.$ac_ext <<_ACEOF
13680       program main
13681
13682       end
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13686   (eval $ac_link) 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_f77_werror_flag"
13694                          || test ! -s conftest.err'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; } &&
13700          { ac_try='test -s conftest$ac_exeext'
13701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702   (eval $ac_try) 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706
13707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13708 }'`
13709 # Check for a 64-bit object if we didn't find anything.
13710 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; }
13711 }'`; fi
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718       conftest$ac_exeext conftest.$ac_ext
13719 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13720
13721        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13722         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"
13723        else
13724         if test "$host_cpu" = ia64; then
13725           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13726           allow_undefined_flag_F77="-z nodefs"
13727           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"
13728         else
13729          # Determine the default libpath from the value encoded in an empty executable.
13730          cat >conftest.$ac_ext <<_ACEOF
13731       program main
13732
13733       end
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737   (eval $ac_link) 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } &&
13744          { ac_try='test -z "$ac_f77_werror_flag"
13745                          || test ! -s conftest.err'
13746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747   (eval $ac_try) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); }; } &&
13751          { ac_try='test -s conftest$ac_exeext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757
13758 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13759 }'`
13760 # Check for a 64-bit object if we didn't find anything.
13761 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; }
13762 }'`; fi
13763 else
13764   echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 fi
13768 rm -f conftest.err conftest.$ac_objext \
13769       conftest$ac_exeext conftest.$ac_ext
13770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13771
13772          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13773           # Warning - without using the other run time loading flags,
13774           # -berok will link without error, but may produce a broken library.
13775           no_undefined_flag_F77=' ${wl}-bernotok'
13776           allow_undefined_flag_F77=' ${wl}-berok'
13777           # -bexpall does not export symbols beginning with underscore (_)
13778           always_export_symbols_F77=yes
13779           # Exported symbols can be pulled into shared objects from archives
13780           whole_archive_flag_spec_F77=' '
13781           archive_cmds_need_lc_F77=yes
13782           # This is similar to how AIX traditionally builds it's shared libraries.
13783           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'
13784         fi
13785       fi
13786       ;;
13787
13788     amigaos*)
13789       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)'
13790       hardcode_libdir_flag_spec_F77='-L$libdir'
13791       hardcode_minus_L_F77=yes
13792       # see comment about different semantics on the GNU ld section
13793       ld_shlibs_F77=no
13794       ;;
13795
13796     bsdi[45]*)
13797       export_dynamic_flag_spec_F77=-rdynamic
13798       ;;
13799
13800     cygwin* | mingw* | pw32*)
13801       # When not using gcc, we currently assume that we are using
13802       # Microsoft Visual C++.
13803       # hardcode_libdir_flag_spec is actually meaningless, as there is
13804       # no search path for DLLs.
13805       hardcode_libdir_flag_spec_F77=' '
13806       allow_undefined_flag_F77=unsupported
13807       # Tell ltmain to make .lib files, not .a files.
13808       libext=lib
13809       # Tell ltmain to make .dll files, not .so files.
13810       shrext_cmds=".dll"
13811       # FIXME: Setting linknames here is a bad hack.
13812       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13813       # The linker will automatically build a .lib file if we build a DLL.
13814       old_archive_From_new_cmds_F77='true'
13815       # FIXME: Should let the user specify the lib program.
13816       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13817       fix_srcfile_path='`cygpath -w "$srcfile"`'
13818       enable_shared_with_static_runtimes_F77=yes
13819       ;;
13820
13821     darwin* | rhapsody*)
13822       case "$host_os" in
13823         rhapsody* | darwin1.[012])
13824          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13825          ;;
13826        *) # Darwin 1.3 on
13827          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13828            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13829          else
13830            case ${MACOSX_DEPLOYMENT_TARGET} in
13831              10.[012])
13832                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13833                ;;
13834              10.*)
13835                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13836                ;;
13837            esac
13838          fi
13839          ;;
13840       esac
13841       archive_cmds_need_lc_F77=no
13842       hardcode_direct_F77=no
13843       hardcode_automatic_F77=yes
13844       hardcode_shlibpath_var_F77=unsupported
13845       whole_archive_flag_spec_F77=''
13846       link_all_deplibs_F77=yes
13847     if test "$GCC" = yes ; then
13848         output_verbose_link_cmd='echo'
13849         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13850       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13851       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13852       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}'
13853       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}'
13854     else
13855       case "$cc_basename" in
13856         xlc*)
13857          output_verbose_link_cmd='echo'
13858          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13859          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13860           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13861          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}'
13862           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}'
13863           ;;
13864        *)
13865          ld_shlibs_F77=no
13866           ;;
13867       esac
13868     fi
13869       ;;
13870
13871     dgux*)
13872       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873       hardcode_libdir_flag_spec_F77='-L$libdir'
13874       hardcode_shlibpath_var_F77=no
13875       ;;
13876
13877     freebsd1*)
13878       ld_shlibs_F77=no
13879       ;;
13880
13881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13882     # support.  Future versions do this automatically, but an explicit c++rt0.o
13883     # does not break anything, and helps significantly (at the cost of a little
13884     # extra space).
13885     freebsd2.2*)
13886       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13887       hardcode_libdir_flag_spec_F77='-R$libdir'
13888       hardcode_direct_F77=yes
13889       hardcode_shlibpath_var_F77=no
13890       ;;
13891
13892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13893     freebsd2*)
13894       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13895       hardcode_direct_F77=yes
13896       hardcode_minus_L_F77=yes
13897       hardcode_shlibpath_var_F77=no
13898       ;;
13899
13900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13901     freebsd* | kfreebsd*-gnu)
13902       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13903       hardcode_libdir_flag_spec_F77='-R$libdir'
13904       hardcode_direct_F77=yes
13905       hardcode_shlibpath_var_F77=no
13906       ;;
13907
13908     hpux9*)
13909       if test "$GCC" = yes; then
13910         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'
13911       else
13912         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'
13913       fi
13914       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13915       hardcode_libdir_separator_F77=:
13916       hardcode_direct_F77=yes
13917
13918       # hardcode_minus_L: Not really in the search PATH,
13919       # but as the default location of the library.
13920       hardcode_minus_L_F77=yes
13921       export_dynamic_flag_spec_F77='${wl}-E'
13922       ;;
13923
13924     hpux10* | hpux11*)
13925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13926         case "$host_cpu" in
13927         hppa*64*|ia64*)
13928           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13929           ;;
13930         *)
13931           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13932           ;;
13933         esac
13934       else
13935         case "$host_cpu" in
13936         hppa*64*|ia64*)
13937           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13938           ;;
13939         *)
13940           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13941           ;;
13942         esac
13943       fi
13944       if test "$with_gnu_ld" = no; then
13945         case "$host_cpu" in
13946         hppa*64*)
13947           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13948           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13949           hardcode_libdir_separator_F77=:
13950           hardcode_direct_F77=no
13951           hardcode_shlibpath_var_F77=no
13952           ;;
13953         ia64*)
13954           hardcode_libdir_flag_spec_F77='-L$libdir'
13955           hardcode_direct_F77=no
13956           hardcode_shlibpath_var_F77=no
13957
13958           # hardcode_minus_L: Not really in the search PATH,
13959           # but as the default location of the library.
13960           hardcode_minus_L_F77=yes
13961           ;;
13962         *)
13963           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13964           hardcode_libdir_separator_F77=:
13965           hardcode_direct_F77=yes
13966           export_dynamic_flag_spec_F77='${wl}-E'
13967
13968           # hardcode_minus_L: Not really in the search PATH,
13969           # but as the default location of the library.
13970           hardcode_minus_L_F77=yes
13971           ;;
13972         esac
13973       fi
13974       ;;
13975
13976     irix5* | irix6* | nonstopux*)
13977       if test "$GCC" = yes; then
13978         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'
13979       else
13980         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'
13981         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13982       fi
13983       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13984       hardcode_libdir_separator_F77=:
13985       link_all_deplibs_F77=yes
13986       ;;
13987
13988     netbsd*)
13989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13991       else
13992         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13993       fi
13994       hardcode_libdir_flag_spec_F77='-R$libdir'
13995       hardcode_direct_F77=yes
13996       hardcode_shlibpath_var_F77=no
13997       ;;
13998
13999     newsos6)
14000       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001       hardcode_direct_F77=yes
14002       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14003       hardcode_libdir_separator_F77=:
14004       hardcode_shlibpath_var_F77=no
14005       ;;
14006
14007     openbsd*)
14008       hardcode_direct_F77=yes
14009       hardcode_shlibpath_var_F77=no
14010       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14011         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14012         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14013         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14014         export_dynamic_flag_spec_F77='${wl}-E'
14015       else
14016        case $host_os in
14017          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14018            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14019            hardcode_libdir_flag_spec_F77='-R$libdir'
14020            ;;
14021          *)
14022            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14023            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14024            ;;
14025        esac
14026       fi
14027       ;;
14028
14029     os2*)
14030       hardcode_libdir_flag_spec_F77='-L$libdir'
14031       hardcode_minus_L_F77=yes
14032       allow_undefined_flag_F77=unsupported
14033       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'
14034       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14035       ;;
14036
14037     osf3*)
14038       if test "$GCC" = yes; then
14039         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14040         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'
14041       else
14042         allow_undefined_flag_F77=' -expect_unresolved \*'
14043         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'
14044       fi
14045       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14046       hardcode_libdir_separator_F77=:
14047       ;;
14048
14049     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14050       if test "$GCC" = yes; then
14051         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14052         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'
14053         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14054       else
14055         allow_undefined_flag_F77=' -expect_unresolved \*'
14056         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'
14057         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~
14058         $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'
14059
14060         # Both c and cxx compiler support -rpath directly
14061         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14062       fi
14063       hardcode_libdir_separator_F77=:
14064       ;;
14065
14066     sco3.2v5*)
14067       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068       hardcode_shlibpath_var_F77=no
14069       export_dynamic_flag_spec_F77='${wl}-Bexport'
14070       runpath_var=LD_RUN_PATH
14071       hardcode_runpath_var=yes
14072       ;;
14073
14074     solaris*)
14075       no_undefined_flag_F77=' -z text'
14076       if test "$GCC" = yes; then
14077         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14078         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14080       else
14081         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14082         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14083         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14084       fi
14085       hardcode_libdir_flag_spec_F77='-R$libdir'
14086       hardcode_shlibpath_var_F77=no
14087       case $host_os in
14088       solaris2.[0-5] | solaris2.[0-5].*) ;;
14089       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14090         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14091       esac
14092       link_all_deplibs_F77=yes
14093       ;;
14094
14095     sunos4*)
14096       if test "x$host_vendor" = xsequent; then
14097         # Use $CC to link under sequent, because it throws in some extra .o
14098         # files that make .init and .fini sections work.
14099         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14100       else
14101         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14102       fi
14103       hardcode_libdir_flag_spec_F77='-L$libdir'
14104       hardcode_direct_F77=yes
14105       hardcode_minus_L_F77=yes
14106       hardcode_shlibpath_var_F77=no
14107       ;;
14108
14109     sysv4)
14110       case $host_vendor in
14111         sni)
14112           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113           hardcode_direct_F77=yes # is this really true???
14114         ;;
14115         siemens)
14116           ## LD is ld it makes a PLAMLIB
14117           ## CC just makes a GrossModule.
14118           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14119           reload_cmds_F77='$CC -r -o $output$reload_objs'
14120           hardcode_direct_F77=no
14121         ;;
14122         motorola)
14123           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14124           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14125         ;;
14126       esac
14127       runpath_var='LD_RUN_PATH'
14128       hardcode_shlibpath_var_F77=no
14129       ;;
14130
14131     sysv4.3*)
14132       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133       hardcode_shlibpath_var_F77=no
14134       export_dynamic_flag_spec_F77='-Bexport'
14135       ;;
14136
14137     sysv4*MP*)
14138       if test -d /usr/nec; then
14139         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140         hardcode_shlibpath_var_F77=no
14141         runpath_var=LD_RUN_PATH
14142         hardcode_runpath_var=yes
14143         ld_shlibs_F77=yes
14144       fi
14145       ;;
14146
14147     sysv4.2uw2*)
14148       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14149       hardcode_direct_F77=yes
14150       hardcode_minus_L_F77=no
14151       hardcode_shlibpath_var_F77=no
14152       hardcode_runpath_var=yes
14153       runpath_var=LD_RUN_PATH
14154       ;;
14155
14156    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14157       no_undefined_flag_F77='${wl}-z ${wl}text'
14158       if test "$GCC" = yes; then
14159         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160       else
14161         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14162       fi
14163       runpath_var='LD_RUN_PATH'
14164       hardcode_shlibpath_var_F77=no
14165       ;;
14166
14167     sysv5*)
14168       no_undefined_flag_F77=' -z text'
14169       # $CC -shared without GNU ld will not create a library from C++
14170       # object files and a static libstdc++, better avoid it by now
14171       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14174       hardcode_libdir_flag_spec_F77=
14175       hardcode_shlibpath_var_F77=no
14176       runpath_var='LD_RUN_PATH'
14177       ;;
14178
14179     uts4*)
14180       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14181       hardcode_libdir_flag_spec_F77='-L$libdir'
14182       hardcode_shlibpath_var_F77=no
14183       ;;
14184
14185     *)
14186       ld_shlibs_F77=no
14187       ;;
14188     esac
14189   fi
14190
14191 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14192 echo "${ECHO_T}$ld_shlibs_F77" >&6
14193 test "$ld_shlibs_F77" = no && can_build_shared=no
14194
14195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14196 if test "$GCC" = yes; then
14197   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14198 fi
14199
14200 #
14201 # Do we need to explicitly link libc?
14202 #
14203 case "x$archive_cmds_need_lc_F77" in
14204 x|xyes)
14205   # Assume -lc should be added
14206   archive_cmds_need_lc_F77=yes
14207
14208   if test "$enable_shared" = yes && test "$GCC" = yes; then
14209     case $archive_cmds_F77 in
14210     *'~'*)
14211       # FIXME: we may have to deal with multi-command sequences.
14212       ;;
14213     '$CC '*)
14214       # Test whether the compiler implicitly links with -lc since on some
14215       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14216       # to ld, don't add -lc before -lgcc.
14217       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14218 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14219       $rm conftest*
14220       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221
14222       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223   (eval $ac_compile) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } 2>conftest.err; then
14227         soname=conftest
14228         lib=conftest
14229         libobjs=conftest.$ac_objext
14230         deplibs=
14231         wl=$lt_prog_compiler_wl_F77
14232         compiler_flags=-v
14233         linker_flags=-v
14234         verstring=
14235         output_objdir=.
14236         libname=conftest
14237         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14238         allow_undefined_flag_F77=
14239         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }
14244         then
14245           archive_cmds_need_lc_F77=no
14246         else
14247           archive_cmds_need_lc_F77=yes
14248         fi
14249         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14250       else
14251         cat conftest.err 1>&5
14252       fi
14253       $rm conftest*
14254       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14255 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14256       ;;
14257     esac
14258   fi
14259   ;;
14260 esac
14261
14262 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14264 library_names_spec=
14265 libname_spec='lib$name'
14266 soname_spec=
14267 shrext_cmds=".so"
14268 postinstall_cmds=
14269 postuninstall_cmds=
14270 finish_cmds=
14271 finish_eval=
14272 shlibpath_var=
14273 shlibpath_overrides_runpath=unknown
14274 version_type=none
14275 dynamic_linker="$host_os ld.so"
14276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277 if test "$GCC" = yes; then
14278   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14279   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14280     # if the path contains ";" then we assume it to be the separator
14281     # otherwise default to the standard path separator (i.e. ":") - it is
14282     # assumed that no part of a normal pathname contains ";" but that should
14283     # okay in the real world where ";" in dirpaths is itself problematic.
14284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14285   else
14286     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14287   fi
14288 else
14289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14290 fi
14291 need_lib_prefix=unknown
14292 hardcode_into_libs=no
14293
14294 # when you set need_version to no, make sure it does not cause -set_version
14295 # flags to be left without arguments
14296 need_version=unknown
14297
14298 case $host_os in
14299 aix3*)
14300   version_type=linux
14301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14302   shlibpath_var=LIBPATH
14303
14304   # AIX 3 has no versioning support, so we append a major version to the name.
14305   soname_spec='${libname}${release}${shared_ext}$major'
14306   ;;
14307
14308 aix4* | aix5*)
14309   version_type=linux
14310   need_lib_prefix=no
14311   need_version=no
14312   hardcode_into_libs=yes
14313   if test "$host_cpu" = ia64; then
14314     # AIX 5 supports IA64
14315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14316     shlibpath_var=LD_LIBRARY_PATH
14317   else
14318     # With GCC up to 2.95.x, collect2 would create an import file
14319     # for dependence libraries.  The import file would start with
14320     # the line `#! .'.  This would cause the generated library to
14321     # depend on `.', always an invalid library.  This was fixed in
14322     # development snapshots of GCC prior to 3.0.
14323     case $host_os in
14324       aix4 | aix4.[01] | aix4.[01].*)
14325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14326            echo ' yes '
14327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14328         :
14329       else
14330         can_build_shared=no
14331       fi
14332       ;;
14333     esac
14334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14335     # soname into executable. Probably we can add versioning support to
14336     # collect2, so additional links can be useful in future.
14337     if test "$aix_use_runtimelinking" = yes; then
14338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14339       # instead of lib<name>.a to let people know that these are not
14340       # typical AIX shared libraries.
14341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342     else
14343       # We preserve .a as extension for shared libraries through AIX4.2
14344       # and later when we are not doing run time linking.
14345       library_names_spec='${libname}${release}.a $libname.a'
14346       soname_spec='${libname}${release}${shared_ext}$major'
14347     fi
14348     shlibpath_var=LIBPATH
14349   fi
14350   ;;
14351
14352 amigaos*)
14353   library_names_spec='$libname.ixlibrary $libname.a'
14354   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14355   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'
14356   ;;
14357
14358 beos*)
14359   library_names_spec='${libname}${shared_ext}'
14360   dynamic_linker="$host_os ld.so"
14361   shlibpath_var=LIBRARY_PATH
14362   ;;
14363
14364 bsdi[45]*)
14365   version_type=linux
14366   need_version=no
14367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368   soname_spec='${libname}${release}${shared_ext}$major'
14369   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14370   shlibpath_var=LD_LIBRARY_PATH
14371   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14372   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14373   # the default ld.so.conf also contains /usr/contrib/lib and
14374   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14375   # libtool to hard-code these into programs
14376   ;;
14377
14378 cygwin* | mingw* | pw32*)
14379   version_type=windows
14380   shrext_cmds=".dll"
14381   need_version=no
14382   need_lib_prefix=no
14383
14384   case $GCC,$host_os in
14385   yes,cygwin* | yes,mingw* | yes,pw32*)
14386     library_names_spec='$libname.dll.a'
14387     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14388     postinstall_cmds='base_file=`basename \${file}`~
14389       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14390       dldir=$destdir/`dirname \$dlpath`~
14391       test -d \$dldir || mkdir -p \$dldir~
14392       $install_prog $dir/$dlname \$dldir/$dlname'
14393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14394       dlpath=$dir/\$dldll~
14395        $rm \$dlpath'
14396     shlibpath_overrides_runpath=yes
14397
14398     case $host_os in
14399     cygwin*)
14400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14403       ;;
14404     mingw*)
14405       # MinGW DLLs use traditional 'lib' prefix
14406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14409         # It is most probably a Windows format PATH printed by
14410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14411         # path with ; separators, and with drive letters. We can handle the
14412         # drive letters (cygwin fileutils understands them), so leave them,
14413         # especially as we might pass files found there to a mingw objdump,
14414         # which wouldn't understand a cygwinified path. Ahh.
14415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416       else
14417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14418       fi
14419       ;;
14420     pw32*)
14421       # pw32 DLLs use 'pw' prefix rather than 'lib'
14422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14423       ;;
14424     esac
14425     ;;
14426
14427   *)
14428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14429     ;;
14430   esac
14431   dynamic_linker='Win32 ld.exe'
14432   # FIXME: first we should search . and the directory the executable is in
14433   shlibpath_var=PATH
14434   ;;
14435
14436 darwin* | rhapsody*)
14437   dynamic_linker="$host_os dyld"
14438   version_type=darwin
14439   need_lib_prefix=no
14440   need_version=no
14441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14442   soname_spec='${libname}${release}${major}$shared_ext'
14443   shlibpath_overrides_runpath=yes
14444   shlibpath_var=DYLD_LIBRARY_PATH
14445   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14446   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14447   if test "$GCC" = yes; then
14448     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"`
14449   else
14450     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14451   fi
14452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14453   ;;
14454
14455 dgux*)
14456   version_type=linux
14457   need_lib_prefix=no
14458   need_version=no
14459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14460   soname_spec='${libname}${release}${shared_ext}$major'
14461   shlibpath_var=LD_LIBRARY_PATH
14462   ;;
14463
14464 freebsd1*)
14465   dynamic_linker=no
14466   ;;
14467
14468 kfreebsd*-gnu)
14469   version_type=linux
14470   need_lib_prefix=no
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   shlibpath_var=LD_LIBRARY_PATH
14475   shlibpath_overrides_runpath=no
14476   hardcode_into_libs=yes
14477   dynamic_linker='GNU ld.so'
14478   ;;
14479
14480 freebsd*)
14481   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14482   version_type=freebsd-$objformat
14483   case $version_type in
14484     freebsd-elf*)
14485       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14486       need_version=no
14487       need_lib_prefix=no
14488       ;;
14489     freebsd-*)
14490       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14491       need_version=yes
14492       ;;
14493   esac
14494   shlibpath_var=LD_LIBRARY_PATH
14495   case $host_os in
14496   freebsd2*)
14497     shlibpath_overrides_runpath=yes
14498     ;;
14499   freebsd3.01* | freebsdelf3.01*)
14500     shlibpath_overrides_runpath=yes
14501     hardcode_into_libs=yes
14502     ;;
14503   *) # from 3.2 on
14504     shlibpath_overrides_runpath=no
14505     hardcode_into_libs=yes
14506     ;;
14507   esac
14508   ;;
14509
14510 gnu*)
14511   version_type=linux
14512   need_lib_prefix=no
14513   need_version=no
14514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14515   soname_spec='${libname}${release}${shared_ext}$major'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   hardcode_into_libs=yes
14518   ;;
14519
14520 hpux9* | hpux10* | hpux11*)
14521   # Give a soname corresponding to the major version so that dld.sl refuses to
14522   # link against other versions.
14523   version_type=sunos
14524   need_lib_prefix=no
14525   need_version=no
14526   case "$host_cpu" in
14527   ia64*)
14528     shrext_cmds='.so'
14529     hardcode_into_libs=yes
14530     dynamic_linker="$host_os dld.so"
14531     shlibpath_var=LD_LIBRARY_PATH
14532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534     soname_spec='${libname}${release}${shared_ext}$major'
14535     if test "X$HPUX_IA64_MODE" = X32; then
14536       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14537     else
14538       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14539     fi
14540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541     ;;
14542    hppa*64*)
14543      shrext_cmds='.sl'
14544      hardcode_into_libs=yes
14545      dynamic_linker="$host_os dld.sl"
14546      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14547      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549      soname_spec='${libname}${release}${shared_ext}$major'
14550      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14551      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14552      ;;
14553    *)
14554     shrext_cmds='.sl'
14555     dynamic_linker="$host_os dld.sl"
14556     shlibpath_var=SHLIB_PATH
14557     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559     soname_spec='${libname}${release}${shared_ext}$major'
14560     ;;
14561   esac
14562   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14563   postinstall_cmds='chmod 555 $lib'
14564   ;;
14565
14566 irix5* | irix6* | nonstopux*)
14567   case $host_os in
14568     nonstopux*) version_type=nonstopux ;;
14569     *)
14570         if test "$lt_cv_prog_gnu_ld" = yes; then
14571                 version_type=linux
14572         else
14573                 version_type=irix
14574         fi ;;
14575   esac
14576   need_lib_prefix=no
14577   need_version=no
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14580   case $host_os in
14581   irix5* | nonstopux*)
14582     libsuff= shlibsuff=
14583     ;;
14584   *)
14585     case $LD in # libtool.m4 will add one of these switches to LD
14586     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587       libsuff= shlibsuff= libmagic=32-bit;;
14588     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589       libsuff=32 shlibsuff=N32 libmagic=N32;;
14590     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592     *) libsuff= shlibsuff= libmagic=never-match;;
14593     esac
14594     ;;
14595   esac
14596   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597   shlibpath_overrides_runpath=no
14598   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600   hardcode_into_libs=yes
14601   ;;
14602
14603 # No shared lib support for Linux oldld, aout, or coff.
14604 linux*oldld* | linux*aout* | linux*coff*)
14605   dynamic_linker=no
14606   ;;
14607
14608 # This must be Linux ELF.
14609 linux*)
14610   version_type=linux
14611   need_lib_prefix=no
14612   need_version=no
14613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   shlibpath_overrides_runpath=no
14618   # This implies no fast_install, which is unacceptable.
14619   # Some rework will be needed to allow for fast_install
14620   # before this can be enabled.
14621   hardcode_into_libs=yes
14622
14623   # Append ld.so.conf contents to the search path
14624   if test -f /etc/ld.so.conf; then
14625     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14626     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14627   fi
14628
14629   # We used to test for /lib/ld.so.1 and disable shared libraries on
14630   # powerpc, because MkLinux only supported shared libraries with the
14631   # GNU dynamic linker.  Since this was broken with cross compilers,
14632   # most powerpc-linux boxes support dynamic linking these days and
14633   # people can always --disable-shared, the test was removed, and we
14634   # assume the GNU/Linux dynamic linker is in use.
14635   dynamic_linker='GNU/Linux ld.so'
14636   ;;
14637
14638 knetbsd*-gnu)
14639   version_type=linux
14640   need_lib_prefix=no
14641   need_version=no
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643   soname_spec='${libname}${release}${shared_ext}$major'
14644   shlibpath_var=LD_LIBRARY_PATH
14645   shlibpath_overrides_runpath=no
14646   hardcode_into_libs=yes
14647   dynamic_linker='GNU ld.so'
14648   ;;
14649
14650 netbsd*)
14651   version_type=sunos
14652   need_lib_prefix=no
14653   need_version=no
14654   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657     dynamic_linker='NetBSD (a.out) ld.so'
14658   else
14659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14660     soname_spec='${libname}${release}${shared_ext}$major'
14661     dynamic_linker='NetBSD ld.elf_so'
14662   fi
14663   shlibpath_var=LD_LIBRARY_PATH
14664   shlibpath_overrides_runpath=yes
14665   hardcode_into_libs=yes
14666   ;;
14667
14668 newsos6)
14669   version_type=linux
14670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671   shlibpath_var=LD_LIBRARY_PATH
14672   shlibpath_overrides_runpath=yes
14673   ;;
14674
14675 nto-qnx*)
14676   version_type=linux
14677   need_lib_prefix=no
14678   need_version=no
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   shlibpath_overrides_runpath=yes
14683   ;;
14684
14685 openbsd*)
14686   version_type=sunos
14687   need_lib_prefix=no
14688   need_version=no
14689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14691   shlibpath_var=LD_LIBRARY_PATH
14692   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14693     case $host_os in
14694       openbsd2.[89] | openbsd2.[89].*)
14695         shlibpath_overrides_runpath=no
14696         ;;
14697       *)
14698         shlibpath_overrides_runpath=yes
14699         ;;
14700       esac
14701   else
14702     shlibpath_overrides_runpath=yes
14703   fi
14704   ;;
14705
14706 os2*)
14707   libname_spec='$name'
14708   shrext_cmds=".dll"
14709   need_lib_prefix=no
14710   library_names_spec='$libname${shared_ext} $libname.a'
14711   dynamic_linker='OS/2 ld.exe'
14712   shlibpath_var=LIBPATH
14713   ;;
14714
14715 osf3* | osf4* | osf5*)
14716   version_type=osf
14717   need_lib_prefix=no
14718   need_version=no
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14723   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14724   ;;
14725
14726 sco3.2v5*)
14727   version_type=osf
14728   soname_spec='${libname}${release}${shared_ext}$major'
14729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730   shlibpath_var=LD_LIBRARY_PATH
14731   ;;
14732
14733 solaris*)
14734   version_type=linux
14735   need_lib_prefix=no
14736   need_version=no
14737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738   soname_spec='${libname}${release}${shared_ext}$major'
14739   shlibpath_var=LD_LIBRARY_PATH
14740   shlibpath_overrides_runpath=yes
14741   hardcode_into_libs=yes
14742   # ldd complains unless libraries are executable
14743   postinstall_cmds='chmod +x $lib'
14744   ;;
14745
14746 sunos4*)
14747   version_type=sunos
14748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14749   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14750   shlibpath_var=LD_LIBRARY_PATH
14751   shlibpath_overrides_runpath=yes
14752   if test "$with_gnu_ld" = yes; then
14753     need_lib_prefix=no
14754   fi
14755   need_version=yes
14756   ;;
14757
14758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14759   version_type=linux
14760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761   soname_spec='${libname}${release}${shared_ext}$major'
14762   shlibpath_var=LD_LIBRARY_PATH
14763   case $host_vendor in
14764     sni)
14765       shlibpath_overrides_runpath=no
14766       need_lib_prefix=no
14767       export_dynamic_flag_spec='${wl}-Blargedynsym'
14768       runpath_var=LD_RUN_PATH
14769       ;;
14770     siemens)
14771       need_lib_prefix=no
14772       ;;
14773     motorola)
14774       need_lib_prefix=no
14775       need_version=no
14776       shlibpath_overrides_runpath=no
14777       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14778       ;;
14779   esac
14780   ;;
14781
14782 sysv4*MP*)
14783   if test -d /usr/nec ;then
14784     version_type=linux
14785     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14786     soname_spec='$libname${shared_ext}.$major'
14787     shlibpath_var=LD_LIBRARY_PATH
14788   fi
14789   ;;
14790
14791 uts4*)
14792   version_type=linux
14793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794   soname_spec='${libname}${release}${shared_ext}$major'
14795   shlibpath_var=LD_LIBRARY_PATH
14796   ;;
14797
14798 *)
14799   dynamic_linker=no
14800   ;;
14801 esac
14802 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803 echo "${ECHO_T}$dynamic_linker" >&6
14804 test "$dynamic_linker" = no && can_build_shared=no
14805
14806 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14807 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14808 hardcode_action_F77=
14809 if test -n "$hardcode_libdir_flag_spec_F77" || \
14810    test -n "$runpath_var_F77" || \
14811    test "X$hardcode_automatic_F77" = "Xyes" ; then
14812
14813   # We can hardcode non-existant directories.
14814   if test "$hardcode_direct_F77" != no &&
14815      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816      # have to relink, otherwise we might link with an installed library
14817      # when we should be linking with a yet-to-be-installed one
14818      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14819      test "$hardcode_minus_L_F77" != no; then
14820     # Linking always hardcodes the temporary library directory.
14821     hardcode_action_F77=relink
14822   else
14823     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824     hardcode_action_F77=immediate
14825   fi
14826 else
14827   # We cannot hardcode anything, or else we can only hardcode existing
14828   # directories.
14829   hardcode_action_F77=unsupported
14830 fi
14831 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14832 echo "${ECHO_T}$hardcode_action_F77" >&6
14833
14834 if test "$hardcode_action_F77" = relink; then
14835   # Fast installation is not supported
14836   enable_fast_install=no
14837 elif test "$shlibpath_overrides_runpath" = yes ||
14838      test "$enable_shared" = no; then
14839   # Fast installation is not necessary
14840   enable_fast_install=needless
14841 fi
14842
14843 striplib=
14844 old_striplib=
14845 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14846 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14847 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14848   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14849   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14850   echo "$as_me:$LINENO: result: yes" >&5
14851 echo "${ECHO_T}yes" >&6
14852 else
14853 # FIXME - insert some real tests, host_os isn't really good enough
14854   case $host_os in
14855    darwin*)
14856        if test -n "$STRIP" ; then
14857          striplib="$STRIP -x"
14858          echo "$as_me:$LINENO: result: yes" >&5
14859 echo "${ECHO_T}yes" >&6
14860        else
14861   echo "$as_me:$LINENO: result: no" >&5
14862 echo "${ECHO_T}no" >&6
14863 fi
14864        ;;
14865    *)
14866   echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14868     ;;
14869   esac
14870 fi
14871
14872
14873
14874 # The else clause should only fire when bootstrapping the
14875 # libtool distribution, otherwise you forgot to ship ltmain.sh
14876 # with your package, and you will get complaints that there are
14877 # no rules to generate ltmain.sh.
14878 if test -f "$ltmain"; then
14879   # See if we are running on zsh, and set the options which allow our commands through
14880   # without removal of \ escapes.
14881   if test -n "${ZSH_VERSION+set}" ; then
14882     setopt NO_GLOB_SUBST
14883   fi
14884   # Now quote all the things that may contain metacharacters while being
14885   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14886   # variables and quote the copies for generation of the libtool script.
14887   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14888     SED SHELL STRIP \
14889     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891     deplibs_check_method reload_flag reload_cmds need_locks \
14892     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893     lt_cv_sys_global_symbol_to_c_name_address \
14894     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895     old_postinstall_cmds old_postuninstall_cmds \
14896     compiler_F77 \
14897     CC_F77 \
14898     LD_F77 \
14899     lt_prog_compiler_wl_F77 \
14900     lt_prog_compiler_pic_F77 \
14901     lt_prog_compiler_static_F77 \
14902     lt_prog_compiler_no_builtin_flag_F77 \
14903     export_dynamic_flag_spec_F77 \
14904     thread_safe_flag_spec_F77 \
14905     whole_archive_flag_spec_F77 \
14906     enable_shared_with_static_runtimes_F77 \
14907     old_archive_cmds_F77 \
14908     old_archive_from_new_cmds_F77 \
14909     predep_objects_F77 \
14910     postdep_objects_F77 \
14911     predeps_F77 \
14912     postdeps_F77 \
14913     compiler_lib_search_path_F77 \
14914     archive_cmds_F77 \
14915     archive_expsym_cmds_F77 \
14916     postinstall_cmds_F77 \
14917     postuninstall_cmds_F77 \
14918     old_archive_from_expsyms_cmds_F77 \
14919     allow_undefined_flag_F77 \
14920     no_undefined_flag_F77 \
14921     export_symbols_cmds_F77 \
14922     hardcode_libdir_flag_spec_F77 \
14923     hardcode_libdir_flag_spec_ld_F77 \
14924     hardcode_libdir_separator_F77 \
14925     hardcode_automatic_F77 \
14926     module_cmds_F77 \
14927     module_expsym_cmds_F77 \
14928     lt_cv_prog_compiler_c_o_F77 \
14929     exclude_expsyms_F77 \
14930     include_expsyms_F77; do
14931
14932     case $var in
14933     old_archive_cmds_F77 | \
14934     old_archive_from_new_cmds_F77 | \
14935     archive_cmds_F77 | \
14936     archive_expsym_cmds_F77 | \
14937     module_cmds_F77 | \
14938     module_expsym_cmds_F77 | \
14939     old_archive_from_expsyms_cmds_F77 | \
14940     export_symbols_cmds_F77 | \
14941     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942     postinstall_cmds | postuninstall_cmds | \
14943     old_postinstall_cmds | old_postuninstall_cmds | \
14944     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945       # Double-quote double-evaled strings.
14946       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14947       ;;
14948     *)
14949       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14950       ;;
14951     esac
14952   done
14953
14954   case $lt_echo in
14955   *'\$0 --fallback-echo"')
14956     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14957     ;;
14958   esac
14959
14960 cfgfile="$ofile"
14961
14962   cat <<__EOF__ >> "$cfgfile"
14963 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14964
14965 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14966
14967 # Shell to use when invoking shell scripts.
14968 SHELL=$lt_SHELL
14969
14970 # Whether or not to build shared libraries.
14971 build_libtool_libs=$enable_shared
14972
14973 # Whether or not to build static libraries.
14974 build_old_libs=$enable_static
14975
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc_F77
14978
14979 # Whether or not to disallow shared libs when runtime libs are static
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14981
14982 # Whether or not to optimize for fast installation.
14983 fast_install=$enable_fast_install
14984
14985 # The host system.
14986 host_alias=$host_alias
14987 host=$host
14988
14989 # An echo program that does not interpret backslashes.
14990 echo=$lt_echo
14991
14992 # The archiver.
14993 AR=$lt_AR
14994 AR_FLAGS=$lt_AR_FLAGS
14995
14996 # A C compiler.
14997 LTCC=$lt_LTCC
14998
14999 # A language-specific compiler.
15000 CC=$lt_compiler_F77
15001
15002 # Is the compiler the GNU C compiler?
15003 with_gcc=$GCC_F77
15004
15005 # An ERE matcher.
15006 EGREP=$lt_EGREP
15007
15008 # The linker used to build libraries.
15009 LD=$lt_LD_F77
15010
15011 # Whether we need hard or soft links.
15012 LN_S=$lt_LN_S
15013
15014 # A BSD-compatible nm program.
15015 NM=$lt_NM
15016
15017 # A symbol stripping program
15018 STRIP=$lt_STRIP
15019
15020 # Used to examine libraries when file_magic_cmd begins "file"
15021 MAGIC_CMD=$MAGIC_CMD
15022
15023 # Used on cygwin: DLL creation program.
15024 DLLTOOL="$DLLTOOL"
15025
15026 # Used on cygwin: object dumper.
15027 OBJDUMP="$OBJDUMP"
15028
15029 # Used on cygwin: assembler.
15030 AS="$AS"
15031
15032 # The name of the directory that contains temporary libtool files.
15033 objdir=$objdir
15034
15035 # How to create reloadable object files.
15036 reload_flag=$lt_reload_flag
15037 reload_cmds=$lt_reload_cmds
15038
15039 # How to pass a linker flag through the compiler.
15040 wl=$lt_lt_prog_compiler_wl_F77
15041
15042 # Object file suffix (normally "o").
15043 objext="$ac_objext"
15044
15045 # Old archive suffix (normally "a").
15046 libext="$libext"
15047
15048 # Shared library suffix (normally ".so").
15049 shrext_cmds='$shrext_cmds'
15050
15051 # Executable file suffix (normally "").
15052 exeext="$exeext"
15053
15054 # Additional compiler flags for building library objects.
15055 pic_flag=$lt_lt_prog_compiler_pic_F77
15056 pic_mode=$pic_mode
15057
15058 # What is the maximum length of a command?
15059 max_cmd_len=$lt_cv_sys_max_cmd_len
15060
15061 # Does compiler simultaneously support -c and -o options?
15062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15063
15064 # Must we lock files when doing compilation ?
15065 need_locks=$lt_need_locks
15066
15067 # Do we need the lib prefix for modules?
15068 need_lib_prefix=$need_lib_prefix
15069
15070 # Do we need a version for libraries?
15071 need_version=$need_version
15072
15073 # Whether dlopen is supported.
15074 dlopen_support=$enable_dlopen
15075
15076 # Whether dlopen of programs is supported.
15077 dlopen_self=$enable_dlopen_self
15078
15079 # Whether dlopen of statically linked programs is supported.
15080 dlopen_self_static=$enable_dlopen_self_static
15081
15082 # Compiler flag to prevent dynamic linking.
15083 link_static_flag=$lt_lt_prog_compiler_static_F77
15084
15085 # Compiler flag to turn off builtin functions.
15086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15087
15088 # Compiler flag to allow reflexive dlopens.
15089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15090
15091 # Compiler flag to generate shared objects directly from archives.
15092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15093
15094 # Compiler flag to generate thread-safe objects.
15095 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15096
15097 # Library versioning type.
15098 version_type=$version_type
15099
15100 # Format of library name prefix.
15101 libname_spec=$lt_libname_spec
15102
15103 # List of archive names.  First name is the real one, the rest are links.
15104 # The last name is the one that the linker finds with -lNAME.
15105 library_names_spec=$lt_library_names_spec
15106
15107 # The coded name of the library, if different from the real name.
15108 soname_spec=$lt_soname_spec
15109
15110 # Commands used to build and install an old-style archive.
15111 RANLIB=$lt_RANLIB
15112 old_archive_cmds=$lt_old_archive_cmds_F77
15113 old_postinstall_cmds=$lt_old_postinstall_cmds
15114 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15115
15116 # Create an old-style archive from a shared archive.
15117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15118
15119 # Create a temporary old-style archive to link instead of a shared archive.
15120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15121
15122 # Commands used to build and install a shared archive.
15123 archive_cmds=$lt_archive_cmds_F77
15124 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15125 postinstall_cmds=$lt_postinstall_cmds
15126 postuninstall_cmds=$lt_postuninstall_cmds
15127
15128 # Commands used to build a loadable module (assumed same as above if empty)
15129 module_cmds=$lt_module_cmds_F77
15130 module_expsym_cmds=$lt_module_expsym_cmds_F77
15131
15132 # Commands to strip libraries.
15133 old_striplib=$lt_old_striplib
15134 striplib=$lt_striplib
15135
15136 # Dependencies to place before the objects being linked to create a
15137 # shared library.
15138 predep_objects=$lt_predep_objects_F77
15139
15140 # Dependencies to place after the objects being linked to create a
15141 # shared library.
15142 postdep_objects=$lt_postdep_objects_F77
15143
15144 # Dependencies to place before the objects being linked to create a
15145 # shared library.
15146 predeps=$lt_predeps_F77
15147
15148 # Dependencies to place after the objects being linked to create a
15149 # shared library.
15150 postdeps=$lt_postdeps_F77
15151
15152 # The library search path used internally by the compiler when linking
15153 # a shared library.
15154 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15155
15156 # Method to check whether dependent libraries are shared objects.
15157 deplibs_check_method=$lt_deplibs_check_method
15158
15159 # Command to use when deplibs_check_method == file_magic.
15160 file_magic_cmd=$lt_file_magic_cmd
15161
15162 # Flag that allows shared libraries with undefined symbols to be built.
15163 allow_undefined_flag=$lt_allow_undefined_flag_F77
15164
15165 # Flag that forces no undefined symbols.
15166 no_undefined_flag=$lt_no_undefined_flag_F77
15167
15168 # Commands used to finish a libtool library installation in a directory.
15169 finish_cmds=$lt_finish_cmds
15170
15171 # Same as above, but a single script fragment to be evaled but not shown.
15172 finish_eval=$lt_finish_eval
15173
15174 # Take the output of nm and produce a listing of raw symbols and C names.
15175 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15176
15177 # Transform the output of nm in a proper C declaration
15178 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15179
15180 # Transform the output of nm in a C name address pair
15181 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15182
15183 # This is the shared library runtime path variable.
15184 runpath_var=$runpath_var
15185
15186 # This is the shared library path variable.
15187 shlibpath_var=$shlibpath_var
15188
15189 # Is shlibpath searched before the hard-coded library search path?
15190 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15191
15192 # How to hardcode a shared library path into an executable.
15193 hardcode_action=$hardcode_action_F77
15194
15195 # Whether we should hardcode library paths into libraries.
15196 hardcode_into_libs=$hardcode_into_libs
15197
15198 # Flag to hardcode \$libdir into a binary during linking.
15199 # This must work even if \$libdir does not exist.
15200 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15201
15202 # If ld is used when linking, flag to hardcode \$libdir into
15203 # a binary during linking. This must work even if \$libdir does
15204 # not exist.
15205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15206
15207 # Whether we need a single -rpath flag with a separated argument.
15208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15209
15210 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15211 # resulting binary.
15212 hardcode_direct=$hardcode_direct_F77
15213
15214 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15215 # resulting binary.
15216 hardcode_minus_L=$hardcode_minus_L_F77
15217
15218 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15219 # the resulting binary.
15220 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15221
15222 # Set to yes if building a shared library automatically hardcodes DIR into the library
15223 # and all subsequent libraries and executables linked against it.
15224 hardcode_automatic=$hardcode_automatic_F77
15225
15226 # Variables whose values should be saved in libtool wrapper scripts and
15227 # restored at relink time.
15228 variables_saved_for_relink="$variables_saved_for_relink"
15229
15230 # Whether libtool must link a program against all its dependency libraries.
15231 link_all_deplibs=$link_all_deplibs_F77
15232
15233 # Compile-time system search path for libraries
15234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15235
15236 # Run-time system search path for libraries
15237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15238
15239 # Fix the shell variable \$srcfile for the compiler.
15240 fix_srcfile_path="$fix_srcfile_path_F77"
15241
15242 # Set to yes if exported symbols are required.
15243 always_export_symbols=$always_export_symbols_F77
15244
15245 # The commands to list exported symbols.
15246 export_symbols_cmds=$lt_export_symbols_cmds_F77
15247
15248 # The commands to extract the exported symbol list from a shared archive.
15249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15250
15251 # Symbols that should not be listed in the preloaded symbols.
15252 exclude_expsyms=$lt_exclude_expsyms_F77
15253
15254 # Symbols that must always be exported.
15255 include_expsyms=$lt_include_expsyms_F77
15256
15257 # ### END LIBTOOL TAG CONFIG: $tagname
15258
15259 __EOF__
15260
15261
15262 else
15263   # If there is no Makefile yet, we rely on a make rule to execute
15264   # `config.status --recheck' to rerun these tests and create the
15265   # libtool script then.
15266   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15267   if test -f "$ltmain_in"; then
15268     test -f Makefile && make "$ltmain"
15269   fi
15270 fi
15271
15272
15273 ac_ext=c
15274 ac_cpp='$CPP $CPPFLAGS'
15275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278
15279 CC="$lt_save_CC"
15280
15281         else
15282           tagname=""
15283         fi
15284         ;;
15285
15286       GCJ)
15287         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15288           ac_ext=c
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15293
15294
15295 # Source file extension for Java test sources.
15296 ac_ext=java
15297
15298 # Object file extension for compiled Java test sources.
15299 objext=o
15300 objext_GCJ=$objext
15301
15302 # Code to be used in simple compile tests
15303 lt_simple_compile_test_code="class foo {}\n"
15304
15305 # Code to be used in simple link tests
15306 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15307
15308 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15309
15310 # If no C compiler was specified, use CC.
15311 LTCC=${LTCC-"$CC"}
15312
15313 # Allow CC to be a program name with arguments.
15314 compiler=$CC
15315
15316
15317 # Allow CC to be a program name with arguments.
15318 lt_save_CC="$CC"
15319 CC=${GCJ-"gcj"}
15320 compiler=$CC
15321 compiler_GCJ=$CC
15322
15323 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15324 archive_cmds_need_lc_GCJ=no
15325
15326
15327 lt_prog_compiler_no_builtin_flag_GCJ=
15328
15329 if test "$GCC" = yes; then
15330   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15331
15332
15333 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15334 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15336   echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338   lt_cv_prog_compiler_rtti_exceptions=no
15339   ac_outfile=conftest.$ac_objext
15340    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341    lt_compiler_flag="-fno-rtti -fno-exceptions"
15342    # Insert the option either (1) after the last *FLAGS variable, or
15343    # (2) before a word containing "conftest.", or (3) at the end.
15344    # Note that $ac_compile itself does not contain backslashes and begins
15345    # with a dollar sign (not a hyphen), so the echo should work correctly.
15346    # The option is referenced via a variable to avoid confusing sed.
15347    lt_compile=`echo "$ac_compile" | $SED \
15348    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350    -e 's:$: $lt_compiler_flag:'`
15351    (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
15352    (eval "$lt_compile" 2>conftest.err)
15353    ac_status=$?
15354    cat conftest.err >&5
15355    echo "$as_me:15355: \$? = $ac_status" >&5
15356    if (exit $ac_status) && test -s "$ac_outfile"; then
15357      # The compiler can only warn and ignore the option if not recognized
15358      # So say no if there are warnings
15359      if test ! -s conftest.err; then
15360        lt_cv_prog_compiler_rtti_exceptions=yes
15361      fi
15362    fi
15363    $rm conftest*
15364
15365 fi
15366 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15368
15369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15371 else
15372     :
15373 fi
15374
15375 fi
15376
15377 lt_prog_compiler_wl_GCJ=
15378 lt_prog_compiler_pic_GCJ=
15379 lt_prog_compiler_static_GCJ=
15380
15381 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15382 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15383
15384   if test "$GCC" = yes; then
15385     lt_prog_compiler_wl_GCJ='-Wl,'
15386     lt_prog_compiler_static_GCJ='-static'
15387
15388     case $host_os in
15389       aix*)
15390       # All AIX code is PIC.
15391       if test "$host_cpu" = ia64; then
15392         # AIX 5 now supports IA64 processor
15393         lt_prog_compiler_static_GCJ='-Bstatic'
15394       fi
15395       ;;
15396
15397     amigaos*)
15398       # FIXME: we need at least 68020 code to build shared libraries, but
15399       # adding the `-m68020' flag to GCC prevents building anything better,
15400       # like `-m68040'.
15401       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15402       ;;
15403
15404     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15405       # PIC is the default for these OSes.
15406       ;;
15407
15408     mingw* | pw32* | os2*)
15409       # This hack is so that the source file can tell whether it is being
15410       # built for inclusion in a dll (and should export symbols for example).
15411       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15412       ;;
15413
15414     darwin* | rhapsody*)
15415       # PIC is the default on this platform
15416       # Common symbols not allowed in MH_DYLIB files
15417       lt_prog_compiler_pic_GCJ='-fno-common'
15418       ;;
15419
15420     msdosdjgpp*)
15421       # Just because we use GCC doesn't mean we suddenly get shared libraries
15422       # on systems that don't support them.
15423       lt_prog_compiler_can_build_shared_GCJ=no
15424       enable_shared=no
15425       ;;
15426
15427     sysv4*MP*)
15428       if test -d /usr/nec; then
15429         lt_prog_compiler_pic_GCJ=-Kconform_pic
15430       fi
15431       ;;
15432
15433     hpux*)
15434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15435       # not for PA HP-UX.
15436       case "$host_cpu" in
15437       hppa*64*|ia64*)
15438         # +Z the default
15439         ;;
15440       *)
15441         lt_prog_compiler_pic_GCJ='-fPIC'
15442         ;;
15443       esac
15444       ;;
15445
15446     *)
15447       lt_prog_compiler_pic_GCJ='-fPIC'
15448       ;;
15449     esac
15450   else
15451     # PORTME Check for flag to pass linker flags through the system compiler.
15452     case $host_os in
15453     aix*)
15454       lt_prog_compiler_wl_GCJ='-Wl,'
15455       if test "$host_cpu" = ia64; then
15456         # AIX 5 now supports IA64 processor
15457         lt_prog_compiler_static_GCJ='-Bstatic'
15458       else
15459         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15460       fi
15461       ;;
15462       darwin*)
15463         # PIC is the default on this platform
15464         # Common symbols not allowed in MH_DYLIB files
15465        case "$cc_basename" in
15466          xlc*)
15467          lt_prog_compiler_pic_GCJ='-qnocommon'
15468          lt_prog_compiler_wl_GCJ='-Wl,'
15469          ;;
15470        esac
15471        ;;
15472
15473     mingw* | pw32* | os2*)
15474       # This hack is so that the source file can tell whether it is being
15475       # built for inclusion in a dll (and should export symbols for example).
15476       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15477       ;;
15478
15479     hpux9* | hpux10* | hpux11*)
15480       lt_prog_compiler_wl_GCJ='-Wl,'
15481       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15482       # not for PA HP-UX.
15483       case "$host_cpu" in
15484       hppa*64*|ia64*)
15485         # +Z the default
15486         ;;
15487       *)
15488         lt_prog_compiler_pic_GCJ='+Z'
15489         ;;
15490       esac
15491       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15492       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15493       ;;
15494
15495     irix5* | irix6* | nonstopux*)
15496       lt_prog_compiler_wl_GCJ='-Wl,'
15497       # PIC (with -KPIC) is the default.
15498       lt_prog_compiler_static_GCJ='-non_shared'
15499       ;;
15500
15501     newsos6)
15502       lt_prog_compiler_pic_GCJ='-KPIC'
15503       lt_prog_compiler_static_GCJ='-Bstatic'
15504       ;;
15505
15506     linux*)
15507       case $CC in
15508       icc* | ecc*)
15509         lt_prog_compiler_wl_GCJ='-Wl,'
15510         lt_prog_compiler_pic_GCJ='-KPIC'
15511         lt_prog_compiler_static_GCJ='-static'
15512         ;;
15513       ccc*)
15514         lt_prog_compiler_wl_GCJ='-Wl,'
15515         # All Alpha code is PIC.
15516         lt_prog_compiler_static_GCJ='-non_shared'
15517         ;;
15518       esac
15519       ;;
15520
15521     osf3* | osf4* | osf5*)
15522       lt_prog_compiler_wl_GCJ='-Wl,'
15523       # All OSF/1 code is PIC.
15524       lt_prog_compiler_static_GCJ='-non_shared'
15525       ;;
15526
15527     sco3.2v5*)
15528       lt_prog_compiler_pic_GCJ='-Kpic'
15529       lt_prog_compiler_static_GCJ='-dn'
15530       ;;
15531
15532     solaris*)
15533       lt_prog_compiler_wl_GCJ='-Wl,'
15534       lt_prog_compiler_pic_GCJ='-KPIC'
15535       lt_prog_compiler_static_GCJ='-Bstatic'
15536       ;;
15537
15538     sunos4*)
15539       lt_prog_compiler_wl_GCJ='-Qoption ld '
15540       lt_prog_compiler_pic_GCJ='-PIC'
15541       lt_prog_compiler_static_GCJ='-Bstatic'
15542       ;;
15543
15544     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15545       lt_prog_compiler_wl_GCJ='-Wl,'
15546       lt_prog_compiler_pic_GCJ='-KPIC'
15547       lt_prog_compiler_static_GCJ='-Bstatic'
15548       ;;
15549
15550     sysv4*MP*)
15551       if test -d /usr/nec ;then
15552         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15553         lt_prog_compiler_static_GCJ='-Bstatic'
15554       fi
15555       ;;
15556
15557     uts4*)
15558       lt_prog_compiler_pic_GCJ='-pic'
15559       lt_prog_compiler_static_GCJ='-Bstatic'
15560       ;;
15561
15562     *)
15563       lt_prog_compiler_can_build_shared_GCJ=no
15564       ;;
15565     esac
15566   fi
15567
15568 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15569 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15570
15571 #
15572 # Check to make sure the PIC flag actually works.
15573 #
15574 if test -n "$lt_prog_compiler_pic_GCJ"; then
15575
15576 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15577 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15578 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15579   echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581   lt_prog_compiler_pic_works_GCJ=no
15582   ac_outfile=conftest.$ac_objext
15583    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15585    # Insert the option either (1) after the last *FLAGS variable, or
15586    # (2) before a word containing "conftest.", or (3) at the end.
15587    # Note that $ac_compile itself does not contain backslashes and begins
15588    # with a dollar sign (not a hyphen), so the echo should work correctly.
15589    # The option is referenced via a variable to avoid confusing sed.
15590    lt_compile=`echo "$ac_compile" | $SED \
15591    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593    -e 's:$: $lt_compiler_flag:'`
15594    (eval echo "\"\$as_me:15594: $lt_compile\"" >&5)
15595    (eval "$lt_compile" 2>conftest.err)
15596    ac_status=$?
15597    cat conftest.err >&5
15598    echo "$as_me:15598: \$? = $ac_status" >&5
15599    if (exit $ac_status) && test -s "$ac_outfile"; then
15600      # The compiler can only warn and ignore the option if not recognized
15601      # So say no if there are warnings
15602      if test ! -s conftest.err; then
15603        lt_prog_compiler_pic_works_GCJ=yes
15604      fi
15605    fi
15606    $rm conftest*
15607
15608 fi
15609 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15610 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15611
15612 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15613     case $lt_prog_compiler_pic_GCJ in
15614      "" | " "*) ;;
15615      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15616      esac
15617 else
15618     lt_prog_compiler_pic_GCJ=
15619      lt_prog_compiler_can_build_shared_GCJ=no
15620 fi
15621
15622 fi
15623 case "$host_os" in
15624   # For platforms which do not support PIC, -DPIC is meaningless:
15625   *djgpp*)
15626     lt_prog_compiler_pic_GCJ=
15627     ;;
15628   *)
15629     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15630     ;;
15631 esac
15632
15633 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15634 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15635 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   lt_cv_prog_compiler_c_o_GCJ=no
15639    $rm -r conftest 2>/dev/null
15640    mkdir conftest
15641    cd conftest
15642    mkdir out
15643    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15644
15645    lt_compiler_flag="-o out/conftest2.$ac_objext"
15646    # Insert the option either (1) after the last *FLAGS variable, or
15647    # (2) before a word containing "conftest.", or (3) at the end.
15648    # Note that $ac_compile itself does not contain backslashes and begins
15649    # with a dollar sign (not a hyphen), so the echo should work correctly.
15650    lt_compile=`echo "$ac_compile" | $SED \
15651    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15652    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15653    -e 's:$: $lt_compiler_flag:'`
15654    (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
15655    (eval "$lt_compile" 2>out/conftest.err)
15656    ac_status=$?
15657    cat out/conftest.err >&5
15658    echo "$as_me:15658: \$? = $ac_status" >&5
15659    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15660    then
15661      # The compiler can only warn and ignore the option if not recognized
15662      # So say no if there are warnings
15663      if test ! -s out/conftest.err; then
15664        lt_cv_prog_compiler_c_o_GCJ=yes
15665      fi
15666    fi
15667    chmod u+w .
15668    $rm conftest*
15669    # SGI C++ compiler will create directory out/ii_files/ for
15670    # template instantiation
15671    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15672    $rm out/* && rmdir out
15673    cd ..
15674    rmdir conftest
15675    $rm conftest*
15676
15677 fi
15678 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15679 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15680
15681
15682 hard_links="nottested"
15683 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15684   # do not overwrite the value of need_locks provided by the user
15685   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15686 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15687   hard_links=yes
15688   $rm conftest*
15689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690   touch conftest.a
15691   ln conftest.a conftest.b 2>&5 || hard_links=no
15692   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15693   echo "$as_me:$LINENO: result: $hard_links" >&5
15694 echo "${ECHO_T}$hard_links" >&6
15695   if test "$hard_links" = no; then
15696     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15697 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15698     need_locks=warn
15699   fi
15700 else
15701   need_locks=no
15702 fi
15703
15704 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15705 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15706
15707   runpath_var=
15708   allow_undefined_flag_GCJ=
15709   enable_shared_with_static_runtimes_GCJ=no
15710   archive_cmds_GCJ=
15711   archive_expsym_cmds_GCJ=
15712   old_archive_From_new_cmds_GCJ=
15713   old_archive_from_expsyms_cmds_GCJ=
15714   export_dynamic_flag_spec_GCJ=
15715   whole_archive_flag_spec_GCJ=
15716   thread_safe_flag_spec_GCJ=
15717   hardcode_libdir_flag_spec_GCJ=
15718   hardcode_libdir_flag_spec_ld_GCJ=
15719   hardcode_libdir_separator_GCJ=
15720   hardcode_direct_GCJ=no
15721   hardcode_minus_L_GCJ=no
15722   hardcode_shlibpath_var_GCJ=unsupported
15723   link_all_deplibs_GCJ=unknown
15724   hardcode_automatic_GCJ=no
15725   module_cmds_GCJ=
15726   module_expsym_cmds_GCJ=
15727   always_export_symbols_GCJ=no
15728   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15729   # include_expsyms should be a list of space-separated symbols to be *always*
15730   # included in the symbol list
15731   include_expsyms_GCJ=
15732   # exclude_expsyms can be an extended regexp of symbols to exclude
15733   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15734   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15735   # as well as any symbol that contains `d'.
15736   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15737   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15738   # platforms (ab)use it in PIC code, but their linkers get confused if
15739   # the symbol is explicitly referenced.  Since portable code cannot
15740   # rely on this symbol name, it's probably fine to never include it in
15741   # preloaded symbol tables.
15742   extract_expsyms_cmds=
15743
15744   case $host_os in
15745   cygwin* | mingw* | pw32*)
15746     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15747     # When not using gcc, we currently assume that we are using
15748     # Microsoft Visual C++.
15749     if test "$GCC" != yes; then
15750       with_gnu_ld=no
15751     fi
15752     ;;
15753   openbsd*)
15754     with_gnu_ld=no
15755     ;;
15756   esac
15757
15758   ld_shlibs_GCJ=yes
15759   if test "$with_gnu_ld" = yes; then
15760     # If archive_cmds runs LD, not CC, wlarc should be empty
15761     wlarc='${wl}'
15762
15763     # See if GNU ld supports shared libraries.
15764     case $host_os in
15765     aix3* | aix4* | aix5*)
15766       # On AIX/PPC, the GNU linker is very broken
15767       if test "$host_cpu" != ia64; then
15768         ld_shlibs_GCJ=no
15769         cat <<EOF 1>&2
15770
15771 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15772 *** to be unable to reliably create shared libraries on AIX.
15773 *** Therefore, libtool is disabling shared libraries support.  If you
15774 *** really care for shared libraries, you may want to modify your PATH
15775 *** so that a non-GNU linker is found, and then restart.
15776
15777 EOF
15778       fi
15779       ;;
15780
15781     amigaos*)
15782       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)'
15783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15784       hardcode_minus_L_GCJ=yes
15785
15786       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15787       # that the semantics of dynamic libraries on AmigaOS, at least up
15788       # to version 4, is to share data among multiple programs linked
15789       # with the same dynamic library.  Since this doesn't match the
15790       # behavior of shared libraries on other platforms, we can't use
15791       # them.
15792       ld_shlibs_GCJ=no
15793       ;;
15794
15795     beos*)
15796       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797         allow_undefined_flag_GCJ=unsupported
15798         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15799         # support --undefined.  This deserves some investigation.  FIXME
15800         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801       else
15802         ld_shlibs_GCJ=no
15803       fi
15804       ;;
15805
15806     cygwin* | mingw* | pw32*)
15807       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15808       # as there is no search path for DLLs.
15809       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810       allow_undefined_flag_GCJ=unsupported
15811       always_export_symbols_GCJ=no
15812       enable_shared_with_static_runtimes_GCJ=yes
15813       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15814
15815       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15816         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15817         # If the export-symbols file already is a .def file (1st line
15818         # is EXPORTS), use it as is; otherwise, prepend...
15819         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820           cp $export_symbols $output_objdir/$soname.def;
15821         else
15822           echo EXPORTS > $output_objdir/$soname.def;
15823           cat $export_symbols >> $output_objdir/$soname.def;
15824         fi~
15825         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15826       else
15827         ld_shlibs=no
15828       fi
15829       ;;
15830
15831     netbsd*)
15832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834         wlarc=
15835       else
15836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838       fi
15839       ;;
15840
15841     solaris* | sysv5*)
15842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15843         ld_shlibs_GCJ=no
15844         cat <<EOF 1>&2
15845
15846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847 *** create shared libraries on Solaris systems.  Therefore, libtool
15848 *** is disabling shared libraries support.  We urge you to upgrade GNU
15849 *** binutils to release 2.9.1 or newer.  Another option is to modify
15850 *** your PATH or compiler configuration so that the native linker is
15851 *** used, and then restart.
15852
15853 EOF
15854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857       else
15858         ld_shlibs_GCJ=no
15859       fi
15860       ;;
15861
15862     sunos4*)
15863       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864       wlarc=
15865       hardcode_direct_GCJ=yes
15866       hardcode_shlibpath_var_GCJ=no
15867       ;;
15868
15869   linux*)
15870     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15871         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872         archive_cmds_GCJ="$tmp_archive_cmds"
15873       supports_anon_versioning=no
15874       case `$LD -v 2>/dev/null` in
15875         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878         *\ 2.11.*) ;; # other 2.11 versions
15879         *) supports_anon_versioning=yes ;;
15880       esac
15881       if test $supports_anon_versioning = yes; then
15882         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15884 $echo "local: *; };" >> $output_objdir/$libname.ver~
15885         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15886       else
15887         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15888       fi
15889     else
15890       ld_shlibs_GCJ=no
15891     fi
15892     ;;
15893
15894     *)
15895       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15896         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15898       else
15899         ld_shlibs_GCJ=no
15900       fi
15901       ;;
15902     esac
15903
15904     if test "$ld_shlibs_GCJ" = yes; then
15905       runpath_var=LD_RUN_PATH
15906       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15907       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15908       # ancient GNU ld didn't support --whole-archive et. al.
15909       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15910         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15911       else
15912         whole_archive_flag_spec_GCJ=
15913       fi
15914     fi
15915   else
15916     # PORTME fill in a description of your system's linker (not GNU ld)
15917     case $host_os in
15918     aix3*)
15919       allow_undefined_flag_GCJ=unsupported
15920       always_export_symbols_GCJ=yes
15921       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'
15922       # Note: this linker hardcodes the directories in LIBPATH if there
15923       # are no directories specified by -L.
15924       hardcode_minus_L_GCJ=yes
15925       if test "$GCC" = yes && test -z "$link_static_flag"; then
15926         # Neither direct hardcoding nor static linking is supported with a
15927         # broken collect2.
15928         hardcode_direct_GCJ=unsupported
15929       fi
15930       ;;
15931
15932     aix4* | aix5*)
15933       if test "$host_cpu" = ia64; then
15934         # On IA64, the linker does run time linking by default, so we don't
15935         # have to do anything special.
15936         aix_use_runtimelinking=no
15937         exp_sym_flag='-Bexport'
15938         no_entry_flag=""
15939       else
15940         # If we're using GNU nm, then we don't want the "-C" option.
15941         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15942         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15943           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'
15944         else
15945           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'
15946         fi
15947         aix_use_runtimelinking=no
15948
15949         # Test if we are trying to use run time linking or normal
15950         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951         # need to do runtime linking.
15952         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15953           for ld_flag in $LDFLAGS; do
15954           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15955             aix_use_runtimelinking=yes
15956             break
15957           fi
15958           done
15959         esac
15960
15961         exp_sym_flag='-bexport'
15962         no_entry_flag='-bnoentry'
15963       fi
15964
15965       # When large executables or shared objects are built, AIX ld can
15966       # have problems creating the table of contents.  If linking a library
15967       # or program results in "error TOC overflow" add -mminimal-toc to
15968       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15969       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15970
15971       archive_cmds_GCJ=''
15972       hardcode_direct_GCJ=yes
15973       hardcode_libdir_separator_GCJ=':'
15974       link_all_deplibs_GCJ=yes
15975
15976       if test "$GCC" = yes; then
15977         case $host_os in aix4.012|aix4.012.*)
15978         # We only want to do this on AIX 4.2 and lower, the check
15979         # below for broken collect2 doesn't work under 4.3+
15980           collect2name=`${CC} -print-prog-name=collect2`
15981           if test -f "$collect2name" && \
15982            strings "$collect2name" | grep resolve_lib_name >/dev/null
15983           then
15984           # We have reworked collect2
15985           hardcode_direct_GCJ=yes
15986           else
15987           # We have old collect2
15988           hardcode_direct_GCJ=unsupported
15989           # It fails to find uninstalled libraries when the uninstalled
15990           # path is not listed in the libpath.  Setting hardcode_minus_L
15991           # to unsupported forces relinking
15992           hardcode_minus_L_GCJ=yes
15993           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994           hardcode_libdir_separator_GCJ=
15995           fi
15996         esac
15997         shared_flag='-shared'
15998       else
15999         # not using gcc
16000         if test "$host_cpu" = ia64; then
16001         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16002         # chokes on -Wl,-G. The following line is correct:
16003           shared_flag='-G'
16004         else
16005         if test "$aix_use_runtimelinking" = yes; then
16006             shared_flag='${wl}-G'
16007           else
16008             shared_flag='${wl}-bM:SRE'
16009         fi
16010         fi
16011       fi
16012
16013       # It seems that -bexpall does not export symbols beginning with
16014       # underscore (_), so it is better to generate a list of symbols to export.
16015       always_export_symbols_GCJ=yes
16016       if test "$aix_use_runtimelinking" = yes; then
16017         # Warning - without using the other runtime loading flags (-brtl),
16018         # -berok will link without error, but may produce a broken library.
16019         allow_undefined_flag_GCJ='-berok'
16020        # Determine the default libpath from the value encoded in an empty executable.
16021        cat >conftest.$ac_ext <<_ACEOF
16022 /* confdefs.h.  */
16023 _ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h.  */
16027
16028 int
16029 main ()
16030 {
16031
16032   ;
16033   return 0;
16034 }
16035 _ACEOF
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16038   (eval $ac_link) 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -z "$ac_c_werror_flag"
16046                          || test ! -s conftest.err'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; } &&
16052          { ac_try='test -s conftest$ac_exeext'
16053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054   (eval $ac_try) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058
16059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16060 }'`
16061 # Check for a 64-bit object if we didn't find anything.
16062 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; }
16063 }'`; fi
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068 fi
16069 rm -f conftest.err conftest.$ac_objext \
16070       conftest$ac_exeext conftest.$ac_ext
16071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16072
16073        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16074         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"
16075        else
16076         if test "$host_cpu" = ia64; then
16077           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16078           allow_undefined_flag_GCJ="-z nodefs"
16079           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"
16080         else
16081          # Determine the default libpath from the value encoded in an empty executable.
16082          cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088
16089 int
16090 main ()
16091 {
16092
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099   (eval $ac_link) 2>conftest.er1
16100   ac_status=$?
16101   grep -v '^ *+' conftest.er1 >conftest.err
16102   rm -f conftest.er1
16103   cat conftest.err >&5
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); } &&
16106          { ac_try='test -z "$ac_c_werror_flag"
16107                          || test ! -s conftest.err'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; } &&
16113          { ac_try='test -s conftest$ac_exeext'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; }; then
16119
16120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16121 }'`
16122 # Check for a 64-bit object if we didn't find anything.
16123 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; }
16124 }'`; fi
16125 else
16126   echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 fi
16130 rm -f conftest.err conftest.$ac_objext \
16131       conftest$ac_exeext conftest.$ac_ext
16132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133
16134          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135           # Warning - without using the other run time loading flags,
16136           # -berok will link without error, but may produce a broken library.
16137           no_undefined_flag_GCJ=' ${wl}-bernotok'
16138           allow_undefined_flag_GCJ=' ${wl}-berok'
16139           # -bexpall does not export symbols beginning with underscore (_)
16140           always_export_symbols_GCJ=yes
16141           # Exported symbols can be pulled into shared objects from archives
16142           whole_archive_flag_spec_GCJ=' '
16143           archive_cmds_need_lc_GCJ=yes
16144           # This is similar to how AIX traditionally builds it's shared libraries.
16145           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'
16146         fi
16147       fi
16148       ;;
16149
16150     amigaos*)
16151       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)'
16152       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153       hardcode_minus_L_GCJ=yes
16154       # see comment about different semantics on the GNU ld section
16155       ld_shlibs_GCJ=no
16156       ;;
16157
16158     bsdi[45]*)
16159       export_dynamic_flag_spec_GCJ=-rdynamic
16160       ;;
16161
16162     cygwin* | mingw* | pw32*)
16163       # When not using gcc, we currently assume that we are using
16164       # Microsoft Visual C++.
16165       # hardcode_libdir_flag_spec is actually meaningless, as there is
16166       # no search path for DLLs.
16167       hardcode_libdir_flag_spec_GCJ=' '
16168       allow_undefined_flag_GCJ=unsupported
16169       # Tell ltmain to make .lib files, not .a files.
16170       libext=lib
16171       # Tell ltmain to make .dll files, not .so files.
16172       shrext_cmds=".dll"
16173       # FIXME: Setting linknames here is a bad hack.
16174       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16175       # The linker will automatically build a .lib file if we build a DLL.
16176       old_archive_From_new_cmds_GCJ='true'
16177       # FIXME: Should let the user specify the lib program.
16178       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16179       fix_srcfile_path='`cygpath -w "$srcfile"`'
16180       enable_shared_with_static_runtimes_GCJ=yes
16181       ;;
16182
16183     darwin* | rhapsody*)
16184       case "$host_os" in
16185         rhapsody* | darwin1.[012])
16186          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16187          ;;
16188        *) # Darwin 1.3 on
16189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16190            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191          else
16192            case ${MACOSX_DEPLOYMENT_TARGET} in
16193              10.[012])
16194                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195                ;;
16196              10.*)
16197                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16198                ;;
16199            esac
16200          fi
16201          ;;
16202       esac
16203       archive_cmds_need_lc_GCJ=no
16204       hardcode_direct_GCJ=no
16205       hardcode_automatic_GCJ=yes
16206       hardcode_shlibpath_var_GCJ=unsupported
16207       whole_archive_flag_spec_GCJ=''
16208       link_all_deplibs_GCJ=yes
16209     if test "$GCC" = yes ; then
16210         output_verbose_link_cmd='echo'
16211         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16212       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16214       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}'
16215       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}'
16216     else
16217       case "$cc_basename" in
16218         xlc*)
16219          output_verbose_link_cmd='echo'
16220          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16221          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16223          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}'
16224           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}'
16225           ;;
16226        *)
16227          ld_shlibs_GCJ=no
16228           ;;
16229       esac
16230     fi
16231       ;;
16232
16233     dgux*)
16234       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16236       hardcode_shlibpath_var_GCJ=no
16237       ;;
16238
16239     freebsd1*)
16240       ld_shlibs_GCJ=no
16241       ;;
16242
16243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16244     # support.  Future versions do this automatically, but an explicit c++rt0.o
16245     # does not break anything, and helps significantly (at the cost of a little
16246     # extra space).
16247     freebsd2.2*)
16248       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16249       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16250       hardcode_direct_GCJ=yes
16251       hardcode_shlibpath_var_GCJ=no
16252       ;;
16253
16254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16255     freebsd2*)
16256       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16257       hardcode_direct_GCJ=yes
16258       hardcode_minus_L_GCJ=yes
16259       hardcode_shlibpath_var_GCJ=no
16260       ;;
16261
16262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16263     freebsd* | kfreebsd*-gnu)
16264       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16265       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16266       hardcode_direct_GCJ=yes
16267       hardcode_shlibpath_var_GCJ=no
16268       ;;
16269
16270     hpux9*)
16271       if test "$GCC" = yes; then
16272         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'
16273       else
16274         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'
16275       fi
16276       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16277       hardcode_libdir_separator_GCJ=:
16278       hardcode_direct_GCJ=yes
16279
16280       # hardcode_minus_L: Not really in the search PATH,
16281       # but as the default location of the library.
16282       hardcode_minus_L_GCJ=yes
16283       export_dynamic_flag_spec_GCJ='${wl}-E'
16284       ;;
16285
16286     hpux10* | hpux11*)
16287       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16288         case "$host_cpu" in
16289         hppa*64*|ia64*)
16290           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291           ;;
16292         *)
16293           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16294           ;;
16295         esac
16296       else
16297         case "$host_cpu" in
16298         hppa*64*|ia64*)
16299           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16300           ;;
16301         *)
16302           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16303           ;;
16304         esac
16305       fi
16306       if test "$with_gnu_ld" = no; then
16307         case "$host_cpu" in
16308         hppa*64*)
16309           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16310           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16311           hardcode_libdir_separator_GCJ=:
16312           hardcode_direct_GCJ=no
16313           hardcode_shlibpath_var_GCJ=no
16314           ;;
16315         ia64*)
16316           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317           hardcode_direct_GCJ=no
16318           hardcode_shlibpath_var_GCJ=no
16319
16320           # hardcode_minus_L: Not really in the search PATH,
16321           # but as the default location of the library.
16322           hardcode_minus_L_GCJ=yes
16323           ;;
16324         *)
16325           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16326           hardcode_libdir_separator_GCJ=:
16327           hardcode_direct_GCJ=yes
16328           export_dynamic_flag_spec_GCJ='${wl}-E'
16329
16330           # hardcode_minus_L: Not really in the search PATH,
16331           # but as the default location of the library.
16332           hardcode_minus_L_GCJ=yes
16333           ;;
16334         esac
16335       fi
16336       ;;
16337
16338     irix5* | irix6* | nonstopux*)
16339       if test "$GCC" = yes; then
16340         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'
16341       else
16342         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'
16343         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16344       fi
16345       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16346       hardcode_libdir_separator_GCJ=:
16347       link_all_deplibs_GCJ=yes
16348       ;;
16349
16350     netbsd*)
16351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16352         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16353       else
16354         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16355       fi
16356       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16357       hardcode_direct_GCJ=yes
16358       hardcode_shlibpath_var_GCJ=no
16359       ;;
16360
16361     newsos6)
16362       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363       hardcode_direct_GCJ=yes
16364       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16365       hardcode_libdir_separator_GCJ=:
16366       hardcode_shlibpath_var_GCJ=no
16367       ;;
16368
16369     openbsd*)
16370       hardcode_direct_GCJ=yes
16371       hardcode_shlibpath_var_GCJ=no
16372       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16374         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16375         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16376         export_dynamic_flag_spec_GCJ='${wl}-E'
16377       else
16378        case $host_os in
16379          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16382            ;;
16383          *)
16384            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16386            ;;
16387        esac
16388       fi
16389       ;;
16390
16391     os2*)
16392       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393       hardcode_minus_L_GCJ=yes
16394       allow_undefined_flag_GCJ=unsupported
16395       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'
16396       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16397       ;;
16398
16399     osf3*)
16400       if test "$GCC" = yes; then
16401         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16402         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'
16403       else
16404         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16405         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'
16406       fi
16407       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16408       hardcode_libdir_separator_GCJ=:
16409       ;;
16410
16411     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16412       if test "$GCC" = yes; then
16413         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16414         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'
16415         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16416       else
16417         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16418         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'
16419         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~
16420         $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'
16421
16422         # Both c and cxx compiler support -rpath directly
16423         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16424       fi
16425       hardcode_libdir_separator_GCJ=:
16426       ;;
16427
16428     sco3.2v5*)
16429       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430       hardcode_shlibpath_var_GCJ=no
16431       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16432       runpath_var=LD_RUN_PATH
16433       hardcode_runpath_var=yes
16434       ;;
16435
16436     solaris*)
16437       no_undefined_flag_GCJ=' -z text'
16438       if test "$GCC" = yes; then
16439         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16440         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16442       else
16443         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16445         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16446       fi
16447       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16448       hardcode_shlibpath_var_GCJ=no
16449       case $host_os in
16450       solaris2.[0-5] | solaris2.[0-5].*) ;;
16451       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16452         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16453       esac
16454       link_all_deplibs_GCJ=yes
16455       ;;
16456
16457     sunos4*)
16458       if test "x$host_vendor" = xsequent; then
16459         # Use $CC to link under sequent, because it throws in some extra .o
16460         # files that make .init and .fini sections work.
16461         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16462       else
16463         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16464       fi
16465       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466       hardcode_direct_GCJ=yes
16467       hardcode_minus_L_GCJ=yes
16468       hardcode_shlibpath_var_GCJ=no
16469       ;;
16470
16471     sysv4)
16472       case $host_vendor in
16473         sni)
16474           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475           hardcode_direct_GCJ=yes # is this really true???
16476         ;;
16477         siemens)
16478           ## LD is ld it makes a PLAMLIB
16479           ## CC just makes a GrossModule.
16480           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16482           hardcode_direct_GCJ=no
16483         ;;
16484         motorola)
16485           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16487         ;;
16488       esac
16489       runpath_var='LD_RUN_PATH'
16490       hardcode_shlibpath_var_GCJ=no
16491       ;;
16492
16493     sysv4.3*)
16494       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495       hardcode_shlibpath_var_GCJ=no
16496       export_dynamic_flag_spec_GCJ='-Bexport'
16497       ;;
16498
16499     sysv4*MP*)
16500       if test -d /usr/nec; then
16501         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502         hardcode_shlibpath_var_GCJ=no
16503         runpath_var=LD_RUN_PATH
16504         hardcode_runpath_var=yes
16505         ld_shlibs_GCJ=yes
16506       fi
16507       ;;
16508
16509     sysv4.2uw2*)
16510       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16511       hardcode_direct_GCJ=yes
16512       hardcode_minus_L_GCJ=no
16513       hardcode_shlibpath_var_GCJ=no
16514       hardcode_runpath_var=yes
16515       runpath_var=LD_RUN_PATH
16516       ;;
16517
16518    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16519       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16520       if test "$GCC" = yes; then
16521         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16522       else
16523         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16524       fi
16525       runpath_var='LD_RUN_PATH'
16526       hardcode_shlibpath_var_GCJ=no
16527       ;;
16528
16529     sysv5*)
16530       no_undefined_flag_GCJ=' -z text'
16531       # $CC -shared without GNU ld will not create a library from C++
16532       # object files and a static libstdc++, better avoid it by now
16533       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16535                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16536       hardcode_libdir_flag_spec_GCJ=
16537       hardcode_shlibpath_var_GCJ=no
16538       runpath_var='LD_RUN_PATH'
16539       ;;
16540
16541     uts4*)
16542       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16544       hardcode_shlibpath_var_GCJ=no
16545       ;;
16546
16547     *)
16548       ld_shlibs_GCJ=no
16549       ;;
16550     esac
16551   fi
16552
16553 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16554 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16555 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16556
16557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16558 if test "$GCC" = yes; then
16559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16560 fi
16561
16562 #
16563 # Do we need to explicitly link libc?
16564 #
16565 case "x$archive_cmds_need_lc_GCJ" in
16566 x|xyes)
16567   # Assume -lc should be added
16568   archive_cmds_need_lc_GCJ=yes
16569
16570   if test "$enable_shared" = yes && test "$GCC" = yes; then
16571     case $archive_cmds_GCJ in
16572     *'~'*)
16573       # FIXME: we may have to deal with multi-command sequences.
16574       ;;
16575     '$CC '*)
16576       # Test whether the compiler implicitly links with -lc since on some
16577       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578       # to ld, don't add -lc before -lgcc.
16579       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16580 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16581       $rm conftest*
16582       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583
16584       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16585   (eval $ac_compile) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); } 2>conftest.err; then
16589         soname=conftest
16590         lib=conftest
16591         libobjs=conftest.$ac_objext
16592         deplibs=
16593         wl=$lt_prog_compiler_wl_GCJ
16594         compiler_flags=-v
16595         linker_flags=-v
16596         verstring=
16597         output_objdir=.
16598         libname=conftest
16599         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16600         allow_undefined_flag_GCJ=
16601         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16602   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }
16606         then
16607           archive_cmds_need_lc_GCJ=no
16608         else
16609           archive_cmds_need_lc_GCJ=yes
16610         fi
16611         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16612       else
16613         cat conftest.err 1>&5
16614       fi
16615       $rm conftest*
16616       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16617 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16618       ;;
16619     esac
16620   fi
16621   ;;
16622 esac
16623
16624 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16625 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16626 library_names_spec=
16627 libname_spec='lib$name'
16628 soname_spec=
16629 shrext_cmds=".so"
16630 postinstall_cmds=
16631 postuninstall_cmds=
16632 finish_cmds=
16633 finish_eval=
16634 shlibpath_var=
16635 shlibpath_overrides_runpath=unknown
16636 version_type=none
16637 dynamic_linker="$host_os ld.so"
16638 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16639 if test "$GCC" = yes; then
16640   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16641   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16642     # if the path contains ";" then we assume it to be the separator
16643     # otherwise default to the standard path separator (i.e. ":") - it is
16644     # assumed that no part of a normal pathname contains ";" but that should
16645     # okay in the real world where ";" in dirpaths is itself problematic.
16646     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16647   else
16648     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16649   fi
16650 else
16651   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16652 fi
16653 need_lib_prefix=unknown
16654 hardcode_into_libs=no
16655
16656 # when you set need_version to no, make sure it does not cause -set_version
16657 # flags to be left without arguments
16658 need_version=unknown
16659
16660 case $host_os in
16661 aix3*)
16662   version_type=linux
16663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16664   shlibpath_var=LIBPATH
16665
16666   # AIX 3 has no versioning support, so we append a major version to the name.
16667   soname_spec='${libname}${release}${shared_ext}$major'
16668   ;;
16669
16670 aix4* | aix5*)
16671   version_type=linux
16672   need_lib_prefix=no
16673   need_version=no
16674   hardcode_into_libs=yes
16675   if test "$host_cpu" = ia64; then
16676     # AIX 5 supports IA64
16677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16678     shlibpath_var=LD_LIBRARY_PATH
16679   else
16680     # With GCC up to 2.95.x, collect2 would create an import file
16681     # for dependence libraries.  The import file would start with
16682     # the line `#! .'.  This would cause the generated library to
16683     # depend on `.', always an invalid library.  This was fixed in
16684     # development snapshots of GCC prior to 3.0.
16685     case $host_os in
16686       aix4 | aix4.[01] | aix4.[01].*)
16687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16688            echo ' yes '
16689            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16690         :
16691       else
16692         can_build_shared=no
16693       fi
16694       ;;
16695     esac
16696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16697     # soname into executable. Probably we can add versioning support to
16698     # collect2, so additional links can be useful in future.
16699     if test "$aix_use_runtimelinking" = yes; then
16700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16701       # instead of lib<name>.a to let people know that these are not
16702       # typical AIX shared libraries.
16703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704     else
16705       # We preserve .a as extension for shared libraries through AIX4.2
16706       # and later when we are not doing run time linking.
16707       library_names_spec='${libname}${release}.a $libname.a'
16708       soname_spec='${libname}${release}${shared_ext}$major'
16709     fi
16710     shlibpath_var=LIBPATH
16711   fi
16712   ;;
16713
16714 amigaos*)
16715   library_names_spec='$libname.ixlibrary $libname.a'
16716   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16717   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'
16718   ;;
16719
16720 beos*)
16721   library_names_spec='${libname}${shared_ext}'
16722   dynamic_linker="$host_os ld.so"
16723   shlibpath_var=LIBRARY_PATH
16724   ;;
16725
16726 bsdi[45]*)
16727   version_type=linux
16728   need_version=no
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16732   shlibpath_var=LD_LIBRARY_PATH
16733   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16734   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16735   # the default ld.so.conf also contains /usr/contrib/lib and
16736   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16737   # libtool to hard-code these into programs
16738   ;;
16739
16740 cygwin* | mingw* | pw32*)
16741   version_type=windows
16742   shrext_cmds=".dll"
16743   need_version=no
16744   need_lib_prefix=no
16745
16746   case $GCC,$host_os in
16747   yes,cygwin* | yes,mingw* | yes,pw32*)
16748     library_names_spec='$libname.dll.a'
16749     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16750     postinstall_cmds='base_file=`basename \${file}`~
16751       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16752       dldir=$destdir/`dirname \$dlpath`~
16753       test -d \$dldir || mkdir -p \$dldir~
16754       $install_prog $dir/$dlname \$dldir/$dlname'
16755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16756       dlpath=$dir/\$dldll~
16757        $rm \$dlpath'
16758     shlibpath_overrides_runpath=yes
16759
16760     case $host_os in
16761     cygwin*)
16762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16765       ;;
16766     mingw*)
16767       # MinGW DLLs use traditional 'lib' prefix
16768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16771         # It is most probably a Windows format PATH printed by
16772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16773         # path with ; separators, and with drive letters. We can handle the
16774         # drive letters (cygwin fileutils understands them), so leave them,
16775         # especially as we might pass files found there to a mingw objdump,
16776         # which wouldn't understand a cygwinified path. Ahh.
16777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16778       else
16779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16780       fi
16781       ;;
16782     pw32*)
16783       # pw32 DLLs use 'pw' prefix rather than 'lib'
16784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16785       ;;
16786     esac
16787     ;;
16788
16789   *)
16790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16791     ;;
16792   esac
16793   dynamic_linker='Win32 ld.exe'
16794   # FIXME: first we should search . and the directory the executable is in
16795   shlibpath_var=PATH
16796   ;;
16797
16798 darwin* | rhapsody*)
16799   dynamic_linker="$host_os dyld"
16800   version_type=darwin
16801   need_lib_prefix=no
16802   need_version=no
16803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16804   soname_spec='${libname}${release}${major}$shared_ext'
16805   shlibpath_overrides_runpath=yes
16806   shlibpath_var=DYLD_LIBRARY_PATH
16807   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16808   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16809   if test "$GCC" = yes; then
16810     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"`
16811   else
16812     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16813   fi
16814   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16815   ;;
16816
16817 dgux*)
16818   version_type=linux
16819   need_lib_prefix=no
16820   need_version=no
16821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16822   soname_spec='${libname}${release}${shared_ext}$major'
16823   shlibpath_var=LD_LIBRARY_PATH
16824   ;;
16825
16826 freebsd1*)
16827   dynamic_linker=no
16828   ;;
16829
16830 kfreebsd*-gnu)
16831   version_type=linux
16832   need_lib_prefix=no
16833   need_version=no
16834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16835   soname_spec='${libname}${release}${shared_ext}$major'
16836   shlibpath_var=LD_LIBRARY_PATH
16837   shlibpath_overrides_runpath=no
16838   hardcode_into_libs=yes
16839   dynamic_linker='GNU ld.so'
16840   ;;
16841
16842 freebsd*)
16843   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16844   version_type=freebsd-$objformat
16845   case $version_type in
16846     freebsd-elf*)
16847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16848       need_version=no
16849       need_lib_prefix=no
16850       ;;
16851     freebsd-*)
16852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16853       need_version=yes
16854       ;;
16855   esac
16856   shlibpath_var=LD_LIBRARY_PATH
16857   case $host_os in
16858   freebsd2*)
16859     shlibpath_overrides_runpath=yes
16860     ;;
16861   freebsd3.01* | freebsdelf3.01*)
16862     shlibpath_overrides_runpath=yes
16863     hardcode_into_libs=yes
16864     ;;
16865   *) # from 3.2 on
16866     shlibpath_overrides_runpath=no
16867     hardcode_into_libs=yes
16868     ;;
16869   esac
16870   ;;
16871
16872 gnu*)
16873   version_type=linux
16874   need_lib_prefix=no
16875   need_version=no
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16877   soname_spec='${libname}${release}${shared_ext}$major'
16878   shlibpath_var=LD_LIBRARY_PATH
16879   hardcode_into_libs=yes
16880   ;;
16881
16882 hpux9* | hpux10* | hpux11*)
16883   # Give a soname corresponding to the major version so that dld.sl refuses to
16884   # link against other versions.
16885   version_type=sunos
16886   need_lib_prefix=no
16887   need_version=no
16888   case "$host_cpu" in
16889   ia64*)
16890     shrext_cmds='.so'
16891     hardcode_into_libs=yes
16892     dynamic_linker="$host_os dld.so"
16893     shlibpath_var=LD_LIBRARY_PATH
16894     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896     soname_spec='${libname}${release}${shared_ext}$major'
16897     if test "X$HPUX_IA64_MODE" = X32; then
16898       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16899     else
16900       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16901     fi
16902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16903     ;;
16904    hppa*64*)
16905      shrext_cmds='.sl'
16906      hardcode_into_libs=yes
16907      dynamic_linker="$host_os dld.sl"
16908      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16909      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911      soname_spec='${libname}${release}${shared_ext}$major'
16912      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16913      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914      ;;
16915    *)
16916     shrext_cmds='.sl'
16917     dynamic_linker="$host_os dld.sl"
16918     shlibpath_var=SHLIB_PATH
16919     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921     soname_spec='${libname}${release}${shared_ext}$major'
16922     ;;
16923   esac
16924   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16925   postinstall_cmds='chmod 555 $lib'
16926   ;;
16927
16928 irix5* | irix6* | nonstopux*)
16929   case $host_os in
16930     nonstopux*) version_type=nonstopux ;;
16931     *)
16932         if test "$lt_cv_prog_gnu_ld" = yes; then
16933                 version_type=linux
16934         else
16935                 version_type=irix
16936         fi ;;
16937   esac
16938   need_lib_prefix=no
16939   need_version=no
16940   soname_spec='${libname}${release}${shared_ext}$major'
16941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16942   case $host_os in
16943   irix5* | nonstopux*)
16944     libsuff= shlibsuff=
16945     ;;
16946   *)
16947     case $LD in # libtool.m4 will add one of these switches to LD
16948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16949       libsuff= shlibsuff= libmagic=32-bit;;
16950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16951       libsuff=32 shlibsuff=N32 libmagic=N32;;
16952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16954     *) libsuff= shlibsuff= libmagic=never-match;;
16955     esac
16956     ;;
16957   esac
16958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16959   shlibpath_overrides_runpath=no
16960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16962   hardcode_into_libs=yes
16963   ;;
16964
16965 # No shared lib support for Linux oldld, aout, or coff.
16966 linux*oldld* | linux*aout* | linux*coff*)
16967   dynamic_linker=no
16968   ;;
16969
16970 # This must be Linux ELF.
16971 linux*)
16972   version_type=linux
16973   need_lib_prefix=no
16974   need_version=no
16975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976   soname_spec='${libname}${release}${shared_ext}$major'
16977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16978   shlibpath_var=LD_LIBRARY_PATH
16979   shlibpath_overrides_runpath=no
16980   # This implies no fast_install, which is unacceptable.
16981   # Some rework will be needed to allow for fast_install
16982   # before this can be enabled.
16983   hardcode_into_libs=yes
16984
16985   # Append ld.so.conf contents to the search path
16986   if test -f /etc/ld.so.conf; then
16987     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16988     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16989   fi
16990
16991   # We used to test for /lib/ld.so.1 and disable shared libraries on
16992   # powerpc, because MkLinux only supported shared libraries with the
16993   # GNU dynamic linker.  Since this was broken with cross compilers,
16994   # most powerpc-linux boxes support dynamic linking these days and
16995   # people can always --disable-shared, the test was removed, and we
16996   # assume the GNU/Linux dynamic linker is in use.
16997   dynamic_linker='GNU/Linux ld.so'
16998   ;;
16999
17000 knetbsd*-gnu)
17001   version_type=linux
17002   need_lib_prefix=no
17003   need_version=no
17004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17005   soname_spec='${libname}${release}${shared_ext}$major'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   shlibpath_overrides_runpath=no
17008   hardcode_into_libs=yes
17009   dynamic_linker='GNU ld.so'
17010   ;;
17011
17012 netbsd*)
17013   version_type=sunos
17014   need_lib_prefix=no
17015   need_version=no
17016   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17019     dynamic_linker='NetBSD (a.out) ld.so'
17020   else
17021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17022     soname_spec='${libname}${release}${shared_ext}$major'
17023     dynamic_linker='NetBSD ld.elf_so'
17024   fi
17025   shlibpath_var=LD_LIBRARY_PATH
17026   shlibpath_overrides_runpath=yes
17027   hardcode_into_libs=yes
17028   ;;
17029
17030 newsos6)
17031   version_type=linux
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   ;;
17036
17037 nto-qnx*)
17038   version_type=linux
17039   need_lib_prefix=no
17040   need_version=no
17041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042   soname_spec='${libname}${release}${shared_ext}$major'
17043   shlibpath_var=LD_LIBRARY_PATH
17044   shlibpath_overrides_runpath=yes
17045   ;;
17046
17047 openbsd*)
17048   version_type=sunos
17049   need_lib_prefix=no
17050   need_version=no
17051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17052   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17053   shlibpath_var=LD_LIBRARY_PATH
17054   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17055     case $host_os in
17056       openbsd2.[89] | openbsd2.[89].*)
17057         shlibpath_overrides_runpath=no
17058         ;;
17059       *)
17060         shlibpath_overrides_runpath=yes
17061         ;;
17062       esac
17063   else
17064     shlibpath_overrides_runpath=yes
17065   fi
17066   ;;
17067
17068 os2*)
17069   libname_spec='$name'
17070   shrext_cmds=".dll"
17071   need_lib_prefix=no
17072   library_names_spec='$libname${shared_ext} $libname.a'
17073   dynamic_linker='OS/2 ld.exe'
17074   shlibpath_var=LIBPATH
17075   ;;
17076
17077 osf3* | osf4* | osf5*)
17078   version_type=osf
17079   need_lib_prefix=no
17080   need_version=no
17081   soname_spec='${libname}${release}${shared_ext}$major'
17082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083   shlibpath_var=LD_LIBRARY_PATH
17084   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17085   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17086   ;;
17087
17088 sco3.2v5*)
17089   version_type=osf
17090   soname_spec='${libname}${release}${shared_ext}$major'
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092   shlibpath_var=LD_LIBRARY_PATH
17093   ;;
17094
17095 solaris*)
17096   version_type=linux
17097   need_lib_prefix=no
17098   need_version=no
17099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100   soname_spec='${libname}${release}${shared_ext}$major'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   shlibpath_overrides_runpath=yes
17103   hardcode_into_libs=yes
17104   # ldd complains unless libraries are executable
17105   postinstall_cmds='chmod +x $lib'
17106   ;;
17107
17108 sunos4*)
17109   version_type=sunos
17110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17112   shlibpath_var=LD_LIBRARY_PATH
17113   shlibpath_overrides_runpath=yes
17114   if test "$with_gnu_ld" = yes; then
17115     need_lib_prefix=no
17116   fi
17117   need_version=yes
17118   ;;
17119
17120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17121   version_type=linux
17122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123   soname_spec='${libname}${release}${shared_ext}$major'
17124   shlibpath_var=LD_LIBRARY_PATH
17125   case $host_vendor in
17126     sni)
17127       shlibpath_overrides_runpath=no
17128       need_lib_prefix=no
17129       export_dynamic_flag_spec='${wl}-Blargedynsym'
17130       runpath_var=LD_RUN_PATH
17131       ;;
17132     siemens)
17133       need_lib_prefix=no
17134       ;;
17135     motorola)
17136       need_lib_prefix=no
17137       need_version=no
17138       shlibpath_overrides_runpath=no
17139       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17140       ;;
17141   esac
17142   ;;
17143
17144 sysv4*MP*)
17145   if test -d /usr/nec ;then
17146     version_type=linux
17147     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17148     soname_spec='$libname${shared_ext}.$major'
17149     shlibpath_var=LD_LIBRARY_PATH
17150   fi
17151   ;;
17152
17153 uts4*)
17154   version_type=linux
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156   soname_spec='${libname}${release}${shared_ext}$major'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   ;;
17159
17160 *)
17161   dynamic_linker=no
17162   ;;
17163 esac
17164 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17165 echo "${ECHO_T}$dynamic_linker" >&6
17166 test "$dynamic_linker" = no && can_build_shared=no
17167
17168 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17170 hardcode_action_GCJ=
17171 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17172    test -n "$runpath_var_GCJ" || \
17173    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17174
17175   # We can hardcode non-existant directories.
17176   if test "$hardcode_direct_GCJ" != no &&
17177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17178      # have to relink, otherwise we might link with an installed library
17179      # when we should be linking with a yet-to-be-installed one
17180      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17181      test "$hardcode_minus_L_GCJ" != no; then
17182     # Linking always hardcodes the temporary library directory.
17183     hardcode_action_GCJ=relink
17184   else
17185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17186     hardcode_action_GCJ=immediate
17187   fi
17188 else
17189   # We cannot hardcode anything, or else we can only hardcode existing
17190   # directories.
17191   hardcode_action_GCJ=unsupported
17192 fi
17193 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17194 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17195
17196 if test "$hardcode_action_GCJ" = relink; then
17197   # Fast installation is not supported
17198   enable_fast_install=no
17199 elif test "$shlibpath_overrides_runpath" = yes ||
17200      test "$enable_shared" = no; then
17201   # Fast installation is not necessary
17202   enable_fast_install=needless
17203 fi
17204
17205 striplib=
17206 old_striplib=
17207 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17208 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17209 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17210   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17211   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17212   echo "$as_me:$LINENO: result: yes" >&5
17213 echo "${ECHO_T}yes" >&6
17214 else
17215 # FIXME - insert some real tests, host_os isn't really good enough
17216   case $host_os in
17217    darwin*)
17218        if test -n "$STRIP" ; then
17219          striplib="$STRIP -x"
17220          echo "$as_me:$LINENO: result: yes" >&5
17221 echo "${ECHO_T}yes" >&6
17222        else
17223   echo "$as_me:$LINENO: result: no" >&5
17224 echo "${ECHO_T}no" >&6
17225 fi
17226        ;;
17227    *)
17228   echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17230     ;;
17231   esac
17232 fi
17233
17234 if test "x$enable_dlopen" != xyes; then
17235   enable_dlopen=unknown
17236   enable_dlopen_self=unknown
17237   enable_dlopen_self_static=unknown
17238 else
17239   lt_cv_dlopen=no
17240   lt_cv_dlopen_libs=
17241
17242   case $host_os in
17243   beos*)
17244     lt_cv_dlopen="load_add_on"
17245     lt_cv_dlopen_libs=
17246     lt_cv_dlopen_self=yes
17247     ;;
17248
17249   mingw* | pw32*)
17250     lt_cv_dlopen="LoadLibrary"
17251     lt_cv_dlopen_libs=
17252    ;;
17253
17254   cygwin*)
17255     lt_cv_dlopen="dlopen"
17256     lt_cv_dlopen_libs=
17257    ;;
17258
17259   darwin*)
17260   # if libdl is installed we need to link against it
17261     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17262 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   ac_check_lib_save_LIBS=$LIBS
17267 LIBS="-ldl  $LIBS"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h.  */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h.  */
17274
17275 /* Override any gcc2 internal prototype to avoid an error.  */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 /* We use char because int might match the return type of a gcc2
17280    builtin and then its argument prototype would still apply.  */
17281 char dlopen ();
17282 int
17283 main ()
17284 {
17285 dlopen ();
17286   ;
17287   return 0;
17288 }
17289 _ACEOF
17290 rm -f conftest.$ac_objext conftest$ac_exeext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292   (eval $ac_link) 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } &&
17299          { ac_try='test -z "$ac_c_werror_flag"
17300                          || test ! -s conftest.err'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; } &&
17306          { ac_try='test -s conftest$ac_exeext'
17307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308   (eval $ac_try) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); }; }; then
17312   ac_cv_lib_dl_dlopen=yes
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 ac_cv_lib_dl_dlopen=no
17318 fi
17319 rm -f conftest.err conftest.$ac_objext \
17320       conftest$ac_exeext conftest.$ac_ext
17321 LIBS=$ac_check_lib_save_LIBS
17322 fi
17323 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17324 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17325 if test $ac_cv_lib_dl_dlopen = yes; then
17326   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17327 else
17328
17329     lt_cv_dlopen="dyld"
17330     lt_cv_dlopen_libs=
17331     lt_cv_dlopen_self=yes
17332
17333 fi
17334
17335    ;;
17336
17337   *)
17338     echo "$as_me:$LINENO: checking for shl_load" >&5
17339 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17340 if test "${ac_cv_func_shl_load+set}" = set; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   cat >conftest.$ac_ext <<_ACEOF
17344 /* confdefs.h.  */
17345 _ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h.  */
17349 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17351 #define shl_load innocuous_shl_load
17352
17353 /* System header to define __stub macros and hopefully few prototypes,
17354     which can conflict with char shl_load (); below.
17355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356     <limits.h> exists even on freestanding compilers.  */
17357
17358 #ifdef __STDC__
17359 # include <limits.h>
17360 #else
17361 # include <assert.h>
17362 #endif
17363
17364 #undef shl_load
17365
17366 /* Override any gcc2 internal prototype to avoid an error.  */
17367 #ifdef __cplusplus
17368 extern "C"
17369 {
17370 #endif
17371 /* We use char because int might match the return type of a gcc2
17372    builtin and then its argument prototype would still apply.  */
17373 char shl_load ();
17374 /* The GNU C library defines this for functions which it implements
17375     to always fail with ENOSYS.  Some functions are actually named
17376     something starting with __ and the normal name is an alias.  */
17377 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17378 choke me
17379 #else
17380 char (*f) () = shl_load;
17381 #endif
17382 #ifdef __cplusplus
17383 }
17384 #endif
17385
17386 int
17387 main ()
17388 {
17389 return f != shl_load;
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396   (eval $ac_link) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"
17404                          || test ! -s conftest.err'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; } &&
17410          { ac_try='test -s conftest$ac_exeext'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   ac_cv_func_shl_load=yes
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_cv_func_shl_load=no
17422 fi
17423 rm -f conftest.err conftest.$ac_objext \
17424       conftest$ac_exeext conftest.$ac_ext
17425 fi
17426 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17427 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17428 if test $ac_cv_func_shl_load = yes; then
17429   lt_cv_dlopen="shl_load"
17430 else
17431   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17432 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-ldld  $LIBS"
17438 cat >conftest.$ac_ext <<_ACEOF
17439 /* confdefs.h.  */
17440 _ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h.  */
17444
17445 /* Override any gcc2 internal prototype to avoid an error.  */
17446 #ifdef __cplusplus
17447 extern "C"
17448 #endif
17449 /* We use char because int might match the return type of a gcc2
17450    builtin and then its argument prototype would still apply.  */
17451 char shl_load ();
17452 int
17453 main ()
17454 {
17455 shl_load ();
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } &&
17469          { ac_try='test -z "$ac_c_werror_flag"
17470                          || test ! -s conftest.err'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482   ac_cv_lib_dld_shl_load=yes
17483 else
17484   echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_cv_lib_dld_shl_load=no
17488 fi
17489 rm -f conftest.err conftest.$ac_objext \
17490       conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17492 fi
17493 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17494 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17495 if test $ac_cv_lib_dld_shl_load = yes; then
17496   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17497 else
17498   echo "$as_me:$LINENO: checking for dlopen" >&5
17499 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17500 if test "${ac_cv_func_dlopen+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17511 #define dlopen innocuous_dlopen
17512
17513 /* System header to define __stub macros and hopefully few prototypes,
17514     which can conflict with char dlopen (); below.
17515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516     <limits.h> exists even on freestanding compilers.  */
17517
17518 #ifdef __STDC__
17519 # include <limits.h>
17520 #else
17521 # include <assert.h>
17522 #endif
17523
17524 #undef dlopen
17525
17526 /* Override any gcc2 internal prototype to avoid an error.  */
17527 #ifdef __cplusplus
17528 extern "C"
17529 {
17530 #endif
17531 /* We use char because int might match the return type of a gcc2
17532    builtin and then its argument prototype would still apply.  */
17533 char dlopen ();
17534 /* The GNU C library defines this for functions which it implements
17535     to always fail with ENOSYS.  Some functions are actually named
17536     something starting with __ and the normal name is an alias.  */
17537 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17538 choke me
17539 #else
17540 char (*f) () = dlopen;
17541 #endif
17542 #ifdef __cplusplus
17543 }
17544 #endif
17545
17546 int
17547 main ()
17548 {
17549 return f != dlopen;
17550   ;
17551   return 0;
17552 }
17553 _ACEOF
17554 rm -f conftest.$ac_objext conftest$ac_exeext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17556   (eval $ac_link) 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } &&
17563          { ac_try='test -z "$ac_c_werror_flag"
17564                          || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest$ac_exeext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_cv_func_dlopen=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 ac_cv_func_dlopen=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext \
17584       conftest$ac_exeext conftest.$ac_ext
17585 fi
17586 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17587 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17588 if test $ac_cv_func_dlopen = yes; then
17589   lt_cv_dlopen="dlopen"
17590 else
17591   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17592 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17594   echo $ECHO_N "(cached) $ECHO_C" >&6
17595 else
17596   ac_check_lib_save_LIBS=$LIBS
17597 LIBS="-ldl  $LIBS"
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604
17605 /* Override any gcc2 internal prototype to avoid an error.  */
17606 #ifdef __cplusplus
17607 extern "C"
17608 #endif
17609 /* We use char because int might match the return type of a gcc2
17610    builtin and then its argument prototype would still apply.  */
17611 char dlopen ();
17612 int
17613 main ()
17614 {
17615 dlopen ();
17616   ;
17617   return 0;
17618 }
17619 _ACEOF
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622   (eval $ac_link) 2>conftest.er1
17623   ac_status=$?
17624   grep -v '^ *+' conftest.er1 >conftest.err
17625   rm -f conftest.er1
17626   cat conftest.err >&5
17627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628   (exit $ac_status); } &&
17629          { ac_try='test -z "$ac_c_werror_flag"
17630                          || test ! -s conftest.err'
17631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632   (eval $ac_try) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; } &&
17636          { ac_try='test -s conftest$ac_exeext'
17637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638   (eval $ac_try) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; }; then
17642   ac_cv_lib_dl_dlopen=yes
17643 else
17644   echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17646
17647 ac_cv_lib_dl_dlopen=no
17648 fi
17649 rm -f conftest.err conftest.$ac_objext \
17650       conftest$ac_exeext conftest.$ac_ext
17651 LIBS=$ac_check_lib_save_LIBS
17652 fi
17653 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17654 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17655 if test $ac_cv_lib_dl_dlopen = yes; then
17656   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17657 else
17658   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17659 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17660 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17661   echo $ECHO_N "(cached) $ECHO_C" >&6
17662 else
17663   ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lsvld  $LIBS"
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671
17672 /* Override any gcc2 internal prototype to avoid an error.  */
17673 #ifdef __cplusplus
17674 extern "C"
17675 #endif
17676 /* We use char because int might match the return type of a gcc2
17677    builtin and then its argument prototype would still apply.  */
17678 char dlopen ();
17679 int
17680 main ()
17681 {
17682 dlopen ();
17683   ;
17684   return 0;
17685 }
17686 _ACEOF
17687 rm -f conftest.$ac_objext conftest$ac_exeext
17688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17689   (eval $ac_link) 2>conftest.er1
17690   ac_status=$?
17691   grep -v '^ *+' conftest.er1 >conftest.err
17692   rm -f conftest.er1
17693   cat conftest.err >&5
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); } &&
17696          { ac_try='test -z "$ac_c_werror_flag"
17697                          || test ! -s conftest.err'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; } &&
17703          { ac_try='test -s conftest$ac_exeext'
17704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705   (eval $ac_try) 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; }; then
17709   ac_cv_lib_svld_dlopen=yes
17710 else
17711   echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_cv_lib_svld_dlopen=no
17715 fi
17716 rm -f conftest.err conftest.$ac_objext \
17717       conftest$ac_exeext conftest.$ac_ext
17718 LIBS=$ac_check_lib_save_LIBS
17719 fi
17720 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17721 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17722 if test $ac_cv_lib_svld_dlopen = yes; then
17723   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17724 else
17725   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17726 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17727 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730   ac_check_lib_save_LIBS=$LIBS
17731 LIBS="-ldld  $LIBS"
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h.  */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h.  */
17738
17739 /* Override any gcc2 internal prototype to avoid an error.  */
17740 #ifdef __cplusplus
17741 extern "C"
17742 #endif
17743 /* We use char because int might match the return type of a gcc2
17744    builtin and then its argument prototype would still apply.  */
17745 char dld_link ();
17746 int
17747 main ()
17748 {
17749 dld_link ();
17750   ;
17751   return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_lib_dld_dld_link=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_lib_dld_dld_link=no
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17786 fi
17787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17788 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17789 if test $ac_cv_lib_dld_dld_link = yes; then
17790   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17791 fi
17792
17793
17794 fi
17795
17796
17797 fi
17798
17799
17800 fi
17801
17802
17803 fi
17804
17805
17806 fi
17807
17808     ;;
17809   esac
17810
17811   if test "x$lt_cv_dlopen" != xno; then
17812     enable_dlopen=yes
17813   else
17814     enable_dlopen=no
17815   fi
17816
17817   case $lt_cv_dlopen in
17818   dlopen)
17819     save_CPPFLAGS="$CPPFLAGS"
17820     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17821
17822     save_LDFLAGS="$LDFLAGS"
17823     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17824
17825     save_LIBS="$LIBS"
17826     LIBS="$lt_cv_dlopen_libs $LIBS"
17827
17828     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17829 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17830 if test "${lt_cv_dlopen_self+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833           if test "$cross_compiling" = yes; then :
17834   lt_cv_dlopen_self=cross
17835 else
17836   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17837   lt_status=$lt_dlunknown
17838   cat > conftest.$ac_ext <<EOF
17839 #line 17839 "configure"
17840 #include "confdefs.h"
17841
17842 #if HAVE_DLFCN_H
17843 #include <dlfcn.h>
17844 #endif
17845
17846 #include <stdio.h>
17847
17848 #ifdef RTLD_GLOBAL
17849 #  define LT_DLGLOBAL           RTLD_GLOBAL
17850 #else
17851 #  ifdef DL_GLOBAL
17852 #    define LT_DLGLOBAL         DL_GLOBAL
17853 #  else
17854 #    define LT_DLGLOBAL         0
17855 #  endif
17856 #endif
17857
17858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17859    find out it does not work in some platform. */
17860 #ifndef LT_DLLAZY_OR_NOW
17861 #  ifdef RTLD_LAZY
17862 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17863 #  else
17864 #    ifdef DL_LAZY
17865 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17866 #    else
17867 #      ifdef RTLD_NOW
17868 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17869 #      else
17870 #        ifdef DL_NOW
17871 #          define LT_DLLAZY_OR_NOW      DL_NOW
17872 #        else
17873 #          define LT_DLLAZY_OR_NOW      0
17874 #        endif
17875 #      endif
17876 #    endif
17877 #  endif
17878 #endif
17879
17880 #ifdef __cplusplus
17881 extern "C" void exit (int);
17882 #endif
17883
17884 void fnord() { int i=42;}
17885 int main ()
17886 {
17887   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17888   int status = $lt_dlunknown;
17889
17890   if (self)
17891     {
17892       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17893       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17894       /* dlclose (self); */
17895     }
17896
17897     exit (status);
17898 }
17899 EOF
17900   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901   (eval $ac_link) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17905     (./conftest; exit; ) 2>/dev/null
17906     lt_status=$?
17907     case x$lt_status in
17908       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17909       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17910       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17911     esac
17912   else :
17913     # compilation failed
17914     lt_cv_dlopen_self=no
17915   fi
17916 fi
17917 rm -fr conftest*
17918
17919
17920 fi
17921 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17922 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17923
17924     if test "x$lt_cv_dlopen_self" = xyes; then
17925       LDFLAGS="$LDFLAGS $link_static_flag"
17926       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17927 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17928 if test "${lt_cv_dlopen_self_static+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931           if test "$cross_compiling" = yes; then :
17932   lt_cv_dlopen_self_static=cross
17933 else
17934   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17935   lt_status=$lt_dlunknown
17936   cat > conftest.$ac_ext <<EOF
17937 #line 17937 "configure"
17938 #include "confdefs.h"
17939
17940 #if HAVE_DLFCN_H
17941 #include <dlfcn.h>
17942 #endif
17943
17944 #include <stdio.h>
17945
17946 #ifdef RTLD_GLOBAL
17947 #  define LT_DLGLOBAL           RTLD_GLOBAL
17948 #else
17949 #  ifdef DL_GLOBAL
17950 #    define LT_DLGLOBAL         DL_GLOBAL
17951 #  else
17952 #    define LT_DLGLOBAL         0
17953 #  endif
17954 #endif
17955
17956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957    find out it does not work in some platform. */
17958 #ifndef LT_DLLAZY_OR_NOW
17959 #  ifdef RTLD_LAZY
17960 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17961 #  else
17962 #    ifdef DL_LAZY
17963 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17964 #    else
17965 #      ifdef RTLD_NOW
17966 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17967 #      else
17968 #        ifdef DL_NOW
17969 #          define LT_DLLAZY_OR_NOW      DL_NOW
17970 #        else
17971 #          define LT_DLLAZY_OR_NOW      0
17972 #        endif
17973 #      endif
17974 #    endif
17975 #  endif
17976 #endif
17977
17978 #ifdef __cplusplus
17979 extern "C" void exit (int);
17980 #endif
17981
17982 void fnord() { int i=42;}
17983 int main ()
17984 {
17985   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17986   int status = $lt_dlunknown;
17987
17988   if (self)
17989     {
17990       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17991       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17992       /* dlclose (self); */
17993     }
17994
17995     exit (status);
17996 }
17997 EOF
17998   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999   (eval $ac_link) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18003     (./conftest; exit; ) 2>/dev/null
18004     lt_status=$?
18005     case x$lt_status in
18006       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18007       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18008       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18009     esac
18010   else :
18011     # compilation failed
18012     lt_cv_dlopen_self_static=no
18013   fi
18014 fi
18015 rm -fr conftest*
18016
18017
18018 fi
18019 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18020 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18021     fi
18022
18023     CPPFLAGS="$save_CPPFLAGS"
18024     LDFLAGS="$save_LDFLAGS"
18025     LIBS="$save_LIBS"
18026     ;;
18027   esac
18028
18029   case $lt_cv_dlopen_self in
18030   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18031   *) enable_dlopen_self=unknown ;;
18032   esac
18033
18034   case $lt_cv_dlopen_self_static in
18035   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18036   *) enable_dlopen_self_static=unknown ;;
18037   esac
18038 fi
18039
18040
18041 # The else clause should only fire when bootstrapping the
18042 # libtool distribution, otherwise you forgot to ship ltmain.sh
18043 # with your package, and you will get complaints that there are
18044 # no rules to generate ltmain.sh.
18045 if test -f "$ltmain"; then
18046   # See if we are running on zsh, and set the options which allow our commands through
18047   # without removal of \ escapes.
18048   if test -n "${ZSH_VERSION+set}" ; then
18049     setopt NO_GLOB_SUBST
18050   fi
18051   # Now quote all the things that may contain metacharacters while being
18052   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18053   # variables and quote the copies for generation of the libtool script.
18054   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18055     SED SHELL STRIP \
18056     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18057     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18058     deplibs_check_method reload_flag reload_cmds need_locks \
18059     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18060     lt_cv_sys_global_symbol_to_c_name_address \
18061     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18062     old_postinstall_cmds old_postuninstall_cmds \
18063     compiler_GCJ \
18064     CC_GCJ \
18065     LD_GCJ \
18066     lt_prog_compiler_wl_GCJ \
18067     lt_prog_compiler_pic_GCJ \
18068     lt_prog_compiler_static_GCJ \
18069     lt_prog_compiler_no_builtin_flag_GCJ \
18070     export_dynamic_flag_spec_GCJ \
18071     thread_safe_flag_spec_GCJ \
18072     whole_archive_flag_spec_GCJ \
18073     enable_shared_with_static_runtimes_GCJ \
18074     old_archive_cmds_GCJ \
18075     old_archive_from_new_cmds_GCJ \
18076     predep_objects_GCJ \
18077     postdep_objects_GCJ \
18078     predeps_GCJ \
18079     postdeps_GCJ \
18080     compiler_lib_search_path_GCJ \
18081     archive_cmds_GCJ \
18082     archive_expsym_cmds_GCJ \
18083     postinstall_cmds_GCJ \
18084     postuninstall_cmds_GCJ \
18085     old_archive_from_expsyms_cmds_GCJ \
18086     allow_undefined_flag_GCJ \
18087     no_undefined_flag_GCJ \
18088     export_symbols_cmds_GCJ \
18089     hardcode_libdir_flag_spec_GCJ \
18090     hardcode_libdir_flag_spec_ld_GCJ \
18091     hardcode_libdir_separator_GCJ \
18092     hardcode_automatic_GCJ \
18093     module_cmds_GCJ \
18094     module_expsym_cmds_GCJ \
18095     lt_cv_prog_compiler_c_o_GCJ \
18096     exclude_expsyms_GCJ \
18097     include_expsyms_GCJ; do
18098
18099     case $var in
18100     old_archive_cmds_GCJ | \
18101     old_archive_from_new_cmds_GCJ | \
18102     archive_cmds_GCJ | \
18103     archive_expsym_cmds_GCJ | \
18104     module_cmds_GCJ | \
18105     module_expsym_cmds_GCJ | \
18106     old_archive_from_expsyms_cmds_GCJ | \
18107     export_symbols_cmds_GCJ | \
18108     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18109     postinstall_cmds | postuninstall_cmds | \
18110     old_postinstall_cmds | old_postuninstall_cmds | \
18111     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18112       # Double-quote double-evaled strings.
18113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18114       ;;
18115     *)
18116       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18117       ;;
18118     esac
18119   done
18120
18121   case $lt_echo in
18122   *'\$0 --fallback-echo"')
18123     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18124     ;;
18125   esac
18126
18127 cfgfile="$ofile"
18128
18129   cat <<__EOF__ >> "$cfgfile"
18130 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18131
18132 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18133
18134 # Shell to use when invoking shell scripts.
18135 SHELL=$lt_SHELL
18136
18137 # Whether or not to build shared libraries.
18138 build_libtool_libs=$enable_shared
18139
18140 # Whether or not to build static libraries.
18141 build_old_libs=$enable_static
18142
18143 # Whether or not to add -lc for building shared libraries.
18144 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18145
18146 # Whether or not to disallow shared libs when runtime libs are static
18147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18148
18149 # Whether or not to optimize for fast installation.
18150 fast_install=$enable_fast_install
18151
18152 # The host system.
18153 host_alias=$host_alias
18154 host=$host
18155
18156 # An echo program that does not interpret backslashes.
18157 echo=$lt_echo
18158
18159 # The archiver.
18160 AR=$lt_AR
18161 AR_FLAGS=$lt_AR_FLAGS
18162
18163 # A C compiler.
18164 LTCC=$lt_LTCC
18165
18166 # A language-specific compiler.
18167 CC=$lt_compiler_GCJ
18168
18169 # Is the compiler the GNU C compiler?
18170 with_gcc=$GCC_GCJ
18171
18172 # An ERE matcher.
18173 EGREP=$lt_EGREP
18174
18175 # The linker used to build libraries.
18176 LD=$lt_LD_GCJ
18177
18178 # Whether we need hard or soft links.
18179 LN_S=$lt_LN_S
18180
18181 # A BSD-compatible nm program.
18182 NM=$lt_NM
18183
18184 # A symbol stripping program
18185 STRIP=$lt_STRIP
18186
18187 # Used to examine libraries when file_magic_cmd begins "file"
18188 MAGIC_CMD=$MAGIC_CMD
18189
18190 # Used on cygwin: DLL creation program.
18191 DLLTOOL="$DLLTOOL"
18192
18193 # Used on cygwin: object dumper.
18194 OBJDUMP="$OBJDUMP"
18195
18196 # Used on cygwin: assembler.
18197 AS="$AS"
18198
18199 # The name of the directory that contains temporary libtool files.
18200 objdir=$objdir
18201
18202 # How to create reloadable object files.
18203 reload_flag=$lt_reload_flag
18204 reload_cmds=$lt_reload_cmds
18205
18206 # How to pass a linker flag through the compiler.
18207 wl=$lt_lt_prog_compiler_wl_GCJ
18208
18209 # Object file suffix (normally "o").
18210 objext="$ac_objext"
18211
18212 # Old archive suffix (normally "a").
18213 libext="$libext"
18214
18215 # Shared library suffix (normally ".so").
18216 shrext_cmds='$shrext_cmds'
18217
18218 # Executable file suffix (normally "").
18219 exeext="$exeext"
18220
18221 # Additional compiler flags for building library objects.
18222 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18223 pic_mode=$pic_mode
18224
18225 # What is the maximum length of a command?
18226 max_cmd_len=$lt_cv_sys_max_cmd_len
18227
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18230
18231 # Must we lock files when doing compilation ?
18232 need_locks=$lt_need_locks
18233
18234 # Do we need the lib prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18236
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18239
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18242
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18245
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18248
18249 # Compiler flag to prevent dynamic linking.
18250 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18251
18252 # Compiler flag to turn off builtin functions.
18253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18254
18255 # Compiler flag to allow reflexive dlopens.
18256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18257
18258 # Compiler flag to generate shared objects directly from archives.
18259 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18260
18261 # Compiler flag to generate thread-safe objects.
18262 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18263
18264 # Library versioning type.
18265 version_type=$version_type
18266
18267 # Format of library name prefix.
18268 libname_spec=$lt_libname_spec
18269
18270 # List of archive names.  First name is the real one, the rest are links.
18271 # The last name is the one that the linker finds with -lNAME.
18272 library_names_spec=$lt_library_names_spec
18273
18274 # The coded name of the library, if different from the real name.
18275 soname_spec=$lt_soname_spec
18276
18277 # Commands used to build and install an old-style archive.
18278 RANLIB=$lt_RANLIB
18279 old_archive_cmds=$lt_old_archive_cmds_GCJ
18280 old_postinstall_cmds=$lt_old_postinstall_cmds
18281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18282
18283 # Create an old-style archive from a shared archive.
18284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18285
18286 # Create a temporary old-style archive to link instead of a shared archive.
18287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18288
18289 # Commands used to build and install a shared archive.
18290 archive_cmds=$lt_archive_cmds_GCJ
18291 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18292 postinstall_cmds=$lt_postinstall_cmds
18293 postuninstall_cmds=$lt_postuninstall_cmds
18294
18295 # Commands used to build a loadable module (assumed same as above if empty)
18296 module_cmds=$lt_module_cmds_GCJ
18297 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18298
18299 # Commands to strip libraries.
18300 old_striplib=$lt_old_striplib
18301 striplib=$lt_striplib
18302
18303 # Dependencies to place before the objects being linked to create a
18304 # shared library.
18305 predep_objects=$lt_predep_objects_GCJ
18306
18307 # Dependencies to place after the objects being linked to create a
18308 # shared library.
18309 postdep_objects=$lt_postdep_objects_GCJ
18310
18311 # Dependencies to place before the objects being linked to create a
18312 # shared library.
18313 predeps=$lt_predeps_GCJ
18314
18315 # Dependencies to place after the objects being linked to create a
18316 # shared library.
18317 postdeps=$lt_postdeps_GCJ
18318
18319 # The library search path used internally by the compiler when linking
18320 # a shared library.
18321 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18322
18323 # Method to check whether dependent libraries are shared objects.
18324 deplibs_check_method=$lt_deplibs_check_method
18325
18326 # Command to use when deplibs_check_method == file_magic.
18327 file_magic_cmd=$lt_file_magic_cmd
18328
18329 # Flag that allows shared libraries with undefined symbols to be built.
18330 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18331
18332 # Flag that forces no undefined symbols.
18333 no_undefined_flag=$lt_no_undefined_flag_GCJ
18334
18335 # Commands used to finish a libtool library installation in a directory.
18336 finish_cmds=$lt_finish_cmds
18337
18338 # Same as above, but a single script fragment to be evaled but not shown.
18339 finish_eval=$lt_finish_eval
18340
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18343
18344 # Transform the output of nm in a proper C declaration
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18346
18347 # Transform the output of nm in a C name address pair
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18349
18350 # This is the shared library runtime path variable.
18351 runpath_var=$runpath_var
18352
18353 # This is the shared library path variable.
18354 shlibpath_var=$shlibpath_var
18355
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18358
18359 # How to hardcode a shared library path into an executable.
18360 hardcode_action=$hardcode_action_GCJ
18361
18362 # Whether we should hardcode library paths into libraries.
18363 hardcode_into_libs=$hardcode_into_libs
18364
18365 # Flag to hardcode \$libdir into a binary during linking.
18366 # This must work even if \$libdir does not exist.
18367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18368
18369 # If ld is used when linking, flag to hardcode \$libdir into
18370 # a binary during linking. This must work even if \$libdir does
18371 # not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18373
18374 # Whether we need a single -rpath flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18376
18377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_direct=$hardcode_direct_GCJ
18380
18381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_minus_L=$hardcode_minus_L_GCJ
18384
18385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386 # the resulting binary.
18387 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18388
18389 # Set to yes if building a shared library automatically hardcodes DIR into the library
18390 # and all subsequent libraries and executables linked against it.
18391 hardcode_automatic=$hardcode_automatic_GCJ
18392
18393 # Variables whose values should be saved in libtool wrapper scripts and
18394 # restored at relink time.
18395 variables_saved_for_relink="$variables_saved_for_relink"
18396
18397 # Whether libtool must link a program against all its dependency libraries.
18398 link_all_deplibs=$link_all_deplibs_GCJ
18399
18400 # Compile-time system search path for libraries
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403 # Run-time system search path for libraries
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406 # Fix the shell variable \$srcfile for the compiler.
18407 fix_srcfile_path="$fix_srcfile_path_GCJ"
18408
18409 # Set to yes if exported symbols are required.
18410 always_export_symbols=$always_export_symbols_GCJ
18411
18412 # The commands to list exported symbols.
18413 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18414
18415 # The commands to extract the exported symbol list from a shared archive.
18416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18417
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms_GCJ
18420
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms_GCJ
18423
18424 # ### END LIBTOOL TAG CONFIG: $tagname
18425
18426 __EOF__
18427
18428
18429 else
18430   # If there is no Makefile yet, we rely on a make rule to execute
18431   # `config.status --recheck' to rerun these tests and create the
18432   # libtool script then.
18433   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18434   if test -f "$ltmain_in"; then
18435     test -f Makefile && make "$ltmain"
18436   fi
18437 fi
18438
18439
18440 ac_ext=c
18441 ac_cpp='$CPP $CPPFLAGS'
18442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446 CC="$lt_save_CC"
18447
18448         else
18449           tagname=""
18450         fi
18451         ;;
18452
18453       RC)
18454         ac_ext=c
18455 ac_cpp='$CPP $CPPFLAGS'
18456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18459
18460
18461 # Source file extension for RC test sources.
18462 ac_ext=rc
18463
18464 # Object file extension for compiled RC test sources.
18465 objext=o
18466 objext_RC=$objext
18467
18468 # Code to be used in simple compile tests
18469 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18470
18471 # Code to be used in simple link tests
18472 lt_simple_link_test_code="$lt_simple_compile_test_code"
18473
18474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18475
18476 # If no C compiler was specified, use CC.
18477 LTCC=${LTCC-"$CC"}
18478
18479 # Allow CC to be a program name with arguments.
18480 compiler=$CC
18481
18482
18483 # Allow CC to be a program name with arguments.
18484 lt_save_CC="$CC"
18485 CC=${RC-"windres"}
18486 compiler=$CC
18487 compiler_RC=$CC
18488 lt_cv_prog_compiler_c_o_RC=yes
18489
18490 # The else clause should only fire when bootstrapping the
18491 # libtool distribution, otherwise you forgot to ship ltmain.sh
18492 # with your package, and you will get complaints that there are
18493 # no rules to generate ltmain.sh.
18494 if test -f "$ltmain"; then
18495   # See if we are running on zsh, and set the options which allow our commands through
18496   # without removal of \ escapes.
18497   if test -n "${ZSH_VERSION+set}" ; then
18498     setopt NO_GLOB_SUBST
18499   fi
18500   # Now quote all the things that may contain metacharacters while being
18501   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18502   # variables and quote the copies for generation of the libtool script.
18503   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18504     SED SHELL STRIP \
18505     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18506     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18507     deplibs_check_method reload_flag reload_cmds need_locks \
18508     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18509     lt_cv_sys_global_symbol_to_c_name_address \
18510     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18511     old_postinstall_cmds old_postuninstall_cmds \
18512     compiler_RC \
18513     CC_RC \
18514     LD_RC \
18515     lt_prog_compiler_wl_RC \
18516     lt_prog_compiler_pic_RC \
18517     lt_prog_compiler_static_RC \
18518     lt_prog_compiler_no_builtin_flag_RC \
18519     export_dynamic_flag_spec_RC \
18520     thread_safe_flag_spec_RC \
18521     whole_archive_flag_spec_RC \
18522     enable_shared_with_static_runtimes_RC \
18523     old_archive_cmds_RC \
18524     old_archive_from_new_cmds_RC \
18525     predep_objects_RC \
18526     postdep_objects_RC \
18527     predeps_RC \
18528     postdeps_RC \
18529     compiler_lib_search_path_RC \
18530     archive_cmds_RC \
18531     archive_expsym_cmds_RC \
18532     postinstall_cmds_RC \
18533     postuninstall_cmds_RC \
18534     old_archive_from_expsyms_cmds_RC \
18535     allow_undefined_flag_RC \
18536     no_undefined_flag_RC \
18537     export_symbols_cmds_RC \
18538     hardcode_libdir_flag_spec_RC \
18539     hardcode_libdir_flag_spec_ld_RC \
18540     hardcode_libdir_separator_RC \
18541     hardcode_automatic_RC \
18542     module_cmds_RC \
18543     module_expsym_cmds_RC \
18544     lt_cv_prog_compiler_c_o_RC \
18545     exclude_expsyms_RC \
18546     include_expsyms_RC; do
18547
18548     case $var in
18549     old_archive_cmds_RC | \
18550     old_archive_from_new_cmds_RC | \
18551     archive_cmds_RC | \
18552     archive_expsym_cmds_RC | \
18553     module_cmds_RC | \
18554     module_expsym_cmds_RC | \
18555     old_archive_from_expsyms_cmds_RC | \
18556     export_symbols_cmds_RC | \
18557     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18558     postinstall_cmds | postuninstall_cmds | \
18559     old_postinstall_cmds | old_postuninstall_cmds | \
18560     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18561       # Double-quote double-evaled strings.
18562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18563       ;;
18564     *)
18565       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18566       ;;
18567     esac
18568   done
18569
18570   case $lt_echo in
18571   *'\$0 --fallback-echo"')
18572     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18573     ;;
18574   esac
18575
18576 cfgfile="$ofile"
18577
18578   cat <<__EOF__ >> "$cfgfile"
18579 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18580
18581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18582
18583 # Shell to use when invoking shell scripts.
18584 SHELL=$lt_SHELL
18585
18586 # Whether or not to build shared libraries.
18587 build_libtool_libs=$enable_shared
18588
18589 # Whether or not to build static libraries.
18590 build_old_libs=$enable_static
18591
18592 # Whether or not to add -lc for building shared libraries.
18593 build_libtool_need_lc=$archive_cmds_need_lc_RC
18594
18595 # Whether or not to disallow shared libs when runtime libs are static
18596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18597
18598 # Whether or not to optimize for fast installation.
18599 fast_install=$enable_fast_install
18600
18601 # The host system.
18602 host_alias=$host_alias
18603 host=$host
18604
18605 # An echo program that does not interpret backslashes.
18606 echo=$lt_echo
18607
18608 # The archiver.
18609 AR=$lt_AR
18610 AR_FLAGS=$lt_AR_FLAGS
18611
18612 # A C compiler.
18613 LTCC=$lt_LTCC
18614
18615 # A language-specific compiler.
18616 CC=$lt_compiler_RC
18617
18618 # Is the compiler the GNU C compiler?
18619 with_gcc=$GCC_RC
18620
18621 # An ERE matcher.
18622 EGREP=$lt_EGREP
18623
18624 # The linker used to build libraries.
18625 LD=$lt_LD_RC
18626
18627 # Whether we need hard or soft links.
18628 LN_S=$lt_LN_S
18629
18630 # A BSD-compatible nm program.
18631 NM=$lt_NM
18632
18633 # A symbol stripping program
18634 STRIP=$lt_STRIP
18635
18636 # Used to examine libraries when file_magic_cmd begins "file"
18637 MAGIC_CMD=$MAGIC_CMD
18638
18639 # Used on cygwin: DLL creation program.
18640 DLLTOOL="$DLLTOOL"
18641
18642 # Used on cygwin: object dumper.
18643 OBJDUMP="$OBJDUMP"
18644
18645 # Used on cygwin: assembler.
18646 AS="$AS"
18647
18648 # The name of the directory that contains temporary libtool files.
18649 objdir=$objdir
18650
18651 # How to create reloadable object files.
18652 reload_flag=$lt_reload_flag
18653 reload_cmds=$lt_reload_cmds
18654
18655 # How to pass a linker flag through the compiler.
18656 wl=$lt_lt_prog_compiler_wl_RC
18657
18658 # Object file suffix (normally "o").
18659 objext="$ac_objext"
18660
18661 # Old archive suffix (normally "a").
18662 libext="$libext"
18663
18664 # Shared library suffix (normally ".so").
18665 shrext_cmds='$shrext_cmds'
18666
18667 # Executable file suffix (normally "").
18668 exeext="$exeext"
18669
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic_RC
18672 pic_mode=$pic_mode
18673
18674 # What is the maximum length of a command?
18675 max_cmd_len=$lt_cv_sys_max_cmd_len
18676
18677 # Does compiler simultaneously support -c and -o options?
18678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18679
18680 # Must we lock files when doing compilation ?
18681 need_locks=$lt_need_locks
18682
18683 # Do we need the lib prefix for modules?
18684 need_lib_prefix=$need_lib_prefix
18685
18686 # Do we need a version for libraries?
18687 need_version=$need_version
18688
18689 # Whether dlopen is supported.
18690 dlopen_support=$enable_dlopen
18691
18692 # Whether dlopen of programs is supported.
18693 dlopen_self=$enable_dlopen_self
18694
18695 # Whether dlopen of statically linked programs is supported.
18696 dlopen_self_static=$enable_dlopen_self_static
18697
18698 # Compiler flag to prevent dynamic linking.
18699 link_static_flag=$lt_lt_prog_compiler_static_RC
18700
18701 # Compiler flag to turn off builtin functions.
18702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18703
18704 # Compiler flag to allow reflexive dlopens.
18705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18706
18707 # Compiler flag to generate shared objects directly from archives.
18708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18709
18710 # Compiler flag to generate thread-safe objects.
18711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18712
18713 # Library versioning type.
18714 version_type=$version_type
18715
18716 # Format of library name prefix.
18717 libname_spec=$lt_libname_spec
18718
18719 # List of archive names.  First name is the real one, the rest are links.
18720 # The last name is the one that the linker finds with -lNAME.
18721 library_names_spec=$lt_library_names_spec
18722
18723 # The coded name of the library, if different from the real name.
18724 soname_spec=$lt_soname_spec
18725
18726 # Commands used to build and install an old-style archive.
18727 RANLIB=$lt_RANLIB
18728 old_archive_cmds=$lt_old_archive_cmds_RC
18729 old_postinstall_cmds=$lt_old_postinstall_cmds
18730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18731
18732 # Create an old-style archive from a shared archive.
18733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18734
18735 # Create a temporary old-style archive to link instead of a shared archive.
18736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18737
18738 # Commands used to build and install a shared archive.
18739 archive_cmds=$lt_archive_cmds_RC
18740 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18741 postinstall_cmds=$lt_postinstall_cmds
18742 postuninstall_cmds=$lt_postuninstall_cmds
18743
18744 # Commands used to build a loadable module (assumed same as above if empty)
18745 module_cmds=$lt_module_cmds_RC
18746 module_expsym_cmds=$lt_module_expsym_cmds_RC
18747
18748 # Commands to strip libraries.
18749 old_striplib=$lt_old_striplib
18750 striplib=$lt_striplib
18751
18752 # Dependencies to place before the objects being linked to create a
18753 # shared library.
18754 predep_objects=$lt_predep_objects_RC
18755
18756 # Dependencies to place after the objects being linked to create a
18757 # shared library.
18758 postdep_objects=$lt_postdep_objects_RC
18759
18760 # Dependencies to place before the objects being linked to create a
18761 # shared library.
18762 predeps=$lt_predeps_RC
18763
18764 # Dependencies to place after the objects being linked to create a
18765 # shared library.
18766 postdeps=$lt_postdeps_RC
18767
18768 # The library search path used internally by the compiler when linking
18769 # a shared library.
18770 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18771
18772 # Method to check whether dependent libraries are shared objects.
18773 deplibs_check_method=$lt_deplibs_check_method
18774
18775 # Command to use when deplibs_check_method == file_magic.
18776 file_magic_cmd=$lt_file_magic_cmd
18777
18778 # Flag that allows shared libraries with undefined symbols to be built.
18779 allow_undefined_flag=$lt_allow_undefined_flag_RC
18780
18781 # Flag that forces no undefined symbols.
18782 no_undefined_flag=$lt_no_undefined_flag_RC
18783
18784 # Commands used to finish a libtool library installation in a directory.
18785 finish_cmds=$lt_finish_cmds
18786
18787 # Same as above, but a single script fragment to be evaled but not shown.
18788 finish_eval=$lt_finish_eval
18789
18790 # Take the output of nm and produce a listing of raw symbols and C names.
18791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18792
18793 # Transform the output of nm in a proper C declaration
18794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18795
18796 # Transform the output of nm in a C name address pair
18797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18798
18799 # This is the shared library runtime path variable.
18800 runpath_var=$runpath_var
18801
18802 # This is the shared library path variable.
18803 shlibpath_var=$shlibpath_var
18804
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808 # How to hardcode a shared library path into an executable.
18809 hardcode_action=$hardcode_action_RC
18810
18811 # Whether we should hardcode library paths into libraries.
18812 hardcode_into_libs=$hardcode_into_libs
18813
18814 # Flag to hardcode \$libdir into a binary during linking.
18815 # This must work even if \$libdir does not exist.
18816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18817
18818 # If ld is used when linking, flag to hardcode \$libdir into
18819 # a binary during linking. This must work even if \$libdir does
18820 # not exist.
18821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18822
18823 # Whether we need a single -rpath flag with a separated argument.
18824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18825
18826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827 # resulting binary.
18828 hardcode_direct=$hardcode_direct_RC
18829
18830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831 # resulting binary.
18832 hardcode_minus_L=$hardcode_minus_L_RC
18833
18834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835 # the resulting binary.
18836 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18837
18838 # Set to yes if building a shared library automatically hardcodes DIR into the library
18839 # and all subsequent libraries and executables linked against it.
18840 hardcode_automatic=$hardcode_automatic_RC
18841
18842 # Variables whose values should be saved in libtool wrapper scripts and
18843 # restored at relink time.
18844 variables_saved_for_relink="$variables_saved_for_relink"
18845
18846 # Whether libtool must link a program against all its dependency libraries.
18847 link_all_deplibs=$link_all_deplibs_RC
18848
18849 # Compile-time system search path for libraries
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851
18852 # Run-time system search path for libraries
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18855 # Fix the shell variable \$srcfile for the compiler.
18856 fix_srcfile_path="$fix_srcfile_path_RC"
18857
18858 # Set to yes if exported symbols are required.
18859 always_export_symbols=$always_export_symbols_RC
18860
18861 # The commands to list exported symbols.
18862 export_symbols_cmds=$lt_export_symbols_cmds_RC
18863
18864 # The commands to extract the exported symbol list from a shared archive.
18865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18866
18867 # Symbols that should not be listed in the preloaded symbols.
18868 exclude_expsyms=$lt_exclude_expsyms_RC
18869
18870 # Symbols that must always be exported.
18871 include_expsyms=$lt_include_expsyms_RC
18872
18873 # ### END LIBTOOL TAG CONFIG: $tagname
18874
18875 __EOF__
18876
18877
18878 else
18879   # If there is no Makefile yet, we rely on a make rule to execute
18880   # `config.status --recheck' to rerun these tests and create the
18881   # libtool script then.
18882   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883   if test -f "$ltmain_in"; then
18884     test -f Makefile && make "$ltmain"
18885   fi
18886 fi
18887
18888
18889 ac_ext=c
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895 CC="$lt_save_CC"
18896
18897         ;;
18898
18899       *)
18900         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18901 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18902    { (exit 1); exit 1; }; }
18903         ;;
18904       esac
18905
18906       # Append the new tag name to the list of available tags.
18907       if test -n "$tagname" ; then
18908       available_tags="$available_tags $tagname"
18909     fi
18910     fi
18911   done
18912   IFS="$lt_save_ifs"
18913
18914   # Now substitute the updated list of available tags.
18915   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18916     mv "${ofile}T" "$ofile"
18917     chmod +x "$ofile"
18918   else
18919     rm -f "${ofile}T"
18920     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18921 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18922    { (exit 1); exit 1; }; }
18923   fi
18924 fi
18925
18926
18927
18928 # This can be used to rebuild libtool when needed
18929 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18930
18931 # Always use our own libtool.
18932 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18933
18934 # Prevent multiple expansion
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955 # Extract the first word of "tar", so it can be a program name with args.
18956 set dummy tar; ac_word=$2
18957 echo "$as_me:$LINENO: checking for $ac_word" >&5
18958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18959 if test "${ac_cv_path_TAR+set}" = set; then
18960   echo $ECHO_N "(cached) $ECHO_C" >&6
18961 else
18962   case $TAR in
18963   [\\/]* | ?:[\\/]*)
18964   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18965   ;;
18966   *)
18967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18968 for as_dir in $PATH
18969 do
18970   IFS=$as_save_IFS
18971   test -z "$as_dir" && as_dir=.
18972   for ac_exec_ext in '' $ac_executable_extensions; do
18973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18974     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18976     break 2
18977   fi
18978 done
18979 done
18980
18981   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18982   ;;
18983 esac
18984 fi
18985 TAR=$ac_cv_path_TAR
18986
18987 if test -n "$TAR"; then
18988   echo "$as_me:$LINENO: result: $TAR" >&5
18989 echo "${ECHO_T}$TAR" >&6
18990 else
18991   echo "$as_me:$LINENO: result: no" >&5
18992 echo "${ECHO_T}no" >&6
18993 fi
18994
18995
18996 # Extract the first word of "dot", so it can be a program name with args.
18997 set dummy dot; ac_word=$2
18998 echo "$as_me:$LINENO: checking for $ac_word" >&5
18999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19000 if test "${ac_cv_path_DOT+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   case $DOT in
19004   [\\/]* | ?:[\\/]*)
19005   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19006   ;;
19007   *)
19008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009 for as_dir in $PATH
19010 do
19011   IFS=$as_save_IFS
19012   test -z "$as_dir" && as_dir=.
19013   for ac_exec_ext in '' $ac_executable_extensions; do
19014   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19017     break 2
19018   fi
19019 done
19020 done
19021
19022   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
19023   ;;
19024 esac
19025 fi
19026 DOT=$ac_cv_path_DOT
19027
19028 if test -n "$DOT"; then
19029   echo "$as_me:$LINENO: result: $DOT" >&5
19030 echo "${ECHO_T}$DOT" >&6
19031 else
19032   echo "$as_me:$LINENO: result: no" >&5
19033 echo "${ECHO_T}no" >&6
19034 fi
19035
19036 # Extract the first word of "etags", so it can be a program name with args.
19037 set dummy etags; ac_word=$2
19038 echo "$as_me:$LINENO: checking for $ac_word" >&5
19039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19040 if test "${ac_cv_path_ETAGS+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   case $ETAGS in
19044   [\\/]* | ?:[\\/]*)
19045   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19046   ;;
19047   *)
19048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19049 for as_dir in $PATH
19050 do
19051   IFS=$as_save_IFS
19052   test -z "$as_dir" && as_dir=.
19053   for ac_exec_ext in '' $ac_executable_extensions; do
19054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19055     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19057     break 2
19058   fi
19059 done
19060 done
19061
19062   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19063   ;;
19064 esac
19065 fi
19066 ETAGS=$ac_cv_path_ETAGS
19067
19068 if test -n "$ETAGS"; then
19069   echo "$as_me:$LINENO: result: $ETAGS" >&5
19070 echo "${ECHO_T}$ETAGS" >&6
19071 else
19072   echo "$as_me:$LINENO: result: no" >&5
19073 echo "${ECHO_T}no" >&6
19074 fi
19075
19076 etags_version=`$ETAGS --version 2>&1`
19077 case "$etags_version" in
19078         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19079         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19080         *) ETAGSFLAGS="" ;;
19081 esac
19082 ETAGSFLAGS=$ETAGSFLAGS
19083
19084 # Extract the first word of "python", so it can be a program name with args.
19085 set dummy python; ac_word=$2
19086 echo "$as_me:$LINENO: checking for $ac_word" >&5
19087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19088 if test "${ac_cv_path_PYTHON+set}" = set; then
19089   echo $ECHO_N "(cached) $ECHO_C" >&6
19090 else
19091   case $PYTHON in
19092   [\\/]* | ?:[\\/]*)
19093   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19094   ;;
19095   *)
19096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19097 for as_dir in $PATH
19098 do
19099   IFS=$as_save_IFS
19100   test -z "$as_dir" && as_dir=.
19101   for ac_exec_ext in '' $ac_executable_extensions; do
19102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19103     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19105     break 2
19106   fi
19107 done
19108 done
19109
19110   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19111   ;;
19112 esac
19113 fi
19114 PYTHON=$ac_cv_path_PYTHON
19115
19116 if test -n "$PYTHON"; then
19117   echo "$as_me:$LINENO: result: $PYTHON" >&5
19118 echo "${ECHO_T}$PYTHON" >&6
19119 else
19120   echo "$as_me:$LINENO: result: no" >&5
19121 echo "${ECHO_T}no" >&6
19122 fi
19123
19124 if test "$PYTHON" = "false"
19125 then
19126         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19127 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19128 fi
19129 # Extract the first word of "qmtest", so it can be a program name with args.
19130 set dummy qmtest; ac_word=$2
19131 echo "$as_me:$LINENO: checking for $ac_word" >&5
19132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19133 if test "${ac_cv_path_QMTEST+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   case $QMTEST in
19137   [\\/]* | ?:[\\/]*)
19138   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19139   ;;
19140   *)
19141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142 for as_dir in $PATH
19143 do
19144   IFS=$as_save_IFS
19145   test -z "$as_dir" && as_dir=.
19146   for ac_exec_ext in '' $ac_executable_extensions; do
19147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19148     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19150     break 2
19151   fi
19152 done
19153 done
19154
19155   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19156   ;;
19157 esac
19158 fi
19159 QMTEST=$ac_cv_path_QMTEST
19160
19161 if test -n "$QMTEST"; then
19162   echo "$as_me:$LINENO: result: $QMTEST" >&5
19163 echo "${ECHO_T}$QMTEST" >&6
19164 else
19165   echo "$as_me:$LINENO: result: no" >&5
19166 echo "${ECHO_T}no" >&6
19167 fi
19168
19169 if test "$QMTEST" = "false"
19170 then
19171         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19172 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19173 fi
19174
19175 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19176 pymajor=`echo $pyversion | cut -d. -f1`
19177 pyminor=`echo $pyversion | cut -d. -f2`
19178
19179 if test "$pymajor" -ge "2"
19180 then
19181         if test "$pymajor" -eq "2"
19182         then
19183                 if test "$pyminor" -lt "2"
19184                 then
19185                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19186 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19187                 fi
19188         fi
19189 else
19190         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19191 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19192 fi
19193
19194
19195 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19196 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19197 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19198   echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200   ac_check_lib_save_LIBS=$LIBS
19201 LIBS="-lelf  $LIBS"
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208
19209 /* Override any gcc2 internal prototype to avoid an error.  */
19210 #ifdef __cplusplus
19211 extern "C"
19212 #endif
19213 /* We use char because int might match the return type of a gcc2
19214    builtin and then its argument prototype would still apply.  */
19215 char elf_begin ();
19216 int
19217 main ()
19218 {
19219 elf_begin ();
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19226   (eval $ac_link) 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -z "$ac_c_werror_flag"
19234                          || test ! -s conftest.err'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; } &&
19240          { ac_try='test -s conftest$ac_exeext'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_cv_lib_elf_elf_begin=yes
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_cv_lib_elf_elf_begin=no
19252 fi
19253 rm -f conftest.err conftest.$ac_objext \
19254       conftest$ac_exeext conftest.$ac_ext
19255 LIBS=$ac_check_lib_save_LIBS
19256 fi
19257 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19258 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19259 if test $ac_cv_lib_elf_elf_begin = yes; then
19260   cat >>confdefs.h <<_ACEOF
19261 #define HAVE_LIBELF 1
19262 _ACEOF
19263
19264   LIBS="-lelf $LIBS"
19265
19266 fi
19267
19268
19269 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19270 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19271 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   ac_check_lib_save_LIBS=$LIBS
19275 LIBS="-lbz2  $LIBS"
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282
19283 /* Override any gcc2 internal prototype to avoid an error.  */
19284 #ifdef __cplusplus
19285 extern "C"
19286 #endif
19287 /* We use char because int might match the return type of a gcc2
19288    builtin and then its argument prototype would still apply.  */
19289 char BZ2_bzCompressInit ();
19290 int
19291 main ()
19292 {
19293 BZ2_bzCompressInit ();
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300   (eval $ac_link) 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } &&
19307          { ac_try='test -z "$ac_c_werror_flag"
19308                          || test ! -s conftest.err'
19309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310   (eval $ac_try) 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; } &&
19314          { ac_try='test -s conftest$ac_exeext'
19315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316   (eval $ac_try) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19326 fi
19327 rm -f conftest.err conftest.$ac_objext \
19328       conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_check_lib_save_LIBS
19330 fi
19331 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19332 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19333 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19334   bzip2_found=1
19335 else
19336   bzip2_found=0
19337 fi
19338
19339
19340 for ac_header in bzlib.h
19341 do
19342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19344   echo "$as_me:$LINENO: checking for $ac_header" >&5
19345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19347   echo $ECHO_N "(cached) $ECHO_C" >&6
19348 fi
19349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19351 else
19352   # Is the header compilable?
19353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361 $ac_includes_default
19362 #include <$ac_header>
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366   (eval $ac_compile) 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_c_werror_flag"
19374                          || test ! -s conftest.err'
19375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376   (eval $ac_try) 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; } &&
19380          { ac_try='test -s conftest.$ac_objext'
19381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; }; then
19386   ac_header_compiler=yes
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_header_compiler=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19395 echo "${ECHO_T}$ac_header_compiler" >&6
19396
19397 # Is the header present?
19398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 #include <$ac_header>
19407 _ACEOF
19408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19409   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19410   ac_status=$?
19411   grep -v '^ *+' conftest.er1 >conftest.err
19412   rm -f conftest.er1
19413   cat conftest.err >&5
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); } >/dev/null; then
19416   if test -s conftest.err; then
19417     ac_cpp_err=$ac_c_preproc_warn_flag
19418     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19419   else
19420     ac_cpp_err=
19421   fi
19422 else
19423   ac_cpp_err=yes
19424 fi
19425 if test -z "$ac_cpp_err"; then
19426   ac_header_preproc=yes
19427 else
19428   echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431   ac_header_preproc=no
19432 fi
19433 rm -f conftest.err conftest.$ac_ext
19434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19435 echo "${ECHO_T}$ac_header_preproc" >&6
19436
19437 # So?  What about this header?
19438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19439   yes:no: )
19440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19444     ac_header_preproc=yes
19445     ;;
19446   no:yes:* )
19447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19459     (
19460       cat <<\_ASBOX
19461 ## ----------------------------------- ##
19462 ## Report this to llvmbugs@cs.uiuc.edu ##
19463 ## ----------------------------------- ##
19464 _ASBOX
19465     ) |
19466       sed "s/^/$as_me: WARNING:     /" >&2
19467     ;;
19468 esac
19469 echo "$as_me:$LINENO: checking for $ac_header" >&5
19470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19472   echo $ECHO_N "(cached) $ECHO_C" >&6
19473 else
19474   eval "$as_ac_Header=\$ac_header_preproc"
19475 fi
19476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478
19479 fi
19480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19481   cat >>confdefs.h <<_ACEOF
19482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19483 _ACEOF
19484  bzlib_h_found=1
19485 else
19486   bzlib_h_found=0
19487 fi
19488
19489 done
19490
19491 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19492 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19493 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19494   echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496   ac_check_lib_save_LIBS=$LIBS
19497 LIBS="-lz  $LIBS"
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504
19505 /* Override any gcc2 internal prototype to avoid an error.  */
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 /* We use char because int might match the return type of a gcc2
19510    builtin and then its argument prototype would still apply.  */
19511 char gzopen ();
19512 int
19513 main ()
19514 {
19515 gzopen ();
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 rm -f conftest.$ac_objext conftest$ac_exeext
19521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19522   (eval $ac_link) 2>conftest.er1
19523   ac_status=$?
19524   grep -v '^ *+' conftest.er1 >conftest.err
19525   rm -f conftest.er1
19526   cat conftest.err >&5
19527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528   (exit $ac_status); } &&
19529          { ac_try='test -z "$ac_c_werror_flag"
19530                          || test ! -s conftest.err'
19531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532   (eval $ac_try) 2>&5
19533   ac_status=$?
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); }; } &&
19536          { ac_try='test -s conftest$ac_exeext'
19537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538   (eval $ac_try) 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; }; then
19542   ac_cv_lib_z_gzopen=yes
19543 else
19544   echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547 ac_cv_lib_z_gzopen=no
19548 fi
19549 rm -f conftest.err conftest.$ac_objext \
19550       conftest$ac_exeext conftest.$ac_ext
19551 LIBS=$ac_check_lib_save_LIBS
19552 fi
19553 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19554 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19555 if test $ac_cv_lib_z_gzopen = yes; then
19556   zlib_found=1
19557 else
19558   zlib_found=0
19559 fi
19560
19561
19562 for ac_header in zlib.h
19563 do
19564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19566   echo "$as_me:$LINENO: checking for $ac_header" >&5
19567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19569   echo $ECHO_N "(cached) $ECHO_C" >&6
19570 fi
19571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19573 else
19574   # Is the header compilable?
19575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 $ac_includes_default
19584 #include <$ac_header>
19585 _ACEOF
19586 rm -f conftest.$ac_objext
19587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588   (eval $ac_compile) 2>conftest.er1
19589   ac_status=$?
19590   grep -v '^ *+' conftest.er1 >conftest.err
19591   rm -f conftest.er1
19592   cat conftest.err >&5
19593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594   (exit $ac_status); } &&
19595          { ac_try='test -z "$ac_c_werror_flag"
19596                          || test ! -s conftest.err'
19597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598   (eval $ac_try) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_header_compiler=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_compiler=no
19614 fi
19615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617 echo "${ECHO_T}$ac_header_compiler" >&6
19618
19619 # Is the header present?
19620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h.  */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h.  */
19628 #include <$ac_header>
19629 _ACEOF
19630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } >/dev/null; then
19638   if test -s conftest.err; then
19639     ac_cpp_err=$ac_c_preproc_warn_flag
19640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19641   else
19642     ac_cpp_err=
19643   fi
19644 else
19645   ac_cpp_err=yes
19646 fi
19647 if test -z "$ac_cpp_err"; then
19648   ac_header_preproc=yes
19649 else
19650   echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19652
19653   ac_header_preproc=no
19654 fi
19655 rm -f conftest.err conftest.$ac_ext
19656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657 echo "${ECHO_T}$ac_header_preproc" >&6
19658
19659 # So?  What about this header?
19660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661   yes:no: )
19662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19666     ac_header_preproc=yes
19667     ;;
19668   no:yes:* )
19669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19681     (
19682       cat <<\_ASBOX
19683 ## ----------------------------------- ##
19684 ## Report this to llvmbugs@cs.uiuc.edu ##
19685 ## ----------------------------------- ##
19686 _ASBOX
19687     ) |
19688       sed "s/^/$as_me: WARNING:     /" >&2
19689     ;;
19690 esac
19691 echo "$as_me:$LINENO: checking for $ac_header" >&5
19692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694   echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696   eval "$as_ac_Header=\$ac_header_preproc"
19697 fi
19698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19700
19701 fi
19702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703   cat >>confdefs.h <<_ACEOF
19704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19705 _ACEOF
19706  zlib_h_found=1
19707 else
19708   zlib_h_found=0
19709 fi
19710
19711 done
19712
19713 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_ZLIB 1
19717 _ACEOF
19718
19719   HAVE_ZLIB=1
19720
19721 else
19722   HAVE_ZLIB=0
19723
19724 fi
19725 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19726
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_BZIP2 1
19729 _ACEOF
19730
19731   HAVE_BZIP2=1
19732
19733 else
19734   HAVE_BZIP2=0
19735
19736 fi
19737 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19738 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19739 if test "${ac_cv_search_dlopen+set}" = set; then
19740   echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742   ac_func_search_save_LIBS=$LIBS
19743 ac_cv_search_dlopen=no
19744 cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19750
19751 /* Override any gcc2 internal prototype to avoid an error.  */
19752 #ifdef __cplusplus
19753 extern "C"
19754 #endif
19755 /* We use char because int might match the return type of a gcc2
19756    builtin and then its argument prototype would still apply.  */
19757 char dlopen ();
19758 int
19759 main ()
19760 {
19761 dlopen ();
19762   ;
19763   return 0;
19764 }
19765 _ACEOF
19766 rm -f conftest.$ac_objext conftest$ac_exeext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19768   (eval $ac_link) 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } &&
19775          { ac_try='test -z "$ac_c_werror_flag"
19776                          || test ! -s conftest.err'
19777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778   (eval $ac_try) 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; } &&
19782          { ac_try='test -s conftest$ac_exeext'
19783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784   (eval $ac_try) 2>&5
19785   ac_status=$?
19786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787   (exit $ac_status); }; }; then
19788   ac_cv_search_dlopen="none required"
19789 else
19790   echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19792
19793 fi
19794 rm -f conftest.err conftest.$ac_objext \
19795       conftest$ac_exeext conftest.$ac_ext
19796 if test "$ac_cv_search_dlopen" = no; then
19797   for ac_lib in dl; do
19798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19799     cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805
19806 /* Override any gcc2 internal prototype to avoid an error.  */
19807 #ifdef __cplusplus
19808 extern "C"
19809 #endif
19810 /* We use char because int might match the return type of a gcc2
19811    builtin and then its argument prototype would still apply.  */
19812 char dlopen ();
19813 int
19814 main ()
19815 {
19816 dlopen ();
19817   ;
19818   return 0;
19819 }
19820 _ACEOF
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19823   (eval $ac_link) 2>conftest.er1
19824   ac_status=$?
19825   grep -v '^ *+' conftest.er1 >conftest.err
19826   rm -f conftest.er1
19827   cat conftest.err >&5
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } &&
19830          { ac_try='test -z "$ac_c_werror_flag"
19831                          || test ! -s conftest.err'
19832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833   (eval $ac_try) 2>&5
19834   ac_status=$?
19835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836   (exit $ac_status); }; } &&
19837          { ac_try='test -s conftest$ac_exeext'
19838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839   (eval $ac_try) 2>&5
19840   ac_status=$?
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); }; }; then
19843   ac_cv_search_dlopen="-l$ac_lib"
19844 break
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 fi
19850 rm -f conftest.err conftest.$ac_objext \
19851       conftest$ac_exeext conftest.$ac_ext
19852   done
19853 fi
19854 LIBS=$ac_func_search_save_LIBS
19855 fi
19856 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19857 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19858 if test "$ac_cv_search_dlopen" != no; then
19859   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19860
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_DLOPEN 1
19863 _ACEOF
19864
19865 else
19866   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19867 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19868 fi
19869
19870
19871 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19872 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19873 if test "${ac_cv_search_mallinfo+set}" = set; then
19874   echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876   ac_func_search_save_LIBS=$LIBS
19877 ac_cv_search_mallinfo=no
19878 cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884
19885 /* Override any gcc2 internal prototype to avoid an error.  */
19886 #ifdef __cplusplus
19887 extern "C"
19888 #endif
19889 /* We use char because int might match the return type of a gcc2
19890    builtin and then its argument prototype would still apply.  */
19891 char mallinfo ();
19892 int
19893 main ()
19894 {
19895 mallinfo ();
19896   ;
19897   return 0;
19898 }
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19902   (eval $ac_link) 2>conftest.er1
19903   ac_status=$?
19904   grep -v '^ *+' conftest.er1 >conftest.err
19905   rm -f conftest.er1
19906   cat conftest.err >&5
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } &&
19909          { ac_try='test -z "$ac_c_werror_flag"
19910                          || test ! -s conftest.err'
19911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912   (eval $ac_try) 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; } &&
19916          { ac_try='test -s conftest$ac_exeext'
19917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918   (eval $ac_try) 2>&5
19919   ac_status=$?
19920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921   (exit $ac_status); }; }; then
19922   ac_cv_search_mallinfo="none required"
19923 else
19924   echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927 fi
19928 rm -f conftest.err conftest.$ac_objext \
19929       conftest$ac_exeext conftest.$ac_ext
19930 if test "$ac_cv_search_mallinfo" = no; then
19931   for ac_lib in malloc; do
19932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19933     cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h.  */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h.  */
19939
19940 /* Override any gcc2 internal prototype to avoid an error.  */
19941 #ifdef __cplusplus
19942 extern "C"
19943 #endif
19944 /* We use char because int might match the return type of a gcc2
19945    builtin and then its argument prototype would still apply.  */
19946 char mallinfo ();
19947 int
19948 main ()
19949 {
19950 mallinfo ();
19951   ;
19952   return 0;
19953 }
19954 _ACEOF
19955 rm -f conftest.$ac_objext conftest$ac_exeext
19956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19957   (eval $ac_link) 2>conftest.er1
19958   ac_status=$?
19959   grep -v '^ *+' conftest.er1 >conftest.err
19960   rm -f conftest.er1
19961   cat conftest.err >&5
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); } &&
19964          { ac_try='test -z "$ac_c_werror_flag"
19965                          || test ! -s conftest.err'
19966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967   (eval $ac_try) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; } &&
19971          { ac_try='test -s conftest$ac_exeext'
19972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973   (eval $ac_try) 2>&5
19974   ac_status=$?
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); }; }; then
19977   ac_cv_search_mallinfo="-l$ac_lib"
19978 break
19979 else
19980   echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 fi
19984 rm -f conftest.err conftest.$ac_objext \
19985       conftest$ac_exeext conftest.$ac_ext
19986   done
19987 fi
19988 LIBS=$ac_func_search_save_LIBS
19989 fi
19990 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19991 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19992 if test "$ac_cv_search_mallinfo" != no; then
19993   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19994
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_MALLINFO 1
19997 _ACEOF
19998
19999 fi
20000
20001
20002 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
20003 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
20004 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   ac_func_search_save_LIBS=$LIBS
20008 ac_cv_search_pthread_mutex_lock=no
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015
20016 /* Override any gcc2 internal prototype to avoid an error.  */
20017 #ifdef __cplusplus
20018 extern "C"
20019 #endif
20020 /* We use char because int might match the return type of a gcc2
20021    builtin and then its argument prototype would still apply.  */
20022 char pthread_mutex_lock ();
20023 int
20024 main ()
20025 {
20026 pthread_mutex_lock ();
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20033   (eval $ac_link) 2>conftest.er1
20034   ac_status=$?
20035   grep -v '^ *+' conftest.er1 >conftest.err
20036   rm -f conftest.er1
20037   cat conftest.err >&5
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } &&
20040          { ac_try='test -z "$ac_c_werror_flag"
20041                          || test ! -s conftest.err'
20042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043   (eval $ac_try) 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; } &&
20047          { ac_try='test -s conftest$ac_exeext'
20048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049   (eval $ac_try) 2>&5
20050   ac_status=$?
20051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052   (exit $ac_status); }; }; then
20053   ac_cv_search_pthread_mutex_lock="none required"
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058 fi
20059 rm -f conftest.err conftest.$ac_objext \
20060       conftest$ac_exeext conftest.$ac_ext
20061 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20062   for ac_lib in pthread; do
20063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20064     cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070
20071 /* Override any gcc2 internal prototype to avoid an error.  */
20072 #ifdef __cplusplus
20073 extern "C"
20074 #endif
20075 /* We use char because int might match the return type of a gcc2
20076    builtin and then its argument prototype would still apply.  */
20077 char pthread_mutex_lock ();
20078 int
20079 main ()
20080 {
20081 pthread_mutex_lock ();
20082   ;
20083   return 0;
20084 }
20085 _ACEOF
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088   (eval $ac_link) 2>conftest.er1
20089   ac_status=$?
20090   grep -v '^ *+' conftest.er1 >conftest.err
20091   rm -f conftest.er1
20092   cat conftest.err >&5
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } &&
20095          { ac_try='test -z "$ac_c_werror_flag"
20096                          || test ! -s conftest.err'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; } &&
20102          { ac_try='test -s conftest$ac_exeext'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; }; then
20108   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20109 break
20110 else
20111   echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114 fi
20115 rm -f conftest.err conftest.$ac_objext \
20116       conftest$ac_exeext conftest.$ac_ext
20117   done
20118 fi
20119 LIBS=$ac_func_search_save_LIBS
20120 fi
20121 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20122 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20123 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20124   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20125
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_PTHREAD_MUTEX_LOCK 1
20128 _ACEOF
20129
20130 fi
20131
20132
20133 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20134 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20135 if test "${ac_cv_header_stdc+set}" = set; then
20136   echo $ECHO_N "(cached) $ECHO_C" >&6
20137 else
20138   cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144 #include <stdlib.h>
20145 #include <stdarg.h>
20146 #include <string.h>
20147 #include <float.h>
20148
20149 int
20150 main ()
20151 {
20152
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159   (eval $ac_compile) 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } &&
20166          { ac_try='test -z "$ac_c_werror_flag"
20167                          || test ! -s conftest.err'
20168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169   (eval $ac_try) 2>&5
20170   ac_status=$?
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); }; } &&
20173          { ac_try='test -s conftest.$ac_objext'
20174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175   (eval $ac_try) 2>&5
20176   ac_status=$?
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); }; }; then
20179   ac_cv_header_stdc=yes
20180 else
20181   echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_cv_header_stdc=no
20185 fi
20186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20187
20188 if test $ac_cv_header_stdc = yes; then
20189   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20190   cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196 #include <string.h>
20197
20198 _ACEOF
20199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20200   $EGREP "memchr" >/dev/null 2>&1; then
20201   :
20202 else
20203   ac_cv_header_stdc=no
20204 fi
20205 rm -f conftest*
20206
20207 fi
20208
20209 if test $ac_cv_header_stdc = yes; then
20210   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20211   cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217 #include <stdlib.h>
20218
20219 _ACEOF
20220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20221   $EGREP "free" >/dev/null 2>&1; then
20222   :
20223 else
20224   ac_cv_header_stdc=no
20225 fi
20226 rm -f conftest*
20227
20228 fi
20229
20230 if test $ac_cv_header_stdc = yes; then
20231   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20232   if test "$cross_compiling" = yes; then
20233   :
20234 else
20235   cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241 #include <ctype.h>
20242 #if ((' ' & 0x0FF) == 0x020)
20243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20245 #else
20246 # define ISLOWER(c) \
20247                    (('a' <= (c) && (c) <= 'i') \
20248                      || ('j' <= (c) && (c) <= 'r') \
20249                      || ('s' <= (c) && (c) <= 'z'))
20250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20251 #endif
20252
20253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20254 int
20255 main ()
20256 {
20257   int i;
20258   for (i = 0; i < 256; i++)
20259     if (XOR (islower (i), ISLOWER (i))
20260         || toupper (i) != TOUPPER (i))
20261       exit(2);
20262   exit (0);
20263 }
20264 _ACEOF
20265 rm -f conftest$ac_exeext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267   (eval $ac_link) 2>&5
20268   ac_status=$?
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272   (eval $ac_try) 2>&5
20273   ac_status=$?
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); }; }; then
20276   :
20277 else
20278   echo "$as_me: program exited with status $ac_status" >&5
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ( exit $ac_status )
20283 ac_cv_header_stdc=no
20284 fi
20285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20286 fi
20287 fi
20288 fi
20289 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20290 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20291 if test $ac_cv_header_stdc = yes; then
20292
20293 cat >>confdefs.h <<\_ACEOF
20294 #define STDC_HEADERS 1
20295 _ACEOF
20296
20297 fi
20298
20299 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20300 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20301 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 else
20304   cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 #include <sys/types.h>
20311 #include <sys/wait.h>
20312 #ifndef WEXITSTATUS
20313 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20314 #endif
20315 #ifndef WIFEXITED
20316 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20317 #endif
20318
20319 int
20320 main ()
20321 {
20322   int s;
20323   wait (&s);
20324   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331   (eval $ac_compile) 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } &&
20338          { ac_try='test -z "$ac_c_werror_flag"
20339                          || test ! -s conftest.err'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; } &&
20345          { ac_try='test -s conftest.$ac_objext'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; }; then
20351   ac_cv_header_sys_wait_h=yes
20352 else
20353   echo "$as_me: failed program was:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20355
20356 ac_cv_header_sys_wait_h=no
20357 fi
20358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20359 fi
20360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20361 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20362 if test $ac_cv_header_sys_wait_h = yes; then
20363
20364 cat >>confdefs.h <<\_ACEOF
20365 #define HAVE_SYS_WAIT_H 1
20366 _ACEOF
20367
20368 fi
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
20383 do
20384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20386   echo "$as_me:$LINENO: checking for $ac_header" >&5
20387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 fi
20391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20393 else
20394   # Is the header compilable?
20395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20397 cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 $ac_includes_default
20404 #include <$ac_header>
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20408   (eval $ac_compile) 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } &&
20415          { ac_try='test -z "$ac_c_werror_flag"
20416                          || test ! -s conftest.err'
20417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418   (eval $ac_try) 2>&5
20419   ac_status=$?
20420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421   (exit $ac_status); }; } &&
20422          { ac_try='test -s conftest.$ac_objext'
20423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424   (eval $ac_try) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   ac_header_compiler=yes
20429 else
20430   echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_header_compiler=no
20434 fi
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20437 echo "${ECHO_T}$ac_header_compiler" >&6
20438
20439 # Is the header present?
20440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448 #include <$ac_header>
20449 _ACEOF
20450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20452   ac_status=$?
20453   grep -v '^ *+' conftest.er1 >conftest.err
20454   rm -f conftest.er1
20455   cat conftest.err >&5
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); } >/dev/null; then
20458   if test -s conftest.err; then
20459     ac_cpp_err=$ac_c_preproc_warn_flag
20460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20461   else
20462     ac_cpp_err=
20463   fi
20464 else
20465   ac_cpp_err=yes
20466 fi
20467 if test -z "$ac_cpp_err"; then
20468   ac_header_preproc=yes
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20472
20473   ac_header_preproc=no
20474 fi
20475 rm -f conftest.err conftest.$ac_ext
20476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20477 echo "${ECHO_T}$ac_header_preproc" >&6
20478
20479 # So?  What about this header?
20480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20481   yes:no: )
20482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20486     ac_header_preproc=yes
20487     ;;
20488   no:yes:* )
20489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20501     (
20502       cat <<\_ASBOX
20503 ## ----------------------------------- ##
20504 ## Report this to llvmbugs@cs.uiuc.edu ##
20505 ## ----------------------------------- ##
20506 _ASBOX
20507     ) |
20508       sed "s/^/$as_me: WARNING:     /" >&2
20509     ;;
20510 esac
20511 echo "$as_me:$LINENO: checking for $ac_header" >&5
20512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   eval "$as_ac_Header=\$ac_header_preproc"
20517 fi
20518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20520
20521 fi
20522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20523   cat >>confdefs.h <<_ACEOF
20524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20525 _ACEOF
20526
20527 fi
20528
20529 done
20530
20531
20532 if test "${ac_cv_header_sys_types_h+set}" = set; then
20533   echo "$as_me:$LINENO: checking for sys/types.h" >&5
20534 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20535 if test "${ac_cv_header_sys_types_h+set}" = set; then
20536   echo $ECHO_N "(cached) $ECHO_C" >&6
20537 fi
20538 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20539 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20540 else
20541   # Is the header compilable?
20542 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20543 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 $ac_includes_default
20551 #include <sys/types.h>
20552 _ACEOF
20553 rm -f conftest.$ac_objext
20554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20555   (eval $ac_compile) 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } &&
20562          { ac_try='test -z "$ac_c_werror_flag"
20563                          || test ! -s conftest.err'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; } &&
20569          { ac_try='test -s conftest.$ac_objext'
20570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571   (eval $ac_try) 2>&5
20572   ac_status=$?
20573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574   (exit $ac_status); }; }; then
20575   ac_header_compiler=yes
20576 else
20577   echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_header_compiler=no
20581 fi
20582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20584 echo "${ECHO_T}$ac_header_compiler" >&6
20585
20586 # Is the header present?
20587 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20588 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595 #include <sys/types.h>
20596 _ACEOF
20597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } >/dev/null; then
20605   if test -s conftest.err; then
20606     ac_cpp_err=$ac_c_preproc_warn_flag
20607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20608   else
20609     ac_cpp_err=
20610   fi
20611 else
20612   ac_cpp_err=yes
20613 fi
20614 if test -z "$ac_cpp_err"; then
20615   ac_header_preproc=yes
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620   ac_header_preproc=no
20621 fi
20622 rm -f conftest.err conftest.$ac_ext
20623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20624 echo "${ECHO_T}$ac_header_preproc" >&6
20625
20626 # So?  What about this header?
20627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20628   yes:no: )
20629     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20630 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20631     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20632 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20633     ac_header_preproc=yes
20634     ;;
20635   no:yes:* )
20636     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20637 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20638     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20639 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20640     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20641 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20642     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20643 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20644     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20645 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20646     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20647 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20648     (
20649       cat <<\_ASBOX
20650 ## ----------------------------------- ##
20651 ## Report this to llvmbugs@cs.uiuc.edu ##
20652 ## ----------------------------------- ##
20653 _ASBOX
20654     ) |
20655       sed "s/^/$as_me: WARNING:     /" >&2
20656     ;;
20657 esac
20658 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20659 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20660 if test "${ac_cv_header_sys_types_h+set}" = set; then
20661   echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663   ac_cv_header_sys_types_h=$ac_header_preproc
20664 fi
20665 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20666 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20667
20668 fi
20669
20670
20671 if test "${ac_cv_header_inttypes_h+set}" = set; then
20672   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20673 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20674 if test "${ac_cv_header_inttypes_h+set}" = set; then
20675   echo $ECHO_N "(cached) $ECHO_C" >&6
20676 fi
20677 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20678 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20679 else
20680   # Is the header compilable?
20681 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20682 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689 $ac_includes_default
20690 #include <inttypes.h>
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694   (eval $ac_compile) 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } &&
20701          { ac_try='test -z "$ac_c_werror_flag"
20702                          || test ! -s conftest.err'
20703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704   (eval $ac_try) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; } &&
20708          { ac_try='test -s conftest.$ac_objext'
20709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710   (eval $ac_try) 2>&5
20711   ac_status=$?
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); }; }; then
20714   ac_header_compiler=yes
20715 else
20716   echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_compiler=no
20720 fi
20721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723 echo "${ECHO_T}$ac_header_compiler" >&6
20724
20725 # Is the header present?
20726 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20727 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20729 /* confdefs.h.  */
20730 _ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h.  */
20734 #include <inttypes.h>
20735 _ACEOF
20736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20738   ac_status=$?
20739   grep -v '^ *+' conftest.er1 >conftest.err
20740   rm -f conftest.er1
20741   cat conftest.err >&5
20742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743   (exit $ac_status); } >/dev/null; then
20744   if test -s conftest.err; then
20745     ac_cpp_err=$ac_c_preproc_warn_flag
20746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20747   else
20748     ac_cpp_err=
20749   fi
20750 else
20751   ac_cpp_err=yes
20752 fi
20753 if test -z "$ac_cpp_err"; then
20754   ac_header_preproc=yes
20755 else
20756   echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759   ac_header_preproc=no
20760 fi
20761 rm -f conftest.err conftest.$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6
20764
20765 # So?  What about this header?
20766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20767   yes:no: )
20768     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20769 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20770     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20771 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20772     ac_header_preproc=yes
20773     ;;
20774   no:yes:* )
20775     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20776 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20778 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20780 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20782 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20784 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20786 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20787     (
20788       cat <<\_ASBOX
20789 ## ----------------------------------- ##
20790 ## Report this to llvmbugs@cs.uiuc.edu ##
20791 ## ----------------------------------- ##
20792 _ASBOX
20793     ) |
20794       sed "s/^/$as_me: WARNING:     /" >&2
20795     ;;
20796 esac
20797 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20798 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20799 if test "${ac_cv_header_inttypes_h+set}" = set; then
20800   echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802   ac_cv_header_inttypes_h=$ac_header_preproc
20803 fi
20804 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20805 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20806
20807 fi
20808
20809
20810 if test "${ac_cv_header_stdint_h+set}" = set; then
20811   echo "$as_me:$LINENO: checking for stdint.h" >&5
20812 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20813 if test "${ac_cv_header_stdint_h+set}" = set; then
20814   echo $ECHO_N "(cached) $ECHO_C" >&6
20815 fi
20816 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20817 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20818 else
20819   # Is the header compilable?
20820 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20821 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20822 cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828 $ac_includes_default
20829 #include <stdint.h>
20830 _ACEOF
20831 rm -f conftest.$ac_objext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20833   (eval $ac_compile) 2>conftest.er1
20834   ac_status=$?
20835   grep -v '^ *+' conftest.er1 >conftest.err
20836   rm -f conftest.er1
20837   cat conftest.err >&5
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); } &&
20840          { ac_try='test -z "$ac_c_werror_flag"
20841                          || test ! -s conftest.err'
20842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843   (eval $ac_try) 2>&5
20844   ac_status=$?
20845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846   (exit $ac_status); }; } &&
20847          { ac_try='test -s conftest.$ac_objext'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; }; then
20853   ac_header_compiler=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_header_compiler=no
20859 fi
20860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6
20863
20864 # Is the header present?
20865 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20866 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <stdint.h>
20874 _ACEOF
20875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } >/dev/null; then
20883   if test -s conftest.err; then
20884     ac_cpp_err=$ac_c_preproc_warn_flag
20885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20886   else
20887     ac_cpp_err=
20888   fi
20889 else
20890   ac_cpp_err=yes
20891 fi
20892 if test -z "$ac_cpp_err"; then
20893   ac_header_preproc=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898   ac_header_preproc=no
20899 fi
20900 rm -f conftest.err conftest.$ac_ext
20901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20902 echo "${ECHO_T}$ac_header_preproc" >&6
20903
20904 # So?  What about this header?
20905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20906   yes:no: )
20907     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20908 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20909     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20910 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20911     ac_header_preproc=yes
20912     ;;
20913   no:yes:* )
20914     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20915 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20916     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20917 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20918     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20919 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20920     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20921 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20922     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20923 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20924     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20925 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20926     (
20927       cat <<\_ASBOX
20928 ## ----------------------------------- ##
20929 ## Report this to llvmbugs@cs.uiuc.edu ##
20930 ## ----------------------------------- ##
20931 _ASBOX
20932     ) |
20933       sed "s/^/$as_me: WARNING:     /" >&2
20934     ;;
20935 esac
20936 echo "$as_me:$LINENO: checking for stdint.h" >&5
20937 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20938 if test "${ac_cv_header_stdint_h+set}" = set; then
20939   echo $ECHO_N "(cached) $ECHO_C" >&6
20940 else
20941   ac_cv_header_stdint_h=$ac_header_preproc
20942 fi
20943 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20944 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20945
20946 fi
20947
20948
20949
20950 echo "$as_me:$LINENO: checking for pid_t" >&5
20951 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20952 if test "${ac_cv_type_pid_t+set}" = set; then
20953   echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955   cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961 $ac_includes_default
20962 int
20963 main ()
20964 {
20965 if ((pid_t *) 0)
20966   return 0;
20967 if (sizeof (pid_t))
20968   return 0;
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975   (eval $ac_compile) 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } &&
20982          { ac_try='test -z "$ac_c_werror_flag"
20983                          || test ! -s conftest.err'
20984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985   (eval $ac_try) 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); }; } &&
20989          { ac_try='test -s conftest.$ac_objext'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; }; then
20995   ac_cv_type_pid_t=yes
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ac_cv_type_pid_t=no
21001 fi
21002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 fi
21004 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21005 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21006 if test $ac_cv_type_pid_t = yes; then
21007   :
21008 else
21009
21010 cat >>confdefs.h <<_ACEOF
21011 #define pid_t int
21012 _ACEOF
21013
21014 fi
21015
21016 echo "$as_me:$LINENO: checking for size_t" >&5
21017 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21018 if test "${ac_cv_type_size_t+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027 $ac_includes_default
21028 int
21029 main ()
21030 {
21031 if ((size_t *) 0)
21032   return 0;
21033 if (sizeof (size_t))
21034   return 0;
21035   ;
21036   return 0;
21037 }
21038 _ACEOF
21039 rm -f conftest.$ac_objext
21040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21041   (eval $ac_compile) 2>conftest.er1
21042   ac_status=$?
21043   grep -v '^ *+' conftest.er1 >conftest.err
21044   rm -f conftest.er1
21045   cat conftest.err >&5
21046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047   (exit $ac_status); } &&
21048          { ac_try='test -z "$ac_c_werror_flag"
21049                          || test ! -s conftest.err'
21050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051   (eval $ac_try) 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); }; } &&
21055          { ac_try='test -s conftest.$ac_objext'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; }; then
21061   ac_cv_type_size_t=yes
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066 ac_cv_type_size_t=no
21067 fi
21068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21069 fi
21070 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21071 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21072 if test $ac_cv_type_size_t = yes; then
21073   :
21074 else
21075
21076 cat >>confdefs.h <<_ACEOF
21077 #define size_t unsigned
21078 _ACEOF
21079
21080 fi
21081
21082 echo "$as_me:$LINENO: checking for int64_t" >&5
21083 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21084 if test "${ac_cv_type_int64_t+set}" = set; then
21085   echo $ECHO_N "(cached) $ECHO_C" >&6
21086 else
21087   cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21093 $ac_includes_default
21094 int
21095 main ()
21096 {
21097 if ((int64_t *) 0)
21098   return 0;
21099 if (sizeof (int64_t))
21100   return 0;
21101   ;
21102   return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21107   (eval $ac_compile) 2>conftest.er1
21108   ac_status=$?
21109   grep -v '^ *+' conftest.er1 >conftest.err
21110   rm -f conftest.er1
21111   cat conftest.err >&5
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -z "$ac_c_werror_flag"
21115                          || test ! -s conftest.err'
21116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117   (eval $ac_try) 2>&5
21118   ac_status=$?
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); }; } &&
21121          { ac_try='test -s conftest.$ac_objext'
21122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123   (eval $ac_try) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; }; then
21127   ac_cv_type_int64_t=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ac_cv_type_int64_t=no
21133 fi
21134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21135 fi
21136 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21137 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21138 if test $ac_cv_type_int64_t = yes; then
21139
21140 cat >>confdefs.h <<_ACEOF
21141 #define HAVE_INT64_T 1
21142 _ACEOF
21143
21144
21145 else
21146   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21147 echo "$as_me: error: Type int64_t required but not found" >&2;}
21148    { (exit 1); exit 1; }; }
21149 fi
21150
21151 echo "$as_me:$LINENO: checking for uint64_t" >&5
21152 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21153 if test "${ac_cv_type_uint64_t+set}" = set; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156   cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 $ac_includes_default
21163 int
21164 main ()
21165 {
21166 if ((uint64_t *) 0)
21167   return 0;
21168 if (sizeof (uint64_t))
21169   return 0;
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176   (eval $ac_compile) 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } &&
21183          { ac_try='test -z "$ac_c_werror_flag"
21184                          || test ! -s conftest.err'
21185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186   (eval $ac_try) 2>&5
21187   ac_status=$?
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); }; } &&
21190          { ac_try='test -s conftest.$ac_objext'
21191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192   (eval $ac_try) 2>&5
21193   ac_status=$?
21194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195   (exit $ac_status); }; }; then
21196   ac_cv_type_uint64_t=yes
21197 else
21198   echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 ac_cv_type_uint64_t=no
21202 fi
21203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 fi
21205 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21206 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21207 if test $ac_cv_type_uint64_t = yes; then
21208
21209 cat >>confdefs.h <<_ACEOF
21210 #define HAVE_UINT64_T 1
21211 _ACEOF
21212
21213
21214 else
21215   echo "$as_me:$LINENO: checking for u_int64_t" >&5
21216 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21217 if test "${ac_cv_type_u_int64_t+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 $ac_includes_default
21227 int
21228 main ()
21229 {
21230 if ((u_int64_t *) 0)
21231   return 0;
21232 if (sizeof (u_int64_t))
21233   return 0;
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext
21239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21240   (eval $ac_compile) 2>conftest.er1
21241   ac_status=$?
21242   grep -v '^ *+' conftest.er1 >conftest.err
21243   rm -f conftest.er1
21244   cat conftest.err >&5
21245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246   (exit $ac_status); } &&
21247          { ac_try='test -z "$ac_c_werror_flag"
21248                          || test ! -s conftest.err'
21249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250   (eval $ac_try) 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); }; } &&
21254          { ac_try='test -s conftest.$ac_objext'
21255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256   (eval $ac_try) 2>&5
21257   ac_status=$?
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); }; }; then
21260   ac_cv_type_u_int64_t=yes
21261 else
21262   echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265 ac_cv_type_u_int64_t=no
21266 fi
21267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21268 fi
21269 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21270 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21271 if test $ac_cv_type_u_int64_t = yes; then
21272
21273 cat >>confdefs.h <<_ACEOF
21274 #define HAVE_U_INT64_T 1
21275 _ACEOF
21276
21277
21278 else
21279   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21280 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21281    { (exit 1); exit 1; }; }
21282 fi
21283
21284 fi
21285
21286 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21287 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21288 if test "${ac_cv_header_time+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291   cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 #include <sys/types.h>
21298 #include <sys/time.h>
21299 #include <time.h>
21300
21301 int
21302 main ()
21303 {
21304 if ((struct tm *) 0)
21305 return 0;
21306   ;
21307   return 0;
21308 }
21309 _ACEOF
21310 rm -f conftest.$ac_objext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21312   (eval $ac_compile) 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } &&
21319          { ac_try='test -z "$ac_c_werror_flag"
21320                          || test ! -s conftest.err'
21321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322   (eval $ac_try) 2>&5
21323   ac_status=$?
21324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325   (exit $ac_status); }; } &&
21326          { ac_try='test -s conftest.$ac_objext'
21327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328   (eval $ac_try) 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); }; }; then
21332   ac_cv_header_time=yes
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_cv_header_time=no
21338 fi
21339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21340 fi
21341 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21342 echo "${ECHO_T}$ac_cv_header_time" >&6
21343 if test $ac_cv_header_time = yes; then
21344
21345 cat >>confdefs.h <<\_ACEOF
21346 #define TIME_WITH_SYS_TIME 1
21347 _ACEOF
21348
21349 fi
21350
21351 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21352 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21353 if test "${ac_cv_struct_tm+set}" = set; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356   cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 #include <sys/types.h>
21363 #include <time.h>
21364
21365 int
21366 main ()
21367 {
21368 struct tm *tp; tp->tm_sec;
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375   (eval $ac_compile) 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_c_werror_flag"
21383                          || test ! -s conftest.err'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; } &&
21389          { ac_try='test -s conftest.$ac_objext'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; }; then
21395   ac_cv_struct_tm=time.h
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ac_cv_struct_tm=sys/time.h
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 fi
21404 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21405 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21406 if test $ac_cv_struct_tm = sys/time.h; then
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define TM_IN_SYS_TIME 1
21410 _ACEOF
21411
21412 fi
21413
21414
21415
21416   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21417 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21418   ac_ext=c
21419 ac_cpp='$CPP $CPPFLAGS'
21420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21423
21424   if test "$cross_compiling" = yes; then
21425   ac_c_printf_a=no
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428
21429     /* confdefs.h.  */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h.  */
21434
21435 #include <stdio.h>
21436 #include <stdlib.h>
21437
21438 int
21439 main ()
21440 {
21441
21442 volatile double A, B;
21443 char Buffer[100];
21444 A = 1;
21445 A /= 10.0;
21446 sprintf(Buffer, "%a", A);
21447 B = atof(Buffer);
21448 if (A != B)
21449   return (1);
21450 if (A != 0x1.999999999999ap-4)
21451   return (1);
21452 return (0);
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest$ac_exeext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459   (eval $ac_link) 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464   (eval $ac_try) 2>&5
21465   ac_status=$?
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; }; then
21468   ac_c_printf_a=yes
21469 else
21470   echo "$as_me: program exited with status $ac_status" >&5
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 ( exit $ac_status )
21475 ac_c_printf_a=no
21476 fi
21477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21478 fi
21479  ac_ext=c
21480 ac_cpp='$CPP $CPPFLAGS'
21481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484
21485  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21486 echo "${ECHO_T}$ac_c_printf_a" >&6
21487  if test "$ac_c_printf_a" = "yes"; then
21488
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_PRINTF_A 1
21491 _ACEOF
21492
21493  fi
21494
21495
21496 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21497 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21498 if test "${ac_cv_c_bigendian+set}" = set; then
21499   echo $ECHO_N "(cached) $ECHO_C" >&6
21500 else
21501   # See if sys/param.h defines the BYTE_ORDER macro.
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508 #include <sys/types.h>
21509 #include <sys/param.h>
21510
21511 int
21512 main ()
21513 {
21514 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21515  bogus endian macros
21516 #endif
21517
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21524   (eval $ac_compile) 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } &&
21531          { ac_try='test -z "$ac_c_werror_flag"
21532                          || test ! -s conftest.err'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest.$ac_objext'
21539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540   (eval $ac_try) 2>&5
21541   ac_status=$?
21542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543   (exit $ac_status); }; }; then
21544   # It does; now see whether it defined to BIG_ENDIAN or not.
21545 cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 #include <sys/types.h>
21552 #include <sys/param.h>
21553
21554 int
21555 main ()
21556 {
21557 #if BYTE_ORDER != BIG_ENDIAN
21558  not big endian
21559 #endif
21560
21561   ;
21562   return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567   (eval $ac_compile) 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } &&
21574          { ac_try='test -z "$ac_c_werror_flag"
21575                          || test ! -s conftest.err'
21576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577   (eval $ac_try) 2>&5
21578   ac_status=$?
21579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580   (exit $ac_status); }; } &&
21581          { ac_try='test -s conftest.$ac_objext'
21582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583   (eval $ac_try) 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); }; }; then
21587   ac_cv_c_bigendian=yes
21588 else
21589   echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592 ac_cv_c_bigendian=no
21593 fi
21594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 # It does not; compile a test program.
21600 if test "$cross_compiling" = yes; then
21601   # try to guess the endianness by grepping values into an object file
21602   ac_cv_c_bigendian=unknown
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21610 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21611 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21612 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21613 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21614 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21615 int
21616 main ()
21617 {
21618  _ascii (); _ebcdic ();
21619   ;
21620   return 0;
21621 }
21622 _ACEOF
21623 rm -f conftest.$ac_objext
21624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21625   (eval $ac_compile) 2>conftest.er1
21626   ac_status=$?
21627   grep -v '^ *+' conftest.er1 >conftest.err
21628   rm -f conftest.er1
21629   cat conftest.err >&5
21630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631   (exit $ac_status); } &&
21632          { ac_try='test -z "$ac_c_werror_flag"
21633                          || test ! -s conftest.err'
21634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635   (eval $ac_try) 2>&5
21636   ac_status=$?
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); }; } &&
21639          { ac_try='test -s conftest.$ac_objext'
21640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641   (eval $ac_try) 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); }; }; then
21645   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21646   ac_cv_c_bigendian=yes
21647 fi
21648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21649   if test "$ac_cv_c_bigendian" = unknown; then
21650     ac_cv_c_bigendian=no
21651   else
21652     # finding both strings is unlikely to happen, but who knows?
21653     ac_cv_c_bigendian=unknown
21654   fi
21655 fi
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21659
21660 fi
21661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21662 else
21663   cat >conftest.$ac_ext <<_ACEOF
21664 /* confdefs.h.  */
21665 _ACEOF
21666 cat confdefs.h >>conftest.$ac_ext
21667 cat >>conftest.$ac_ext <<_ACEOF
21668 /* end confdefs.h.  */
21669 int
21670 main ()
21671 {
21672   /* Are we little or big endian?  From Harbison&Steele.  */
21673   union
21674   {
21675     long l;
21676     char c[sizeof (long)];
21677   } u;
21678   u.l = 1;
21679   exit (u.c[sizeof (long) - 1] == 1);
21680 }
21681 _ACEOF
21682 rm -f conftest$ac_exeext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684   (eval $ac_link) 2>&5
21685   ac_status=$?
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689   (eval $ac_try) 2>&5
21690   ac_status=$?
21691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); }; }; then
21693   ac_cv_c_bigendian=no
21694 else
21695   echo "$as_me: program exited with status $ac_status" >&5
21696 echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.$ac_ext >&5
21698
21699 ( exit $ac_status )
21700 ac_cv_c_bigendian=yes
21701 fi
21702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21703 fi
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 fi
21707 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21708 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21709 case $ac_cv_c_bigendian in
21710   yes)
21711     ENDIAN=big
21712  ;;
21713   no)
21714     ENDIAN=little
21715  ;;
21716   *)
21717     { { echo "$as_me:$LINENO: error: unknown endianness
21718 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21719 echo "$as_me: error: unknown endianness
21720 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21721    { (exit 1); exit 1; }; } ;;
21722 esac
21723
21724
21725 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21726 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21727 if test "${ac_cv_cxx_namespaces+set}" = set; then
21728   echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730   ac_ext=cc
21731 ac_cpp='$CXXCPP $CPPFLAGS'
21732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21735
21736  cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 namespace Outer { namespace Inner { int i = 0; }}
21743 int
21744 main ()
21745 {
21746 using namespace Outer::Inner; return i;
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest.$ac_objext
21752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21753   (eval $ac_compile) 2>conftest.er1
21754   ac_status=$?
21755   grep -v '^ *+' conftest.er1 >conftest.err
21756   rm -f conftest.er1
21757   cat conftest.err >&5
21758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759   (exit $ac_status); } &&
21760          { ac_try='test -z "$ac_cxx_werror_flag"
21761                          || test ! -s conftest.err'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; } &&
21767          { ac_try='test -s conftest.$ac_objext'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   ac_cv_cxx_namespaces=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778 ac_cv_cxx_namespaces=no
21779 fi
21780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21781  ac_ext=c
21782 ac_cpp='$CPP $CPPFLAGS'
21783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21786
21787
21788 fi
21789 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21790 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21791 if test "$ac_cv_cxx_namespaces" = yes; then
21792
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_NAMESPACES
21795 _ACEOF
21796
21797 fi
21798
21799 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21800 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21801 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21802   echo $ECHO_N "(cached) $ECHO_C" >&6
21803 else
21804
21805   ac_ext=cc
21806 ac_cpp='$CXXCPP $CPPFLAGS'
21807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21810
21811   cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #include <ext/hash_map>
21818 #ifdef HAVE_NAMESPACES
21819 using namespace std;
21820 #endif
21821 int
21822 main ()
21823 {
21824 hash_map<int, int> t;
21825   ;
21826   return 0;
21827 }
21828 _ACEOF
21829 rm -f conftest.$ac_objext
21830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831   (eval $ac_compile) 2>conftest.er1
21832   ac_status=$?
21833   grep -v '^ *+' conftest.er1 >conftest.err
21834   rm -f conftest.er1
21835   cat conftest.err >&5
21836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837   (exit $ac_status); } &&
21838          { ac_try='test -z "$ac_cxx_werror_flag"
21839                          || test ! -s conftest.err'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; } &&
21845          { ac_try='test -s conftest.$ac_objext'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_cv_cxx_have_std_ext_hash_map=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_cv_cxx_have_std_ext_hash_map=no
21857 fi
21858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21859   ac_ext=c
21860 ac_cpp='$CPP $CPPFLAGS'
21861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21864
21865 fi
21866 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21867 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21868  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21869  then
21870
21871 cat >>confdefs.h <<\_ACEOF
21872 #define HAVE_STD_EXT_HASH_MAP 1
21873 _ACEOF
21874
21875  else
21876
21877 cat >>confdefs.h <<\_ACEOF
21878 #define HAVE_STD_EXT_HASH_MAP 0
21879 _ACEOF
21880
21881  fi
21882
21883  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21884 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21885 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888
21889   ac_ext=cc
21890 ac_cpp='$CXXCPP $CPPFLAGS'
21891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21894
21895   cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h.  */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h.  */
21901 #include <ext/hash_map>
21902 #ifdef HAVE_NAMESPACES
21903 using namespace __gnu_cxx;
21904 #endif
21905 int
21906 main ()
21907 {
21908 hash_map<int,int> t;
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest.$ac_objext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21915   (eval $ac_compile) 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -z "$ac_cxx_werror_flag"
21923                          || test ! -s conftest.err'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; } &&
21929          { ac_try='test -s conftest.$ac_objext'
21930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931   (eval $ac_try) 2>&5
21932   ac_status=$?
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); }; }; then
21935   ac_cv_cxx_have_gnu_ext_hash_map=yes
21936 else
21937   echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 ac_cv_cxx_have_gnu_ext_hash_map=no
21941 fi
21942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21943   ac_ext=c
21944 ac_cpp='$CPP $CPPFLAGS'
21945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949 fi
21950 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21951 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21952  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21953  then
21954
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_GNU_EXT_HASH_MAP 1
21957 _ACEOF
21958
21959  else
21960
21961 cat >>confdefs.h <<\_ACEOF
21962 #define HAVE_GNU_EXT_HASH_MAP 0
21963 _ACEOF
21964
21965  fi
21966
21967  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21968 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21969 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21970   echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972
21973   ac_ext=cc
21974 ac_cpp='$CXXCPP $CPPFLAGS'
21975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21978
21979   cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h.  */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h.  */
21985 #include <hash_map>
21986 int
21987 main ()
21988 {
21989 hash_map<int,int> t;
21990   ;
21991   return 0;
21992 }
21993 _ACEOF
21994 rm -f conftest.$ac_objext
21995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21996   (eval $ac_compile) 2>conftest.er1
21997   ac_status=$?
21998   grep -v '^ *+' conftest.er1 >conftest.err
21999   rm -f conftest.er1
22000   cat conftest.err >&5
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); } &&
22003          { ac_try='test -z "$ac_cxx_werror_flag"
22004                          || test ! -s conftest.err'
22005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006   (eval $ac_try) 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; } &&
22010          { ac_try='test -s conftest.$ac_objext'
22011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012   (eval $ac_try) 2>&5
22013   ac_status=$?
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); }; }; then
22016   ac_cv_cxx_have_global_hash_map=yes
22017 else
22018   echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021 ac_cv_cxx_have_global_hash_map=no
22022 fi
22023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22024   ac_ext=c
22025 ac_cpp='$CPP $CPPFLAGS'
22026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22029
22030 fi
22031 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
22032 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
22033  if test "$ac_cv_cxx_have_global_hash_map" = yes
22034  then
22035
22036 cat >>confdefs.h <<\_ACEOF
22037 #define HAVE_GLOBAL_HASH_MAP 1
22038 _ACEOF
22039
22040  else
22041
22042 cat >>confdefs.h <<\_ACEOF
22043 #define HAVE_GLOBAL_HASH_MAP 0
22044 _ACEOF
22045
22046  fi
22047
22048 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22049 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22050 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22051   echo $ECHO_N "(cached) $ECHO_C" >&6
22052 else
22053
22054   ac_ext=cc
22055 ac_cpp='$CXXCPP $CPPFLAGS'
22056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22059
22060   cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 #include <ext/hash_set>
22067 #ifdef HAVE_NAMESPACES
22068 using namespace std;
22069 #endif
22070 int
22071 main ()
22072 {
22073 hash_set<int> t;
22074   ;
22075   return 0;
22076 }
22077 _ACEOF
22078 rm -f conftest.$ac_objext
22079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22080   (eval $ac_compile) 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } &&
22087          { ac_try='test -z "$ac_cxx_werror_flag"
22088                          || test ! -s conftest.err'
22089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090   (eval $ac_try) 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; } &&
22094          { ac_try='test -s conftest.$ac_objext'
22095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096   (eval $ac_try) 2>&5
22097   ac_status=$?
22098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099   (exit $ac_status); }; }; then
22100   ac_cv_cxx_have_std_ext_hash_set=yes
22101 else
22102   echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22104
22105 ac_cv_cxx_have_std_ext_hash_set=no
22106 fi
22107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22108   ac_ext=c
22109 ac_cpp='$CPP $CPPFLAGS'
22110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22113
22114 fi
22115 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22116 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22117  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22118  then
22119
22120 cat >>confdefs.h <<\_ACEOF
22121 #define HAVE_STD_EXT_HASH_SET 1
22122 _ACEOF
22123
22124  else
22125
22126 cat >>confdefs.h <<\_ACEOF
22127 #define HAVE_STD_EXT_HASH_SET 0
22128 _ACEOF
22129
22130  fi
22131
22132  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22133 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22134 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137
22138   ac_ext=cc
22139 ac_cpp='$CXXCPP $CPPFLAGS'
22140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22143
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 #include <ext/hash_set>
22151 #ifdef HAVE_NAMESPACES
22152 using namespace __gnu_cxx;
22153 #endif
22154 int
22155 main ()
22156 {
22157 hash_set<int> t;
22158   ;
22159   return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22164   (eval $ac_compile) 2>conftest.er1
22165   ac_status=$?
22166   grep -v '^ *+' conftest.er1 >conftest.err
22167   rm -f conftest.er1
22168   cat conftest.err >&5
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } &&
22171          { ac_try='test -z "$ac_cxx_werror_flag"
22172                          || test ! -s conftest.err'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; } &&
22178          { ac_try='test -s conftest.$ac_objext'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; }; then
22184   ac_cv_cxx_have_gnu_ext_hash_set=yes
22185 else
22186   echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22188
22189 ac_cv_cxx_have_gnu_ext_hash_set=no
22190 fi
22191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22192   ac_ext=c
22193 ac_cpp='$CPP $CPPFLAGS'
22194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22200 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22201  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22202  then
22203
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_GNU_EXT_HASH_SET 1
22206 _ACEOF
22207
22208  else
22209
22210 cat >>confdefs.h <<\_ACEOF
22211 #define HAVE_GNU_EXT_HASH_SET 0
22212 _ACEOF
22213
22214  fi
22215
22216  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22217 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22218 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22219   echo $ECHO_N "(cached) $ECHO_C" >&6
22220 else
22221
22222   ac_ext=cc
22223 ac_cpp='$CXXCPP $CPPFLAGS'
22224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22227
22228   cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234 #include <hash_set>
22235 int
22236 main ()
22237 {
22238 hash_set<int> t; return 0;
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245   (eval $ac_compile) 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_cxx_werror_flag"
22253                          || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest.$ac_objext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   ac_cv_cxx_have_global_hash_set=yes
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270 ac_cv_cxx_have_global_hash_set=no
22271 fi
22272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22273   ac_ext=c
22274 ac_cpp='$CPP $CPPFLAGS'
22275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22278
22279 fi
22280 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22281 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22282  if test "$ac_cv_cxx_have_global_hash_set" = yes
22283  then
22284
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_GLOBAL_HASH_SET 1
22287 _ACEOF
22288
22289  else
22290
22291 cat >>confdefs.h <<\_ACEOF
22292 #define HAVE_GLOBAL_HASH_SET 0
22293 _ACEOF
22294
22295  fi
22296
22297 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22298 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22299 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22300   echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302
22303   ac_ext=cc
22304 ac_cpp='$CXXCPP $CPPFLAGS'
22305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22308
22309   cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 #include <iterator>
22316 #ifdef HAVE_NAMESPACES
22317 using namespace std;
22318 #endif
22319 int
22320 main ()
22321 {
22322 iterator<int,int,int> t; return 0;
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 rm -f conftest.$ac_objext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22329   (eval $ac_compile) 2>conftest.er1
22330   ac_status=$?
22331   grep -v '^ *+' conftest.er1 >conftest.err
22332   rm -f conftest.er1
22333   cat conftest.err >&5
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); } &&
22336          { ac_try='test -z "$ac_cxx_werror_flag"
22337                          || test ! -s conftest.err'
22338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339   (eval $ac_try) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; } &&
22343          { ac_try='test -s conftest.$ac_objext'
22344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345   (eval $ac_try) 2>&5
22346   ac_status=$?
22347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348   (exit $ac_status); }; }; then
22349   ac_cv_cxx_have_std_iterator=yes
22350 else
22351   echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ac_cv_cxx_have_std_iterator=no
22355 fi
22356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22357   ac_ext=c
22358 ac_cpp='$CPP $CPPFLAGS'
22359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362
22363
22364 fi
22365 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22366 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22367 if test "$ac_cv_cxx_have_std_iterator" = yes
22368 then
22369
22370 cat >>confdefs.h <<\_ACEOF
22371 #define HAVE_STD_ITERATOR 1
22372 _ACEOF
22373
22374 else
22375
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_STD_ITERATOR 0
22378 _ACEOF
22379
22380 fi
22381
22382 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22383 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22384 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22385   echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387
22388   ac_ext=cc
22389 ac_cpp='$CXXCPP $CPPFLAGS'
22390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22393
22394   cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400 #include <iterator>
22401 #ifdef HAVE_NAMESPACES
22402 using namespace std;
22403 #endif
22404 int
22405 main ()
22406 {
22407 bidirectional_iterator<int,int> t; return 0;
22408   ;
22409   return 0;
22410 }
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22414   (eval $ac_compile) 2>conftest.er1
22415   ac_status=$?
22416   grep -v '^ *+' conftest.er1 >conftest.err
22417   rm -f conftest.er1
22418   cat conftest.err >&5
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); } &&
22421          { ac_try='test -z "$ac_cxx_werror_flag"
22422                          || test ! -s conftest.err'
22423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424   (eval $ac_try) 2>&5
22425   ac_status=$?
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); }; } &&
22428          { ac_try='test -s conftest.$ac_objext'
22429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430   (eval $ac_try) 2>&5
22431   ac_status=$?
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); }; }; then
22434   ac_cv_cxx_have_bi_iterator=yes
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439 ac_cv_cxx_have_bi_iterator=no
22440 fi
22441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22442   ac_ext=c
22443 ac_cpp='$CPP $CPPFLAGS'
22444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22447
22448
22449 fi
22450 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22451 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22452 if test "$ac_cv_cxx_have_bi_iterator" = yes
22453 then
22454
22455 cat >>confdefs.h <<\_ACEOF
22456 #define HAVE_BI_ITERATOR 1
22457 _ACEOF
22458
22459 else
22460
22461 cat >>confdefs.h <<\_ACEOF
22462 #define HAVE_BI_ITERATOR 0
22463 _ACEOF
22464
22465 fi
22466
22467 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22468 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22469 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22470   echo $ECHO_N "(cached) $ECHO_C" >&6
22471 else
22472
22473   ac_ext=cc
22474 ac_cpp='$CXXCPP $CPPFLAGS'
22475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22478
22479   cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 #include <iterator>
22486 #ifdef HAVE_NAMESPACES
22487 using namespace std;
22488 #endif
22489 int
22490 main ()
22491 {
22492 forward_iterator<int,int> t; return 0;
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22499   (eval $ac_compile) 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } &&
22506          { ac_try='test -z "$ac_cxx_werror_flag"
22507                          || test ! -s conftest.err'
22508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509   (eval $ac_try) 2>&5
22510   ac_status=$?
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); }; } &&
22513          { ac_try='test -s conftest.$ac_objext'
22514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515   (eval $ac_try) 2>&5
22516   ac_status=$?
22517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518   (exit $ac_status); }; }; then
22519   ac_cv_cxx_have_fwd_iterator=yes
22520 else
22521   echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 ac_cv_cxx_have_fwd_iterator=no
22525 fi
22526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22527   ac_ext=c
22528 ac_cpp='$CPP $CPPFLAGS'
22529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22532
22533
22534 fi
22535 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22536 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22537 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22538 then
22539
22540 cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_FWD_ITERATOR 1
22542 _ACEOF
22543
22544 else
22545
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_FWD_ITERATOR 0
22548 _ACEOF
22549
22550 fi
22551
22552
22553
22554 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22555 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22556 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22557   echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559   ac_ext=cc
22560 ac_cpp='$CXXCPP $CPPFLAGS'
22561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22564
22565   cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h.  */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h.  */
22571 #include <math.h>
22572                      int foo(float f) {return isnan(f);}
22573 _ACEOF
22574 rm -f conftest.$ac_objext
22575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22576   (eval $ac_compile) 2>conftest.er1
22577   ac_status=$?
22578   grep -v '^ *+' conftest.er1 >conftest.err
22579   rm -f conftest.er1
22580   cat conftest.err >&5
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } &&
22583          { ac_try='test -z "$ac_cxx_werror_flag"
22584                          || test ! -s conftest.err'
22585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586   (eval $ac_try) 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }; } &&
22590          { ac_try='test -s conftest.$ac_objext'
22591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592   (eval $ac_try) 2>&5
22593   ac_status=$?
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); }; }; then
22596   ac_cv_func_isnan_in_math_h=yes
22597 else
22598   echo "$as_me: failed program was:" >&5
22599 sed 's/^/| /' conftest.$ac_ext >&5
22600
22601 ac_cv_func_isnan_in_math_h=no
22602 fi
22603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22604  ac_ext=c
22605 ac_cpp='$CPP $CPPFLAGS'
22606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22609
22610 fi
22611 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22612 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22613  if test "$ac_cv_func_isnan_in_math_h" = "yes"
22614  then
22615
22616 cat >>confdefs.h <<\_ACEOF
22617 #define HAVE_ISNAN_IN_MATH_H 1
22618 _ACEOF
22619
22620  fi
22621 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22622 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22623 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626   ac_ext=cc
22627 ac_cpp='$CXXCPP $CPPFLAGS'
22628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22631
22632   cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 #include <cmath>
22639                      int foo(float f) {return isnan(f);}
22640 _ACEOF
22641 rm -f conftest.$ac_objext
22642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22643   (eval $ac_compile) 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } &&
22650          { ac_try='test -z "$ac_cxx_werror_flag"
22651                          || test ! -s conftest.err'
22652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22653   (eval $ac_try) 2>&5
22654   ac_status=$?
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); }; } &&
22657          { ac_try='test -s conftest.$ac_objext'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; }; then
22663   ac_cv_func_isnan_in_cmath=yes
22664 else
22665   echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22667
22668 ac_cv_func_isnan_in_cmath=no
22669 fi
22670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22671  ac_ext=c
22672 ac_cpp='$CPP $CPPFLAGS'
22673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22676
22677 fi
22678 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22679 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22680  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22681  then
22682
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_ISNAN_IN_CMATH 1
22685 _ACEOF
22686
22687  fi
22688 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22689 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22690 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22691   echo $ECHO_N "(cached) $ECHO_C" >&6
22692 else
22693   ac_ext=cc
22694 ac_cpp='$CXXCPP $CPPFLAGS'
22695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22698
22699   cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705 #include <cmath>
22706                      using std::isnan; int foo(float f) {return isnan(f);}
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22710   (eval $ac_compile) 2>conftest.er1
22711   ac_status=$?
22712   grep -v '^ *+' conftest.er1 >conftest.err
22713   rm -f conftest.er1
22714   cat conftest.err >&5
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } &&
22717          { ac_try='test -z "$ac_cxx_werror_flag"
22718                          || test ! -s conftest.err'
22719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720   (eval $ac_try) 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; } &&
22724          { ac_try='test -s conftest.$ac_objext'
22725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726   (eval $ac_try) 2>&5
22727   ac_status=$?
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); }; }; then
22730   ac_cv_func_std_isnan_in_cmath=yes
22731 else
22732   echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 ac_cv_func_std_isnan_in_cmath=no
22736 fi
22737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22738  ac_ext=c
22739 ac_cpp='$CPP $CPPFLAGS'
22740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22743
22744 fi
22745 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22746 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22747  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22748  then
22749
22750 cat >>confdefs.h <<\_ACEOF
22751 #define HAVE_STD_ISNAN_IN_CMATH 1
22752 _ACEOF
22753
22754  fi
22755
22756
22757 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22758 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22759 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22760   echo $ECHO_N "(cached) $ECHO_C" >&6
22761 else
22762   ac_ext=cc
22763 ac_cpp='$CXXCPP $CPPFLAGS'
22764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22767
22768   cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 #include <math.h>
22775                      int foo(float f) {return isinf(f);}
22776 _ACEOF
22777 rm -f conftest.$ac_objext
22778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22779   (eval $ac_compile) 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } &&
22786          { ac_try='test -z "$ac_cxx_werror_flag"
22787                          || test ! -s conftest.err'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; } &&
22793          { ac_try='test -s conftest.$ac_objext'
22794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795   (eval $ac_try) 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ac_cv_func_isinf_in_math_h=yes
22800 else
22801   echo "$as_me: failed program was:" >&5
22802 sed 's/^/| /' conftest.$ac_ext >&5
22803
22804 ac_cv_func_isinf_in_math_h=no
22805 fi
22806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22807  ac_ext=c
22808 ac_cpp='$CPP $CPPFLAGS'
22809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22812
22813 fi
22814 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22815 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22816  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22817  then
22818
22819 cat >>confdefs.h <<\_ACEOF
22820 #define HAVE_ISINF_IN_MATH_H 1
22821 _ACEOF
22822
22823  fi
22824 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22825 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22826 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829   ac_ext=cc
22830 ac_cpp='$CXXCPP $CPPFLAGS'
22831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22834
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 #include <cmath>
22842                      int foo(float f) {return isinf(f);}
22843 _ACEOF
22844 rm -f conftest.$ac_objext
22845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22846   (eval $ac_compile) 2>conftest.er1
22847   ac_status=$?
22848   grep -v '^ *+' conftest.er1 >conftest.err
22849   rm -f conftest.er1
22850   cat conftest.err >&5
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); } &&
22853          { ac_try='test -z "$ac_cxx_werror_flag"
22854                          || test ! -s conftest.err'
22855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22856   (eval $ac_try) 2>&5
22857   ac_status=$?
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); }; } &&
22860          { ac_try='test -s conftest.$ac_objext'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; }; then
22866   ac_cv_func_isinf_in_cmath=yes
22867 else
22868   echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 ac_cv_func_isinf_in_cmath=no
22872 fi
22873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22874  ac_ext=c
22875 ac_cpp='$CPP $CPPFLAGS'
22876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22879
22880 fi
22881 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22882 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22883  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22884  then
22885
22886 cat >>confdefs.h <<\_ACEOF
22887 #define HAVE_ISINF_IN_CMATH 1
22888 _ACEOF
22889
22890  fi
22891 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22892 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22893 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22894   echo $ECHO_N "(cached) $ECHO_C" >&6
22895 else
22896   ac_ext=cc
22897 ac_cpp='$CXXCPP $CPPFLAGS'
22898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22901
22902   cat >conftest.$ac_ext <<_ACEOF
22903 /* confdefs.h.  */
22904 _ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h.  */
22908 #include <cmath>
22909                      using std::isinf; int foo(float f) {return isinf(f);}
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22913   (eval $ac_compile) 2>conftest.er1
22914   ac_status=$?
22915   grep -v '^ *+' conftest.er1 >conftest.err
22916   rm -f conftest.er1
22917   cat conftest.err >&5
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); } &&
22920          { ac_try='test -z "$ac_cxx_werror_flag"
22921                          || test ! -s conftest.err'
22922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923   (eval $ac_try) 2>&5
22924   ac_status=$?
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); }; } &&
22927          { ac_try='test -s conftest.$ac_objext'
22928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; }; then
22933   ac_cv_func_std_isinf_in_cmath=yes
22934 else
22935   echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 ac_cv_func_std_isinf_in_cmath=no
22939 fi
22940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22941  ac_ext=c
22942 ac_cpp='$CPP $CPPFLAGS'
22943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22946
22947 fi
22948 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22949 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22950  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22951  then
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_STD_ISINF_IN_CMATH 1
22955 _ACEOF
22956
22957  fi
22958 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22959 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22960 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   ac_ext=cc
22964 ac_cpp='$CXXCPP $CPPFLAGS'
22965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22968
22969   cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975 #include <ieeefp.h>
22976                      int foo(float f) {return finite(f);}
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980   (eval $ac_compile) 2>conftest.er1
22981   ac_status=$?
22982   grep -v '^ *+' conftest.er1 >conftest.err
22983   rm -f conftest.er1
22984   cat conftest.err >&5
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } &&
22987          { ac_try='test -z "$ac_cxx_werror_flag"
22988                          || test ! -s conftest.err'
22989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990   (eval $ac_try) 2>&5
22991   ac_status=$?
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); }; } &&
22994          { ac_try='test -s conftest.$ac_objext'
22995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996   (eval $ac_try) 2>&5
22997   ac_status=$?
22998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999   (exit $ac_status); }; }; then
23000   ac_cv_func_finite_in_ieeefp_h=yes
23001 else
23002   echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005 ac_cv_func_finite_in_ieeefp_h=no
23006 fi
23007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23008  ac_ext=c
23009 ac_cpp='$CPP $CPPFLAGS'
23010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23013
23014 fi
23015 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23016 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23017  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
23018  then
23019
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_FINITE_IN_IEEEFP_H 1
23022 _ACEOF
23023
23024  fi
23025
23026
23027 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23028 # for constant arguments.  Useless!
23029 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23030 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23031 if test "${ac_cv_working_alloca_h+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040 #include <alloca.h>
23041 int
23042 main ()
23043 {
23044 char *p = (char *) alloca (2 * sizeof (int));
23045   ;
23046   return 0;
23047 }
23048 _ACEOF
23049 rm -f conftest.$ac_objext conftest$ac_exeext
23050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23051   (eval $ac_link) 2>conftest.er1
23052   ac_status=$?
23053   grep -v '^ *+' conftest.er1 >conftest.err
23054   rm -f conftest.er1
23055   cat conftest.err >&5
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } &&
23058          { ac_try='test -z "$ac_c_werror_flag"
23059                          || test ! -s conftest.err'
23060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061   (eval $ac_try) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; } &&
23065          { ac_try='test -s conftest$ac_exeext'
23066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067   (eval $ac_try) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; }; then
23071   ac_cv_working_alloca_h=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ac_cv_working_alloca_h=no
23077 fi
23078 rm -f conftest.err conftest.$ac_objext \
23079       conftest$ac_exeext conftest.$ac_ext
23080 fi
23081 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23082 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23083 if test $ac_cv_working_alloca_h = yes; then
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_ALLOCA_H 1
23087 _ACEOF
23088
23089 fi
23090
23091 echo "$as_me:$LINENO: checking for alloca" >&5
23092 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23093 if test "${ac_cv_func_alloca_works+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 #ifdef __GNUC__
23103 # define alloca __builtin_alloca
23104 #else
23105 # ifdef _MSC_VER
23106 #  include <malloc.h>
23107 #  define alloca _alloca
23108 # else
23109 #  if HAVE_ALLOCA_H
23110 #   include <alloca.h>
23111 #  else
23112 #   ifdef _AIX
23113  #pragma alloca
23114 #   else
23115 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23116 char *alloca ();
23117 #    endif
23118 #   endif
23119 #  endif
23120 # endif
23121 #endif
23122
23123 int
23124 main ()
23125 {
23126 char *p = (char *) alloca (1);
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext conftest$ac_exeext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133   (eval $ac_link) 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } &&
23140          { ac_try='test -z "$ac_c_werror_flag"
23141                          || test ! -s conftest.err'
23142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143   (eval $ac_try) 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; } &&
23147          { ac_try='test -s conftest$ac_exeext'
23148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149   (eval $ac_try) 2>&5
23150   ac_status=$?
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); }; }; then
23153   ac_cv_func_alloca_works=yes
23154 else
23155   echo "$as_me: failed program was:" >&5
23156 sed 's/^/| /' conftest.$ac_ext >&5
23157
23158 ac_cv_func_alloca_works=no
23159 fi
23160 rm -f conftest.err conftest.$ac_objext \
23161       conftest$ac_exeext conftest.$ac_ext
23162 fi
23163 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23164 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23165
23166 if test $ac_cv_func_alloca_works = yes; then
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_ALLOCA 1
23170 _ACEOF
23171
23172 else
23173   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23174 # that cause trouble.  Some versions do not even contain alloca or
23175 # contain a buggy version.  If you still want to use their alloca,
23176 # use ar to extract alloca.o from them instead of compiling alloca.c.
23177
23178 ALLOCA=alloca.$ac_objext
23179
23180 cat >>confdefs.h <<\_ACEOF
23181 #define C_ALLOCA 1
23182 _ACEOF
23183
23184
23185 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23186 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23187 if test "${ac_cv_os_cray+set}" = set; then
23188   echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190   cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196 #if defined(CRAY) && ! defined(CRAY2)
23197 webecray
23198 #else
23199 wenotbecray
23200 #endif
23201
23202 _ACEOF
23203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23204   $EGREP "webecray" >/dev/null 2>&1; then
23205   ac_cv_os_cray=yes
23206 else
23207   ac_cv_os_cray=no
23208 fi
23209 rm -f conftest*
23210
23211 fi
23212 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23213 echo "${ECHO_T}$ac_cv_os_cray" >&6
23214 if test $ac_cv_os_cray = yes; then
23215   for ac_func in _getb67 GETB67 getb67; do
23216     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23217 echo "$as_me:$LINENO: checking for $ac_func" >&5
23218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23219 if eval "test \"\${$as_ac_var+set}\" = set"; then
23220   echo $ECHO_N "(cached) $ECHO_C" >&6
23221 else
23222   cat >conftest.$ac_ext <<_ACEOF
23223 /* confdefs.h.  */
23224 _ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h.  */
23228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23230 #define $ac_func innocuous_$ac_func
23231
23232 /* System header to define __stub macros and hopefully few prototypes,
23233     which can conflict with char $ac_func (); below.
23234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23235     <limits.h> exists even on freestanding compilers.  */
23236
23237 #ifdef __STDC__
23238 # include <limits.h>
23239 #else
23240 # include <assert.h>
23241 #endif
23242
23243 #undef $ac_func
23244
23245 /* Override any gcc2 internal prototype to avoid an error.  */
23246 #ifdef __cplusplus
23247 extern "C"
23248 {
23249 #endif
23250 /* We use char because int might match the return type of a gcc2
23251    builtin and then its argument prototype would still apply.  */
23252 char $ac_func ();
23253 /* The GNU C library defines this for functions which it implements
23254     to always fail with ENOSYS.  Some functions are actually named
23255     something starting with __ and the normal name is an alias.  */
23256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23257 choke me
23258 #else
23259 char (*f) () = $ac_func;
23260 #endif
23261 #ifdef __cplusplus
23262 }
23263 #endif
23264
23265 int
23266 main ()
23267 {
23268 return f != $ac_func;
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext conftest$ac_exeext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23275   (eval $ac_link) 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag"
23283                          || test ! -s conftest.err'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; } &&
23289          { ac_try='test -s conftest$ac_exeext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   eval "$as_ac_var=yes"
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 eval "$as_ac_var=no"
23301 fi
23302 rm -f conftest.err conftest.$ac_objext \
23303       conftest$ac_exeext conftest.$ac_ext
23304 fi
23305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23307 if test `eval echo '${'$as_ac_var'}'` = yes; then
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define CRAY_STACKSEG_END $ac_func
23311 _ACEOF
23312
23313     break
23314 fi
23315
23316   done
23317 fi
23318
23319 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23320 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23321 if test "${ac_cv_c_stack_direction+set}" = set; then
23322   echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324   if test "$cross_compiling" = yes; then
23325   ac_cv_c_stack_direction=0
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333 int
23334 find_stack_direction ()
23335 {
23336   static char *addr = 0;
23337   auto char dummy;
23338   if (addr == 0)
23339     {
23340       addr = &dummy;
23341       return find_stack_direction ();
23342     }
23343   else
23344     return (&dummy > addr) ? 1 : -1;
23345 }
23346
23347 int
23348 main ()
23349 {
23350   exit (find_stack_direction () < 0);
23351 }
23352 _ACEOF
23353 rm -f conftest$ac_exeext
23354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23355   (eval $ac_link) 2>&5
23356   ac_status=$?
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23360   (eval $ac_try) 2>&5
23361   ac_status=$?
23362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); }; }; then
23364   ac_cv_c_stack_direction=1
23365 else
23366   echo "$as_me: program exited with status $ac_status" >&5
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370 ( exit $ac_status )
23371 ac_cv_c_stack_direction=-1
23372 fi
23373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23374 fi
23375 fi
23376 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23377 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23378
23379 cat >>confdefs.h <<_ACEOF
23380 #define STACK_DIRECTION $ac_cv_c_stack_direction
23381 _ACEOF
23382
23383
23384 fi
23385
23386
23387
23388 for ac_header in stdlib.h unistd.h
23389 do
23390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23392   echo "$as_me:$LINENO: checking for $ac_header" >&5
23393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23395   echo $ECHO_N "(cached) $ECHO_C" >&6
23396 fi
23397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23399 else
23400   # Is the header compilable?
23401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409 $ac_includes_default
23410 #include <$ac_header>
23411 _ACEOF
23412 rm -f conftest.$ac_objext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23414   (eval $ac_compile) 2>conftest.er1
23415   ac_status=$?
23416   grep -v '^ *+' conftest.er1 >conftest.err
23417   rm -f conftest.er1
23418   cat conftest.err >&5
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } &&
23421          { ac_try='test -z "$ac_c_werror_flag"
23422                          || test ! -s conftest.err'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; } &&
23428          { ac_try='test -s conftest.$ac_objext'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; }; then
23434   ac_header_compiler=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439 ac_header_compiler=no
23440 fi
23441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23443 echo "${ECHO_T}$ac_header_compiler" >&6
23444
23445 # Is the header present?
23446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23448 cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454 #include <$ac_header>
23455 _ACEOF
23456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23458   ac_status=$?
23459   grep -v '^ *+' conftest.er1 >conftest.err
23460   rm -f conftest.er1
23461   cat conftest.err >&5
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); } >/dev/null; then
23464   if test -s conftest.err; then
23465     ac_cpp_err=$ac_c_preproc_warn_flag
23466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23467   else
23468     ac_cpp_err=
23469   fi
23470 else
23471   ac_cpp_err=yes
23472 fi
23473 if test -z "$ac_cpp_err"; then
23474   ac_header_preproc=yes
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479   ac_header_preproc=no
23480 fi
23481 rm -f conftest.err conftest.$ac_ext
23482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23483 echo "${ECHO_T}$ac_header_preproc" >&6
23484
23485 # So?  What about this header?
23486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23487   yes:no: )
23488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23492     ac_header_preproc=yes
23493     ;;
23494   no:yes:* )
23495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23507     (
23508       cat <<\_ASBOX
23509 ## ----------------------------------- ##
23510 ## Report this to llvmbugs@cs.uiuc.edu ##
23511 ## ----------------------------------- ##
23512 _ASBOX
23513     ) |
23514       sed "s/^/$as_me: WARNING:     /" >&2
23515     ;;
23516 esac
23517 echo "$as_me:$LINENO: checking for $ac_header" >&5
23518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23520   echo $ECHO_N "(cached) $ECHO_C" >&6
23521 else
23522   eval "$as_ac_Header=\$ac_header_preproc"
23523 fi
23524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23526
23527 fi
23528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23529   cat >>confdefs.h <<_ACEOF
23530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23531 _ACEOF
23532
23533 fi
23534
23535 done
23536
23537
23538 for ac_func in getpagesize
23539 do
23540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23541 echo "$as_me:$LINENO: checking for $ac_func" >&5
23542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23543 if eval "test \"\${$as_ac_var+set}\" = set"; then
23544   echo $ECHO_N "(cached) $ECHO_C" >&6
23545 else
23546   cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23554 #define $ac_func innocuous_$ac_func
23555
23556 /* System header to define __stub macros and hopefully few prototypes,
23557     which can conflict with char $ac_func (); below.
23558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23559     <limits.h> exists even on freestanding compilers.  */
23560
23561 #ifdef __STDC__
23562 # include <limits.h>
23563 #else
23564 # include <assert.h>
23565 #endif
23566
23567 #undef $ac_func
23568
23569 /* Override any gcc2 internal prototype to avoid an error.  */
23570 #ifdef __cplusplus
23571 extern "C"
23572 {
23573 #endif
23574 /* We use char because int might match the return type of a gcc2
23575    builtin and then its argument prototype would still apply.  */
23576 char $ac_func ();
23577 /* The GNU C library defines this for functions which it implements
23578     to always fail with ENOSYS.  Some functions are actually named
23579     something starting with __ and the normal name is an alias.  */
23580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23581 choke me
23582 #else
23583 char (*f) () = $ac_func;
23584 #endif
23585 #ifdef __cplusplus
23586 }
23587 #endif
23588
23589 int
23590 main ()
23591 {
23592 return f != $ac_func;
23593   ;
23594   return 0;
23595 }
23596 _ACEOF
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599   (eval $ac_link) 2>conftest.er1
23600   ac_status=$?
23601   grep -v '^ *+' conftest.er1 >conftest.err
23602   rm -f conftest.er1
23603   cat conftest.err >&5
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); } &&
23606          { ac_try='test -z "$ac_c_werror_flag"
23607                          || test ! -s conftest.err'
23608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609   (eval $ac_try) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; } &&
23613          { ac_try='test -s conftest$ac_exeext'
23614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615   (eval $ac_try) 2>&5
23616   ac_status=$?
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); }; }; then
23619   eval "$as_ac_var=yes"
23620 else
23621   echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.$ac_ext >&5
23623
23624 eval "$as_ac_var=no"
23625 fi
23626 rm -f conftest.err conftest.$ac_objext \
23627       conftest$ac_exeext conftest.$ac_ext
23628 fi
23629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23631 if test `eval echo '${'$as_ac_var'}'` = yes; then
23632   cat >>confdefs.h <<_ACEOF
23633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23634 _ACEOF
23635
23636 fi
23637 done
23638
23639 echo "$as_me:$LINENO: checking for working mmap" >&5
23640 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23641 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23642   echo $ECHO_N "(cached) $ECHO_C" >&6
23643 else
23644   if test "$cross_compiling" = yes; then
23645   ac_cv_func_mmap_fixed_mapped=no
23646 else
23647   cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 $ac_includes_default
23654 /* malloc might have been renamed as rpl_malloc. */
23655 #undef malloc
23656
23657 /* Thanks to Mike Haertel and Jim Avera for this test.
23658    Here is a matrix of mmap possibilities:
23659         mmap private not fixed
23660         mmap private fixed at somewhere currently unmapped
23661         mmap private fixed at somewhere already mapped
23662         mmap shared not fixed
23663         mmap shared fixed at somewhere currently unmapped
23664         mmap shared fixed at somewhere already mapped
23665    For private mappings, we should verify that changes cannot be read()
23666    back from the file, nor mmap's back from the file at a different
23667    address.  (There have been systems where private was not correctly
23668    implemented like the infamous i386 svr4.0, and systems where the
23669    VM page cache was not coherent with the file system buffer cache
23670    like early versions of FreeBSD and possibly contemporary NetBSD.)
23671    For shared mappings, we should conversely verify that changes get
23672    propagated back to all the places they're supposed to be.
23673
23674    Grep wants private fixed already mapped.
23675    The main things grep needs to know about mmap are:
23676    * does it exist and is it safe to write into the mmap'd area
23677    * how to use it (BSD variants)  */
23678
23679 #include <fcntl.h>
23680 #include <sys/mman.h>
23681
23682 #if !STDC_HEADERS && !HAVE_STDLIB_H
23683 char *malloc ();
23684 #endif
23685
23686 /* This mess was copied from the GNU getpagesize.h.  */
23687 #if !HAVE_GETPAGESIZE
23688 /* Assume that all systems that can run configure have sys/param.h.  */
23689 # if !HAVE_SYS_PARAM_H
23690 #  define HAVE_SYS_PARAM_H 1
23691 # endif
23692
23693 # ifdef _SC_PAGESIZE
23694 #  define getpagesize() sysconf(_SC_PAGESIZE)
23695 # else /* no _SC_PAGESIZE */
23696 #  if HAVE_SYS_PARAM_H
23697 #   include <sys/param.h>
23698 #   ifdef EXEC_PAGESIZE
23699 #    define getpagesize() EXEC_PAGESIZE
23700 #   else /* no EXEC_PAGESIZE */
23701 #    ifdef NBPG
23702 #     define getpagesize() NBPG * CLSIZE
23703 #     ifndef CLSIZE
23704 #      define CLSIZE 1
23705 #     endif /* no CLSIZE */
23706 #    else /* no NBPG */
23707 #     ifdef NBPC
23708 #      define getpagesize() NBPC
23709 #     else /* no NBPC */
23710 #      ifdef PAGESIZE
23711 #       define getpagesize() PAGESIZE
23712 #      endif /* PAGESIZE */
23713 #     endif /* no NBPC */
23714 #    endif /* no NBPG */
23715 #   endif /* no EXEC_PAGESIZE */
23716 #  else /* no HAVE_SYS_PARAM_H */
23717 #   define getpagesize() 8192   /* punt totally */
23718 #  endif /* no HAVE_SYS_PARAM_H */
23719 # endif /* no _SC_PAGESIZE */
23720
23721 #endif /* no HAVE_GETPAGESIZE */
23722
23723 int
23724 main ()
23725 {
23726   char *data, *data2, *data3;
23727   int i, pagesize;
23728   int fd;
23729
23730   pagesize = getpagesize ();
23731
23732   /* First, make a file with some known garbage in it. */
23733   data = (char *) malloc (pagesize);
23734   if (!data)
23735     exit (1);
23736   for (i = 0; i < pagesize; ++i)
23737     *(data + i) = rand ();
23738   umask (0);
23739   fd = creat ("conftest.mmap", 0600);
23740   if (fd < 0)
23741     exit (1);
23742   if (write (fd, data, pagesize) != pagesize)
23743     exit (1);
23744   close (fd);
23745
23746   /* Next, try to mmap the file at a fixed address which already has
23747      something else allocated at it.  If we can, also make sure that
23748      we see the same garbage.  */
23749   fd = open ("conftest.mmap", O_RDWR);
23750   if (fd < 0)
23751     exit (1);
23752   data2 = (char *) malloc (2 * pagesize);
23753   if (!data2)
23754     exit (1);
23755   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23756   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23757                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23758     exit (1);
23759   for (i = 0; i < pagesize; ++i)
23760     if (*(data + i) != *(data2 + i))
23761       exit (1);
23762
23763   /* Finally, make sure that changes to the mapped area do not
23764      percolate back to the file as seen by read().  (This is a bug on
23765      some variants of i386 svr4.0.)  */
23766   for (i = 0; i < pagesize; ++i)
23767     *(data2 + i) = *(data2 + i) + 1;
23768   data3 = (char *) malloc (pagesize);
23769   if (!data3)
23770     exit (1);
23771   if (read (fd, data3, pagesize) != pagesize)
23772     exit (1);
23773   for (i = 0; i < pagesize; ++i)
23774     if (*(data + i) != *(data3 + i))
23775       exit (1);
23776   close (fd);
23777   exit (0);
23778 }
23779 _ACEOF
23780 rm -f conftest$ac_exeext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23782   (eval $ac_link) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787   (eval $ac_try) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); }; }; then
23791   ac_cv_func_mmap_fixed_mapped=yes
23792 else
23793   echo "$as_me: program exited with status $ac_status" >&5
23794 echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ( exit $ac_status )
23798 ac_cv_func_mmap_fixed_mapped=no
23799 fi
23800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23801 fi
23802 fi
23803 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23804 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23805 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23806
23807 cat >>confdefs.h <<\_ACEOF
23808 #define HAVE_MMAP 1
23809 _ACEOF
23810
23811 fi
23812 rm -f conftest.mmap
23813
23814 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23815 then
23816         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23817 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23818 fi
23819 echo "$as_me:$LINENO: checking for mmap of files" >&5
23820 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23821 if test "${ac_cv_func_mmap_file+set}" = set; then
23822   echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824    ac_ext=c
23825 ac_cpp='$CPP $CPPFLAGS'
23826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23829
23830   if test "$cross_compiling" = yes; then
23831   ac_cv_func_mmap_file=no
23832 else
23833   cat >conftest.$ac_ext <<_ACEOF
23834
23835     /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840
23841 #include <sys/types.h>
23842 #include <sys/mman.h>
23843 #include <fcntl.h>
23844
23845 int
23846 main ()
23847 {
23848
23849   int fd;
23850   fd = creat ("foo",0777);
23851   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23852   unlink ("foo");
23853   return (fd != (int) MAP_FAILED);
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860   (eval $ac_link) 2>&5
23861   ac_status=$?
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865   (eval $ac_try) 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; }; then
23869   ac_cv_func_mmap_file=yes
23870 else
23871   echo "$as_me: program exited with status $ac_status" >&5
23872 echo "$as_me: failed program was:" >&5
23873 sed 's/^/| /' conftest.$ac_ext >&5
23874
23875 ( exit $ac_status )
23876 ac_cv_func_mmap_file=no
23877 fi
23878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23879 fi
23880   ac_ext=c
23881 ac_cpp='$CPP $CPPFLAGS'
23882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23885
23886
23887 fi
23888 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23889 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23890 if test "$ac_cv_func_mmap_file" = yes; then
23891
23892 cat >>confdefs.h <<\_ACEOF
23893 #define HAVE_MMAP_FILE
23894 _ACEOF
23895
23896    MMAP_FILE=yes
23897
23898 fi
23899
23900 if test "$ac_cv_func_mmap_file" = "no"
23901 then
23902         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23903 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23904 fi
23905 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23906 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23907 if test "${ac_cv_header_mmap_anon+set}" = set; then
23908   echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910    ac_ext=c
23911 ac_cpp='$CPP $CPPFLAGS'
23912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23915
23916   cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 #include <sys/mman.h>
23923 #include <unistd.h>
23924 #include <fcntl.h>
23925 int
23926 main ()
23927 {
23928 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23929   ;
23930   return 0;
23931 }
23932 _ACEOF
23933 rm -f conftest.$ac_objext
23934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23935   (eval $ac_compile) 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } &&
23942          { ac_try='test -z "$ac_c_werror_flag"
23943                          || test ! -s conftest.err'
23944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945   (eval $ac_try) 2>&5
23946   ac_status=$?
23947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); }; } &&
23949          { ac_try='test -s conftest.$ac_objext'
23950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951   (eval $ac_try) 2>&5
23952   ac_status=$?
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); }; }; then
23955   ac_cv_header_mmap_anon=yes
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 ac_cv_header_mmap_anon=no
23961 fi
23962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23963   ac_ext=c
23964 ac_cpp='$CPP $CPPFLAGS'
23965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23968
23969
23970 fi
23971 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23972 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23973 if test "$ac_cv_header_mmap_anon" = yes; then
23974
23975 cat >>confdefs.h <<\_ACEOF
23976 #define HAVE_MMAP_ANONYMOUS
23977 _ACEOF
23978
23979 fi
23980
23981 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23982 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23983 if test "${ac_cv_type_signal+set}" = set; then
23984   echo $ECHO_N "(cached) $ECHO_C" >&6
23985 else
23986   cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h.  */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h.  */
23992 #include <sys/types.h>
23993 #include <signal.h>
23994 #ifdef signal
23995 # undef signal
23996 #endif
23997 #ifdef __cplusplus
23998 extern "C" void (*signal (int, void (*)(int)))(int);
23999 #else
24000 void (*signal ()) ();
24001 #endif
24002
24003 int
24004 main ()
24005 {
24006 int i;
24007   ;
24008   return 0;
24009 }
24010 _ACEOF
24011 rm -f conftest.$ac_objext
24012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24013   (eval $ac_compile) 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } &&
24020          { ac_try='test -z "$ac_c_werror_flag"
24021                          || test ! -s conftest.err'
24022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24023   (eval $ac_try) 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; } &&
24027          { ac_try='test -s conftest.$ac_objext'
24028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029   (eval $ac_try) 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; }; then
24033   ac_cv_type_signal=void
24034 else
24035   echo "$as_me: failed program was:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24037
24038 ac_cv_type_signal=int
24039 fi
24040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24041 fi
24042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24043 echo "${ECHO_T}$ac_cv_type_signal" >&6
24044
24045 cat >>confdefs.h <<_ACEOF
24046 #define RETSIGTYPE $ac_cv_type_signal
24047 _ACEOF
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24060 do
24061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24062 echo "$as_me:$LINENO: checking for $ac_func" >&5
24063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24064 if eval "test \"\${$as_ac_var+set}\" = set"; then
24065   echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067   cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24075 #define $ac_func innocuous_$ac_func
24076
24077 /* System header to define __stub macros and hopefully few prototypes,
24078     which can conflict with char $ac_func (); below.
24079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080     <limits.h> exists even on freestanding compilers.  */
24081
24082 #ifdef __STDC__
24083 # include <limits.h>
24084 #else
24085 # include <assert.h>
24086 #endif
24087
24088 #undef $ac_func
24089
24090 /* Override any gcc2 internal prototype to avoid an error.  */
24091 #ifdef __cplusplus
24092 extern "C"
24093 {
24094 #endif
24095 /* We use char because int might match the return type of a gcc2
24096    builtin and then its argument prototype would still apply.  */
24097 char $ac_func ();
24098 /* The GNU C library defines this for functions which it implements
24099     to always fail with ENOSYS.  Some functions are actually named
24100     something starting with __ and the normal name is an alias.  */
24101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24102 choke me
24103 #else
24104 char (*f) () = $ac_func;
24105 #endif
24106 #ifdef __cplusplus
24107 }
24108 #endif
24109
24110 int
24111 main ()
24112 {
24113 return f != $ac_func;
24114   ;
24115   return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24120   (eval $ac_link) 2>conftest.er1
24121   ac_status=$?
24122   grep -v '^ *+' conftest.er1 >conftest.err
24123   rm -f conftest.er1
24124   cat conftest.err >&5
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); } &&
24127          { ac_try='test -z "$ac_c_werror_flag"
24128                          || test ! -s conftest.err'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; } &&
24134          { ac_try='test -s conftest$ac_exeext'
24135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136   (eval $ac_try) 2>&5
24137   ac_status=$?
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); }; }; then
24140   eval "$as_ac_var=yes"
24141 else
24142   echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 eval "$as_ac_var=no"
24146 fi
24147 rm -f conftest.err conftest.$ac_objext \
24148       conftest$ac_exeext conftest.$ac_ext
24149 fi
24150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24152 if test `eval echo '${'$as_ac_var'}'` = yes; then
24153   cat >>confdefs.h <<_ACEOF
24154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24155 _ACEOF
24156
24157 fi
24158 done
24159
24160 echo "$as_me:$LINENO: checking for mprotect" >&5
24161 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24162 if test "${ac_cv_func_mprotect+set}" = set; then
24163   echo $ECHO_N "(cached) $ECHO_C" >&6
24164 else
24165   cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24173 #define mprotect innocuous_mprotect
24174
24175 /* System header to define __stub macros and hopefully few prototypes,
24176     which can conflict with char mprotect (); below.
24177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24178     <limits.h> exists even on freestanding compilers.  */
24179
24180 #ifdef __STDC__
24181 # include <limits.h>
24182 #else
24183 # include <assert.h>
24184 #endif
24185
24186 #undef mprotect
24187
24188 /* Override any gcc2 internal prototype to avoid an error.  */
24189 #ifdef __cplusplus
24190 extern "C"
24191 {
24192 #endif
24193 /* We use char because int might match the return type of a gcc2
24194    builtin and then its argument prototype would still apply.  */
24195 char mprotect ();
24196 /* The GNU C library defines this for functions which it implements
24197     to always fail with ENOSYS.  Some functions are actually named
24198     something starting with __ and the normal name is an alias.  */
24199 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24200 choke me
24201 #else
24202 char (*f) () = mprotect;
24203 #endif
24204 #ifdef __cplusplus
24205 }
24206 #endif
24207
24208 int
24209 main ()
24210 {
24211 return f != mprotect;
24212   ;
24213   return 0;
24214 }
24215 _ACEOF
24216 rm -f conftest.$ac_objext conftest$ac_exeext
24217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24218   (eval $ac_link) 2>conftest.er1
24219   ac_status=$?
24220   grep -v '^ *+' conftest.er1 >conftest.err
24221   rm -f conftest.er1
24222   cat conftest.err >&5
24223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224   (exit $ac_status); } &&
24225          { ac_try='test -z "$ac_c_werror_flag"
24226                          || test ! -s conftest.err'
24227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228   (eval $ac_try) 2>&5
24229   ac_status=$?
24230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231   (exit $ac_status); }; } &&
24232          { ac_try='test -s conftest$ac_exeext'
24233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24234   (eval $ac_try) 2>&5
24235   ac_status=$?
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); }; }; then
24238   ac_cv_func_mprotect=yes
24239 else
24240   echo "$as_me: failed program was:" >&5
24241 sed 's/^/| /' conftest.$ac_ext >&5
24242
24243 ac_cv_func_mprotect=no
24244 fi
24245 rm -f conftest.err conftest.$ac_objext \
24246       conftest$ac_exeext conftest.$ac_ext
24247 fi
24248 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24249 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24250 if test $ac_cv_func_mprotect = yes; then
24251   :
24252 else
24253   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24254 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24255    { (exit 1); exit 1; }; }
24256 fi
24257
24258
24259
24260   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24261 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24262   ac_ext=c
24263 ac_cpp='$CPP $CPPFLAGS'
24264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24267
24268   oldcflags="$CFLAGS"
24269   CFLAGS="$CFLAGS -Wl,-R."
24270   cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276
24277 int
24278 main ()
24279 {
24280 int main() { return 0; }
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 rm -f conftest.$ac_objext conftest$ac_exeext
24286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24287   (eval $ac_link) 2>conftest.er1
24288   ac_status=$?
24289   grep -v '^ *+' conftest.er1 >conftest.err
24290   rm -f conftest.er1
24291   cat conftest.err >&5
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); } &&
24294          { ac_try='test -z "$ac_c_werror_flag"
24295                          || test ! -s conftest.err'
24296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297   (eval $ac_try) 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; } &&
24301          { ac_try='test -s conftest$ac_exeext'
24302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303   (eval $ac_try) 2>&5
24304   ac_status=$?
24305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306   (exit $ac_status); }; }; then
24307   ac_cv_link_use_r=yes
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312 ac_cv_link_use_r=no
24313 fi
24314 rm -f conftest.err conftest.$ac_objext \
24315       conftest$ac_exeext conftest.$ac_ext
24316   CFLAGS="$oldcflags"
24317   ac_ext=c
24318 ac_cpp='$CPP $CPPFLAGS'
24319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24322
24323   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24324 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24325   if test "$ac_cv_link_use_r" = yes
24326   then
24327
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_LINK_R 1
24330 _ACEOF
24331
24332   fi
24333
24334
24335 # Check whether --enable-optimized or --disable-optimized was given.
24336 if test "${enable_optimized+set}" = set; then
24337   enableval="$enable_optimized"
24338
24339 else
24340   enableval=no
24341 fi;
24342 if test ${enableval} = "no"
24343 then
24344         ENABLE_OPTIMIZED=
24345
24346 else
24347         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24348
24349 fi
24350
24351 # Check whether --enable-jit or --disable-jit was given.
24352 if test "${enable_jit+set}" = set; then
24353   enableval="$enable_jit"
24354
24355 else
24356   enableval=default
24357 fi;
24358 if test ${enableval} = "no"
24359 then
24360         JIT=
24361
24362 else
24363         case $target in
24364                 *i*86*)
24365                         JIT=TARGET_HAS_JIT=1
24366
24367                         ;;
24368                 *sparc*)
24369                         JIT=TARGET_HAS_JIT=1
24370
24371                         ;;
24372                 *)
24373                         JIT=
24374
24375                         ;;
24376         esac
24377 fi
24378
24379
24380 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24381 if test "${with_llvmgccdir+set}" = set; then
24382   withval="$with_llvmgccdir"
24383   LLVMGCCDIR=$withval
24384
24385 fi;
24386 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24387 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24388 LLVM_GCC_CHECK=no
24389 if test -d "$LLVMGCCDIR"
24390 then
24391         if test -x "$LLVMGCCDIR/bin/gcc"
24392         then
24393                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24394         fi
24395 fi
24396 llvmgccwarn=no
24397 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24398 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24399 if test "$LLVM_GCC_CHECK" = "no"
24400 then
24401     llvmgccwarn=yes
24402 fi
24403 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24404 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24405 LLVM_GCC_SANE=no
24406 if test -x "$LLVM_GCC_CHECK"
24407 then
24408         cp /dev/null conftest.c
24409     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24410         if test $? -eq 0
24411         then
24412                 LLVM_GCC_SANE=yes
24413         fi
24414         rm conftest.c
24415         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24416         LLVMCC1=$llvmcc1path
24417
24418         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24419         LLVMCC1PLUS=$llvmcc1pluspath
24420
24421 fi
24422 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24423 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24424 if test "$LLVM_GCC_SANE" = "no"
24425 then
24426         llvmgccwarn=yes
24427 fi
24428
24429 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24430 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24431 eval "SHLIBEXT=$shrext_cmds"
24432 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24433 echo "${ECHO_T}$SHLIBEXT" >&6
24434 SHLIBEXT=$SHLIBEXT
24435
24436
24437 cat >>confdefs.h <<_ACEOF
24438 #define SHLIBEXT "$SHLIBEXT"
24439 _ACEOF
24440
24441
24442 # Translate the various configuration directories and other basic
24443 # information into substitutions that will end up in config.h.in so
24444 # that these configured values can be hard-wired into a program.
24445 eval LLVM_PREFIX="${prefix}";
24446 eval LLVM_BINDIR="${prefix}/bin";
24447 eval LLVM_LIBDIR="${prefix}/lib";
24448 eval LLVM_DATADIR="${prefix}/data";
24449 eval LLVM_DOCSDIR="${prefix}/docs";
24450 eval LLVM_ETCDIR="${prefix}/etc";
24451 eval LLVM_INCLUDEDIR="${prefix}/include";
24452 eval LLVM_INFODIR="${prefix}/info";
24453 eval LLVM_MANDIR="${prefix}/man";
24454 LLVM_CONFIGTIME=`date`
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466 cat >>confdefs.h <<_ACEOF
24467 #define LLVM_PREFIX "$LLVM_PREFIX"
24468 _ACEOF
24469
24470
24471 cat >>confdefs.h <<_ACEOF
24472 #define LLVM_BINDIR "$LLVM_BINDIR"
24473 _ACEOF
24474
24475
24476 cat >>confdefs.h <<_ACEOF
24477 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24478 _ACEOF
24479
24480
24481 cat >>confdefs.h <<_ACEOF
24482 #define LLVM_DATADIR "$LLVM_DATADIR"
24483 _ACEOF
24484
24485
24486 cat >>confdefs.h <<_ACEOF
24487 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24488 _ACEOF
24489
24490
24491 cat >>confdefs.h <<_ACEOF
24492 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24493 _ACEOF
24494
24495
24496 cat >>confdefs.h <<_ACEOF
24497 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24498 _ACEOF
24499
24500
24501 cat >>confdefs.h <<_ACEOF
24502 #define LLVM_INFODIR "$LLVM_INFODIR"
24503 _ACEOF
24504
24505
24506 cat >>confdefs.h <<_ACEOF
24507 #define LLVM_MANDIR "$LLVM_MANDIR"
24508 _ACEOF
24509
24510
24511 cat >>confdefs.h <<_ACEOF
24512 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24513 _ACEOF
24514
24515
24516 cat >confcache <<\_ACEOF
24517 # This file is a shell script that caches the results of configure
24518 # tests run on this system so they can be shared between configure
24519 # scripts and configure runs, see configure's option --config-cache.
24520 # It is not useful on other systems.  If it contains results you don't
24521 # want to keep, you may remove or edit it.
24522 #
24523 # config.status only pays attention to the cache file if you give it
24524 # the --recheck option to rerun configure.
24525 #
24526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24528 # following values.
24529
24530 _ACEOF
24531
24532 # The following way of writing the cache mishandles newlines in values,
24533 # but we know of no workaround that is simple, portable, and efficient.
24534 # So, don't put newlines in cache variables' values.
24535 # Ultrix sh set writes to stderr and can't be redirected directly,
24536 # and sets the high bit in the cache file unless we assign to the vars.
24537 {
24538   (set) 2>&1 |
24539     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24540     *ac_space=\ *)
24541       # `set' does not quote correctly, so add quotes (double-quote
24542       # substitution turns \\\\ into \\, and sed turns \\ into \).
24543       sed -n \
24544         "s/'/'\\\\''/g;
24545           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24546       ;;
24547     *)
24548       # `set' quotes correctly as required by POSIX, so do not add quotes.
24549       sed -n \
24550         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24551       ;;
24552     esac;
24553 } |
24554   sed '
24555      t clear
24556      : clear
24557      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24558      t end
24559      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24560      : end' >>confcache
24561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24562   if test -w $cache_file; then
24563     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24564     cat confcache >$cache_file
24565   else
24566     echo "not updating unwritable cache $cache_file"
24567   fi
24568 fi
24569 rm -f confcache
24570
24571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24572 # Let make expand exec_prefix.
24573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24574
24575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24577 # trailing colons and then remove the whole line if VPATH becomes empty
24578 # (actually we leave an empty line to preserve line numbers).
24579 if test "x$srcdir" = x.; then
24580   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24581 s/:*\$(srcdir):*/:/;
24582 s/:*\${srcdir}:*/:/;
24583 s/:*@srcdir@:*/:/;
24584 s/^\([^=]*=[     ]*\):*/\1/;
24585 s/:*$//;
24586 s/^[^=]*=[       ]*$//;
24587 }'
24588 fi
24589
24590 DEFS=-DHAVE_CONFIG_H
24591
24592 ac_libobjs=
24593 ac_ltlibobjs=
24594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24595   # 1. Remove the extension, and $U if already installed.
24596   ac_i=`echo "$ac_i" |
24597          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24598   # 2. Add them.
24599   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24600   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24601 done
24602 LIBOBJS=$ac_libobjs
24603
24604 LTLIBOBJS=$ac_ltlibobjs
24605
24606
24607
24608 : ${CONFIG_STATUS=./config.status}
24609 ac_clean_files_save=$ac_clean_files
24610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24611 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24612 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24613 cat >$CONFIG_STATUS <<_ACEOF
24614 #! $SHELL
24615 # Generated by $as_me.
24616 # Run this file to recreate the current configuration.
24617 # Compiler output produced by configure, useful for debugging
24618 # configure, is in config.log if it exists.
24619
24620 debug=false
24621 ac_cs_recheck=false
24622 ac_cs_silent=false
24623 SHELL=\${CONFIG_SHELL-$SHELL}
24624 _ACEOF
24625
24626 cat >>$CONFIG_STATUS <<\_ACEOF
24627 ## --------------------- ##
24628 ## M4sh Initialization.  ##
24629 ## --------------------- ##
24630
24631 # Be Bourne compatible
24632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24633   emulate sh
24634   NULLCMD=:
24635   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24636   # is contrary to our usage.  Disable this feature.
24637   alias -g '${1+"$@"}'='"$@"'
24638 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24639   set -o posix
24640 fi
24641 DUALCASE=1; export DUALCASE # for MKS sh
24642
24643 # Support unset when possible.
24644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24645   as_unset=unset
24646 else
24647   as_unset=false
24648 fi
24649
24650
24651 # Work around bugs in pre-3.0 UWIN ksh.
24652 $as_unset ENV MAIL MAILPATH
24653 PS1='$ '
24654 PS2='> '
24655 PS4='+ '
24656
24657 # NLS nuisances.
24658 for as_var in \
24659   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24660   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24661   LC_TELEPHONE LC_TIME
24662 do
24663   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24664     eval $as_var=C; export $as_var
24665   else
24666     $as_unset $as_var
24667   fi
24668 done
24669
24670 # Required to use basename.
24671 if expr a : '\(a\)' >/dev/null 2>&1; then
24672   as_expr=expr
24673 else
24674   as_expr=false
24675 fi
24676
24677 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24678   as_basename=basename
24679 else
24680   as_basename=false
24681 fi
24682
24683
24684 # Name of the executable.
24685 as_me=`$as_basename "$0" ||
24686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24687          X"$0" : 'X\(//\)$' \| \
24688          X"$0" : 'X\(/\)$' \| \
24689          .     : '\(.\)' 2>/dev/null ||
24690 echo X/"$0" |
24691     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24692           /^X\/\(\/\/\)$/{ s//\1/; q; }
24693           /^X\/\(\/\).*/{ s//\1/; q; }
24694           s/.*/./; q'`
24695
24696
24697 # PATH needs CR, and LINENO needs CR and PATH.
24698 # Avoid depending upon Character Ranges.
24699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24702 as_cr_digits='0123456789'
24703 as_cr_alnum=$as_cr_Letters$as_cr_digits
24704
24705 # The user is always right.
24706 if test "${PATH_SEPARATOR+set}" != set; then
24707   echo "#! /bin/sh" >conf$$.sh
24708   echo  "exit 0"   >>conf$$.sh
24709   chmod +x conf$$.sh
24710   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24711     PATH_SEPARATOR=';'
24712   else
24713     PATH_SEPARATOR=:
24714   fi
24715   rm -f conf$$.sh
24716 fi
24717
24718
24719   as_lineno_1=$LINENO
24720   as_lineno_2=$LINENO
24721   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24722   test "x$as_lineno_1" != "x$as_lineno_2" &&
24723   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24724   # Find who we are.  Look in the path if we contain no path at all
24725   # relative or not.
24726   case $0 in
24727     *[\\/]* ) as_myself=$0 ;;
24728     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24729 for as_dir in $PATH
24730 do
24731   IFS=$as_save_IFS
24732   test -z "$as_dir" && as_dir=.
24733   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24734 done
24735
24736        ;;
24737   esac
24738   # We did not find ourselves, most probably we were run as `sh COMMAND'
24739   # in which case we are not to be found in the path.
24740   if test "x$as_myself" = x; then
24741     as_myself=$0
24742   fi
24743   if test ! -f "$as_myself"; then
24744     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24745 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24746    { (exit 1); exit 1; }; }
24747   fi
24748   case $CONFIG_SHELL in
24749   '')
24750     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24751 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24752 do
24753   IFS=$as_save_IFS
24754   test -z "$as_dir" && as_dir=.
24755   for as_base in sh bash ksh sh5; do
24756          case $as_dir in
24757          /*)
24758            if ("$as_dir/$as_base" -c '
24759   as_lineno_1=$LINENO
24760   as_lineno_2=$LINENO
24761   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24762   test "x$as_lineno_1" != "x$as_lineno_2" &&
24763   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24764              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24765              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24766              CONFIG_SHELL=$as_dir/$as_base
24767              export CONFIG_SHELL
24768              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24769            fi;;
24770          esac
24771        done
24772 done
24773 ;;
24774   esac
24775
24776   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24777   # uniformly replaced by the line number.  The first 'sed' inserts a
24778   # line-number line before each line; the second 'sed' does the real
24779   # work.  The second script uses 'N' to pair each line-number line
24780   # with the numbered line, and appends trailing '-' during
24781   # substitution so that $LINENO is not a special case at line end.
24782   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24783   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24784   sed '=' <$as_myself |
24785     sed '
24786       N
24787       s,$,-,
24788       : loop
24789       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24790       t loop
24791       s,-$,,
24792       s,^['$as_cr_digits']*\n,,
24793     ' >$as_me.lineno &&
24794   chmod +x $as_me.lineno ||
24795     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24796 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24797    { (exit 1); exit 1; }; }
24798
24799   # Don't try to exec as it changes $[0], causing all sort of problems
24800   # (the dirname of $[0] is not the place where we might find the
24801   # original and so on.  Autoconf is especially sensible to this).
24802   . ./$as_me.lineno
24803   # Exit status is that of the last command.
24804   exit
24805 }
24806
24807
24808 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24809   *c*,-n*) ECHO_N= ECHO_C='
24810 ' ECHO_T='      ' ;;
24811   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24812   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24813 esac
24814
24815 if expr a : '\(a\)' >/dev/null 2>&1; then
24816   as_expr=expr
24817 else
24818   as_expr=false
24819 fi
24820
24821 rm -f conf$$ conf$$.exe conf$$.file
24822 echo >conf$$.file
24823 if ln -s conf$$.file conf$$ 2>/dev/null; then
24824   # We could just check for DJGPP; but this test a) works b) is more generic
24825   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24826   if test -f conf$$.exe; then
24827     # Don't use ln at all; we don't have any links
24828     as_ln_s='cp -p'
24829   else
24830     as_ln_s='ln -s'
24831   fi
24832 elif ln conf$$.file conf$$ 2>/dev/null; then
24833   as_ln_s=ln
24834 else
24835   as_ln_s='cp -p'
24836 fi
24837 rm -f conf$$ conf$$.exe conf$$.file
24838
24839 if mkdir -p . 2>/dev/null; then
24840   as_mkdir_p=:
24841 else
24842   test -d ./-p && rmdir ./-p
24843   as_mkdir_p=false
24844 fi
24845
24846 as_executable_p="test -f"
24847
24848 # Sed expression to map a string onto a valid CPP name.
24849 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24850
24851 # Sed expression to map a string onto a valid variable name.
24852 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24853
24854
24855 # IFS
24856 # We need space, tab and new line, in precisely that order.
24857 as_nl='
24858 '
24859 IFS="   $as_nl"
24860
24861 # CDPATH.
24862 $as_unset CDPATH
24863
24864 exec 6>&1
24865
24866 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24867 # report actual input values of CONFIG_FILES etc. instead of their
24868 # values after options handling.  Logging --version etc. is OK.
24869 exec 5>>config.log
24870 {
24871   echo
24872   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24873 ## Running $as_me. ##
24874 _ASBOX
24875 } >&5
24876 cat >&5 <<_CSEOF
24877
24878 This file was extended by LLVM $as_me 1.4, which was
24879 generated by GNU Autoconf 2.59.  Invocation command line was
24880
24881   CONFIG_FILES    = $CONFIG_FILES
24882   CONFIG_HEADERS  = $CONFIG_HEADERS
24883   CONFIG_LINKS    = $CONFIG_LINKS
24884   CONFIG_COMMANDS = $CONFIG_COMMANDS
24885   $ $0 $@
24886
24887 _CSEOF
24888 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24889 echo >&5
24890 _ACEOF
24891
24892 # Files that config.status was made for.
24893 if test -n "$ac_config_files"; then
24894   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24895 fi
24896
24897 if test -n "$ac_config_headers"; then
24898   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24899 fi
24900
24901 if test -n "$ac_config_links"; then
24902   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24903 fi
24904
24905 if test -n "$ac_config_commands"; then
24906   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24907 fi
24908
24909 cat >>$CONFIG_STATUS <<\_ACEOF
24910
24911 ac_cs_usage="\
24912 \`$as_me' instantiates files from templates according to the
24913 current configuration.
24914
24915 Usage: $0 [OPTIONS] [FILE]...
24916
24917   -h, --help       print this help, then exit
24918   -V, --version    print version number, then exit
24919   -q, --quiet      do not print progress messages
24920   -d, --debug      don't remove temporary files
24921       --recheck    update $as_me by reconfiguring in the same conditions
24922   --file=FILE[:TEMPLATE]
24923                    instantiate the configuration file FILE
24924   --header=FILE[:TEMPLATE]
24925                    instantiate the configuration header FILE
24926
24927 Configuration files:
24928 $config_files
24929
24930 Configuration headers:
24931 $config_headers
24932
24933 Configuration links:
24934 $config_links
24935
24936 Configuration commands:
24937 $config_commands
24938
24939 Report bugs to <bug-autoconf@gnu.org>."
24940 _ACEOF
24941
24942 cat >>$CONFIG_STATUS <<_ACEOF
24943 ac_cs_version="\\
24944 LLVM config.status 1.4
24945 configured by $0, generated by GNU Autoconf 2.59,
24946   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24947
24948 Copyright (C) 2003 Free Software Foundation, Inc.
24949 This config.status script is free software; the Free Software Foundation
24950 gives unlimited permission to copy, distribute and modify it."
24951 srcdir=$srcdir
24952 INSTALL="$INSTALL"
24953 _ACEOF
24954
24955 cat >>$CONFIG_STATUS <<\_ACEOF
24956 # If no file are specified by the user, then we need to provide default
24957 # value.  By we need to know if files were specified by the user.
24958 ac_need_defaults=:
24959 while test $# != 0
24960 do
24961   case $1 in
24962   --*=*)
24963     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24964     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24965     ac_shift=:
24966     ;;
24967   -*)
24968     ac_option=$1
24969     ac_optarg=$2
24970     ac_shift=shift
24971     ;;
24972   *) # This is not an option, so the user has probably given explicit
24973      # arguments.
24974      ac_option=$1
24975      ac_need_defaults=false;;
24976   esac
24977
24978   case $ac_option in
24979   # Handling of the options.
24980 _ACEOF
24981 cat >>$CONFIG_STATUS <<\_ACEOF
24982   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24983     ac_cs_recheck=: ;;
24984   --version | --vers* | -V )
24985     echo "$ac_cs_version"; exit 0 ;;
24986   --he | --h)
24987     # Conflict between --help and --header
24988     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24989 Try \`$0 --help' for more information." >&5
24990 echo "$as_me: error: ambiguous option: $1
24991 Try \`$0 --help' for more information." >&2;}
24992    { (exit 1); exit 1; }; };;
24993   --help | --hel | -h )
24994     echo "$ac_cs_usage"; exit 0 ;;
24995   --debug | --d* | -d )
24996     debug=: ;;
24997   --file | --fil | --fi | --f )
24998     $ac_shift
24999     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25000     ac_need_defaults=false;;
25001   --header | --heade | --head | --hea )
25002     $ac_shift
25003     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25004     ac_need_defaults=false;;
25005   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25006   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25007     ac_cs_silent=: ;;
25008
25009   # This is an error.
25010   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25011 Try \`$0 --help' for more information." >&5
25012 echo "$as_me: error: unrecognized option: $1
25013 Try \`$0 --help' for more information." >&2;}
25014    { (exit 1); exit 1; }; } ;;
25015
25016   *) ac_config_targets="$ac_config_targets $1" ;;
25017
25018   esac
25019   shift
25020 done
25021
25022 ac_configure_extra_args=
25023
25024 if $ac_cs_silent; then
25025   exec 6>/dev/null
25026   ac_configure_extra_args="$ac_configure_extra_args --silent"
25027 fi
25028
25029 _ACEOF
25030 cat >>$CONFIG_STATUS <<_ACEOF
25031 if \$ac_cs_recheck; then
25032   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25033   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25034 fi
25035
25036 _ACEOF
25037
25038 cat >>$CONFIG_STATUS <<_ACEOF
25039 #
25040 # INIT-COMMANDS section.
25041 #
25042
25043 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25044 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25045 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25046 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25047 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25048 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25049 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25050 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25051 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25052 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25053 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25054 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25055 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25056
25057 _ACEOF
25058
25059
25060
25061 cat >>$CONFIG_STATUS <<\_ACEOF
25062 for ac_config_target in $ac_config_targets
25063 do
25064   case "$ac_config_target" in
25065   # Handling of arguments.
25066   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25067   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25068   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25069   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25070   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25071   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25072   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25073   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25074   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25075   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25076   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25077   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25078   "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25079   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25080   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25081   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25082   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25083   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25084   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25085   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25086   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25087   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25089    { (exit 1); exit 1; }; };;
25090   esac
25091 done
25092
25093 # If the user did not use the arguments to specify the items to instantiate,
25094 # then the envvar interface is used.  Set only those that are not.
25095 # We use the long form for the default assignment because of an extremely
25096 # bizarre bug on SunOS 4.1.3.
25097 if $ac_need_defaults; then
25098   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25099   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25100   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25101   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25102 fi
25103
25104 # Have a temporary directory for convenience.  Make it in the build tree
25105 # simply because there is no reason to put it here, and in addition,
25106 # creating and moving files from /tmp can sometimes cause problems.
25107 # Create a temporary directory, and hook for its removal unless debugging.
25108 $debug ||
25109 {
25110   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25111   trap '{ (exit 1); exit 1; }' 1 2 13 15
25112 }
25113
25114 # Create a (secure) tmp directory for tmp files.
25115
25116 {
25117   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25118   test -n "$tmp" && test -d "$tmp"
25119 }  ||
25120 {
25121   tmp=./confstat$$-$RANDOM
25122   (umask 077 && mkdir $tmp)
25123 } ||
25124 {
25125    echo "$me: cannot create a temporary directory in ." >&2
25126    { (exit 1); exit 1; }
25127 }
25128
25129 _ACEOF
25130
25131 cat >>$CONFIG_STATUS <<_ACEOF
25132
25133 #
25134 # CONFIG_FILES section.
25135 #
25136
25137 # No need to generate the scripts if there are no CONFIG_FILES.
25138 # This happens for instance when ./config.status config.h
25139 if test -n "\$CONFIG_FILES"; then
25140   # Protect against being on the right side of a sed subst in config.status.
25141   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25142    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25143 s,@SHELL@,$SHELL,;t t
25144 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25145 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25146 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25147 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25148 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25149 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25150 s,@exec_prefix@,$exec_prefix,;t t
25151 s,@prefix@,$prefix,;t t
25152 s,@program_transform_name@,$program_transform_name,;t t
25153 s,@bindir@,$bindir,;t t
25154 s,@sbindir@,$sbindir,;t t
25155 s,@libexecdir@,$libexecdir,;t t
25156 s,@datadir@,$datadir,;t t
25157 s,@sysconfdir@,$sysconfdir,;t t
25158 s,@sharedstatedir@,$sharedstatedir,;t t
25159 s,@localstatedir@,$localstatedir,;t t
25160 s,@libdir@,$libdir,;t t
25161 s,@includedir@,$includedir,;t t
25162 s,@oldincludedir@,$oldincludedir,;t t
25163 s,@infodir@,$infodir,;t t
25164 s,@mandir@,$mandir,;t t
25165 s,@build_alias@,$build_alias,;t t
25166 s,@host_alias@,$host_alias,;t t
25167 s,@target_alias@,$target_alias,;t t
25168 s,@DEFS@,$DEFS,;t t
25169 s,@ECHO_C@,$ECHO_C,;t t
25170 s,@ECHO_N@,$ECHO_N,;t t
25171 s,@ECHO_T@,$ECHO_T,;t t
25172 s,@LIBS@,$LIBS,;t t
25173 s,@subdirs@,$subdirs,;t t
25174 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25175 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25177 s,@build@,$build,;t t
25178 s,@build_cpu@,$build_cpu,;t t
25179 s,@build_vendor@,$build_vendor,;t t
25180 s,@build_os@,$build_os,;t t
25181 s,@host@,$host,;t t
25182 s,@host_cpu@,$host_cpu,;t t
25183 s,@host_vendor@,$host_vendor,;t t
25184 s,@host_os@,$host_os,;t t
25185 s,@target@,$target,;t t
25186 s,@target_cpu@,$target_cpu,;t t
25187 s,@target_vendor@,$target_vendor,;t t
25188 s,@target_os@,$target_os,;t t
25189 s,@OS@,$OS,;t t
25190 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25191 s,@ARCH@,$ARCH,;t t
25192 s,@CXX@,$CXX,;t t
25193 s,@CXXFLAGS@,$CXXFLAGS,;t t
25194 s,@LDFLAGS@,$LDFLAGS,;t t
25195 s,@CPPFLAGS@,$CPPFLAGS,;t t
25196 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25197 s,@EXEEXT@,$EXEEXT,;t t
25198 s,@OBJEXT@,$OBJEXT,;t t
25199 s,@CC@,$CC,;t t
25200 s,@CFLAGS@,$CFLAGS,;t t
25201 s,@ac_ct_CC@,$ac_ct_CC,;t t
25202 s,@CPP@,$CPP,;t t
25203 s,@ifGNUmake@,$ifGNUmake,;t t
25204 s,@LEX@,$LEX,;t t
25205 s,@LEXLIB@,$LEXLIB,;t t
25206 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25207 s,@FLEX@,$FLEX,;t t
25208 s,@YACC@,$YACC,;t t
25209 s,@BISON@,$BISON,;t t
25210 s,@EGREP@,$EGREP,;t t
25211 s,@LN_S@,$LN_S,;t t
25212 s,@ECHO@,$ECHO,;t t
25213 s,@AR@,$AR,;t t
25214 s,@ac_ct_AR@,$ac_ct_AR,;t t
25215 s,@RANLIB@,$RANLIB,;t t
25216 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25217 s,@STRIP@,$STRIP,;t t
25218 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25219 s,@CXXCPP@,$CXXCPP,;t t
25220 s,@F77@,$F77,;t t
25221 s,@FFLAGS@,$FFLAGS,;t t
25222 s,@ac_ct_F77@,$ac_ct_F77,;t t
25223 s,@LIBTOOL@,$LIBTOOL,;t t
25224 s,@TAR@,$TAR,;t t
25225 s,@DOT@,$DOT,;t t
25226 s,@ETAGS@,$ETAGS,;t t
25227 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25228 s,@PYTHON@,$PYTHON,;t t
25229 s,@QMTEST@,$QMTEST,;t t
25230 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25231 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25232 s,@ENDIAN@,$ENDIAN,;t t
25233 s,@ALLOCA@,$ALLOCA,;t t
25234 s,@MMAP_FILE@,$MMAP_FILE,;t t
25235 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25236 s,@JIT@,$JIT,;t t
25237 s,@LLVMCC1@,$LLVMCC1,;t t
25238 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25239 s,@SHLIBEXT@,$SHLIBEXT,;t t
25240 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25241 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25242 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25243 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25244 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25245 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25246 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25247 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25248 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25249 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25250 s,@LIBOBJS@,$LIBOBJS,;t t
25251 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25252 CEOF
25253
25254 _ACEOF
25255
25256   cat >>$CONFIG_STATUS <<\_ACEOF
25257   # Split the substitutions into bite-sized pieces for seds with
25258   # small command number limits, like on Digital OSF/1 and HP-UX.
25259   ac_max_sed_lines=48
25260   ac_sed_frag=1 # Number of current file.
25261   ac_beg=1 # First line for current file.
25262   ac_end=$ac_max_sed_lines # Line after last line for current file.
25263   ac_more_lines=:
25264   ac_sed_cmds=
25265   while $ac_more_lines; do
25266     if test $ac_beg -gt 1; then
25267       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25268     else
25269       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25270     fi
25271     if test ! -s $tmp/subs.frag; then
25272       ac_more_lines=false
25273     else
25274       # The purpose of the label and of the branching condition is to
25275       # speed up the sed processing (if there are no `@' at all, there
25276       # is no need to browse any of the substitutions).
25277       # These are the two extra sed commands mentioned above.
25278       (echo ':t
25279   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25280       if test -z "$ac_sed_cmds"; then
25281         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25282       else
25283         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25284       fi
25285       ac_sed_frag=`expr $ac_sed_frag + 1`
25286       ac_beg=$ac_end
25287       ac_end=`expr $ac_end + $ac_max_sed_lines`
25288     fi
25289   done
25290   if test -z "$ac_sed_cmds"; then
25291     ac_sed_cmds=cat
25292   fi
25293 fi # test -n "$CONFIG_FILES"
25294
25295 _ACEOF
25296 cat >>$CONFIG_STATUS <<\_ACEOF
25297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25298   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25299   case $ac_file in
25300   - | *:- | *:-:* ) # input from stdin
25301         cat >$tmp/stdin
25302         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25303         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25304   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25306   * )   ac_file_in=$ac_file.in ;;
25307   esac
25308
25309   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25310   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25312          X"$ac_file" : 'X\(//\)[^/]' \| \
25313          X"$ac_file" : 'X\(//\)$' \| \
25314          X"$ac_file" : 'X\(/\)' \| \
25315          .     : '\(.\)' 2>/dev/null ||
25316 echo X"$ac_file" |
25317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25319           /^X\(\/\/\)$/{ s//\1/; q; }
25320           /^X\(\/\).*/{ s//\1/; q; }
25321           s/.*/./; q'`
25322   { if $as_mkdir_p; then
25323     mkdir -p "$ac_dir"
25324   else
25325     as_dir="$ac_dir"
25326     as_dirs=
25327     while test ! -d "$as_dir"; do
25328       as_dirs="$as_dir $as_dirs"
25329       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25331          X"$as_dir" : 'X\(//\)[^/]' \| \
25332          X"$as_dir" : 'X\(//\)$' \| \
25333          X"$as_dir" : 'X\(/\)' \| \
25334          .     : '\(.\)' 2>/dev/null ||
25335 echo X"$as_dir" |
25336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25338           /^X\(\/\/\)$/{ s//\1/; q; }
25339           /^X\(\/\).*/{ s//\1/; q; }
25340           s/.*/./; q'`
25341     done
25342     test ! -n "$as_dirs" || mkdir $as_dirs
25343   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25345    { (exit 1); exit 1; }; }; }
25346
25347   ac_builddir=.
25348
25349 if test "$ac_dir" != .; then
25350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25351   # A "../" for each directory in $ac_dir_suffix.
25352   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25353 else
25354   ac_dir_suffix= ac_top_builddir=
25355 fi
25356
25357 case $srcdir in
25358   .)  # No --srcdir option.  We are building in place.
25359     ac_srcdir=.
25360     if test -z "$ac_top_builddir"; then
25361        ac_top_srcdir=.
25362     else
25363        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25364     fi ;;
25365   [\\/]* | ?:[\\/]* )  # Absolute path.
25366     ac_srcdir=$srcdir$ac_dir_suffix;
25367     ac_top_srcdir=$srcdir ;;
25368   *) # Relative path.
25369     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25370     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25371 esac
25372
25373 # Do not use `cd foo && pwd` to compute absolute paths, because
25374 # the directories may not exist.
25375 case `pwd` in
25376 .) ac_abs_builddir="$ac_dir";;
25377 *)
25378   case "$ac_dir" in
25379   .) ac_abs_builddir=`pwd`;;
25380   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25381   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25382   esac;;
25383 esac
25384 case $ac_abs_builddir in
25385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25386 *)
25387   case ${ac_top_builddir}. in
25388   .) ac_abs_top_builddir=$ac_abs_builddir;;
25389   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25390   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25391   esac;;
25392 esac
25393 case $ac_abs_builddir in
25394 .) ac_abs_srcdir=$ac_srcdir;;
25395 *)
25396   case $ac_srcdir in
25397   .) ac_abs_srcdir=$ac_abs_builddir;;
25398   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25399   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25400   esac;;
25401 esac
25402 case $ac_abs_builddir in
25403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25404 *)
25405   case $ac_top_srcdir in
25406   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25407   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25408   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25409   esac;;
25410 esac
25411
25412
25413   case $INSTALL in
25414   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25415   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25416   esac
25417
25418   if test x"$ac_file" != x-; then
25419     { echo "$as_me:$LINENO: creating $ac_file" >&5
25420 echo "$as_me: creating $ac_file" >&6;}
25421     rm -f "$ac_file"
25422   fi
25423   # Let's still pretend it is `configure' which instantiates (i.e., don't
25424   # use $as_me), people would be surprised to read:
25425   #    /* config.h.  Generated by config.status.  */
25426   if test x"$ac_file" = x-; then
25427     configure_input=
25428   else
25429     configure_input="$ac_file.  "
25430   fi
25431   configure_input=$configure_input"Generated from `echo $ac_file_in |
25432                                      sed 's,.*/,,'` by configure."
25433
25434   # First look for the input files in the build tree, otherwise in the
25435   # src tree.
25436   ac_file_inputs=`IFS=:
25437     for f in $ac_file_in; do
25438       case $f in
25439       -) echo $tmp/stdin ;;
25440       [\\/$]*)
25441          # Absolute (can't be DOS-style, as IFS=:)
25442          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25443 echo "$as_me: error: cannot find input file: $f" >&2;}
25444    { (exit 1); exit 1; }; }
25445          echo "$f";;
25446       *) # Relative
25447          if test -f "$f"; then
25448            # Build tree
25449            echo "$f"
25450          elif test -f "$srcdir/$f"; then
25451            # Source tree
25452            echo "$srcdir/$f"
25453          else
25454            # /dev/null tree
25455            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25456 echo "$as_me: error: cannot find input file: $f" >&2;}
25457    { (exit 1); exit 1; }; }
25458          fi;;
25459       esac
25460     done` || { (exit 1); exit 1; }
25461 _ACEOF
25462 cat >>$CONFIG_STATUS <<_ACEOF
25463   sed "$ac_vpsub
25464 $extrasub
25465 _ACEOF
25466 cat >>$CONFIG_STATUS <<\_ACEOF
25467 :t
25468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25469 s,@configure_input@,$configure_input,;t t
25470 s,@srcdir@,$ac_srcdir,;t t
25471 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25472 s,@top_srcdir@,$ac_top_srcdir,;t t
25473 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25474 s,@builddir@,$ac_builddir,;t t
25475 s,@abs_builddir@,$ac_abs_builddir,;t t
25476 s,@top_builddir@,$ac_top_builddir,;t t
25477 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25478 s,@INSTALL@,$ac_INSTALL,;t t
25479 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25480   rm -f $tmp/stdin
25481   if test x"$ac_file" != x-; then
25482     mv $tmp/out $ac_file
25483   else
25484     cat $tmp/out
25485     rm -f $tmp/out
25486   fi
25487
25488 done
25489 _ACEOF
25490 cat >>$CONFIG_STATUS <<\_ACEOF
25491
25492 #
25493 # CONFIG_HEADER section.
25494 #
25495
25496 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25497 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25498 #
25499 # ac_d sets the value in "#define NAME VALUE" lines.
25500 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25501 ac_dB='[         ].*$,\1#\2'
25502 ac_dC=' '
25503 ac_dD=',;t'
25504 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25505 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25506 ac_uB='$,\1#\2define\3'
25507 ac_uC=' '
25508 ac_uD=',;t'
25509
25510 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25511   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25512   case $ac_file in
25513   - | *:- | *:-:* ) # input from stdin
25514         cat >$tmp/stdin
25515         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25516         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25517   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25518         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25519   * )   ac_file_in=$ac_file.in ;;
25520   esac
25521
25522   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25523 echo "$as_me: creating $ac_file" >&6;}
25524
25525   # First look for the input files in the build tree, otherwise in the
25526   # src tree.
25527   ac_file_inputs=`IFS=:
25528     for f in $ac_file_in; do
25529       case $f in
25530       -) echo $tmp/stdin ;;
25531       [\\/$]*)
25532          # Absolute (can't be DOS-style, as IFS=:)
25533          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25534 echo "$as_me: error: cannot find input file: $f" >&2;}
25535    { (exit 1); exit 1; }; }
25536          # Do quote $f, to prevent DOS paths from being IFS'd.
25537          echo "$f";;
25538       *) # Relative
25539          if test -f "$f"; then
25540            # Build tree
25541            echo "$f"
25542          elif test -f "$srcdir/$f"; then
25543            # Source tree
25544            echo "$srcdir/$f"
25545          else
25546            # /dev/null tree
25547            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25548 echo "$as_me: error: cannot find input file: $f" >&2;}
25549    { (exit 1); exit 1; }; }
25550          fi;;
25551       esac
25552     done` || { (exit 1); exit 1; }
25553   # Remove the trailing spaces.
25554   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25555
25556 _ACEOF
25557
25558 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25559 # `conftest.undefs', that substitutes the proper values into
25560 # config.h.in to produce config.h.  The first handles `#define'
25561 # templates, and the second `#undef' templates.
25562 # And first: Protect against being on the right side of a sed subst in
25563 # config.status.  Protect against being in an unquoted here document
25564 # in config.status.
25565 rm -f conftest.defines conftest.undefs
25566 # Using a here document instead of a string reduces the quoting nightmare.
25567 # Putting comments in sed scripts is not portable.
25568 #
25569 # `end' is used to avoid that the second main sed command (meant for
25570 # 0-ary CPP macros) applies to n-ary macro definitions.
25571 # See the Autoconf documentation for `clear'.
25572 cat >confdef2sed.sed <<\_ACEOF
25573 s/[\\&,]/\\&/g
25574 s,[\\$`],\\&,g
25575 t clear
25576 : clear
25577 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25578 t end
25579 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25580 : end
25581 _ACEOF
25582 # If some macros were called several times there might be several times
25583 # the same #defines, which is useless.  Nevertheless, we may not want to
25584 # sort them, since we want the *last* AC-DEFINE to be honored.
25585 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25586 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25587 rm -f confdef2sed.sed
25588
25589 # This sed command replaces #undef with comments.  This is necessary, for
25590 # example, in the case of _POSIX_SOURCE, which is predefined and required
25591 # on some systems where configure will not decide to define it.
25592 cat >>conftest.undefs <<\_ACEOF
25593 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25594 _ACEOF
25595
25596 # Break up conftest.defines because some shells have a limit on the size
25597 # of here documents, and old seds have small limits too (100 cmds).
25598 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25599 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25600 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25601 echo '  :' >>$CONFIG_STATUS
25602 rm -f conftest.tail
25603 while grep . conftest.defines >/dev/null
25604 do
25605   # Write a limited-size here document to $tmp/defines.sed.
25606   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25607   # Speed up: don't consider the non `#define' lines.
25608   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25609   # Work around the forget-to-reset-the-flag bug.
25610   echo 't clr' >>$CONFIG_STATUS
25611   echo ': clr' >>$CONFIG_STATUS
25612   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25613   echo 'CEOF
25614   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25615   rm -f $tmp/in
25616   mv $tmp/out $tmp/in
25617 ' >>$CONFIG_STATUS
25618   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25619   rm -f conftest.defines
25620   mv conftest.tail conftest.defines
25621 done
25622 rm -f conftest.defines
25623 echo '  fi # grep' >>$CONFIG_STATUS
25624 echo >>$CONFIG_STATUS
25625
25626 # Break up conftest.undefs because some shells have a limit on the size
25627 # of here documents, and old seds have small limits too (100 cmds).
25628 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25629 rm -f conftest.tail
25630 while grep . conftest.undefs >/dev/null
25631 do
25632   # Write a limited-size here document to $tmp/undefs.sed.
25633   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25634   # Speed up: don't consider the non `#undef'
25635   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25636   # Work around the forget-to-reset-the-flag bug.
25637   echo 't clr' >>$CONFIG_STATUS
25638   echo ': clr' >>$CONFIG_STATUS
25639   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25640   echo 'CEOF
25641   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25642   rm -f $tmp/in
25643   mv $tmp/out $tmp/in
25644 ' >>$CONFIG_STATUS
25645   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25646   rm -f conftest.undefs
25647   mv conftest.tail conftest.undefs
25648 done
25649 rm -f conftest.undefs
25650
25651 cat >>$CONFIG_STATUS <<\_ACEOF
25652   # Let's still pretend it is `configure' which instantiates (i.e., don't
25653   # use $as_me), people would be surprised to read:
25654   #    /* config.h.  Generated by config.status.  */
25655   if test x"$ac_file" = x-; then
25656     echo "/* Generated by configure.  */" >$tmp/config.h
25657   else
25658     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25659   fi
25660   cat $tmp/in >>$tmp/config.h
25661   rm -f $tmp/in
25662   if test x"$ac_file" != x-; then
25663     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25664       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25665 echo "$as_me: $ac_file is unchanged" >&6;}
25666     else
25667       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25669          X"$ac_file" : 'X\(//\)[^/]' \| \
25670          X"$ac_file" : 'X\(//\)$' \| \
25671          X"$ac_file" : 'X\(/\)' \| \
25672          .     : '\(.\)' 2>/dev/null ||
25673 echo X"$ac_file" |
25674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25676           /^X\(\/\/\)$/{ s//\1/; q; }
25677           /^X\(\/\).*/{ s//\1/; q; }
25678           s/.*/./; q'`
25679       { if $as_mkdir_p; then
25680     mkdir -p "$ac_dir"
25681   else
25682     as_dir="$ac_dir"
25683     as_dirs=
25684     while test ! -d "$as_dir"; do
25685       as_dirs="$as_dir $as_dirs"
25686       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25688          X"$as_dir" : 'X\(//\)[^/]' \| \
25689          X"$as_dir" : 'X\(//\)$' \| \
25690          X"$as_dir" : 'X\(/\)' \| \
25691          .     : '\(.\)' 2>/dev/null ||
25692 echo X"$as_dir" |
25693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25695           /^X\(\/\/\)$/{ s//\1/; q; }
25696           /^X\(\/\).*/{ s//\1/; q; }
25697           s/.*/./; q'`
25698     done
25699     test ! -n "$as_dirs" || mkdir $as_dirs
25700   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25702    { (exit 1); exit 1; }; }; }
25703
25704       rm -f $ac_file
25705       mv $tmp/config.h $ac_file
25706     fi
25707   else
25708     cat $tmp/config.h
25709     rm -f $tmp/config.h
25710   fi
25711 done
25712 _ACEOF
25713 cat >>$CONFIG_STATUS <<\_ACEOF
25714
25715 #
25716 # CONFIG_LINKS section.
25717 #
25718
25719 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25720   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25721   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25722
25723   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25724 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25725
25726   if test ! -r $srcdir/$ac_source; then
25727     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25728 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25729    { (exit 1); exit 1; }; }
25730   fi
25731   rm -f $ac_dest
25732
25733   # Make relative symlinks.
25734   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25735 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25736          X"$ac_dest" : 'X\(//\)[^/]' \| \
25737          X"$ac_dest" : 'X\(//\)$' \| \
25738          X"$ac_dest" : 'X\(/\)' \| \
25739          .     : '\(.\)' 2>/dev/null ||
25740 echo X"$ac_dest" |
25741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25743           /^X\(\/\/\)$/{ s//\1/; q; }
25744           /^X\(\/\).*/{ s//\1/; q; }
25745           s/.*/./; q'`
25746   { if $as_mkdir_p; then
25747     mkdir -p "$ac_dest_dir"
25748   else
25749     as_dir="$ac_dest_dir"
25750     as_dirs=
25751     while test ! -d "$as_dir"; do
25752       as_dirs="$as_dir $as_dirs"
25753       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25755          X"$as_dir" : 'X\(//\)[^/]' \| \
25756          X"$as_dir" : 'X\(//\)$' \| \
25757          X"$as_dir" : 'X\(/\)' \| \
25758          .     : '\(.\)' 2>/dev/null ||
25759 echo X"$as_dir" |
25760     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25761           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25762           /^X\(\/\/\)$/{ s//\1/; q; }
25763           /^X\(\/\).*/{ s//\1/; q; }
25764           s/.*/./; q'`
25765     done
25766     test ! -n "$as_dirs" || mkdir $as_dirs
25767   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25768 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25769    { (exit 1); exit 1; }; }; }
25770
25771   ac_builddir=.
25772
25773 if test "$ac_dest_dir" != .; then
25774   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25775   # A "../" for each directory in $ac_dir_suffix.
25776   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25777 else
25778   ac_dir_suffix= ac_top_builddir=
25779 fi
25780
25781 case $srcdir in
25782   .)  # No --srcdir option.  We are building in place.
25783     ac_srcdir=.
25784     if test -z "$ac_top_builddir"; then
25785        ac_top_srcdir=.
25786     else
25787        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25788     fi ;;
25789   [\\/]* | ?:[\\/]* )  # Absolute path.
25790     ac_srcdir=$srcdir$ac_dir_suffix;
25791     ac_top_srcdir=$srcdir ;;
25792   *) # Relative path.
25793     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25794     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25795 esac
25796
25797 # Do not use `cd foo && pwd` to compute absolute paths, because
25798 # the directories may not exist.
25799 case `pwd` in
25800 .) ac_abs_builddir="$ac_dest_dir";;
25801 *)
25802   case "$ac_dest_dir" in
25803   .) ac_abs_builddir=`pwd`;;
25804   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25805   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25806   esac;;
25807 esac
25808 case $ac_abs_builddir in
25809 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25810 *)
25811   case ${ac_top_builddir}. in
25812   .) ac_abs_top_builddir=$ac_abs_builddir;;
25813   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25814   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25815   esac;;
25816 esac
25817 case $ac_abs_builddir in
25818 .) ac_abs_srcdir=$ac_srcdir;;
25819 *)
25820   case $ac_srcdir in
25821   .) ac_abs_srcdir=$ac_abs_builddir;;
25822   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25823   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25824   esac;;
25825 esac
25826 case $ac_abs_builddir in
25827 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25828 *)
25829   case $ac_top_srcdir in
25830   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25831   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25832   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25833   esac;;
25834 esac
25835
25836
25837   case $srcdir in
25838   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25839       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25840   esac
25841
25842   # Try a symlink, then a hard link, then a copy.
25843   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25844     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25845     cp -p $srcdir/$ac_source $ac_dest ||
25846     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25847 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25848    { (exit 1); exit 1; }; }
25849 done
25850 _ACEOF
25851 cat >>$CONFIG_STATUS <<\_ACEOF
25852
25853 #
25854 # CONFIG_COMMANDS section.
25855 #
25856 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25857   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25858   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25859   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25860 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25861          X"$ac_dest" : 'X\(//\)[^/]' \| \
25862          X"$ac_dest" : 'X\(//\)$' \| \
25863          X"$ac_dest" : 'X\(/\)' \| \
25864          .     : '\(.\)' 2>/dev/null ||
25865 echo X"$ac_dest" |
25866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25868           /^X\(\/\/\)$/{ s//\1/; q; }
25869           /^X\(\/\).*/{ s//\1/; q; }
25870           s/.*/./; q'`
25871   { if $as_mkdir_p; then
25872     mkdir -p "$ac_dir"
25873   else
25874     as_dir="$ac_dir"
25875     as_dirs=
25876     while test ! -d "$as_dir"; do
25877       as_dirs="$as_dir $as_dirs"
25878       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25880          X"$as_dir" : 'X\(//\)[^/]' \| \
25881          X"$as_dir" : 'X\(//\)$' \| \
25882          X"$as_dir" : 'X\(/\)' \| \
25883          .     : '\(.\)' 2>/dev/null ||
25884 echo X"$as_dir" |
25885     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25886           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25887           /^X\(\/\/\)$/{ s//\1/; q; }
25888           /^X\(\/\).*/{ s//\1/; q; }
25889           s/.*/./; q'`
25890     done
25891     test ! -n "$as_dirs" || mkdir $as_dirs
25892   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25893 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25894    { (exit 1); exit 1; }; }; }
25895
25896   ac_builddir=.
25897
25898 if test "$ac_dir" != .; then
25899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25900   # A "../" for each directory in $ac_dir_suffix.
25901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25902 else
25903   ac_dir_suffix= ac_top_builddir=
25904 fi
25905
25906 case $srcdir in
25907   .)  # No --srcdir option.  We are building in place.
25908     ac_srcdir=.
25909     if test -z "$ac_top_builddir"; then
25910        ac_top_srcdir=.
25911     else
25912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25913     fi ;;
25914   [\\/]* | ?:[\\/]* )  # Absolute path.
25915     ac_srcdir=$srcdir$ac_dir_suffix;
25916     ac_top_srcdir=$srcdir ;;
25917   *) # Relative path.
25918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25920 esac
25921
25922 # Do not use `cd foo && pwd` to compute absolute paths, because
25923 # the directories may not exist.
25924 case `pwd` in
25925 .) ac_abs_builddir="$ac_dir";;
25926 *)
25927   case "$ac_dir" in
25928   .) ac_abs_builddir=`pwd`;;
25929   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25930   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25931   esac;;
25932 esac
25933 case $ac_abs_builddir in
25934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25935 *)
25936   case ${ac_top_builddir}. in
25937   .) ac_abs_top_builddir=$ac_abs_builddir;;
25938   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25939   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25940   esac;;
25941 esac
25942 case $ac_abs_builddir in
25943 .) ac_abs_srcdir=$ac_srcdir;;
25944 *)
25945   case $ac_srcdir in
25946   .) ac_abs_srcdir=$ac_abs_builddir;;
25947   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25948   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25949   esac;;
25950 esac
25951 case $ac_abs_builddir in
25952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25953 *)
25954   case $ac_top_srcdir in
25955   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25956   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25957   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25958   esac;;
25959 esac
25960
25961
25962   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25963 echo "$as_me: executing $ac_dest commands" >&6;}
25964   case $ac_dest in
25965     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25966     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25967     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25968     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25969     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25970     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25971     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25972     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25973     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25974     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25975     tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
25976     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25977     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25978   esac
25979 done
25980 _ACEOF
25981
25982 cat >>$CONFIG_STATUS <<\_ACEOF
25983
25984 { (exit 0); exit 0; }
25985 _ACEOF
25986 chmod +x $CONFIG_STATUS
25987 ac_clean_files=$ac_clean_files_save
25988
25989
25990 # configure is writing to config.log, and then calls config.status.
25991 # config.status does its own redirection, appending to config.log.
25992 # Unfortunately, on DOS this fails, as config.log is still kept open
25993 # by configure, so config.status won't be able to write to it; its
25994 # output is simply discarded.  So we exec the FD to /dev/null,
25995 # effectively closing config.log, so it can be properly (re)opened and
25996 # appended to by config.status.  When coming back to configure, we
25997 # need to make the FD available again.
25998 if test "$no_create" != yes; then
25999   ac_cs_success=:
26000   ac_config_status_args=
26001   test "$silent" = yes &&
26002     ac_config_status_args="$ac_config_status_args --quiet"
26003   exec 5>/dev/null
26004   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26005   exec 5>>config.log
26006   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26007   # would make configure fail if this is the last instruction.
26008   $ac_cs_success || { (exit 1); exit 1; }
26009 fi
26010
26011 #
26012 # CONFIG_SUBDIRS section.
26013 #
26014 if test "$no_recursion" != yes; then
26015
26016   # Remove --cache-file and --srcdir arguments so they do not pile up.
26017   ac_sub_configure_args=
26018   ac_prev=
26019   for ac_arg in $ac_configure_args; do
26020     if test -n "$ac_prev"; then
26021       ac_prev=
26022       continue
26023     fi
26024     case $ac_arg in
26025     -cache-file | --cache-file | --cache-fil | --cache-fi \
26026     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26027       ac_prev=cache_file ;;
26028     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26029     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26030     | --c=*)
26031       ;;
26032     --config-cache | -C)
26033       ;;
26034     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26035       ac_prev=srcdir ;;
26036     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26037       ;;
26038     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26039       ac_prev=prefix ;;
26040     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26041       ;;
26042     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26043     esac
26044   done
26045
26046   # Always prepend --prefix to ensure using the same prefix
26047   # in subdir configurations.
26048   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26049
26050   ac_popdir=`pwd`
26051   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26052
26053     # Do not complain, so a configure script can configure whichever
26054     # parts of a large source tree are present.
26055     test -d $srcdir/$ac_dir || continue
26056
26057     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26058 echo "$as_me: configuring in $ac_dir" >&6;}
26059     { if $as_mkdir_p; then
26060     mkdir -p "$ac_dir"
26061   else
26062     as_dir="$ac_dir"
26063     as_dirs=
26064     while test ! -d "$as_dir"; do
26065       as_dirs="$as_dir $as_dirs"
26066       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26068          X"$as_dir" : 'X\(//\)[^/]' \| \
26069          X"$as_dir" : 'X\(//\)$' \| \
26070          X"$as_dir" : 'X\(/\)' \| \
26071          .     : '\(.\)' 2>/dev/null ||
26072 echo X"$as_dir" |
26073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26075           /^X\(\/\/\)$/{ s//\1/; q; }
26076           /^X\(\/\).*/{ s//\1/; q; }
26077           s/.*/./; q'`
26078     done
26079     test ! -n "$as_dirs" || mkdir $as_dirs
26080   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26082    { (exit 1); exit 1; }; }; }
26083
26084     ac_builddir=.
26085
26086 if test "$ac_dir" != .; then
26087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26088   # A "../" for each directory in $ac_dir_suffix.
26089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26090 else
26091   ac_dir_suffix= ac_top_builddir=
26092 fi
26093
26094 case $srcdir in
26095   .)  # No --srcdir option.  We are building in place.
26096     ac_srcdir=.
26097     if test -z "$ac_top_builddir"; then
26098        ac_top_srcdir=.
26099     else
26100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26101     fi ;;
26102   [\\/]* | ?:[\\/]* )  # Absolute path.
26103     ac_srcdir=$srcdir$ac_dir_suffix;
26104     ac_top_srcdir=$srcdir ;;
26105   *) # Relative path.
26106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26108 esac
26109
26110 # Do not use `cd foo && pwd` to compute absolute paths, because
26111 # the directories may not exist.
26112 case `pwd` in
26113 .) ac_abs_builddir="$ac_dir";;
26114 *)
26115   case "$ac_dir" in
26116   .) ac_abs_builddir=`pwd`;;
26117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26119   esac;;
26120 esac
26121 case $ac_abs_builddir in
26122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26123 *)
26124   case ${ac_top_builddir}. in
26125   .) ac_abs_top_builddir=$ac_abs_builddir;;
26126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26128   esac;;
26129 esac
26130 case $ac_abs_builddir in
26131 .) ac_abs_srcdir=$ac_srcdir;;
26132 *)
26133   case $ac_srcdir in
26134   .) ac_abs_srcdir=$ac_abs_builddir;;
26135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26137   esac;;
26138 esac
26139 case $ac_abs_builddir in
26140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26141 *)
26142   case $ac_top_srcdir in
26143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26146   esac;;
26147 esac
26148
26149
26150     cd $ac_dir
26151
26152     # Check for guested configure; otherwise get Cygnus style configure.
26153     if test -f $ac_srcdir/configure.gnu; then
26154       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26155     elif test -f $ac_srcdir/configure; then
26156       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26157     elif test -f $ac_srcdir/configure.in; then
26158       ac_sub_configure=$ac_configure
26159     else
26160       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26162       ac_sub_configure=
26163     fi
26164
26165     # The recursion is here.
26166     if test -n "$ac_sub_configure"; then
26167       # Make the cache file name correct relative to the subdirectory.
26168       case $cache_file in
26169       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26170       *) # Relative path.
26171         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26172       esac
26173
26174       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26175 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26176       # The eval makes quoting arguments work.
26177       eval $ac_sub_configure $ac_sub_configure_args \
26178            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26179         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26180 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26181    { (exit 1); exit 1; }; }
26182     fi
26183
26184     cd $ac_popdir
26185   done
26186 fi
26187
26188
26189 if test $bzip2_found -ne 1 ; then
26190   if test $zlib_found -ne 1 ; then
26191     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26192 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26193     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26194 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26195     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26196 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26197   fi
26198 fi
26199
26200 if test $llvmgccwarn = yes
26201 then
26202         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26203 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26204         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26205 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26206         { echo "$as_me:$LINENO: WARNING: ***** " >&5
26207 echo "$as_me: WARNING: ***** " >&2;}
26208         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26209 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26210         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26211 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26212         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26213 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26214 fi
26215