Resolution to PR451.
[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 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 utils/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands projects/Makefile"
1648
1649
1650
1651 # Find a good install program.  We prefer a C program (faster),
1652 # so one script is as good as another.  But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1657 # AIX /bin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   # Account for people who put trailing slashes in PATH elements.
1676 case $as_dir/ in
1677   ./ | .// | /cC/* | \
1678   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680   /usr/ucb/* ) ;;
1681   *)
1682     # OSF1 and SCO ODT 3.0 have their own names for install.
1683     # Don't use installbsd from OSF since it installs stuff as root
1684     # by default.
1685     for ac_prog in ginstall scoinst install; do
1686       for ac_exec_ext in '' $ac_executable_extensions; do
1687         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688           if test $ac_prog = install &&
1689             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690             # AIX install.  It has an incompatible calling convention.
1691             :
1692           elif test $ac_prog = install &&
1693             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694             # program-specific install script used by HP pwplus--don't use.
1695             :
1696           else
1697             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1698             break 3
1699           fi
1700         fi
1701       done
1702     done
1703     ;;
1704 esac
1705 done
1706
1707
1708 fi
1709   if test "${ac_cv_path_install+set}" = set; then
1710     INSTALL=$ac_cv_path_install
1711   else
1712     # As a last resort, use the slow shell script.  We don't cache a
1713     # path for INSTALL within a source directory, because that will
1714     # break other packages using the cache if that directory is
1715     # removed, or if the path is relative.
1716     INSTALL=$ac_install_sh
1717   fi
1718 fi
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1721
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1725
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1727
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1729
1730
1731 # Make sure we can run config.sub.
1732 $ac_config_sub sun4 >/dev/null 2>&1 ||
1733   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735    { (exit 1); exit 1; }; }
1736
1737 echo "$as_me:$LINENO: checking build system type" >&5
1738 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739 if test "${ac_cv_build+set}" = set; then
1740   echo $ECHO_N "(cached) $ECHO_C" >&6
1741 else
1742   ac_cv_build_alias=$build_alias
1743 test -z "$ac_cv_build_alias" &&
1744   ac_cv_build_alias=`$ac_config_guess`
1745 test -z "$ac_cv_build_alias" &&
1746   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748    { (exit 1); exit 1; }; }
1749 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752    { (exit 1); exit 1; }; }
1753
1754 fi
1755 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756 echo "${ECHO_T}$ac_cv_build" >&6
1757 build=$ac_cv_build
1758 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1761
1762
1763 echo "$as_me:$LINENO: checking host system type" >&5
1764 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765 if test "${ac_cv_host+set}" = set; then
1766   echo $ECHO_N "(cached) $ECHO_C" >&6
1767 else
1768   ac_cv_host_alias=$host_alias
1769 test -z "$ac_cv_host_alias" &&
1770   ac_cv_host_alias=$ac_cv_build_alias
1771 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774    { (exit 1); exit 1; }; }
1775
1776 fi
1777 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778 echo "${ECHO_T}$ac_cv_host" >&6
1779 host=$ac_cv_host
1780 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1783
1784
1785 echo "$as_me:$LINENO: checking target system type" >&5
1786 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1787 if test "${ac_cv_target+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   ac_cv_target_alias=$target_alias
1791 test "x$ac_cv_target_alias" = "x" &&
1792   ac_cv_target_alias=$ac_cv_host_alias
1793 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1794   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1795 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1796    { (exit 1); exit 1; }; }
1797
1798 fi
1799 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1800 echo "${ECHO_T}$ac_cv_target" >&6
1801 target=$ac_cv_target
1802 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1803 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1804 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1805
1806
1807 # The aliases save the names the user supplied, while $host etc.
1808 # will get canonicalized.
1809 test -n "$target_alias" &&
1810   test "$program_prefix$program_suffix$program_transform_name" = \
1811     NONENONEs,x,x, &&
1812   program_prefix=${target_alias}-
1813
1814
1815 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1816 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1817 case $build in
1818         *-*-aix*)
1819              OS=AIX
1820
1821              platform_type="AIX"
1822              ;;
1823         *-*-cygwin*)
1824              OS=Cygwin
1825
1826              platform_type="Cygwin"
1827              ;;
1828         *-*-darwin*)
1829              OS=Darwin
1830
1831              platform_type="Darwin"
1832              ;;
1833         *-*-freebsd*)
1834              OS=Linux
1835
1836              platform_type="FreeBSD"
1837              ;;
1838         *-*-interix*)
1839              OS=SunOS
1840
1841              platform_type="Interix"
1842              ;;
1843         *-*-linux*)
1844              OS=Linux
1845
1846              platform_type="Linux"
1847              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1848              then
1849                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1850
1851              fi
1852              ;;
1853         *-*-solaris*)
1854              OS=SunOS
1855
1856              platform_type="SunOS"
1857              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1858              then
1859                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1860
1861              fi
1862              ;;
1863         *-*-win32*)
1864              OS=Win32
1865
1866              platform_type="Win32"
1867              ;;
1868         *-*-mingw*)
1869              OS=Win32
1870
1871              platform_type="Win32"
1872              ;;
1873         *)
1874              OS=Unknown
1875
1876              platform_type="Unknown"
1877              ;;
1878 esac
1879
1880 if test "$platform_type" = "Unknown" ; then
1881   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1882 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1887
1888
1889
1890 echo "$as_me:$LINENO: checking target architecture" >&5
1891 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1892 case $target in
1893         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1894
1895                             ;;
1896 esac
1897
1898 case $target in
1899         i*86-*)
1900           ARCH="x86"
1901           ARCH=x86
1902
1903           ;;
1904         sparc*-*)
1905           ARCH="Sparc"
1906           ARCH=Sparc
1907
1908           ;;
1909         powerpc*-*)
1910           ARCH="PowerPC"
1911           ARCH=PowerPC
1912
1913           ;;
1914         *)
1915           ARCH="Unknown"
1916           ARCH=Unknown
1917
1918           ;;
1919 esac
1920
1921 echo "$as_me:$LINENO: result: $ARCH" >&5
1922 echo "${ECHO_T}$ARCH" >&6
1923
1924 ac_ext=cc
1925 ac_cpp='$CXXCPP $CPPFLAGS'
1926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1929 if test -n "$ac_tool_prefix"; then
1930   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1931   do
1932     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1934 echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936 if test "${ac_cv_prog_CXX+set}" = set; then
1937   echo $ECHO_N "(cached) $ECHO_C" >&6
1938 else
1939   if test -n "$CXX"; then
1940   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1941 else
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945   IFS=$as_save_IFS
1946   test -z "$as_dir" && as_dir=.
1947   for ac_exec_ext in '' $ac_executable_extensions; do
1948   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951     break 2
1952   fi
1953 done
1954 done
1955
1956 fi
1957 fi
1958 CXX=$ac_cv_prog_CXX
1959 if test -n "$CXX"; then
1960   echo "$as_me:$LINENO: result: $CXX" >&5
1961 echo "${ECHO_T}$CXX" >&6
1962 else
1963   echo "$as_me:$LINENO: result: no" >&5
1964 echo "${ECHO_T}no" >&6
1965 fi
1966
1967     test -n "$CXX" && break
1968   done
1969 fi
1970 if test -z "$CXX"; then
1971   ac_ct_CXX=$CXX
1972   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1973 do
1974   # Extract the first word of "$ac_prog", so it can be a program name with args.
1975 set dummy $ac_prog; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_CXX"; then
1982   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_CXX="$ac_prog"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998 fi
1999 fi
2000 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2001 if test -n "$ac_ct_CXX"; then
2002   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2003 echo "${ECHO_T}$ac_ct_CXX" >&6
2004 else
2005   echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2007 fi
2008
2009   test -n "$ac_ct_CXX" && break
2010 done
2011 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2012
2013   CXX=$ac_ct_CXX
2014 fi
2015
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019      "checking for C++ compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022   (eval $ac_compiler --version </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027   (eval $ac_compiler -v </dev/null >&5) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032   (eval $ac_compiler -V </dev/null >&5) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h.  */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h.  */
2043
2044 int
2045 main ()
2046 {
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2056 # of exeext.
2057 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2058 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061   (eval $ac_link_default) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; then
2065   # Find the output, starting from the most likely.  This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067 # resort.
2068
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 ac_cv_exeext=
2072 # b.out is created by i960 compilers.
2073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 do
2075   test -f "$ac_file" || continue
2076   case $ac_file in
2077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078         ;;
2079     conftest.$ac_ext )
2080         # This is the source file.
2081         ;;
2082     [ab].out )
2083         # We found the default executable, but exeext='' is most
2084         # certainly right.
2085         break;;
2086     *.* )
2087         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088         # FIXME: I believe we export ac_cv_exeext for Libtool,
2089         # but it would be cool to find out if it's true.  Does anybody
2090         # maintain Libtool? --akim.
2091         export ac_cv_exeext
2092         break;;
2093     * )
2094         break;;
2095   esac
2096 done
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C++ compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105    { (exit 77); exit 77; }; }
2106 fi
2107
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2111
2112 # Check the compiler produces executables we can run.  If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2115 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119   if { ac_try='./$ac_file'
2120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121   (eval $ac_try) 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }; }; then
2125     cross_compiling=no
2126   else
2127     if test "$cross_compiling" = maybe; then
2128         cross_compiling=yes
2129     else
2130         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C++ compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137     fi
2138   fi
2139 fi
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2142
2143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 ac_clean_files=$ac_clean_files_save
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2151
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155   (eval $ac_link) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; then
2159   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2162 # `rm'.
2163 for ac_file in conftest.exe conftest conftest.*; do
2164   test -f "$ac_file" || continue
2165   case $ac_file in
2166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168           export ac_cv_exeext
2169           break;;
2170     * ) break;;
2171   esac
2172 done
2173 else
2174   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178    { (exit 1); exit 1; }; }
2179 fi
2180
2181 rm -f conftest$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2184
2185 rm -f conftest.$ac_ext
2186 EXEEXT=$ac_cv_exeext
2187 ac_exeext=$EXEEXT
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   cat >conftest.$ac_ext <<_ACEOF
2194 /* confdefs.h.  */
2195 _ACEOF
2196 cat confdefs.h >>conftest.$ac_ext
2197 cat >>conftest.$ac_ext <<_ACEOF
2198 /* end confdefs.h.  */
2199
2200 int
2201 main ()
2202 {
2203
2204   ;
2205   return 0;
2206 }
2207 _ACEOF
2208 rm -f conftest.o conftest.obj
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210   (eval $ac_compile) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; then
2214   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2215   case $ac_file in
2216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2217     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2218        break;;
2219   esac
2220 done
2221 else
2222   echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2228 See \`config.log' for more details." >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2233 fi
2234 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2235 echo "${ECHO_T}$ac_cv_objext" >&6
2236 OBJEXT=$ac_cv_objext
2237 ac_objext=$OBJEXT
2238 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h.  */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h.  */
2249
2250 int
2251 main ()
2252 {
2253 #ifndef __GNUC__
2254        choke me
2255 #endif
2256
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>conftest.er1
2264   ac_status=$?
2265   grep -v '^ *+' conftest.er1 >conftest.err
2266   rm -f conftest.er1
2267   cat conftest.err >&5
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); } &&
2270          { ac_try='test -z "$ac_cxx_werror_flag"
2271                          || test ! -s conftest.err'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; } &&
2277          { ac_try='test -s conftest.$ac_objext'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; }; then
2283   ac_compiler_gnu=yes
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 ac_compiler_gnu=no
2289 fi
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2292
2293 fi
2294 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2295 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2296 GXX=`test $ac_compiler_gnu = yes && echo yes`
2297 ac_test_CXXFLAGS=${CXXFLAGS+set}
2298 ac_save_CXXFLAGS=$CXXFLAGS
2299 CXXFLAGS="-g"
2300 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2301 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2302 if test "${ac_cv_prog_cxx_g+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_cxx_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   ac_cv_prog_cxx_g=yes
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 ac_cv_prog_cxx_g=no
2348 fi
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 fi
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2352 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2353 if test "$ac_test_CXXFLAGS" = set; then
2354   CXXFLAGS=$ac_save_CXXFLAGS
2355 elif test $ac_cv_prog_cxx_g = yes; then
2356   if test "$GXX" = yes; then
2357     CXXFLAGS="-g -O2"
2358   else
2359     CXXFLAGS="-g"
2360   fi
2361 else
2362   if test "$GXX" = yes; then
2363     CXXFLAGS="-O2"
2364   else
2365     CXXFLAGS=
2366   fi
2367 fi
2368 for ac_declaration in \
2369    '' \
2370    'extern "C" void std::exit (int) throw (); using std::exit;' \
2371    'extern "C" void std::exit (int); using std::exit;' \
2372    'extern "C" void exit (int) throw ();' \
2373    'extern "C" void exit (int);' \
2374    'void exit (int);'
2375 do
2376   cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382 $ac_declaration
2383 #include <stdlib.h>
2384 int
2385 main ()
2386 {
2387 exit (42);
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 rm -f conftest.$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394   (eval $ac_compile) 2>conftest.er1
2395   ac_status=$?
2396   grep -v '^ *+' conftest.er1 >conftest.err
2397   rm -f conftest.er1
2398   cat conftest.err >&5
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -z "$ac_cxx_werror_flag"
2402                          || test ! -s conftest.err'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   :
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419 continue
2420 fi
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422   cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428 $ac_declaration
2429 int
2430 main ()
2431 {
2432 exit (42);
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439   (eval $ac_compile) 2>conftest.er1
2440   ac_status=$?
2441   grep -v '^ *+' conftest.er1 >conftest.err
2442   rm -f conftest.er1
2443   cat conftest.err >&5
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -z "$ac_cxx_werror_flag"
2447                          || test ! -s conftest.err'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; } &&
2453          { ac_try='test -s conftest.$ac_objext'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459   break
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 fi
2465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466 done
2467 rm -f conftest*
2468 if test -n "$ac_declaration"; then
2469   echo '#ifdef __cplusplus' >>confdefs.h
2470   echo $ac_declaration      >>confdefs.h
2471   echo '#endif'             >>confdefs.h
2472 fi
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 if test -n "$ac_tool_prefix"; then
2486   for ac_prog in gcc
2487   do
2488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2490 echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493   echo $ECHO_N "(cached) $ECHO_C" >&6
2494 else
2495   if test -n "$CC"; then
2496   ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 for as_dir in $PATH
2500 do
2501   IFS=$as_save_IFS
2502   test -z "$as_dir" && as_dir=.
2503   for ac_exec_ext in '' $ac_executable_extensions; do
2504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507     break 2
2508   fi
2509 done
2510 done
2511
2512 fi
2513 fi
2514 CC=$ac_cv_prog_CC
2515 if test -n "$CC"; then
2516   echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6
2518 else
2519   echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2521 fi
2522
2523     test -n "$CC" && break
2524   done
2525 fi
2526 if test -z "$CC"; then
2527   ac_ct_CC=$CC
2528   for ac_prog in gcc
2529 do
2530   # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$ac_ct_CC"; then
2538   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547     ac_cv_prog_ac_ct_CC="$ac_prog"
2548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552 done
2553
2554 fi
2555 fi
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559 echo "${ECHO_T}$ac_ct_CC" >&6
2560 else
2561   echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6
2563 fi
2564
2565   test -n "$ac_ct_CC" && break
2566 done
2567
2568   CC=$ac_ct_CC
2569 fi
2570
2571
2572 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2573 See \`config.log' for more details." >&5
2574 echo "$as_me: error: no acceptable C compiler found in \$PATH
2575 See \`config.log' for more details." >&2;}
2576    { (exit 1); exit 1; }; }
2577
2578 # Provide some information about the compiler.
2579 echo "$as_me:$LINENO:" \
2580      "checking for C compiler version" >&5
2581 ac_compiler=`set X $ac_compile; echo $2`
2582 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2583   (eval $ac_compiler --version </dev/null >&5) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }
2587 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2588   (eval $ac_compiler -v </dev/null >&5) 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }
2592 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2593   (eval $ac_compiler -V </dev/null >&5) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }
2597
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613 #ifndef __GNUC__
2614        choke me
2615 #endif
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623   (eval $ac_compile) 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -z "$ac_c_werror_flag"
2631                          || test ! -s conftest.err'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   ac_compiler_gnu=yes
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 ac_compiler_gnu=no
2649 fi
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652
2653 fi
2654 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656 GCC=`test $ac_compiler_gnu = yes && echo yes`
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2659 CFLAGS="-g"
2660 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671
2672 int
2673 main ()
2674 {
2675
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>conftest.er1
2683   ac_status=$?
2684   grep -v '^ *+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } &&
2689          { ac_try='test -z "$ac_c_werror_flag"
2690                          || test ! -s conftest.err'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   ac_cv_prog_cc_g=yes
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 ac_cv_prog_cc_g=no
2708 fi
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713 if test "$ac_test_CFLAGS" = set; then
2714   CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716   if test "$GCC" = yes; then
2717     CFLAGS="-g -O2"
2718   else
2719     CFLAGS="-g"
2720   fi
2721 else
2722   if test "$GCC" = yes; then
2723     CFLAGS="-O2"
2724   else
2725     CFLAGS=
2726   fi
2727 fi
2728 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   ac_cv_prog_cc_stdc=no
2734 ac_save_CC=$CC
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741 #include <stdarg.h>
2742 #include <stdio.h>
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2749      char **p;
2750      int i;
2751 {
2752   return p[i];
2753 }
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2755 {
2756   char *s;
2757   va_list v;
2758   va_start (v,p);
2759   s = g (p, va_arg (v,int));
2760   va_end (v);
2761   return s;
2762 }
2763
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2765    function prototypes and stuff, but not '\xHH' hex character constants.
2766    These don't provoke an error unfortunately, instead are silently treated
2767    as 'x'.  The following induces an error, until -std1 is added to get
2768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2769    array size at least.  It's necessary to write '\x00'==0 to get something
2770    that's true only with -std1.  */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2777 int argc;
2778 char **argv;
2779 int
2780 main ()
2781 {
2782 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 # Don't try gcc -ansi; that turns off useful extensions and
2788 # breaks some systems' header files.
2789 # AIX                   -qlanglvl=ansi
2790 # Ultrix and OSF/1      -std1
2791 # HP-UX 10.20 and later -Ae
2792 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2793 # SVR4                  -Xc -D__EXTENSIONS__
2794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795 do
2796   CC="$ac_save_CC $ac_arg"
2797   rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799   (eval $ac_compile) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -z "$ac_c_werror_flag"
2807                          || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_cv_prog_cc_stdc=$ac_arg
2820 break
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 fi
2826 rm -f conftest.err conftest.$ac_objext
2827 done
2828 rm -f conftest.$ac_ext conftest.$ac_objext
2829 CC=$ac_save_CC
2830
2831 fi
2832
2833 case "x$ac_cv_prog_cc_stdc" in
2834   x|xno)
2835     echo "$as_me:$LINENO: result: none needed" >&5
2836 echo "${ECHO_T}none needed" >&6 ;;
2837   *)
2838     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840     CC="$CC $ac_cv_prog_cc_stdc" ;;
2841 esac
2842
2843 # Some people use a C++ compiler to compile C.  Since we use `exit',
2844 # in C++ we need to declare it.  In case someone uses the same compiler
2845 # for both compiling C and C++ we need to have the C++ compiler decide
2846 # the declaration of exit, since it's the most demanding environment.
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #ifndef __cplusplus
2849   choke me
2850 #endif
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   for ac_declaration in \
2875    '' \
2876    'extern "C" void std::exit (int) throw (); using std::exit;' \
2877    'extern "C" void std::exit (int); using std::exit;' \
2878    'extern "C" void exit (int) throw ();' \
2879    'extern "C" void exit (int);' \
2880    'void exit (int);'
2881 do
2882   cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 $ac_declaration
2889 #include <stdlib.h>
2890 int
2891 main ()
2892 {
2893 exit (42);
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900   (eval $ac_compile) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag"
2908                          || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   :
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 continue
2926 fi
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934 $ac_declaration
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_c_werror_flag"
2953                          || test ! -s conftest.err'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   break
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 done
2973 rm -f conftest*
2974 if test -n "$ac_declaration"; then
2975   echo '#ifdef __cplusplus' >>confdefs.h
2976   echo $ac_declaration      >>confdefs.h
2977   echo '#endif'             >>confdefs.h
2978 fi
2979
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 fi
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991
2992 if test "$GCC" != "yes"
2993 then
2994         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2995 echo "$as_me: error: gcc required but not found" >&2;}
2996    { (exit 1); exit 1; }; }
2997 fi
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3005 # On Suns, sometimes $CPP names a directory.
3006 if test -n "$CPP" && test -d "$CPP"; then
3007   CPP=
3008 fi
3009 if test -z "$CPP"; then
3010   if test "${ac_cv_prog_CPP+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013       # Double quotes because CPP needs to be expanded
3014     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3015     do
3016       ac_preproc_ok=false
3017 for ac_c_preproc_warn_flag in '' yes
3018 do
3019   # Use a header file that comes with gcc, so configuring glibc
3020   # with a fresh cross-compiler works.
3021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022   # <limits.h> exists even on freestanding compilers.
3023   # On the NeXT, cc -E runs the code through the compiler's parser,
3024   # not just through cpp. "Syntax error" is here to catch this case.
3025   cat >conftest.$ac_ext <<_ACEOF
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #ifdef __STDC__
3032 # include <limits.h>
3033 #else
3034 # include <assert.h>
3035 #endif
3036                      Syntax error
3037 _ACEOF
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3040   ac_status=$?
3041   grep -v '^ *+' conftest.er1 >conftest.err
3042   rm -f conftest.er1
3043   cat conftest.err >&5
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); } >/dev/null; then
3046   if test -s conftest.err; then
3047     ac_cpp_err=$ac_c_preproc_warn_flag
3048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3049   else
3050     ac_cpp_err=
3051   fi
3052 else
3053   ac_cpp_err=yes
3054 fi
3055 if test -z "$ac_cpp_err"; then
3056   :
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061   # Broken: fails on valid input.
3062 continue
3063 fi
3064 rm -f conftest.err conftest.$ac_ext
3065
3066   # OK, works on sane cases.  Now check whether non-existent headers
3067   # can be detected and how.
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 #include <ac_nonexistent.h>
3075 _ACEOF
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } >/dev/null; then
3084   if test -s conftest.err; then
3085     ac_cpp_err=$ac_c_preproc_warn_flag
3086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087   else
3088     ac_cpp_err=
3089   fi
3090 else
3091   ac_cpp_err=yes
3092 fi
3093 if test -z "$ac_cpp_err"; then
3094   # Broken: success on invalid input.
3095 continue
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   # Passes both tests.
3101 ac_preproc_ok=:
3102 break
3103 fi
3104 rm -f conftest.err conftest.$ac_ext
3105
3106 done
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.$ac_ext
3109 if $ac_preproc_ok; then
3110   break
3111 fi
3112
3113     done
3114     ac_cv_prog_CPP=$CPP
3115
3116 fi
3117   CPP=$ac_cv_prog_CPP
3118 else
3119   ac_cv_prog_CPP=$CPP
3120 fi
3121 echo "$as_me:$LINENO: result: $CPP" >&5
3122 echo "${ECHO_T}$CPP" >&6
3123 ac_preproc_ok=false
3124 for ac_c_preproc_warn_flag in '' yes
3125 do
3126   # Use a header file that comes with gcc, so configuring glibc
3127   # with a fresh cross-compiler works.
3128   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3129   # <limits.h> exists even on freestanding compilers.
3130   # On the NeXT, cc -E runs the code through the compiler's parser,
3131   # not just through cpp. "Syntax error" is here to catch this case.
3132   cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138 #ifdef __STDC__
3139 # include <limits.h>
3140 #else
3141 # include <assert.h>
3142 #endif
3143                      Syntax error
3144 _ACEOF
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } >/dev/null; then
3153   if test -s conftest.err; then
3154     ac_cpp_err=$ac_c_preproc_warn_flag
3155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3156   else
3157     ac_cpp_err=
3158   fi
3159 else
3160   ac_cpp_err=yes
3161 fi
3162 if test -z "$ac_cpp_err"; then
3163   :
3164 else
3165   echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3167
3168   # Broken: fails on valid input.
3169 continue
3170 fi
3171 rm -f conftest.err conftest.$ac_ext
3172
3173   # OK, works on sane cases.  Now check whether non-existent headers
3174   # can be detected and how.
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181 #include <ac_nonexistent.h>
3182 _ACEOF
3183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } >/dev/null; then
3191   if test -s conftest.err; then
3192     ac_cpp_err=$ac_c_preproc_warn_flag
3193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194   else
3195     ac_cpp_err=
3196   fi
3197 else
3198   ac_cpp_err=yes
3199 fi
3200 if test -z "$ac_cpp_err"; then
3201   # Broken: success on invalid input.
3202 continue
3203 else
3204   echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207   # Passes both tests.
3208 ac_preproc_ok=:
3209 break
3210 fi
3211 rm -f conftest.err conftest.$ac_ext
3212
3213 done
3214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3215 rm -f conftest.err conftest.$ac_ext
3216 if $ac_preproc_ok; then
3217   :
3218 else
3219   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3222 See \`config.log' for more details." >&2;}
3223    { (exit 1); exit 1; }; }
3224 fi
3225
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232 if test "$GXX" != "yes"
3233 then
3234         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3235 echo "$as_me: error: g++ required but not found" >&2;}
3236    { (exit 1); exit 1; }; }
3237 fi
3238
3239 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3240 if test "$gccmajor" -lt "3"
3241 then
3242         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3243 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3244    { (exit 1); exit 1; }; }
3245 fi
3246
3247  echo "$as_me:$LINENO: checking for GNU make" >&5
3248 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3249 if test "${_cv_gnu_make_command+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   _cv_gnu_make_command='' ;
3253                 for a in "$MAKE" make gmake gnumake ; do
3254                         if test -z "$a" ; then continue ; fi ;
3255                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3256                                 _cv_gnu_make_command=$a ;
3257                                 break;
3258                         fi
3259                 done ;
3260
3261 fi
3262 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3263 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3264         if test  "x$_cv_gnu_make_command" != "x"  ; then
3265                 ifGNUmake='' ;
3266         else
3267                 ifGNUmake='#' ;
3268                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3269 echo "${ECHO_T}\"Not found\"" >&6;
3270         fi
3271
3272
3273 if test -z "$_cv_gnu_make_command"
3274 then
3275         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3276 echo "$as_me: error: GNU Make required but not found" >&2;}
3277    { (exit 1); exit 1; }; }
3278 fi
3279
3280
3281 echo "$as_me:$LINENO: checking " >&5
3282 echo $ECHO_N "checking ... $ECHO_C" >&6
3283 if test "${ac_cv_has_flex+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   for ac_prog in flex lex
3287 do
3288   # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_LEX+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$LEX"; then
3296   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_LEX="$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 LEX=$ac_cv_prog_LEX
3315 if test -n "$LEX"; then
3316   echo "$as_me:$LINENO: result: $LEX" >&5
3317 echo "${ECHO_T}$LEX" >&6
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323   test -n "$LEX" && break
3324 done
3325 test -n "$LEX" || LEX=":"
3326
3327 if test -z "$LEXLIB"
3328 then
3329   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3330 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3331 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334   ac_check_lib_save_LIBS=$LIBS
3335 LIBS="-lfl  $LIBS"
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342
3343 /* Override any gcc2 internal prototype to avoid an error.  */
3344 #ifdef __cplusplus
3345 extern "C"
3346 #endif
3347 /* We use char because int might match the return type of a gcc2
3348    builtin and then its argument prototype would still apply.  */
3349 char yywrap ();
3350 int
3351 main ()
3352 {
3353 yywrap ();
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360   (eval $ac_link) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } &&
3367          { ac_try='test -z "$ac_c_werror_flag"
3368                          || test ! -s conftest.err'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; } &&
3374          { ac_try='test -s conftest$ac_exeext'
3375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376   (eval $ac_try) 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_lib_fl_yywrap=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385 ac_cv_lib_fl_yywrap=no
3386 fi
3387 rm -f conftest.err conftest.$ac_objext \
3388       conftest$ac_exeext conftest.$ac_ext
3389 LIBS=$ac_check_lib_save_LIBS
3390 fi
3391 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3392 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3393 if test $ac_cv_lib_fl_yywrap = yes; then
3394   LEXLIB="-lfl"
3395 else
3396   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3397 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3398 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   ac_check_lib_save_LIBS=$LIBS
3402 LIBS="-ll  $LIBS"
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409
3410 /* Override any gcc2 internal prototype to avoid an error.  */
3411 #ifdef __cplusplus
3412 extern "C"
3413 #endif
3414 /* We use char because int might match the return type of a gcc2
3415    builtin and then its argument prototype would still apply.  */
3416 char yywrap ();
3417 int
3418 main ()
3419 {
3420 yywrap ();
3421   ;
3422   return 0;
3423 }
3424 _ACEOF
3425 rm -f conftest.$ac_objext conftest$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427   (eval $ac_link) 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } &&
3434          { ac_try='test -z "$ac_c_werror_flag"
3435                          || test ! -s conftest.err'
3436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437   (eval $ac_try) 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }; } &&
3441          { ac_try='test -s conftest$ac_exeext'
3442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443   (eval $ac_try) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }; }; then
3447   ac_cv_lib_l_yywrap=yes
3448 else
3449   echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_cv_lib_l_yywrap=no
3453 fi
3454 rm -f conftest.err conftest.$ac_objext \
3455       conftest$ac_exeext conftest.$ac_ext
3456 LIBS=$ac_check_lib_save_LIBS
3457 fi
3458 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3459 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3460 if test $ac_cv_lib_l_yywrap = yes; then
3461   LEXLIB="-ll"
3462 fi
3463
3464 fi
3465
3466 fi
3467
3468 if test "x$LEX" != "x:"; then
3469   echo "$as_me:$LINENO: checking lex output file root" >&5
3470 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3471 if test "${ac_cv_prog_lex_root+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   # The minimal lex program is just a single line: %%.  But some broken lexes
3475 # (Solaris, I think it was) want two %% lines, so accommodate them.
3476 cat >conftest.l <<_ACEOF
3477 %%
3478 %%
3479 _ACEOF
3480 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3481   (eval $LEX conftest.l) 2>&5
3482   ac_status=$?
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); }
3485 if test -f lex.yy.c; then
3486   ac_cv_prog_lex_root=lex.yy
3487 elif test -f lexyy.c; then
3488   ac_cv_prog_lex_root=lexyy
3489 else
3490   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3491 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3492    { (exit 1); exit 1; }; }
3493 fi
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3496 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3497 rm -f conftest.l
3498 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3499
3500 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3501 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3502 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   # POSIX says lex can declare yytext either as a pointer or an array; the
3506 # default is implementation-dependent. Figure out which it is, since
3507 # not all implementations provide the %pointer and %array declarations.
3508 ac_cv_prog_lex_yytext_pointer=no
3509 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3510 ac_save_LIBS=$LIBS
3511 LIBS="$LIBS $LEXLIB"
3512 cat >conftest.$ac_ext <<_ACEOF
3513 `cat $LEX_OUTPUT_ROOT.c`
3514 _ACEOF
3515 rm -f conftest.$ac_objext conftest$ac_exeext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517   (eval $ac_link) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_c_werror_flag"
3525                          || test ! -s conftest.err'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; } &&
3531          { ac_try='test -s conftest$ac_exeext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   ac_cv_prog_lex_yytext_pointer=yes
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 fi
3543 rm -f conftest.err conftest.$ac_objext \
3544       conftest$ac_exeext conftest.$ac_ext
3545 LIBS=$ac_save_LIBS
3546 rm -f "${LEX_OUTPUT_ROOT}.c"
3547
3548 fi
3549 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3550 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3551 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3552
3553 cat >>confdefs.h <<\_ACEOF
3554 #define YYTEXT_POINTER 1
3555 _ACEOF
3556
3557 fi
3558
3559 fi
3560
3561 fi
3562 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3563 echo "${ECHO_T}$ac_cv_has_flex" >&6
3564 if test "$LEX" != "flex"; then
3565   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3566 echo "$as_me: error: flex not found but required" >&2;}
3567    { (exit 1); exit 1; }; }
3568 else
3569   FLEX=flex
3570
3571 fi
3572
3573 echo "$as_me:$LINENO: checking " >&5
3574 echo $ECHO_N "checking ... $ECHO_C" >&6
3575 if test "${ac_cv_has_bison+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   for ac_prog in 'bison -y' byacc
3579 do
3580   # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584 if test "${ac_cv_prog_YACC+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$YACC"; then
3588   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_prog_YACC="$ac_prog"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604 fi
3605 fi
3606 YACC=$ac_cv_prog_YACC
3607 if test -n "$YACC"; then
3608   echo "$as_me:$LINENO: result: $YACC" >&5
3609 echo "${ECHO_T}$YACC" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615   test -n "$YACC" && break
3616 done
3617 test -n "$YACC" || YACC="yacc"
3618
3619
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3622 echo "${ECHO_T}$ac_cv_has_bison" >&6
3623 if test "$YACC" != "bison -y"; then
3624   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3625 echo "$as_me: error: bison not found but required" >&2;}
3626    { (exit 1); exit 1; }; }
3627 else
3628   BISON=bison
3629
3630 fi
3631
3632 # Check whether --enable-shared or --disable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634   enableval="$enable_shared"
3635   p=${PACKAGE-default}
3636     case $enableval in
3637     yes) enable_shared=yes ;;
3638     no) enable_shared=no ;;
3639     *)
3640       enable_shared=no
3641       # Look at the argument we got.  We use all the common list separators.
3642       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3643       for pkg in $enableval; do
3644         IFS="$lt_save_ifs"
3645         if test "X$pkg" = "X$p"; then
3646           enable_shared=yes
3647         fi
3648       done
3649       IFS="$lt_save_ifs"
3650       ;;
3651     esac
3652 else
3653   enable_shared=yes
3654 fi;
3655
3656 # Check whether --enable-static or --disable-static was given.
3657 if test "${enable_static+set}" = set; then
3658   enableval="$enable_static"
3659   p=${PACKAGE-default}
3660     case $enableval in
3661     yes) enable_static=yes ;;
3662     no) enable_static=no ;;
3663     *)
3664      enable_static=no
3665       # Look at the argument we got.  We use all the common list separators.
3666       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3667       for pkg in $enableval; do
3668         IFS="$lt_save_ifs"
3669         if test "X$pkg" = "X$p"; then
3670           enable_static=yes
3671         fi
3672       done
3673       IFS="$lt_save_ifs"
3674       ;;
3675     esac
3676 else
3677   enable_static=yes
3678 fi;
3679
3680 # Check whether --enable-fast-install or --disable-fast-install was given.
3681 if test "${enable_fast_install+set}" = set; then
3682   enableval="$enable_fast_install"
3683   p=${PACKAGE-default}
3684     case $enableval in
3685     yes) enable_fast_install=yes ;;
3686     no) enable_fast_install=no ;;
3687     *)
3688       enable_fast_install=no
3689       # Look at the argument we got.  We use all the common list separators.
3690       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3691       for pkg in $enableval; do
3692         IFS="$lt_save_ifs"
3693         if test "X$pkg" = "X$p"; then
3694           enable_fast_install=yes
3695         fi
3696       done
3697       IFS="$lt_save_ifs"
3698       ;;
3699     esac
3700 else
3701   enable_fast_install=yes
3702 fi;
3703
3704 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3705 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3706 if test "${lt_cv_path_SED+set}" = set; then
3707   echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709   # Loop through the user's path and test for sed and gsed.
3710 # Then use that list of sed's as ones to test for truncation.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for lt_ac_prog in sed gsed; do
3717     for ac_exec_ext in '' $ac_executable_extensions; do
3718       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3719         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3720       fi
3721     done
3722   done
3723 done
3724 lt_ac_max=0
3725 lt_ac_count=0
3726 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3727 # along with /bin/sed that truncates output.
3728 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3729   test ! -f $lt_ac_sed && break
3730   cat /dev/null > conftest.in
3731   lt_ac_count=0
3732   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3733   # Check for GNU sed and select it if it is found.
3734   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3735     lt_cv_path_SED=$lt_ac_sed
3736     break
3737   fi
3738   while true; do
3739     cat conftest.in conftest.in >conftest.tmp
3740     mv conftest.tmp conftest.in
3741     cp conftest.in conftest.nl
3742     echo >>conftest.nl
3743     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3744     cmp -s conftest.out conftest.nl || break
3745     # 10000 chars as input seems more than enough
3746     test $lt_ac_count -gt 10 && break
3747     lt_ac_count=`expr $lt_ac_count + 1`
3748     if test $lt_ac_count -gt $lt_ac_max; then
3749       lt_ac_max=$lt_ac_count
3750       lt_cv_path_SED=$lt_ac_sed
3751     fi
3752   done
3753 done
3754
3755 fi
3756
3757 SED=$lt_cv_path_SED
3758 echo "$as_me:$LINENO: result: $SED" >&5
3759 echo "${ECHO_T}$SED" >&6
3760
3761 echo "$as_me:$LINENO: checking for egrep" >&5
3762 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3763 if test "${ac_cv_prog_egrep+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3767     then ac_cv_prog_egrep='grep -E'
3768     else ac_cv_prog_egrep='egrep'
3769     fi
3770 fi
3771 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3772 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3773  EGREP=$ac_cv_prog_egrep
3774
3775
3776
3777 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3778 if test "${with_gnu_ld+set}" = set; then
3779   withval="$with_gnu_ld"
3780   test "$withval" = no || with_gnu_ld=yes
3781 else
3782   with_gnu_ld=no
3783 fi;
3784 ac_prog=ld
3785 if test "$GCC" = yes; then
3786   # Check if gcc -print-prog-name=ld gives a path.
3787   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3789   case $host in
3790   *-*-mingw*)
3791     # gcc leaves a trailing carriage return which upsets mingw
3792     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3793   *)
3794     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3795   esac
3796   case $ac_prog in
3797     # Accept absolute paths.
3798     [\\/]* | ?:[\\/]*)
3799       re_direlt='/[^/][^/]*/\.\./'
3800       # Canonicalize the pathname of ld
3801       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3802       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3803         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3804       done
3805       test -z "$LD" && LD="$ac_prog"
3806       ;;
3807   "")
3808     # If it fails, then pretend we aren't using GCC.
3809     ac_prog=ld
3810     ;;
3811   *)
3812     # If it is relative, then search for the first ld in PATH.
3813     with_gnu_ld=unknown
3814     ;;
3815   esac
3816 elif test "$with_gnu_ld" = yes; then
3817   echo "$as_me:$LINENO: checking for GNU ld" >&5
3818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3819 else
3820   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3822 fi
3823 if test "${lt_cv_path_LD+set}" = set; then
3824   echo $ECHO_N "(cached) $ECHO_C" >&6
3825 else
3826   if test -z "$LD"; then
3827   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3828   for ac_dir in $PATH; do
3829     IFS="$lt_save_ifs"
3830     test -z "$ac_dir" && ac_dir=.
3831     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3832       lt_cv_path_LD="$ac_dir/$ac_prog"
3833       # Check to see if the program is GNU ld.  I'd rather use --version,
3834       # but apparently some GNU ld's only accept -v.
3835       # Break only if it was the GNU/non-GNU ld that we prefer.
3836       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3837       *GNU* | *'with BFD'*)
3838         test "$with_gnu_ld" != no && break
3839         ;;
3840       *)
3841         test "$with_gnu_ld" != yes && break
3842         ;;
3843       esac
3844     fi
3845   done
3846   IFS="$lt_save_ifs"
3847 else
3848   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3849 fi
3850 fi
3851
3852 LD="$lt_cv_path_LD"
3853 if test -n "$LD"; then
3854   echo "$as_me:$LINENO: result: $LD" >&5
3855 echo "${ECHO_T}$LD" >&6
3856 else
3857   echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3859 fi
3860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3862    { (exit 1); exit 1; }; }
3863 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3869 case `$LD -v 2>&1 </dev/null` in
3870 *GNU* | *'with BFD'*)
3871   lt_cv_prog_gnu_ld=yes
3872   ;;
3873 *)
3874   lt_cv_prog_gnu_ld=no
3875   ;;
3876 esac
3877 fi
3878 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3880 with_gnu_ld=$lt_cv_prog_gnu_ld
3881
3882
3883 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3884 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3885 if test "${lt_cv_ld_reload_flag+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   lt_cv_ld_reload_flag='-r'
3889 fi
3890 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3891 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3892 reload_flag=$lt_cv_ld_reload_flag
3893 case $reload_flag in
3894 "" | " "*) ;;
3895 *) reload_flag=" $reload_flag" ;;
3896 esac
3897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3898 case $host_os in
3899   darwin*)
3900     if test "$GCC" = yes; then
3901       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3902     else
3903       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3904     fi
3905     ;;
3906 esac
3907
3908 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3909 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3910 if test "${lt_cv_path_NM+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   if test -n "$NM"; then
3914   # Let the user override the test.
3915   lt_cv_path_NM="$NM"
3916 else
3917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3918   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3919     IFS="$lt_save_ifs"
3920     test -z "$ac_dir" && ac_dir=.
3921     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3922     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3923       # Check to see if the nm accepts a BSD-compat flag.
3924       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3925       #   nm: unknown option "B" ignored
3926       # Tru64's nm complains that /dev/null is an invalid object file
3927       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3928       */dev/null* | *'Invalid file or object type'*)
3929         lt_cv_path_NM="$tmp_nm -B"
3930         break
3931         ;;
3932       *)
3933         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3934         */dev/null*)
3935           lt_cv_path_NM="$tmp_nm -p"
3936           break
3937           ;;
3938         *)
3939           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3940           continue # so that we can try to find one that supports BSD flags
3941           ;;
3942         esac
3943       esac
3944     fi
3945   done
3946   IFS="$lt_save_ifs"
3947   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3948 fi
3949 fi
3950 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3951 echo "${ECHO_T}$lt_cv_path_NM" >&6
3952 NM="$lt_cv_path_NM"
3953
3954 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3955 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3956 LN_S=$as_ln_s
3957 if test "$LN_S" = "ln -s"; then
3958   echo "$as_me:$LINENO: result: yes" >&5
3959 echo "${ECHO_T}yes" >&6
3960 else
3961   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3962 echo "${ECHO_T}no, using $LN_S" >&6
3963 fi
3964
3965 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3966 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3967 if test "${lt_cv_deplibs_check_method+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   lt_cv_file_magic_cmd='$MAGIC_CMD'
3971 lt_cv_file_magic_test_file=
3972 lt_cv_deplibs_check_method='unknown'
3973 # Need to set the preceding variable on all platforms that support
3974 # interlibrary dependencies.
3975 # 'none' -- dependencies not supported.
3976 # `unknown' -- same as none, but documents that we really don't know.
3977 # 'pass_all' -- all dependencies passed with no checks.
3978 # 'test_compile' -- check by making test program.
3979 # 'file_magic [[regex]]' -- check by looking for files in library path
3980 # which responds to the $file_magic_cmd with a given extended regex.
3981 # If you have `file' or equivalent on your system and you're not sure
3982 # whether `pass_all' will *always* work, you probably want this one.
3983
3984 case $host_os in
3985 aix4* | aix5*)
3986   lt_cv_deplibs_check_method=pass_all
3987   ;;
3988
3989 beos*)
3990   lt_cv_deplibs_check_method=pass_all
3991   ;;
3992
3993 bsdi[45]*)
3994   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3995   lt_cv_file_magic_cmd='/usr/bin/file -L'
3996   lt_cv_file_magic_test_file=/shlib/libc.so
3997   ;;
3998
3999 cygwin*)
4000   # func_win32_libid is a shell function defined in ltmain.sh
4001   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4002   lt_cv_file_magic_cmd='func_win32_libid'
4003   ;;
4004
4005 mingw* | pw32*)
4006   # Base MSYS/MinGW do not provide the 'file' command needed by
4007   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4008   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009   lt_cv_file_magic_cmd='$OBJDUMP -f'
4010   ;;
4011
4012 darwin* | rhapsody*)
4013   lt_cv_deplibs_check_method=pass_all
4014   ;;
4015
4016 freebsd* | kfreebsd*-gnu)
4017   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4018     case $host_cpu in
4019     i*86 )
4020       # Not sure whether the presence of OpenBSD here was a mistake.
4021       # Let's accept both of them until this is cleared up.
4022       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4023       lt_cv_file_magic_cmd=/usr/bin/file
4024       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4025       ;;
4026     esac
4027   else
4028     lt_cv_deplibs_check_method=pass_all
4029   fi
4030   ;;
4031
4032 gnu*)
4033   lt_cv_deplibs_check_method=pass_all
4034   ;;
4035
4036 hpux10.20* | hpux11*)
4037   lt_cv_file_magic_cmd=/usr/bin/file
4038   case "$host_cpu" in
4039   ia64*)
4040     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4041     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4042     ;;
4043   hppa*64*)
4044     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]'
4045     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4046     ;;
4047   *)
4048     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4049     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4050     ;;
4051   esac
4052   ;;
4053
4054 irix5* | irix6* | nonstopux*)
4055   case $LD in
4056   *-32|*"-32 ") libmagic=32-bit;;
4057   *-n32|*"-n32 ") libmagic=N32;;
4058   *-64|*"-64 ") libmagic=64-bit;;
4059   *) libmagic=never-match;;
4060   esac
4061   lt_cv_deplibs_check_method=pass_all
4062   ;;
4063
4064 # This must be Linux ELF.
4065 linux*)
4066   lt_cv_deplibs_check_method=pass_all
4067   ;;
4068
4069 netbsd*)
4070   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4072   else
4073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4074   fi
4075   ;;
4076
4077 newos6*)
4078   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4079   lt_cv_file_magic_cmd=/usr/bin/file
4080   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4081   ;;
4082
4083 nto-qnx*)
4084   lt_cv_deplibs_check_method=unknown
4085   ;;
4086
4087 openbsd*)
4088   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4090   else
4091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4092   fi
4093   ;;
4094
4095 osf3* | osf4* | osf5*)
4096   lt_cv_deplibs_check_method=pass_all
4097   ;;
4098
4099 sco3.2v5*)
4100   lt_cv_deplibs_check_method=pass_all
4101   ;;
4102
4103 solaris*)
4104   lt_cv_deplibs_check_method=pass_all
4105   ;;
4106
4107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4108   case $host_vendor in
4109   motorola)
4110     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]'
4111     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4112     ;;
4113   ncr)
4114     lt_cv_deplibs_check_method=pass_all
4115     ;;
4116   sequent)
4117     lt_cv_file_magic_cmd='/bin/file'
4118     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4119     ;;
4120   sni)
4121     lt_cv_file_magic_cmd='/bin/file'
4122     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4123     lt_cv_file_magic_test_file=/lib/libc.so
4124     ;;
4125   siemens)
4126     lt_cv_deplibs_check_method=pass_all
4127     ;;
4128   esac
4129   ;;
4130
4131 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4132   lt_cv_deplibs_check_method=pass_all
4133   ;;
4134 esac
4135
4136 fi
4137 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4138 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4139 file_magic_cmd=$lt_cv_file_magic_cmd
4140 deplibs_check_method=$lt_cv_deplibs_check_method
4141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4142
4143
4144
4145
4146 # If no C compiler was specified, use CC.
4147 LTCC=${LTCC-"$CC"}
4148
4149 # Allow CC to be a program name with arguments.
4150 compiler=$CC
4151
4152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4153 if test "${enable_libtool_lock+set}" = set; then
4154   enableval="$enable_libtool_lock"
4155
4156 fi;
4157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4158
4159 # Some flags need to be propagated to the compiler or linker for good
4160 # libtool support.
4161 case $host in
4162 ia64-*-hpux*)
4163   # Find out which ABI we are using.
4164   echo 'int i;' > conftest.$ac_ext
4165   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166   (eval $ac_compile) 2>&5
4167   ac_status=$?
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); }; then
4170     case `/usr/bin/file conftest.$ac_objext` in
4171     *ELF-32*)
4172       HPUX_IA64_MODE="32"
4173       ;;
4174     *ELF-64*)
4175       HPUX_IA64_MODE="64"
4176       ;;
4177     esac
4178   fi
4179   rm -rf conftest*
4180   ;;
4181 *-*-irix6*)
4182   # Find out which ABI we are using.
4183   echo '#line 4183 "configure"' > conftest.$ac_ext
4184   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4185   (eval $ac_compile) 2>&5
4186   ac_status=$?
4187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188   (exit $ac_status); }; then
4189    if test "$lt_cv_prog_gnu_ld" = yes; then
4190     case `/usr/bin/file conftest.$ac_objext` in
4191     *32-bit*)
4192       LD="${LD-ld} -melf32bsmip"
4193       ;;
4194     *N32*)
4195       LD="${LD-ld} -melf32bmipn32"
4196       ;;
4197     *64-bit*)
4198       LD="${LD-ld} -melf64bmip"
4199       ;;
4200     esac
4201    else
4202     case `/usr/bin/file conftest.$ac_objext` in
4203     *32-bit*)
4204       LD="${LD-ld} -32"
4205       ;;
4206     *N32*)
4207       LD="${LD-ld} -n32"
4208       ;;
4209     *64-bit*)
4210       LD="${LD-ld} -64"
4211       ;;
4212     esac
4213    fi
4214   fi
4215   rm -rf conftest*
4216   ;;
4217
4218 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4219   # Find out which ABI we are using.
4220   echo 'int i;' > conftest.$ac_ext
4221   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222   (eval $ac_compile) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; then
4226     case "`/usr/bin/file conftest.o`" in
4227     *32-bit*)
4228       case $host in
4229         x86_64-*linux*)
4230           LD="${LD-ld} -m elf_i386"
4231           ;;
4232         ppc64-*linux*|powerpc64-*linux*)
4233           LD="${LD-ld} -m elf32ppclinux"
4234           ;;
4235         s390x-*linux*)
4236           LD="${LD-ld} -m elf_s390"
4237           ;;
4238         sparc64-*linux*)
4239           LD="${LD-ld} -m elf32_sparc"
4240           ;;
4241       esac
4242       ;;
4243     *64-bit*)
4244       case $host in
4245         x86_64-*linux*)
4246           LD="${LD-ld} -m elf_x86_64"
4247           ;;
4248         ppc*-*linux*|powerpc*-*linux*)
4249           LD="${LD-ld} -m elf64ppc"
4250           ;;
4251         s390*-*linux*)
4252           LD="${LD-ld} -m elf64_s390"
4253           ;;
4254         sparc*-*linux*)
4255           LD="${LD-ld} -m elf64_sparc"
4256           ;;
4257       esac
4258       ;;
4259     esac
4260   fi
4261   rm -rf conftest*
4262   ;;
4263
4264 *-*-sco3.2v5*)
4265   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4266   SAVE_CFLAGS="$CFLAGS"
4267   CFLAGS="$CFLAGS -belf"
4268   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4269 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4270 if test "${lt_cv_cc_needs_belf+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278
4279      cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285
4286 _ACEOF
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289   (eval $ac_link) 2>conftest.er1
4290   ac_status=$?
4291   grep -v '^ *+' conftest.er1 >conftest.err
4292   rm -f conftest.er1
4293   cat conftest.err >&5
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); } &&
4296          { ac_try='test -z "$ac_c_werror_flag"
4297                          || test ! -s conftest.err'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; } &&
4303          { ac_try='test -s conftest$ac_exeext'
4304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305   (eval $ac_try) 2>&5
4306   ac_status=$?
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); }; }; then
4309   lt_cv_cc_needs_belf=yes
4310 else
4311   echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 lt_cv_cc_needs_belf=no
4315 fi
4316 rm -f conftest.err conftest.$ac_objext \
4317       conftest$ac_exeext conftest.$ac_ext
4318      ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 fi
4325 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4326 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4327   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4328     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4329     CFLAGS="$SAVE_CFLAGS"
4330   fi
4331   ;;
4332
4333 esac
4334
4335 need_locks="$enable_libtool_lock"
4336
4337
4338
4339 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4340 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4341 if test "${ac_cv_header_stdc+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   cat >conftest.$ac_ext <<_ACEOF
4345 /* confdefs.h.  */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h.  */
4350 #include <stdlib.h>
4351 #include <stdarg.h>
4352 #include <string.h>
4353 #include <float.h>
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365   (eval $ac_compile) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } &&
4372          { ac_try='test -z "$ac_c_werror_flag"
4373                          || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest.$ac_objext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_cv_header_stdc=yes
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_cv_header_stdc=no
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393
4394 if test $ac_cv_header_stdc = yes; then
4395   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4396   cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 #include <string.h>
4403
4404 _ACEOF
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406   $EGREP "memchr" >/dev/null 2>&1; then
4407   :
4408 else
4409   ac_cv_header_stdc=no
4410 fi
4411 rm -f conftest*
4412
4413 fi
4414
4415 if test $ac_cv_header_stdc = yes; then
4416   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417   cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423 #include <stdlib.h>
4424
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427   $EGREP "free" >/dev/null 2>&1; then
4428   :
4429 else
4430   ac_cv_header_stdc=no
4431 fi
4432 rm -f conftest*
4433
4434 fi
4435
4436 if test $ac_cv_header_stdc = yes; then
4437   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4438   if test "$cross_compiling" = yes; then
4439   :
4440 else
4441   cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h.  */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h.  */
4447 #include <ctype.h>
4448 #if ((' ' & 0x0FF) == 0x020)
4449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4451 #else
4452 # define ISLOWER(c) \
4453                    (('a' <= (c) && (c) <= 'i') \
4454                      || ('j' <= (c) && (c) <= 'r') \
4455                      || ('s' <= (c) && (c) <= 'z'))
4456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457 #endif
4458
4459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4460 int
4461 main ()
4462 {
4463   int i;
4464   for (i = 0; i < 256; i++)
4465     if (XOR (islower (i), ISLOWER (i))
4466         || toupper (i) != TOUPPER (i))
4467       exit(2);
4468   exit (0);
4469 }
4470 _ACEOF
4471 rm -f conftest$ac_exeext
4472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4473   (eval $ac_link) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; }; then
4482   :
4483 else
4484   echo "$as_me: program exited with status $ac_status" >&5
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ( exit $ac_status )
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4492 fi
4493 fi
4494 fi
4495 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4496 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4497 if test $ac_cv_header_stdc = yes; then
4498
4499 cat >>confdefs.h <<\_ACEOF
4500 #define STDC_HEADERS 1
4501 _ACEOF
4502
4503 fi
4504
4505 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4516                   inttypes.h stdint.h unistd.h
4517 do
4518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531
4532 #include <$ac_header>
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536   (eval $ac_compile) 2>conftest.er1
4537   ac_status=$?
4538   grep -v '^ *+' conftest.er1 >conftest.err
4539   rm -f conftest.er1
4540   cat conftest.err >&5
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } &&
4543          { ac_try='test -z "$ac_c_werror_flag"
4544                          || test ! -s conftest.err'
4545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546   (eval $ac_try) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; } &&
4550          { ac_try='test -s conftest.$ac_objext'
4551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552   (eval $ac_try) 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   eval "$as_ac_Header=yes"
4557 else
4558   echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 eval "$as_ac_Header=no"
4562 fi
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 fi
4565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4568   cat >>confdefs.h <<_ACEOF
4569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4570 _ACEOF
4571
4572 fi
4573
4574 done
4575
4576
4577
4578 for ac_header in dlfcn.h
4579 do
4580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4582   echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 fi
4587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4589 else
4590   # Is the header compilable?
4591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 $ac_includes_default
4600 #include <$ac_header>
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_header_compiler=yes
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_header_compiler=no
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4633 echo "${ECHO_T}$ac_header_compiler" >&6
4634
4635 # Is the header present?
4636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644 #include <$ac_header>
4645 _ACEOF
4646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } >/dev/null; then
4654   if test -s conftest.err; then
4655     ac_cpp_err=$ac_c_preproc_warn_flag
4656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4657   else
4658     ac_cpp_err=
4659   fi
4660 else
4661   ac_cpp_err=yes
4662 fi
4663 if test -z "$ac_cpp_err"; then
4664   ac_header_preproc=yes
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669   ac_header_preproc=no
4670 fi
4671 rm -f conftest.err conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4673 echo "${ECHO_T}$ac_header_preproc" >&6
4674
4675 # So?  What about this header?
4676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4677   yes:no: )
4678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4682     ac_header_preproc=yes
4683     ;;
4684   no:yes:* )
4685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697     (
4698       cat <<\_ASBOX
4699 ## ----------------------------------- ##
4700 ## Report this to llvmbugs@cs.uiuc.edu ##
4701 ## ----------------------------------- ##
4702 _ASBOX
4703     ) |
4704       sed "s/^/$as_me: WARNING:     /" >&2
4705     ;;
4706 esac
4707 echo "$as_me:$LINENO: checking for $ac_header" >&5
4708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   eval "$as_ac_Header=\$ac_header_preproc"
4713 fi
4714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716
4717 fi
4718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4719   cat >>confdefs.h <<_ACEOF
4720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4721 _ACEOF
4722
4723 fi
4724
4725 done
4726
4727
4728
4729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4730     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4731     (test "X$CXX" != "Xg++"))) ; then
4732   ac_ext=cc
4733 ac_cpp='$CXXCPP $CPPFLAGS'
4734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4737 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4738 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4739 if test -z "$CXXCPP"; then
4740   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743       # Double quotes because CXXCPP needs to be expanded
4744     for CXXCPP in "$CXX -E" "/lib/cpp"
4745     do
4746       ac_preproc_ok=false
4747 for ac_cxx_preproc_warn_flag in '' yes
4748 do
4749   # Use a header file that comes with gcc, so configuring glibc
4750   # with a fresh cross-compiler works.
4751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4752   # <limits.h> exists even on freestanding compilers.
4753   # On the NeXT, cc -E runs the code through the compiler's parser,
4754   # not just through cpp. "Syntax error" is here to catch this case.
4755   cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h.  */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h.  */
4761 #ifdef __STDC__
4762 # include <limits.h>
4763 #else
4764 # include <assert.h>
4765 #endif
4766                      Syntax error
4767 _ACEOF
4768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770   ac_status=$?
4771   grep -v '^ *+' conftest.er1 >conftest.err
4772   rm -f conftest.er1
4773   cat conftest.err >&5
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); } >/dev/null; then
4776   if test -s conftest.err; then
4777     ac_cpp_err=$ac_cxx_preproc_warn_flag
4778     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4779   else
4780     ac_cpp_err=
4781   fi
4782 else
4783   ac_cpp_err=yes
4784 fi
4785 if test -z "$ac_cpp_err"; then
4786   :
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791   # Broken: fails on valid input.
4792 continue
4793 fi
4794 rm -f conftest.err conftest.$ac_ext
4795
4796   # OK, works on sane cases.  Now check whether non-existent headers
4797   # can be detected and how.
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 #include <ac_nonexistent.h>
4805 _ACEOF
4806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808   ac_status=$?
4809   grep -v '^ *+' conftest.er1 >conftest.err
4810   rm -f conftest.er1
4811   cat conftest.err >&5
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } >/dev/null; then
4814   if test -s conftest.err; then
4815     ac_cpp_err=$ac_cxx_preproc_warn_flag
4816     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4817   else
4818     ac_cpp_err=
4819   fi
4820 else
4821   ac_cpp_err=yes
4822 fi
4823 if test -z "$ac_cpp_err"; then
4824   # Broken: success on invalid input.
4825 continue
4826 else
4827   echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830   # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834 rm -f conftest.err conftest.$ac_ext
4835
4836 done
4837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4838 rm -f conftest.err conftest.$ac_ext
4839 if $ac_preproc_ok; then
4840   break
4841 fi
4842
4843     done
4844     ac_cv_prog_CXXCPP=$CXXCPP
4845
4846 fi
4847   CXXCPP=$ac_cv_prog_CXXCPP
4848 else
4849   ac_cv_prog_CXXCPP=$CXXCPP
4850 fi
4851 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4852 echo "${ECHO_T}$CXXCPP" >&6
4853 ac_preproc_ok=false
4854 for ac_cxx_preproc_warn_flag in '' yes
4855 do
4856   # Use a header file that comes with gcc, so configuring glibc
4857   # with a fresh cross-compiler works.
4858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859   # <limits.h> exists even on freestanding compilers.
4860   # On the NeXT, cc -E runs the code through the compiler's parser,
4861   # not just through cpp. "Syntax error" is here to catch this case.
4862   cat >conftest.$ac_ext <<_ACEOF
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873                      Syntax error
4874 _ACEOF
4875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877   ac_status=$?
4878   grep -v '^ *+' conftest.er1 >conftest.err
4879   rm -f conftest.er1
4880   cat conftest.err >&5
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); } >/dev/null; then
4883   if test -s conftest.err; then
4884     ac_cpp_err=$ac_cxx_preproc_warn_flag
4885     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4886   else
4887     ac_cpp_err=
4888   fi
4889 else
4890   ac_cpp_err=yes
4891 fi
4892 if test -z "$ac_cpp_err"; then
4893   :
4894 else
4895   echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898   # Broken: fails on valid input.
4899 continue
4900 fi
4901 rm -f conftest.err conftest.$ac_ext
4902
4903   # OK, works on sane cases.  Now check whether non-existent headers
4904   # can be detected and how.
4905   cat >conftest.$ac_ext <<_ACEOF
4906 /* confdefs.h.  */
4907 _ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h.  */
4911 #include <ac_nonexistent.h>
4912 _ACEOF
4913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4914   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4915   ac_status=$?
4916   grep -v '^ *+' conftest.er1 >conftest.err
4917   rm -f conftest.er1
4918   cat conftest.err >&5
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } >/dev/null; then
4921   if test -s conftest.err; then
4922     ac_cpp_err=$ac_cxx_preproc_warn_flag
4923     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4924   else
4925     ac_cpp_err=
4926   fi
4927 else
4928   ac_cpp_err=yes
4929 fi
4930 if test -z "$ac_cpp_err"; then
4931   # Broken: success on invalid input.
4932 continue
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937   # Passes both tests.
4938 ac_preproc_ok=:
4939 break
4940 fi
4941 rm -f conftest.err conftest.$ac_ext
4942
4943 done
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4947   :
4948 else
4949   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4950 See \`config.log' for more details." >&5
4951 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4952 See \`config.log' for more details." >&2;}
4953    { (exit 1); exit 1; }; }
4954 fi
4955
4956 ac_ext=cc
4957 ac_cpp='$CXXCPP $CPPFLAGS'
4958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4961
4962 fi
4963
4964
4965 ac_ext=f
4966 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4967 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4969 if test -n "$ac_tool_prefix"; then
4970   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4971   do
4972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4974 echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4976 if test "${ac_cv_prog_F77+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   if test -n "$F77"; then
4980   ac_cv_prog_F77="$F77" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987   for ac_exec_ext in '' $ac_executable_extensions; do
4988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994 done
4995
4996 fi
4997 fi
4998 F77=$ac_cv_prog_F77
4999 if test -n "$F77"; then
5000   echo "$as_me:$LINENO: result: $F77" >&5
5001 echo "${ECHO_T}$F77" >&6
5002 else
5003   echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6
5005 fi
5006
5007     test -n "$F77" && break
5008   done
5009 fi
5010 if test -z "$F77"; then
5011   ac_ct_F77=$F77
5012   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5013 do
5014   # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   if test -n "$ac_ct_F77"; then
5022   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031     ac_cv_prog_ac_ct_F77="$ac_prog"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037
5038 fi
5039 fi
5040 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5041 if test -n "$ac_ct_F77"; then
5042   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5043 echo "${ECHO_T}$ac_ct_F77" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049   test -n "$ac_ct_F77" && break
5050 done
5051
5052   F77=$ac_ct_F77
5053 fi
5054
5055
5056 # Provide some information about the compiler.
5057 echo "$as_me:5057:" \
5058      "checking for Fortran 77 compiler version" >&5
5059 ac_compiler=`set X $ac_compile; echo $2`
5060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5061   (eval $ac_compiler --version </dev/null >&5) 2>&5
5062   ac_status=$?
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); }
5065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5066   (eval $ac_compiler -v </dev/null >&5) 2>&5
5067   ac_status=$?
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); }
5070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5071   (eval $ac_compiler -V </dev/null >&5) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }
5075 rm -f a.out
5076
5077 # If we don't use `.F' as extension, the preprocessor is not run on the
5078 # input file.  (Note that this only needs to work for GNU compilers.)
5079 ac_save_ext=$ac_ext
5080 ac_ext=F
5081 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5082 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5083 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   cat >conftest.$ac_ext <<_ACEOF
5087       program main
5088 #ifndef __GNUC__
5089        choke me
5090 #endif
5091
5092       end
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096   (eval $ac_compile) 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -z "$ac_f77_werror_flag"
5104                          || test ! -s conftest.err'
5105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106   (eval $ac_try) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   ac_compiler_gnu=yes
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_compiler_gnu=no
5122 fi
5123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5125
5126 fi
5127 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5128 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5129 ac_ext=$ac_save_ext
5130 ac_test_FFLAGS=${FFLAGS+set}
5131 ac_save_FFLAGS=$FFLAGS
5132 FFLAGS=
5133 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5134 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5135 if test "${ac_cv_prog_f77_g+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   FFLAGS=-g
5139 cat >conftest.$ac_ext <<_ACEOF
5140       program main
5141
5142       end
5143 _ACEOF
5144 rm -f conftest.$ac_objext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5146   (eval $ac_compile) 2>conftest.er1
5147   ac_status=$?
5148   grep -v '^ *+' conftest.er1 >conftest.err
5149   rm -f conftest.er1
5150   cat conftest.err >&5
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } &&
5153          { ac_try='test -z "$ac_f77_werror_flag"
5154                          || test ! -s conftest.err'
5155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156   (eval $ac_try) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); }; } &&
5160          { ac_try='test -s conftest.$ac_objext'
5161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162   (eval $ac_try) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; }; then
5166   ac_cv_prog_f77_g=yes
5167 else
5168   echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 ac_cv_prog_f77_g=no
5172 fi
5173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5174
5175 fi
5176 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5177 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5178 if test "$ac_test_FFLAGS" = set; then
5179   FFLAGS=$ac_save_FFLAGS
5180 elif test $ac_cv_prog_f77_g = yes; then
5181   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5182     FFLAGS="-g -O2"
5183   else
5184     FFLAGS="-g"
5185   fi
5186 else
5187   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5188     FFLAGS="-O2"
5189   else
5190     FFLAGS=
5191   fi
5192 fi
5193
5194 G77=`test $ac_compiler_gnu = yes && echo yes`
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
5201
5202
5203 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5204
5205 # find the maximum length of command line arguments
5206 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5207 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5208 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211     i=0
5212   teststring="ABCD"
5213
5214   case $build_os in
5215   msdosdjgpp*)
5216     # On DJGPP, this test can blow up pretty badly due to problems in libc
5217     # (any single argument exceeding 2000 bytes causes a buffer overrun
5218     # during glob expansion).  Even if it were fixed, the result of this
5219     # check would be larger than it should be.
5220     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5221     ;;
5222
5223   gnu*)
5224     # Under GNU Hurd, this test is not required because there is
5225     # no limit to the length of command line arguments.
5226     # Libtool will interpret -1 as no limit whatsoever
5227     lt_cv_sys_max_cmd_len=-1;
5228     ;;
5229
5230   cygwin* | mingw*)
5231     # On Win9x/ME, this test blows up -- it succeeds, but takes
5232     # about 5 minutes as the teststring grows exponentially.
5233     # Worse, since 9x/ME are not pre-emptively multitasking,
5234     # you end up with a "frozen" computer, even though with patience
5235     # the test eventually succeeds (with a max line length of 256k).
5236     # Instead, let's just punt: use the minimum linelength reported by
5237     # all of the supported platforms: 8192 (on NT/2K/XP).
5238     lt_cv_sys_max_cmd_len=8192;
5239     ;;
5240
5241   amigaos*)
5242     # On AmigaOS with pdksh, this test takes hours, literally.
5243     # So we just punt and use a minimum line length of 8192.
5244     lt_cv_sys_max_cmd_len=8192;
5245     ;;
5246
5247   netbsd* | freebsd* | openbsd* | darwin* )
5248     # This has been around since 386BSD, at least.  Likely further.
5249     if test -x /sbin/sysctl; then
5250       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5251     elif test -x /usr/sbin/sysctl; then
5252       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5253     else
5254       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5255     fi
5256     # And add a safety zone
5257     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5258     ;;
5259
5260  *)
5261     # If test is not a shell built-in, we'll probably end up computing a
5262     # maximum length that is only half of the actual maximum length, but
5263     # we can't tell.
5264     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5265     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5266                = "XX$teststring") >/dev/null 2>&1 &&
5267             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5268             lt_cv_sys_max_cmd_len=$new_result &&
5269             test $i != 17 # 1/2 MB should be enough
5270     do
5271       i=`expr $i + 1`
5272       teststring=$teststring$teststring
5273     done
5274     teststring=
5275     # Add a significant safety factor because C++ compilers can tack on massive
5276     # amounts of additional arguments before passing them to the linker.
5277     # It appears as though 1/2 is a usable value.
5278     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5279     ;;
5280   esac
5281
5282 fi
5283
5284 if test -n $lt_cv_sys_max_cmd_len ; then
5285   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5286 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5287 else
5288   echo "$as_me:$LINENO: result: none" >&5
5289 echo "${ECHO_T}none" >&6
5290 fi
5291
5292
5293
5294
5295 # Check for command to grab the raw symbol name followed by C symbol from nm.
5296 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5297 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5298 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301
5302 # These are sane defaults that work on at least a few old systems.
5303 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5304
5305 # Character class describing NM global symbol codes.
5306 symcode='[BCDEGRST]'
5307
5308 # Regexp to match symbols that can be accessed directly from C.
5309 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5310
5311 # Transform the above into a raw symbol and a C symbol.
5312 symxfrm='\1 \2\3 \3'
5313
5314 # Transform an extracted symbol line into a proper C declaration
5315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5316
5317 # Transform an extracted symbol line into symbol name and symbol address
5318 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'"
5319
5320 # Define system-specific variables.
5321 case $host_os in
5322 aix*)
5323   symcode='[BCDT]'
5324   ;;
5325 cygwin* | mingw* | pw32*)
5326   symcode='[ABCDGISTW]'
5327   ;;
5328 hpux*) # Its linker distinguishes data from code symbols
5329   if test "$host_cpu" = ia64; then
5330     symcode='[ABCDEGRST]'
5331   fi
5332   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5333   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'"
5334   ;;
5335 linux*)
5336   if test "$host_cpu" = ia64; then
5337     symcode='[ABCDGIRSTW]'
5338     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5339     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'"
5340   fi
5341   ;;
5342 irix* | nonstopux*)
5343   symcode='[BCDEGRST]'
5344   ;;
5345 osf*)
5346   symcode='[BCDEGQRST]'
5347   ;;
5348 solaris* | sysv5*)
5349   symcode='[BDRT]'
5350   ;;
5351 sysv4)
5352   symcode='[DFNSTU]'
5353   ;;
5354 esac
5355
5356 # Handle CRLF in mingw tool chain
5357 opt_cr=
5358 case $build_os in
5359 mingw*)
5360   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5361   ;;
5362 esac
5363
5364 # If we're using GNU nm, then use its standard symbol codes.
5365 case `$NM -V 2>&1` in
5366 *GNU* | *'with BFD'*)
5367   symcode='[ABCDGIRSTW]' ;;
5368 esac
5369
5370 # Try without a prefix undercore, then with it.
5371 for ac_symprfx in "" "_"; do
5372
5373   # Write the raw and C identifiers.
5374   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5375
5376   # Check to see that the pipe works correctly.
5377   pipe_works=no
5378
5379   rm -f conftest*
5380   cat > conftest.$ac_ext <<EOF
5381 #ifdef __cplusplus
5382 extern "C" {
5383 #endif
5384 char nm_test_var;
5385 void nm_test_func(){}
5386 #ifdef __cplusplus
5387 }
5388 #endif
5389 int main(){nm_test_var='a';nm_test_func();return(0);}
5390 EOF
5391
5392   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; then
5397     # Now try to grab the symbols.
5398     nlist=conftest.nm
5399     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5400   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } && test -s "$nlist"; then
5404       # Try sorting and uniquifying the output.
5405       if sort "$nlist" | uniq > "$nlist"T; then
5406         mv -f "$nlist"T "$nlist"
5407       else
5408         rm -f "$nlist"T
5409       fi
5410
5411       # Make sure that we snagged all the symbols we need.
5412       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5413         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5414           cat <<EOF > conftest.$ac_ext
5415 #ifdef __cplusplus
5416 extern "C" {
5417 #endif
5418
5419 EOF
5420           # Now generate the symbol file.
5421           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5422
5423           cat <<EOF >> conftest.$ac_ext
5424 #if defined (__STDC__) && __STDC__
5425 # define lt_ptr_t void *
5426 #else
5427 # define lt_ptr_t char *
5428 # define const
5429 #endif
5430
5431 /* The mapping between symbol names and symbols. */
5432 const struct {
5433   const char *name;
5434   lt_ptr_t address;
5435 }
5436 lt_preloaded_symbols[] =
5437 {
5438 EOF
5439           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5440           cat <<\EOF >> conftest.$ac_ext
5441   {0, (lt_ptr_t) 0}
5442 };
5443
5444 #ifdef __cplusplus
5445 }
5446 #endif
5447 EOF
5448           # Now try linking the two files.
5449           mv conftest.$ac_objext conftstm.$ac_objext
5450           lt_save_LIBS="$LIBS"
5451           lt_save_CFLAGS="$CFLAGS"
5452           LIBS="conftstm.$ac_objext"
5453           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5454           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455   (eval $ac_link) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5459             pipe_works=yes
5460           fi
5461           LIBS="$lt_save_LIBS"
5462           CFLAGS="$lt_save_CFLAGS"
5463         else
5464           echo "cannot find nm_test_func in $nlist" >&5
5465         fi
5466       else
5467         echo "cannot find nm_test_var in $nlist" >&5
5468       fi
5469     else
5470       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5471     fi
5472   else
5473     echo "$progname: failed program was:" >&5
5474     cat conftest.$ac_ext >&5
5475   fi
5476   rm -f conftest* conftst*
5477
5478   # Do not use the global_symbol_pipe unless it works.
5479   if test "$pipe_works" = yes; then
5480     break
5481   else
5482     lt_cv_sys_global_symbol_pipe=
5483   fi
5484 done
5485
5486 fi
5487
5488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5489   lt_cv_sys_global_symbol_to_cdecl=
5490 fi
5491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5492   echo "$as_me:$LINENO: result: failed" >&5
5493 echo "${ECHO_T}failed" >&6
5494 else
5495   echo "$as_me:$LINENO: result: ok" >&5
5496 echo "${ECHO_T}ok" >&6
5497 fi
5498
5499 echo "$as_me:$LINENO: checking for objdir" >&5
5500 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5501 if test "${lt_cv_objdir+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   rm -f .libs 2>/dev/null
5505 mkdir .libs 2>/dev/null
5506 if test -d .libs; then
5507   lt_cv_objdir=.libs
5508 else
5509   # MS-DOS does not allow filenames that begin with a dot.
5510   lt_cv_objdir=_libs
5511 fi
5512 rmdir .libs 2>/dev/null
5513 fi
5514 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5515 echo "${ECHO_T}$lt_cv_objdir" >&6
5516 objdir=$lt_cv_objdir
5517
5518
5519
5520
5521
5522 case $host_os in
5523 aix3*)
5524   # AIX sometimes has problems with the GCC collect2 program.  For some
5525   # reason, if we set the COLLECT_NAMES environment variable, the problems
5526   # vanish in a puff of smoke.
5527   if test "X${COLLECT_NAMES+set}" != Xset; then
5528     COLLECT_NAMES=
5529     export COLLECT_NAMES
5530   fi
5531   ;;
5532 esac
5533
5534 # Sed substitution that helps us do robust quoting.  It backslashifies
5535 # metacharacters that are still active within double-quoted strings.
5536 Xsed='sed -e s/^X//'
5537 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5538
5539 # Same as above, but do not quote variable references.
5540 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5541
5542 # Sed substitution to delay expansion of an escaped shell variable in a
5543 # double_quote_subst'ed string.
5544 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5545
5546 # Sed substitution to avoid accidental globbing in evaled expressions
5547 no_glob_subst='s/\*/\\\*/g'
5548
5549 # Constants:
5550 rm="rm -f"
5551
5552 # Global variables:
5553 default_ofile=mklib
5554 can_build_shared=yes
5555
5556 # All known linkers require a `.a' archive for static linking (except M$VC,
5557 # which needs '.lib').
5558 libext=a
5559 ltmain="$ac_aux_dir/ltmain.sh"
5560 ofile="$default_ofile"
5561 with_gnu_ld="$lt_cv_prog_gnu_ld"
5562
5563 if test -n "$ac_tool_prefix"; then
5564   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}ar; ac_word=$2
5566 echo "$as_me:$LINENO: checking for $ac_word" >&5
5567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568 if test "${ac_cv_prog_AR+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   if test -n "$AR"; then
5572   ac_cv_prog_AR="$AR" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579   for ac_exec_ext in '' $ac_executable_extensions; do
5580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581     ac_cv_prog_AR="${ac_tool_prefix}ar"
5582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586 done
5587
5588 fi
5589 fi
5590 AR=$ac_cv_prog_AR
5591 if test -n "$AR"; then
5592   echo "$as_me:$LINENO: result: $AR" >&5
5593 echo "${ECHO_T}$AR" >&6
5594 else
5595   echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5597 fi
5598
5599 fi
5600 if test -z "$ac_cv_prog_AR"; then
5601   ac_ct_AR=$AR
5602   # Extract the first word of "ar", so it can be a program name with args.
5603 set dummy ar; ac_word=$2
5604 echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if test -n "$ac_ct_AR"; then
5610   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619     ac_cv_prog_ac_ct_AR="ar"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625
5626   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5627 fi
5628 fi
5629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5630 if test -n "$ac_ct_AR"; then
5631   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5632 echo "${ECHO_T}$ac_ct_AR" >&6
5633 else
5634   echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6
5636 fi
5637
5638   AR=$ac_ct_AR
5639 else
5640   AR="$ac_cv_prog_AR"
5641 fi
5642
5643 if test -n "$ac_tool_prefix"; then
5644   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5646 echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5648 if test "${ac_cv_prog_RANLIB+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   if test -n "$RANLIB"; then
5652   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659   for ac_exec_ext in '' $ac_executable_extensions; do
5660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666 done
5667
5668 fi
5669 fi
5670 RANLIB=$ac_cv_prog_RANLIB
5671 if test -n "$RANLIB"; then
5672   echo "$as_me:$LINENO: result: $RANLIB" >&5
5673 echo "${ECHO_T}$RANLIB" >&6
5674 else
5675   echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6
5677 fi
5678
5679 fi
5680 if test -z "$ac_cv_prog_RANLIB"; then
5681   ac_ct_RANLIB=$RANLIB
5682   # Extract the first word of "ranlib", so it can be a program name with args.
5683 set dummy ranlib; ac_word=$2
5684 echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   if test -n "$ac_ct_RANLIB"; then
5690   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697   for ac_exec_ext in '' $ac_executable_extensions; do
5698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699     ac_cv_prog_ac_ct_RANLIB="ranlib"
5700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704 done
5705
5706   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5707 fi
5708 fi
5709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5710 if test -n "$ac_ct_RANLIB"; then
5711   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5712 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5713 else
5714   echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716 fi
5717
5718   RANLIB=$ac_ct_RANLIB
5719 else
5720   RANLIB="$ac_cv_prog_RANLIB"
5721 fi
5722
5723 if test -n "$ac_tool_prefix"; then
5724   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}strip; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_STRIP+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$STRIP"; then
5732   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747
5748 fi
5749 fi
5750 STRIP=$ac_cv_prog_STRIP
5751 if test -n "$STRIP"; then
5752   echo "$as_me:$LINENO: result: $STRIP" >&5
5753 echo "${ECHO_T}$STRIP" >&6
5754 else
5755   echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5757 fi
5758
5759 fi
5760 if test -z "$ac_cv_prog_STRIP"; then
5761   ac_ct_STRIP=$STRIP
5762   # Extract the first word of "strip", so it can be a program name with args.
5763 set dummy strip; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   if test -n "$ac_ct_STRIP"; then
5770   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_prog_ac_ct_STRIP="strip"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785
5786   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5787 fi
5788 fi
5789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5790 if test -n "$ac_ct_STRIP"; then
5791   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5792 echo "${ECHO_T}$ac_ct_STRIP" >&6
5793 else
5794   echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5796 fi
5797
5798   STRIP=$ac_ct_STRIP
5799 else
5800   STRIP="$ac_cv_prog_STRIP"
5801 fi
5802
5803
5804 old_CC="$CC"
5805 old_CFLAGS="$CFLAGS"
5806
5807 # Set sane defaults for various variables
5808 test -z "$AR" && AR=ar
5809 test -z "$AR_FLAGS" && AR_FLAGS=cru
5810 test -z "$AS" && AS=as
5811 test -z "$CC" && CC=cc
5812 test -z "$LTCC" && LTCC=$CC
5813 test -z "$DLLTOOL" && DLLTOOL=dlltool
5814 test -z "$LD" && LD=ld
5815 test -z "$LN_S" && LN_S="ln -s"
5816 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5817 test -z "$NM" && NM=nm
5818 test -z "$SED" && SED=sed
5819 test -z "$OBJDUMP" && OBJDUMP=objdump
5820 test -z "$RANLIB" && RANLIB=:
5821 test -z "$STRIP" && STRIP=:
5822 test -z "$ac_objext" && ac_objext=o
5823
5824 # Determine commands to create old-style static archives.
5825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5826 old_postinstall_cmds='chmod 644 $oldlib'
5827 old_postuninstall_cmds=
5828
5829 if test -n "$RANLIB"; then
5830   case $host_os in
5831   openbsd*)
5832     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5833     ;;
5834   *)
5835     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5836     ;;
5837   esac
5838   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5839 fi
5840
5841 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5842
5843 # Only perform the check for file, if the check method requires it
5844 case $deplibs_check_method in
5845 file_magic*)
5846   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5847     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5848 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   case $MAGIC_CMD in
5853 [\\/*] |  ?:[\\/]*)
5854   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5855   ;;
5856 *)
5857   lt_save_MAGIC_CMD="$MAGIC_CMD"
5858   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5859   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5860   for ac_dir in $ac_dummy; do
5861     IFS="$lt_save_ifs"
5862     test -z "$ac_dir" && ac_dir=.
5863     if test -f $ac_dir/${ac_tool_prefix}file; then
5864       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5865       if test -n "$file_magic_test_file"; then
5866         case $deplibs_check_method in
5867         "file_magic "*)
5868           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5869           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5870           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5871             $EGREP "$file_magic_regex" > /dev/null; then
5872             :
5873           else
5874             cat <<EOF 1>&2
5875
5876 *** Warning: the command libtool uses to detect shared libraries,
5877 *** $file_magic_cmd, produces output that libtool cannot recognize.
5878 *** The result is that libtool may fail to recognize shared libraries
5879 *** as such.  This will affect the creation of libtool libraries that
5880 *** depend on shared libraries, but programs linked with such libtool
5881 *** libraries will work regardless of this problem.  Nevertheless, you
5882 *** may want to report the problem to your system manager and/or to
5883 *** bug-libtool@gnu.org
5884
5885 EOF
5886           fi ;;
5887         esac
5888       fi
5889       break
5890     fi
5891   done
5892   IFS="$lt_save_ifs"
5893   MAGIC_CMD="$lt_save_MAGIC_CMD"
5894   ;;
5895 esac
5896 fi
5897
5898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5899 if test -n "$MAGIC_CMD"; then
5900   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5901 echo "${ECHO_T}$MAGIC_CMD" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5905 fi
5906
5907 if test -z "$lt_cv_path_MAGIC_CMD"; then
5908   if test -n "$ac_tool_prefix"; then
5909     echo "$as_me:$LINENO: checking for file" >&5
5910 echo $ECHO_N "checking for file... $ECHO_C" >&6
5911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case $MAGIC_CMD in
5915 [\\/*] |  ?:[\\/]*)
5916   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5917   ;;
5918 *)
5919   lt_save_MAGIC_CMD="$MAGIC_CMD"
5920   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5921   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5922   for ac_dir in $ac_dummy; do
5923     IFS="$lt_save_ifs"
5924     test -z "$ac_dir" && ac_dir=.
5925     if test -f $ac_dir/file; then
5926       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5927       if test -n "$file_magic_test_file"; then
5928         case $deplibs_check_method in
5929         "file_magic "*)
5930           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5931           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5932           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5933             $EGREP "$file_magic_regex" > /dev/null; then
5934             :
5935           else
5936             cat <<EOF 1>&2
5937
5938 *** Warning: the command libtool uses to detect shared libraries,
5939 *** $file_magic_cmd, produces output that libtool cannot recognize.
5940 *** The result is that libtool may fail to recognize shared libraries
5941 *** as such.  This will affect the creation of libtool libraries that
5942 *** depend on shared libraries, but programs linked with such libtool
5943 *** libraries will work regardless of this problem.  Nevertheless, you
5944 *** may want to report the problem to your system manager and/or to
5945 *** bug-libtool@gnu.org
5946
5947 EOF
5948           fi ;;
5949         esac
5950       fi
5951       break
5952     fi
5953   done
5954   IFS="$lt_save_ifs"
5955   MAGIC_CMD="$lt_save_MAGIC_CMD"
5956   ;;
5957 esac
5958 fi
5959
5960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5961 if test -n "$MAGIC_CMD"; then
5962   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5963 echo "${ECHO_T}$MAGIC_CMD" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969   else
5970     MAGIC_CMD=:
5971   fi
5972 fi
5973
5974   fi
5975   ;;
5976 esac
5977
5978 enable_dlopen=no
5979 enable_win32_dll=no
5980
5981 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5982 if test "${enable_libtool_lock+set}" = set; then
5983   enableval="$enable_libtool_lock"
5984
5985 fi;
5986 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5987
5988
5989 # Check whether --with-pic or --without-pic was given.
5990 if test "${with_pic+set}" = set; then
5991   withval="$with_pic"
5992   pic_mode="$withval"
5993 else
5994   pic_mode=default
5995 fi;
5996 test -z "$pic_mode" && pic_mode=default
5997
5998 # Use C for the default configuration in the libtool script
5999 tagname=
6000 lt_save_CC="$CC"
6001 ac_ext=c
6002 ac_cpp='$CPP $CPPFLAGS'
6003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006
6007
6008 # Source file extension for C test sources.
6009 ac_ext=c
6010
6011 # Object file extension for compiled C test sources.
6012 objext=o
6013 objext=$objext
6014
6015 # Code to be used in simple compile tests
6016 lt_simple_compile_test_code="int some_variable = 0;\n"
6017
6018 # Code to be used in simple link tests
6019 lt_simple_link_test_code='int main(){return(0);}\n'
6020
6021
6022 # If no C compiler was specified, use CC.
6023 LTCC=${LTCC-"$CC"}
6024
6025 # Allow CC to be a program name with arguments.
6026 compiler=$CC
6027
6028
6029 #
6030 # Check for any special shared library compilation flags.
6031 #
6032 lt_prog_cc_shlib=
6033 if test "$GCC" = no; then
6034   case $host_os in
6035   sco3.2v5*)
6036     lt_prog_cc_shlib='-belf'
6037     ;;
6038   esac
6039 fi
6040 if test -n "$lt_prog_cc_shlib"; then
6041   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6042 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6043   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6044   else
6045     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6046 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6047     lt_cv_prog_cc_can_build_shared=no
6048   fi
6049 fi
6050
6051
6052 #
6053 # Check to make sure the static flag actually works.
6054 #
6055 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6056 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6057 if test "${lt_prog_compiler_static_works+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   lt_prog_compiler_static_works=no
6061    save_LDFLAGS="$LDFLAGS"
6062    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6063    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6064    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6065      # The compiler can only warn and ignore the option if not recognized
6066      # So say no if there are warnings
6067      if test -s conftest.err; then
6068        # Append any errors to the config.log.
6069        cat conftest.err 1>&5
6070      else
6071        lt_prog_compiler_static_works=yes
6072      fi
6073    fi
6074    $rm conftest*
6075    LDFLAGS="$save_LDFLAGS"
6076
6077 fi
6078 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6079 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6080
6081 if test x"$lt_prog_compiler_static_works" = xyes; then
6082     :
6083 else
6084     lt_prog_compiler_static=
6085 fi
6086
6087
6088
6089
6090 lt_prog_compiler_no_builtin_flag=
6091
6092 if test "$GCC" = yes; then
6093   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6094
6095
6096 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6097 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6098 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   lt_cv_prog_compiler_rtti_exceptions=no
6102   ac_outfile=conftest.$ac_objext
6103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6104    lt_compiler_flag="-fno-rtti -fno-exceptions"
6105    # Insert the option either (1) after the last *FLAGS variable, or
6106    # (2) before a word containing "conftest.", or (3) at the end.
6107    # Note that $ac_compile itself does not contain backslashes and begins
6108    # with a dollar sign (not a hyphen), so the echo should work correctly.
6109    # The option is referenced via a variable to avoid confusing sed.
6110    lt_compile=`echo "$ac_compile" | $SED \
6111    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6113    -e 's:$: $lt_compiler_flag:'`
6114    (eval echo "\"\$as_me:6114: $lt_compile\"" >&5)
6115    (eval "$lt_compile" 2>conftest.err)
6116    ac_status=$?
6117    cat conftest.err >&5
6118    echo "$as_me:6118: \$? = $ac_status" >&5
6119    if (exit $ac_status) && test -s "$ac_outfile"; then
6120      # The compiler can only warn and ignore the option if not recognized
6121      # So say no if there are warnings
6122      if test ! -s conftest.err; then
6123        lt_cv_prog_compiler_rtti_exceptions=yes
6124      fi
6125    fi
6126    $rm conftest*
6127
6128 fi
6129 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6130 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6131
6132 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6133     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6134 else
6135     :
6136 fi
6137
6138 fi
6139
6140 lt_prog_compiler_wl=
6141 lt_prog_compiler_pic=
6142 lt_prog_compiler_static=
6143
6144 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6145 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6146
6147   if test "$GCC" = yes; then
6148     lt_prog_compiler_wl='-Wl,'
6149     lt_prog_compiler_static='-static'
6150
6151     case $host_os in
6152       aix*)
6153       # All AIX code is PIC.
6154       if test "$host_cpu" = ia64; then
6155         # AIX 5 now supports IA64 processor
6156         lt_prog_compiler_static='-Bstatic'
6157       fi
6158       ;;
6159
6160     amigaos*)
6161       # FIXME: we need at least 68020 code to build shared libraries, but
6162       # adding the `-m68020' flag to GCC prevents building anything better,
6163       # like `-m68040'.
6164       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6165       ;;
6166
6167     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6168       # PIC is the default for these OSes.
6169       ;;
6170
6171     mingw* | pw32* | os2*)
6172       # This hack is so that the source file can tell whether it is being
6173       # built for inclusion in a dll (and should export symbols for example).
6174       lt_prog_compiler_pic='-DDLL_EXPORT'
6175       ;;
6176
6177     darwin* | rhapsody*)
6178       # PIC is the default on this platform
6179       # Common symbols not allowed in MH_DYLIB files
6180       lt_prog_compiler_pic='-fno-common'
6181       ;;
6182
6183     msdosdjgpp*)
6184       # Just because we use GCC doesn't mean we suddenly get shared libraries
6185       # on systems that don't support them.
6186       lt_prog_compiler_can_build_shared=no
6187       enable_shared=no
6188       ;;
6189
6190     sysv4*MP*)
6191       if test -d /usr/nec; then
6192         lt_prog_compiler_pic=-Kconform_pic
6193       fi
6194       ;;
6195
6196     hpux*)
6197       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6198       # not for PA HP-UX.
6199       case "$host_cpu" in
6200       hppa*64*|ia64*)
6201         # +Z the default
6202         ;;
6203       *)
6204         lt_prog_compiler_pic='-fPIC'
6205         ;;
6206       esac
6207       ;;
6208
6209     *)
6210       lt_prog_compiler_pic='-fPIC'
6211       ;;
6212     esac
6213   else
6214     # PORTME Check for flag to pass linker flags through the system compiler.
6215     case $host_os in
6216     aix*)
6217       lt_prog_compiler_wl='-Wl,'
6218       if test "$host_cpu" = ia64; then
6219         # AIX 5 now supports IA64 processor
6220         lt_prog_compiler_static='-Bstatic'
6221       else
6222         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6223       fi
6224       ;;
6225       darwin*)
6226         # PIC is the default on this platform
6227         # Common symbols not allowed in MH_DYLIB files
6228        case "$cc_basename" in
6229          xlc*)
6230          lt_prog_compiler_pic='-qnocommon'
6231          lt_prog_compiler_wl='-Wl,'
6232          ;;
6233        esac
6234        ;;
6235
6236     mingw* | pw32* | os2*)
6237       # This hack is so that the source file can tell whether it is being
6238       # built for inclusion in a dll (and should export symbols for example).
6239       lt_prog_compiler_pic='-DDLL_EXPORT'
6240       ;;
6241
6242     hpux9* | hpux10* | hpux11*)
6243       lt_prog_compiler_wl='-Wl,'
6244       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6245       # not for PA HP-UX.
6246       case "$host_cpu" in
6247       hppa*64*|ia64*)
6248         # +Z the default
6249         ;;
6250       *)
6251         lt_prog_compiler_pic='+Z'
6252         ;;
6253       esac
6254       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6255       lt_prog_compiler_static='${wl}-a ${wl}archive'
6256       ;;
6257
6258     irix5* | irix6* | nonstopux*)
6259       lt_prog_compiler_wl='-Wl,'
6260       # PIC (with -KPIC) is the default.
6261       lt_prog_compiler_static='-non_shared'
6262       ;;
6263
6264     newsos6)
6265       lt_prog_compiler_pic='-KPIC'
6266       lt_prog_compiler_static='-Bstatic'
6267       ;;
6268
6269     linux*)
6270       case $CC in
6271       icc* | ecc*)
6272         lt_prog_compiler_wl='-Wl,'
6273         lt_prog_compiler_pic='-KPIC'
6274         lt_prog_compiler_static='-static'
6275         ;;
6276       ccc*)
6277         lt_prog_compiler_wl='-Wl,'
6278         # All Alpha code is PIC.
6279         lt_prog_compiler_static='-non_shared'
6280         ;;
6281       esac
6282       ;;
6283
6284     osf3* | osf4* | osf5*)
6285       lt_prog_compiler_wl='-Wl,'
6286       # All OSF/1 code is PIC.
6287       lt_prog_compiler_static='-non_shared'
6288       ;;
6289
6290     sco3.2v5*)
6291       lt_prog_compiler_pic='-Kpic'
6292       lt_prog_compiler_static='-dn'
6293       ;;
6294
6295     solaris*)
6296       lt_prog_compiler_wl='-Wl,'
6297       lt_prog_compiler_pic='-KPIC'
6298       lt_prog_compiler_static='-Bstatic'
6299       ;;
6300
6301     sunos4*)
6302       lt_prog_compiler_wl='-Qoption ld '
6303       lt_prog_compiler_pic='-PIC'
6304       lt_prog_compiler_static='-Bstatic'
6305       ;;
6306
6307     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6308       lt_prog_compiler_wl='-Wl,'
6309       lt_prog_compiler_pic='-KPIC'
6310       lt_prog_compiler_static='-Bstatic'
6311       ;;
6312
6313     sysv4*MP*)
6314       if test -d /usr/nec ;then
6315         lt_prog_compiler_pic='-Kconform_pic'
6316         lt_prog_compiler_static='-Bstatic'
6317       fi
6318       ;;
6319
6320     uts4*)
6321       lt_prog_compiler_pic='-pic'
6322       lt_prog_compiler_static='-Bstatic'
6323       ;;
6324
6325     *)
6326       lt_prog_compiler_can_build_shared=no
6327       ;;
6328     esac
6329   fi
6330
6331 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6332 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6333
6334 #
6335 # Check to make sure the PIC flag actually works.
6336 #
6337 if test -n "$lt_prog_compiler_pic"; then
6338
6339 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6340 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6341 if test "${lt_prog_compiler_pic_works+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   lt_prog_compiler_pic_works=no
6345   ac_outfile=conftest.$ac_objext
6346    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6347    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6348    # Insert the option either (1) after the last *FLAGS variable, or
6349    # (2) before a word containing "conftest.", or (3) at the end.
6350    # Note that $ac_compile itself does not contain backslashes and begins
6351    # with a dollar sign (not a hyphen), so the echo should work correctly.
6352    # The option is referenced via a variable to avoid confusing sed.
6353    lt_compile=`echo "$ac_compile" | $SED \
6354    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6355    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6356    -e 's:$: $lt_compiler_flag:'`
6357    (eval echo "\"\$as_me:6357: $lt_compile\"" >&5)
6358    (eval "$lt_compile" 2>conftest.err)
6359    ac_status=$?
6360    cat conftest.err >&5
6361    echo "$as_me:6361: \$? = $ac_status" >&5
6362    if (exit $ac_status) && test -s "$ac_outfile"; then
6363      # The compiler can only warn and ignore the option if not recognized
6364      # So say no if there are warnings
6365      if test ! -s conftest.err; then
6366        lt_prog_compiler_pic_works=yes
6367      fi
6368    fi
6369    $rm conftest*
6370
6371 fi
6372 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6373 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6374
6375 if test x"$lt_prog_compiler_pic_works" = xyes; then
6376     case $lt_prog_compiler_pic in
6377      "" | " "*) ;;
6378      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6379      esac
6380 else
6381     lt_prog_compiler_pic=
6382      lt_prog_compiler_can_build_shared=no
6383 fi
6384
6385 fi
6386 case "$host_os" in
6387   # For platforms which do not support PIC, -DPIC is meaningless:
6388   *djgpp*)
6389     lt_prog_compiler_pic=
6390     ;;
6391   *)
6392     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6393     ;;
6394 esac
6395
6396 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6397 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6398 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6399   echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401   lt_cv_prog_compiler_c_o=no
6402    $rm -r conftest 2>/dev/null
6403    mkdir conftest
6404    cd conftest
6405    mkdir out
6406    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6407
6408    lt_compiler_flag="-o out/conftest2.$ac_objext"
6409    # Insert the option either (1) after the last *FLAGS variable, or
6410    # (2) before a word containing "conftest.", or (3) at the end.
6411    # Note that $ac_compile itself does not contain backslashes and begins
6412    # with a dollar sign (not a hyphen), so the echo should work correctly.
6413    lt_compile=`echo "$ac_compile" | $SED \
6414    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6415    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6416    -e 's:$: $lt_compiler_flag:'`
6417    (eval echo "\"\$as_me:6417: $lt_compile\"" >&5)
6418    (eval "$lt_compile" 2>out/conftest.err)
6419    ac_status=$?
6420    cat out/conftest.err >&5
6421    echo "$as_me:6421: \$? = $ac_status" >&5
6422    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6423    then
6424      # The compiler can only warn and ignore the option if not recognized
6425      # So say no if there are warnings
6426      if test ! -s out/conftest.err; then
6427        lt_cv_prog_compiler_c_o=yes
6428      fi
6429    fi
6430    chmod u+w .
6431    $rm conftest*
6432    # SGI C++ compiler will create directory out/ii_files/ for
6433    # template instantiation
6434    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6435    $rm out/* && rmdir out
6436    cd ..
6437    rmdir conftest
6438    $rm conftest*
6439
6440 fi
6441 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6442 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6443
6444
6445 hard_links="nottested"
6446 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6447   # do not overwrite the value of need_locks provided by the user
6448   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6449 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6450   hard_links=yes
6451   $rm conftest*
6452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6453   touch conftest.a
6454   ln conftest.a conftest.b 2>&5 || hard_links=no
6455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456   echo "$as_me:$LINENO: result: $hard_links" >&5
6457 echo "${ECHO_T}$hard_links" >&6
6458   if test "$hard_links" = no; then
6459     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6460 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6461     need_locks=warn
6462   fi
6463 else
6464   need_locks=no
6465 fi
6466
6467 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6468 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6469
6470   runpath_var=
6471   allow_undefined_flag=
6472   enable_shared_with_static_runtimes=no
6473   archive_cmds=
6474   archive_expsym_cmds=
6475   old_archive_From_new_cmds=
6476   old_archive_from_expsyms_cmds=
6477   export_dynamic_flag_spec=
6478   whole_archive_flag_spec=
6479   thread_safe_flag_spec=
6480   hardcode_libdir_flag_spec=
6481   hardcode_libdir_flag_spec_ld=
6482   hardcode_libdir_separator=
6483   hardcode_direct=no
6484   hardcode_minus_L=no
6485   hardcode_shlibpath_var=unsupported
6486   link_all_deplibs=unknown
6487   hardcode_automatic=no
6488   module_cmds=
6489   module_expsym_cmds=
6490   always_export_symbols=no
6491   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6492   # include_expsyms should be a list of space-separated symbols to be *always*
6493   # included in the symbol list
6494   include_expsyms=
6495   # exclude_expsyms can be an extended regexp of symbols to exclude
6496   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6497   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6498   # as well as any symbol that contains `d'.
6499   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6500   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6501   # platforms (ab)use it in PIC code, but their linkers get confused if
6502   # the symbol is explicitly referenced.  Since portable code cannot
6503   # rely on this symbol name, it's probably fine to never include it in
6504   # preloaded symbol tables.
6505   extract_expsyms_cmds=
6506
6507   case $host_os in
6508   cygwin* | mingw* | pw32*)
6509     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6510     # When not using gcc, we currently assume that we are using
6511     # Microsoft Visual C++.
6512     if test "$GCC" != yes; then
6513       with_gnu_ld=no
6514     fi
6515     ;;
6516   openbsd*)
6517     with_gnu_ld=no
6518     ;;
6519   esac
6520
6521   ld_shlibs=yes
6522   if test "$with_gnu_ld" = yes; then
6523     # If archive_cmds runs LD, not CC, wlarc should be empty
6524     wlarc='${wl}'
6525
6526     # See if GNU ld supports shared libraries.
6527     case $host_os in
6528     aix3* | aix4* | aix5*)
6529       # On AIX/PPC, the GNU linker is very broken
6530       if test "$host_cpu" != ia64; then
6531         ld_shlibs=no
6532         cat <<EOF 1>&2
6533
6534 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6535 *** to be unable to reliably create shared libraries on AIX.
6536 *** Therefore, libtool is disabling shared libraries support.  If you
6537 *** really care for shared libraries, you may want to modify your PATH
6538 *** so that a non-GNU linker is found, and then restart.
6539
6540 EOF
6541       fi
6542       ;;
6543
6544     amigaos*)
6545       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)'
6546       hardcode_libdir_flag_spec='-L$libdir'
6547       hardcode_minus_L=yes
6548
6549       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6550       # that the semantics of dynamic libraries on AmigaOS, at least up
6551       # to version 4, is to share data among multiple programs linked
6552       # with the same dynamic library.  Since this doesn't match the
6553       # behavior of shared libraries on other platforms, we can't use
6554       # them.
6555       ld_shlibs=no
6556       ;;
6557
6558     beos*)
6559       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6560         allow_undefined_flag=unsupported
6561         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6562         # support --undefined.  This deserves some investigation.  FIXME
6563         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6564       else
6565         ld_shlibs=no
6566       fi
6567       ;;
6568
6569     cygwin* | mingw* | pw32*)
6570       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6571       # as there is no search path for DLLs.
6572       hardcode_libdir_flag_spec='-L$libdir'
6573       allow_undefined_flag=unsupported
6574       always_export_symbols=no
6575       enable_shared_with_static_runtimes=yes
6576       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6577
6578       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6579         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6580         # If the export-symbols file already is a .def file (1st line
6581         # is EXPORTS), use it as is; otherwise, prepend...
6582         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6583           cp $export_symbols $output_objdir/$soname.def;
6584         else
6585           echo EXPORTS > $output_objdir/$soname.def;
6586           cat $export_symbols >> $output_objdir/$soname.def;
6587         fi~
6588         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6589       else
6590         ld_shlibs=no
6591       fi
6592       ;;
6593
6594     netbsd*)
6595       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6596         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6597         wlarc=
6598       else
6599         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6600         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6601       fi
6602       ;;
6603
6604     solaris* | sysv5*)
6605       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6606         ld_shlibs=no
6607         cat <<EOF 1>&2
6608
6609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6610 *** create shared libraries on Solaris systems.  Therefore, libtool
6611 *** is disabling shared libraries support.  We urge you to upgrade GNU
6612 *** binutils to release 2.9.1 or newer.  Another option is to modify
6613 *** your PATH or compiler configuration so that the native linker is
6614 *** used, and then restart.
6615
6616 EOF
6617       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6618         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6619         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6620       else
6621         ld_shlibs=no
6622       fi
6623       ;;
6624
6625     sunos4*)
6626       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6627       wlarc=
6628       hardcode_direct=yes
6629       hardcode_shlibpath_var=no
6630       ;;
6631
6632   linux*)
6633     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6634         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635         archive_cmds="$tmp_archive_cmds"
6636       supports_anon_versioning=no
6637       case `$LD -v 2>/dev/null` in
6638         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6639         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6640         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6641         *\ 2.11.*) ;; # other 2.11 versions
6642         *) supports_anon_versioning=yes ;;
6643       esac
6644       if test $supports_anon_versioning = yes; then
6645         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6647 $echo "local: *; };" >> $output_objdir/$libname.ver~
6648         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6649       else
6650         archive_expsym_cmds="$tmp_archive_cmds"
6651       fi
6652     else
6653       ld_shlibs=no
6654     fi
6655     ;;
6656
6657     *)
6658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661       else
6662         ld_shlibs=no
6663       fi
6664       ;;
6665     esac
6666
6667     if test "$ld_shlibs" = yes; then
6668       runpath_var=LD_RUN_PATH
6669       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670       export_dynamic_flag_spec='${wl}--export-dynamic'
6671       # ancient GNU ld didn't support --whole-archive et. al.
6672       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6674       else
6675         whole_archive_flag_spec=
6676       fi
6677     fi
6678   else
6679     # PORTME fill in a description of your system's linker (not GNU ld)
6680     case $host_os in
6681     aix3*)
6682       allow_undefined_flag=unsupported
6683       always_export_symbols=yes
6684       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'
6685       # Note: this linker hardcodes the directories in LIBPATH if there
6686       # are no directories specified by -L.
6687       hardcode_minus_L=yes
6688       if test "$GCC" = yes && test -z "$link_static_flag"; then
6689         # Neither direct hardcoding nor static linking is supported with a
6690         # broken collect2.
6691         hardcode_direct=unsupported
6692       fi
6693       ;;
6694
6695     aix4* | aix5*)
6696       if test "$host_cpu" = ia64; then
6697         # On IA64, the linker does run time linking by default, so we don't
6698         # have to do anything special.
6699         aix_use_runtimelinking=no
6700         exp_sym_flag='-Bexport'
6701         no_entry_flag=""
6702       else
6703         # If we're using GNU nm, then we don't want the "-C" option.
6704         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706           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'
6707         else
6708           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'
6709         fi
6710         aix_use_runtimelinking=no
6711
6712         # Test if we are trying to use run time linking or normal
6713         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714         # need to do runtime linking.
6715         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716           for ld_flag in $LDFLAGS; do
6717           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718             aix_use_runtimelinking=yes
6719             break
6720           fi
6721           done
6722         esac
6723
6724         exp_sym_flag='-bexport'
6725         no_entry_flag='-bnoentry'
6726       fi
6727
6728       # When large executables or shared objects are built, AIX ld can
6729       # have problems creating the table of contents.  If linking a library
6730       # or program results in "error TOC overflow" add -mminimal-toc to
6731       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6732       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6733
6734       archive_cmds=''
6735       hardcode_direct=yes
6736       hardcode_libdir_separator=':'
6737       link_all_deplibs=yes
6738
6739       if test "$GCC" = yes; then
6740         case $host_os in aix4.012|aix4.012.*)
6741         # We only want to do this on AIX 4.2 and lower, the check
6742         # below for broken collect2 doesn't work under 4.3+
6743           collect2name=`${CC} -print-prog-name=collect2`
6744           if test -f "$collect2name" && \
6745            strings "$collect2name" | grep resolve_lib_name >/dev/null
6746           then
6747           # We have reworked collect2
6748           hardcode_direct=yes
6749           else
6750           # We have old collect2
6751           hardcode_direct=unsupported
6752           # It fails to find uninstalled libraries when the uninstalled
6753           # path is not listed in the libpath.  Setting hardcode_minus_L
6754           # to unsupported forces relinking
6755           hardcode_minus_L=yes
6756           hardcode_libdir_flag_spec='-L$libdir'
6757           hardcode_libdir_separator=
6758           fi
6759         esac
6760         shared_flag='-shared'
6761       else
6762         # not using gcc
6763         if test "$host_cpu" = ia64; then
6764         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765         # chokes on -Wl,-G. The following line is correct:
6766           shared_flag='-G'
6767         else
6768         if test "$aix_use_runtimelinking" = yes; then
6769             shared_flag='${wl}-G'
6770           else
6771             shared_flag='${wl}-bM:SRE'
6772         fi
6773         fi
6774       fi
6775
6776       # It seems that -bexpall does not export symbols beginning with
6777       # underscore (_), so it is better to generate a list of symbols to export.
6778       always_export_symbols=yes
6779       if test "$aix_use_runtimelinking" = yes; then
6780         # Warning - without using the other runtime loading flags (-brtl),
6781         # -berok will link without error, but may produce a broken library.
6782         allow_undefined_flag='-berok'
6783        # Determine the default libpath from the value encoded in an empty executable.
6784        cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790
6791 int
6792 main ()
6793 {
6794
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6801   (eval $ac_link) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } &&
6808          { ac_try='test -z "$ac_c_werror_flag"
6809                          || test ! -s conftest.err'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; } &&
6815          { ac_try='test -s conftest$ac_exeext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821
6822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6823 }'`
6824 # Check for a 64-bit object if we didn't find anything.
6825 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; }
6826 }'`; fi
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 fi
6832 rm -f conftest.err conftest.$ac_objext \
6833       conftest$ac_exeext conftest.$ac_ext
6834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6835
6836        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837         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"
6838        else
6839         if test "$host_cpu" = ia64; then
6840           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841           allow_undefined_flag="-z nodefs"
6842           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"
6843         else
6844          # Determine the default libpath from the value encoded in an empty executable.
6845          cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851
6852 int
6853 main ()
6854 {
6855
6856   ;
6857   return 0;
6858 }
6859 _ACEOF
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862   (eval $ac_link) 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } &&
6869          { ac_try='test -z "$ac_c_werror_flag"
6870                          || test ! -s conftest.err'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; } &&
6876          { ac_try='test -s conftest$ac_exeext'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882
6883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6884 }'`
6885 # Check for a 64-bit object if we didn't find anything.
6886 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; }
6887 }'`; fi
6888 else
6889   echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 fi
6893 rm -f conftest.err conftest.$ac_objext \
6894       conftest$ac_exeext conftest.$ac_ext
6895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6896
6897          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898           # Warning - without using the other run time loading flags,
6899           # -berok will link without error, but may produce a broken library.
6900           no_undefined_flag=' ${wl}-bernotok'
6901           allow_undefined_flag=' ${wl}-berok'
6902           # -bexpall does not export symbols beginning with underscore (_)
6903           always_export_symbols=yes
6904           # Exported symbols can be pulled into shared objects from archives
6905           whole_archive_flag_spec=' '
6906           archive_cmds_need_lc=yes
6907           # This is similar to how AIX traditionally builds it's shared libraries.
6908           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'
6909         fi
6910       fi
6911       ;;
6912
6913     amigaos*)
6914       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)'
6915       hardcode_libdir_flag_spec='-L$libdir'
6916       hardcode_minus_L=yes
6917       # see comment about different semantics on the GNU ld section
6918       ld_shlibs=no
6919       ;;
6920
6921     bsdi[45]*)
6922       export_dynamic_flag_spec=-rdynamic
6923       ;;
6924
6925     cygwin* | mingw* | pw32*)
6926       # When not using gcc, we currently assume that we are using
6927       # Microsoft Visual C++.
6928       # hardcode_libdir_flag_spec is actually meaningless, as there is
6929       # no search path for DLLs.
6930       hardcode_libdir_flag_spec=' '
6931       allow_undefined_flag=unsupported
6932       # Tell ltmain to make .lib files, not .a files.
6933       libext=lib
6934       # Tell ltmain to make .dll files, not .so files.
6935       shrext_cmds=".dll"
6936       # FIXME: Setting linknames here is a bad hack.
6937       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6938       # The linker will automatically build a .lib file if we build a DLL.
6939       old_archive_From_new_cmds='true'
6940       # FIXME: Should let the user specify the lib program.
6941       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942       fix_srcfile_path='`cygpath -w "$srcfile"`'
6943       enable_shared_with_static_runtimes=yes
6944       ;;
6945
6946     darwin* | rhapsody*)
6947       case "$host_os" in
6948         rhapsody* | darwin1.[012])
6949          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6950          ;;
6951        *) # Darwin 1.3 on
6952          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954          else
6955            case ${MACOSX_DEPLOYMENT_TARGET} in
6956              10.[012])
6957                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6958                ;;
6959              10.*)
6960                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6961                ;;
6962            esac
6963          fi
6964          ;;
6965       esac
6966       archive_cmds_need_lc=no
6967       hardcode_direct=no
6968       hardcode_automatic=yes
6969       hardcode_shlibpath_var=unsupported
6970       whole_archive_flag_spec=''
6971       link_all_deplibs=yes
6972     if test "$GCC" = yes ; then
6973         output_verbose_link_cmd='echo'
6974         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6977       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}'
6978       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}'
6979     else
6980       case "$cc_basename" in
6981         xlc*)
6982          output_verbose_link_cmd='echo'
6983          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6986          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}'
6987           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}'
6988           ;;
6989        *)
6990          ld_shlibs=no
6991           ;;
6992       esac
6993     fi
6994       ;;
6995
6996     dgux*)
6997       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6998       hardcode_libdir_flag_spec='-L$libdir'
6999       hardcode_shlibpath_var=no
7000       ;;
7001
7002     freebsd1*)
7003       ld_shlibs=no
7004       ;;
7005
7006     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007     # support.  Future versions do this automatically, but an explicit c++rt0.o
7008     # does not break anything, and helps significantly (at the cost of a little
7009     # extra space).
7010     freebsd2.2*)
7011       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012       hardcode_libdir_flag_spec='-R$libdir'
7013       hardcode_direct=yes
7014       hardcode_shlibpath_var=no
7015       ;;
7016
7017     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7018     freebsd2*)
7019       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7020       hardcode_direct=yes
7021       hardcode_minus_L=yes
7022       hardcode_shlibpath_var=no
7023       ;;
7024
7025     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7026     freebsd* | kfreebsd*-gnu)
7027       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028       hardcode_libdir_flag_spec='-R$libdir'
7029       hardcode_direct=yes
7030       hardcode_shlibpath_var=no
7031       ;;
7032
7033     hpux9*)
7034       if test "$GCC" = yes; then
7035         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'
7036       else
7037         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'
7038       fi
7039       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040       hardcode_libdir_separator=:
7041       hardcode_direct=yes
7042
7043       # hardcode_minus_L: Not really in the search PATH,
7044       # but as the default location of the library.
7045       hardcode_minus_L=yes
7046       export_dynamic_flag_spec='${wl}-E'
7047       ;;
7048
7049     hpux10* | hpux11*)
7050       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7051         case "$host_cpu" in
7052         hppa*64*|ia64*)
7053           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054           ;;
7055         *)
7056           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7057           ;;
7058         esac
7059       else
7060         case "$host_cpu" in
7061         hppa*64*|ia64*)
7062           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7063           ;;
7064         *)
7065           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7066           ;;
7067         esac
7068       fi
7069       if test "$with_gnu_ld" = no; then
7070         case "$host_cpu" in
7071         hppa*64*)
7072           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073           hardcode_libdir_flag_spec_ld='+b $libdir'
7074           hardcode_libdir_separator=:
7075           hardcode_direct=no
7076           hardcode_shlibpath_var=no
7077           ;;
7078         ia64*)
7079           hardcode_libdir_flag_spec='-L$libdir'
7080           hardcode_direct=no
7081           hardcode_shlibpath_var=no
7082
7083           # hardcode_minus_L: Not really in the search PATH,
7084           # but as the default location of the library.
7085           hardcode_minus_L=yes
7086           ;;
7087         *)
7088           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089           hardcode_libdir_separator=:
7090           hardcode_direct=yes
7091           export_dynamic_flag_spec='${wl}-E'
7092
7093           # hardcode_minus_L: Not really in the search PATH,
7094           # but as the default location of the library.
7095           hardcode_minus_L=yes
7096           ;;
7097         esac
7098       fi
7099       ;;
7100
7101     irix5* | irix6* | nonstopux*)
7102       if test "$GCC" = yes; then
7103         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'
7104       else
7105         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'
7106         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7107       fi
7108       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109       hardcode_libdir_separator=:
7110       link_all_deplibs=yes
7111       ;;
7112
7113     netbsd*)
7114       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7116       else
7117         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7118       fi
7119       hardcode_libdir_flag_spec='-R$libdir'
7120       hardcode_direct=yes
7121       hardcode_shlibpath_var=no
7122       ;;
7123
7124     newsos6)
7125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126       hardcode_direct=yes
7127       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128       hardcode_libdir_separator=:
7129       hardcode_shlibpath_var=no
7130       ;;
7131
7132     openbsd*)
7133       hardcode_direct=yes
7134       hardcode_shlibpath_var=no
7135       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7138         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139         export_dynamic_flag_spec='${wl}-E'
7140       else
7141        case $host_os in
7142          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144            hardcode_libdir_flag_spec='-R$libdir'
7145            ;;
7146          *)
7147            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149            ;;
7150        esac
7151       fi
7152       ;;
7153
7154     os2*)
7155       hardcode_libdir_flag_spec='-L$libdir'
7156       hardcode_minus_L=yes
7157       allow_undefined_flag=unsupported
7158       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'
7159       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7160       ;;
7161
7162     osf3*)
7163       if test "$GCC" = yes; then
7164         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165         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'
7166       else
7167         allow_undefined_flag=' -expect_unresolved \*'
7168         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'
7169       fi
7170       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171       hardcode_libdir_separator=:
7172       ;;
7173
7174     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7175       if test "$GCC" = yes; then
7176         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177         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'
7178         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179       else
7180         allow_undefined_flag=' -expect_unresolved \*'
7181         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'
7182         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7183         $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'
7184
7185         # Both c and cxx compiler support -rpath directly
7186         hardcode_libdir_flag_spec='-rpath $libdir'
7187       fi
7188       hardcode_libdir_separator=:
7189       ;;
7190
7191     sco3.2v5*)
7192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7193       hardcode_shlibpath_var=no
7194       export_dynamic_flag_spec='${wl}-Bexport'
7195       runpath_var=LD_RUN_PATH
7196       hardcode_runpath_var=yes
7197       ;;
7198
7199     solaris*)
7200       no_undefined_flag=' -z text'
7201       if test "$GCC" = yes; then
7202         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7203         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7204           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7205       else
7206         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7208         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7209       fi
7210       hardcode_libdir_flag_spec='-R$libdir'
7211       hardcode_shlibpath_var=no
7212       case $host_os in
7213       solaris2.[0-5] | solaris2.[0-5].*) ;;
7214       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7215         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7216       esac
7217       link_all_deplibs=yes
7218       ;;
7219
7220     sunos4*)
7221       if test "x$host_vendor" = xsequent; then
7222         # Use $CC to link under sequent, because it throws in some extra .o
7223         # files that make .init and .fini sections work.
7224         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7225       else
7226         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7227       fi
7228       hardcode_libdir_flag_spec='-L$libdir'
7229       hardcode_direct=yes
7230       hardcode_minus_L=yes
7231       hardcode_shlibpath_var=no
7232       ;;
7233
7234     sysv4)
7235       case $host_vendor in
7236         sni)
7237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238           hardcode_direct=yes # is this really true???
7239         ;;
7240         siemens)
7241           ## LD is ld it makes a PLAMLIB
7242           ## CC just makes a GrossModule.
7243           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7244           reload_cmds='$CC -r -o $output$reload_objs'
7245           hardcode_direct=no
7246         ;;
7247         motorola)
7248           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7249           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7250         ;;
7251       esac
7252       runpath_var='LD_RUN_PATH'
7253       hardcode_shlibpath_var=no
7254       ;;
7255
7256     sysv4.3*)
7257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7258       hardcode_shlibpath_var=no
7259       export_dynamic_flag_spec='-Bexport'
7260       ;;
7261
7262     sysv4*MP*)
7263       if test -d /usr/nec; then
7264         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7265         hardcode_shlibpath_var=no
7266         runpath_var=LD_RUN_PATH
7267         hardcode_runpath_var=yes
7268         ld_shlibs=yes
7269       fi
7270       ;;
7271
7272     sysv4.2uw2*)
7273       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7274       hardcode_direct=yes
7275       hardcode_minus_L=no
7276       hardcode_shlibpath_var=no
7277       hardcode_runpath_var=yes
7278       runpath_var=LD_RUN_PATH
7279       ;;
7280
7281    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7282       no_undefined_flag='${wl}-z ${wl}text'
7283       if test "$GCC" = yes; then
7284         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7285       else
7286         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7287       fi
7288       runpath_var='LD_RUN_PATH'
7289       hardcode_shlibpath_var=no
7290       ;;
7291
7292     sysv5*)
7293       no_undefined_flag=' -z text'
7294       # $CC -shared without GNU ld will not create a library from C++
7295       # object files and a static libstdc++, better avoid it by now
7296       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7298                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7299       hardcode_libdir_flag_spec=
7300       hardcode_shlibpath_var=no
7301       runpath_var='LD_RUN_PATH'
7302       ;;
7303
7304     uts4*)
7305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306       hardcode_libdir_flag_spec='-L$libdir'
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     *)
7311       ld_shlibs=no
7312       ;;
7313     esac
7314   fi
7315
7316 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7317 echo "${ECHO_T}$ld_shlibs" >&6
7318 test "$ld_shlibs" = no && can_build_shared=no
7319
7320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7321 if test "$GCC" = yes; then
7322   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7323 fi
7324
7325 #
7326 # Do we need to explicitly link libc?
7327 #
7328 case "x$archive_cmds_need_lc" in
7329 x|xyes)
7330   # Assume -lc should be added
7331   archive_cmds_need_lc=yes
7332
7333   if test "$enable_shared" = yes && test "$GCC" = yes; then
7334     case $archive_cmds in
7335     *'~'*)
7336       # FIXME: we may have to deal with multi-command sequences.
7337       ;;
7338     '$CC '*)
7339       # Test whether the compiler implicitly links with -lc since on some
7340       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7341       # to ld, don't add -lc before -lgcc.
7342       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7343 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7344       $rm conftest*
7345       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
7347       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7348   (eval $ac_compile) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } 2>conftest.err; then
7352         soname=conftest
7353         lib=conftest
7354         libobjs=conftest.$ac_objext
7355         deplibs=
7356         wl=$lt_prog_compiler_wl
7357         compiler_flags=-v
7358         linker_flags=-v
7359         verstring=
7360         output_objdir=.
7361         libname=conftest
7362         lt_save_allow_undefined_flag=$allow_undefined_flag
7363         allow_undefined_flag=
7364         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7365   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }
7369         then
7370           archive_cmds_need_lc=no
7371         else
7372           archive_cmds_need_lc=yes
7373         fi
7374         allow_undefined_flag=$lt_save_allow_undefined_flag
7375       else
7376         cat conftest.err 1>&5
7377       fi
7378       $rm conftest*
7379       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7380 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7381       ;;
7382     esac
7383   fi
7384   ;;
7385 esac
7386
7387 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7389 library_names_spec=
7390 libname_spec='lib$name'
7391 soname_spec=
7392 shrext_cmds=".so"
7393 postinstall_cmds=
7394 postuninstall_cmds=
7395 finish_cmds=
7396 finish_eval=
7397 shlibpath_var=
7398 shlibpath_overrides_runpath=unknown
7399 version_type=none
7400 dynamic_linker="$host_os ld.so"
7401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7402 if test "$GCC" = yes; then
7403   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7404   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7405     # if the path contains ";" then we assume it to be the separator
7406     # otherwise default to the standard path separator (i.e. ":") - it is
7407     # assumed that no part of a normal pathname contains ";" but that should
7408     # okay in the real world where ";" in dirpaths is itself problematic.
7409     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7410   else
7411     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7412   fi
7413 else
7414   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7415 fi
7416 need_lib_prefix=unknown
7417 hardcode_into_libs=no
7418
7419 # when you set need_version to no, make sure it does not cause -set_version
7420 # flags to be left without arguments
7421 need_version=unknown
7422
7423 case $host_os in
7424 aix3*)
7425   version_type=linux
7426   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7427   shlibpath_var=LIBPATH
7428
7429   # AIX 3 has no versioning support, so we append a major version to the name.
7430   soname_spec='${libname}${release}${shared_ext}$major'
7431   ;;
7432
7433 aix4* | aix5*)
7434   version_type=linux
7435   need_lib_prefix=no
7436   need_version=no
7437   hardcode_into_libs=yes
7438   if test "$host_cpu" = ia64; then
7439     # AIX 5 supports IA64
7440     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7441     shlibpath_var=LD_LIBRARY_PATH
7442   else
7443     # With GCC up to 2.95.x, collect2 would create an import file
7444     # for dependence libraries.  The import file would start with
7445     # the line `#! .'.  This would cause the generated library to
7446     # depend on `.', always an invalid library.  This was fixed in
7447     # development snapshots of GCC prior to 3.0.
7448     case $host_os in
7449       aix4 | aix4.[01] | aix4.[01].*)
7450       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7451            echo ' yes '
7452            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7453         :
7454       else
7455         can_build_shared=no
7456       fi
7457       ;;
7458     esac
7459     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7460     # soname into executable. Probably we can add versioning support to
7461     # collect2, so additional links can be useful in future.
7462     if test "$aix_use_runtimelinking" = yes; then
7463       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7464       # instead of lib<name>.a to let people know that these are not
7465       # typical AIX shared libraries.
7466       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7467     else
7468       # We preserve .a as extension for shared libraries through AIX4.2
7469       # and later when we are not doing run time linking.
7470       library_names_spec='${libname}${release}.a $libname.a'
7471       soname_spec='${libname}${release}${shared_ext}$major'
7472     fi
7473     shlibpath_var=LIBPATH
7474   fi
7475   ;;
7476
7477 amigaos*)
7478   library_names_spec='$libname.ixlibrary $libname.a'
7479   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7480   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'
7481   ;;
7482
7483 beos*)
7484   library_names_spec='${libname}${shared_ext}'
7485   dynamic_linker="$host_os ld.so"
7486   shlibpath_var=LIBRARY_PATH
7487   ;;
7488
7489 bsdi[45]*)
7490   version_type=linux
7491   need_version=no
7492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7493   soname_spec='${libname}${release}${shared_ext}$major'
7494   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7495   shlibpath_var=LD_LIBRARY_PATH
7496   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7497   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7498   # the default ld.so.conf also contains /usr/contrib/lib and
7499   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7500   # libtool to hard-code these into programs
7501   ;;
7502
7503 cygwin* | mingw* | pw32*)
7504   version_type=windows
7505   shrext_cmds=".dll"
7506   need_version=no
7507   need_lib_prefix=no
7508
7509   case $GCC,$host_os in
7510   yes,cygwin* | yes,mingw* | yes,pw32*)
7511     library_names_spec='$libname.dll.a'
7512     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7513     postinstall_cmds='base_file=`basename \${file}`~
7514       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7515       dldir=$destdir/`dirname \$dlpath`~
7516       test -d \$dldir || mkdir -p \$dldir~
7517       $install_prog $dir/$dlname \$dldir/$dlname'
7518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7519       dlpath=$dir/\$dldll~
7520        $rm \$dlpath'
7521     shlibpath_overrides_runpath=yes
7522
7523     case $host_os in
7524     cygwin*)
7525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7527       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7528       ;;
7529     mingw*)
7530       # MinGW DLLs use traditional 'lib' prefix
7531       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7533       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7534         # It is most probably a Windows format PATH printed by
7535         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7536         # path with ; separators, and with drive letters. We can handle the
7537         # drive letters (cygwin fileutils understands them), so leave them,
7538         # especially as we might pass files found there to a mingw objdump,
7539         # which wouldn't understand a cygwinified path. Ahh.
7540         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7541       else
7542         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7543       fi
7544       ;;
7545     pw32*)
7546       # pw32 DLLs use 'pw' prefix rather than 'lib'
7547       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7548       ;;
7549     esac
7550     ;;
7551
7552   *)
7553     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7554     ;;
7555   esac
7556   dynamic_linker='Win32 ld.exe'
7557   # FIXME: first we should search . and the directory the executable is in
7558   shlibpath_var=PATH
7559   ;;
7560
7561 darwin* | rhapsody*)
7562   dynamic_linker="$host_os dyld"
7563   version_type=darwin
7564   need_lib_prefix=no
7565   need_version=no
7566   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7567   soname_spec='${libname}${release}${major}$shared_ext'
7568   shlibpath_overrides_runpath=yes
7569   shlibpath_var=DYLD_LIBRARY_PATH
7570   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7571   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7572   if test "$GCC" = yes; then
7573     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"`
7574   else
7575     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7576   fi
7577   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7578   ;;
7579
7580 dgux*)
7581   version_type=linux
7582   need_lib_prefix=no
7583   need_version=no
7584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7585   soname_spec='${libname}${release}${shared_ext}$major'
7586   shlibpath_var=LD_LIBRARY_PATH
7587   ;;
7588
7589 freebsd1*)
7590   dynamic_linker=no
7591   ;;
7592
7593 kfreebsd*-gnu)
7594   version_type=linux
7595   need_lib_prefix=no
7596   need_version=no
7597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7598   soname_spec='${libname}${release}${shared_ext}$major'
7599   shlibpath_var=LD_LIBRARY_PATH
7600   shlibpath_overrides_runpath=no
7601   hardcode_into_libs=yes
7602   dynamic_linker='GNU ld.so'
7603   ;;
7604
7605 freebsd*)
7606   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7607   version_type=freebsd-$objformat
7608   case $version_type in
7609     freebsd-elf*)
7610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7611       need_version=no
7612       need_lib_prefix=no
7613       ;;
7614     freebsd-*)
7615       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7616       need_version=yes
7617       ;;
7618   esac
7619   shlibpath_var=LD_LIBRARY_PATH
7620   case $host_os in
7621   freebsd2*)
7622     shlibpath_overrides_runpath=yes
7623     ;;
7624   freebsd3.01* | freebsdelf3.01*)
7625     shlibpath_overrides_runpath=yes
7626     hardcode_into_libs=yes
7627     ;;
7628   *) # from 3.2 on
7629     shlibpath_overrides_runpath=no
7630     hardcode_into_libs=yes
7631     ;;
7632   esac
7633   ;;
7634
7635 gnu*)
7636   version_type=linux
7637   need_lib_prefix=no
7638   need_version=no
7639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7640   soname_spec='${libname}${release}${shared_ext}$major'
7641   shlibpath_var=LD_LIBRARY_PATH
7642   hardcode_into_libs=yes
7643   ;;
7644
7645 hpux9* | hpux10* | hpux11*)
7646   # Give a soname corresponding to the major version so that dld.sl refuses to
7647   # link against other versions.
7648   version_type=sunos
7649   need_lib_prefix=no
7650   need_version=no
7651   case "$host_cpu" in
7652   ia64*)
7653     shrext_cmds='.so'
7654     hardcode_into_libs=yes
7655     dynamic_linker="$host_os dld.so"
7656     shlibpath_var=LD_LIBRARY_PATH
7657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7659     soname_spec='${libname}${release}${shared_ext}$major'
7660     if test "X$HPUX_IA64_MODE" = X32; then
7661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7662     else
7663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7664     fi
7665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7666     ;;
7667    hppa*64*)
7668      shrext_cmds='.sl'
7669      hardcode_into_libs=yes
7670      dynamic_linker="$host_os dld.sl"
7671      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7672      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7673      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674      soname_spec='${libname}${release}${shared_ext}$major'
7675      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7676      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7677      ;;
7678    *)
7679     shrext_cmds='.sl'
7680     dynamic_linker="$host_os dld.sl"
7681     shlibpath_var=SHLIB_PATH
7682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7684     soname_spec='${libname}${release}${shared_ext}$major'
7685     ;;
7686   esac
7687   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7688   postinstall_cmds='chmod 555 $lib'
7689   ;;
7690
7691 irix5* | irix6* | nonstopux*)
7692   case $host_os in
7693     nonstopux*) version_type=nonstopux ;;
7694     *)
7695         if test "$lt_cv_prog_gnu_ld" = yes; then
7696                 version_type=linux
7697         else
7698                 version_type=irix
7699         fi ;;
7700   esac
7701   need_lib_prefix=no
7702   need_version=no
7703   soname_spec='${libname}${release}${shared_ext}$major'
7704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7705   case $host_os in
7706   irix5* | nonstopux*)
7707     libsuff= shlibsuff=
7708     ;;
7709   *)
7710     case $LD in # libtool.m4 will add one of these switches to LD
7711     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7712       libsuff= shlibsuff= libmagic=32-bit;;
7713     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7714       libsuff=32 shlibsuff=N32 libmagic=N32;;
7715     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7716       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7717     *) libsuff= shlibsuff= libmagic=never-match;;
7718     esac
7719     ;;
7720   esac
7721   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7722   shlibpath_overrides_runpath=no
7723   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7724   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7725   hardcode_into_libs=yes
7726   ;;
7727
7728 # No shared lib support for Linux oldld, aout, or coff.
7729 linux*oldld* | linux*aout* | linux*coff*)
7730   dynamic_linker=no
7731   ;;
7732
7733 # This must be Linux ELF.
7734 linux*)
7735   version_type=linux
7736   need_lib_prefix=no
7737   need_version=no
7738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7739   soname_spec='${libname}${release}${shared_ext}$major'
7740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7741   shlibpath_var=LD_LIBRARY_PATH
7742   shlibpath_overrides_runpath=no
7743   # This implies no fast_install, which is unacceptable.
7744   # Some rework will be needed to allow for fast_install
7745   # before this can be enabled.
7746   hardcode_into_libs=yes
7747
7748   # Append ld.so.conf contents to the search path
7749   if test -f /etc/ld.so.conf; then
7750     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7751     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7752   fi
7753
7754   # We used to test for /lib/ld.so.1 and disable shared libraries on
7755   # powerpc, because MkLinux only supported shared libraries with the
7756   # GNU dynamic linker.  Since this was broken with cross compilers,
7757   # most powerpc-linux boxes support dynamic linking these days and
7758   # people can always --disable-shared, the test was removed, and we
7759   # assume the GNU/Linux dynamic linker is in use.
7760   dynamic_linker='GNU/Linux ld.so'
7761   ;;
7762
7763 knetbsd*-gnu)
7764   version_type=linux
7765   need_lib_prefix=no
7766   need_version=no
7767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7768   soname_spec='${libname}${release}${shared_ext}$major'
7769   shlibpath_var=LD_LIBRARY_PATH
7770   shlibpath_overrides_runpath=no
7771   hardcode_into_libs=yes
7772   dynamic_linker='GNU ld.so'
7773   ;;
7774
7775 netbsd*)
7776   version_type=sunos
7777   need_lib_prefix=no
7778   need_version=no
7779   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7781     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7782     dynamic_linker='NetBSD (a.out) ld.so'
7783   else
7784     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7785     soname_spec='${libname}${release}${shared_ext}$major'
7786     dynamic_linker='NetBSD ld.elf_so'
7787   fi
7788   shlibpath_var=LD_LIBRARY_PATH
7789   shlibpath_overrides_runpath=yes
7790   hardcode_into_libs=yes
7791   ;;
7792
7793 newsos6)
7794   version_type=linux
7795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796   shlibpath_var=LD_LIBRARY_PATH
7797   shlibpath_overrides_runpath=yes
7798   ;;
7799
7800 nto-qnx*)
7801   version_type=linux
7802   need_lib_prefix=no
7803   need_version=no
7804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805   soname_spec='${libname}${release}${shared_ext}$major'
7806   shlibpath_var=LD_LIBRARY_PATH
7807   shlibpath_overrides_runpath=yes
7808   ;;
7809
7810 openbsd*)
7811   version_type=sunos
7812   need_lib_prefix=no
7813   need_version=no
7814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7815   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7816   shlibpath_var=LD_LIBRARY_PATH
7817   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7818     case $host_os in
7819       openbsd2.[89] | openbsd2.[89].*)
7820         shlibpath_overrides_runpath=no
7821         ;;
7822       *)
7823         shlibpath_overrides_runpath=yes
7824         ;;
7825       esac
7826   else
7827     shlibpath_overrides_runpath=yes
7828   fi
7829   ;;
7830
7831 os2*)
7832   libname_spec='$name'
7833   shrext_cmds=".dll"
7834   need_lib_prefix=no
7835   library_names_spec='$libname${shared_ext} $libname.a'
7836   dynamic_linker='OS/2 ld.exe'
7837   shlibpath_var=LIBPATH
7838   ;;
7839
7840 osf3* | osf4* | osf5*)
7841   version_type=osf
7842   need_lib_prefix=no
7843   need_version=no
7844   soname_spec='${libname}${release}${shared_ext}$major'
7845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846   shlibpath_var=LD_LIBRARY_PATH
7847   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7848   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7849   ;;
7850
7851 sco3.2v5*)
7852   version_type=osf
7853   soname_spec='${libname}${release}${shared_ext}$major'
7854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7855   shlibpath_var=LD_LIBRARY_PATH
7856   ;;
7857
7858 solaris*)
7859   version_type=linux
7860   need_lib_prefix=no
7861   need_version=no
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863   soname_spec='${libname}${release}${shared_ext}$major'
7864   shlibpath_var=LD_LIBRARY_PATH
7865   shlibpath_overrides_runpath=yes
7866   hardcode_into_libs=yes
7867   # ldd complains unless libraries are executable
7868   postinstall_cmds='chmod +x $lib'
7869   ;;
7870
7871 sunos4*)
7872   version_type=sunos
7873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7874   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7875   shlibpath_var=LD_LIBRARY_PATH
7876   shlibpath_overrides_runpath=yes
7877   if test "$with_gnu_ld" = yes; then
7878     need_lib_prefix=no
7879   fi
7880   need_version=yes
7881   ;;
7882
7883 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7884   version_type=linux
7885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7886   soname_spec='${libname}${release}${shared_ext}$major'
7887   shlibpath_var=LD_LIBRARY_PATH
7888   case $host_vendor in
7889     sni)
7890       shlibpath_overrides_runpath=no
7891       need_lib_prefix=no
7892       export_dynamic_flag_spec='${wl}-Blargedynsym'
7893       runpath_var=LD_RUN_PATH
7894       ;;
7895     siemens)
7896       need_lib_prefix=no
7897       ;;
7898     motorola)
7899       need_lib_prefix=no
7900       need_version=no
7901       shlibpath_overrides_runpath=no
7902       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7903       ;;
7904   esac
7905   ;;
7906
7907 sysv4*MP*)
7908   if test -d /usr/nec ;then
7909     version_type=linux
7910     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7911     soname_spec='$libname${shared_ext}.$major'
7912     shlibpath_var=LD_LIBRARY_PATH
7913   fi
7914   ;;
7915
7916 uts4*)
7917   version_type=linux
7918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919   soname_spec='${libname}${release}${shared_ext}$major'
7920   shlibpath_var=LD_LIBRARY_PATH
7921   ;;
7922
7923 *)
7924   dynamic_linker=no
7925   ;;
7926 esac
7927 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7928 echo "${ECHO_T}$dynamic_linker" >&6
7929 test "$dynamic_linker" = no && can_build_shared=no
7930
7931 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7932 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7933 hardcode_action=
7934 if test -n "$hardcode_libdir_flag_spec" || \
7935    test -n "$runpath_var" || \
7936    test "X$hardcode_automatic" = "Xyes" ; then
7937
7938   # We can hardcode non-existant directories.
7939   if test "$hardcode_direct" != no &&
7940      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7941      # have to relink, otherwise we might link with an installed library
7942      # when we should be linking with a yet-to-be-installed one
7943      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7944      test "$hardcode_minus_L" != no; then
7945     # Linking always hardcodes the temporary library directory.
7946     hardcode_action=relink
7947   else
7948     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7949     hardcode_action=immediate
7950   fi
7951 else
7952   # We cannot hardcode anything, or else we can only hardcode existing
7953   # directories.
7954   hardcode_action=unsupported
7955 fi
7956 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7957 echo "${ECHO_T}$hardcode_action" >&6
7958
7959 if test "$hardcode_action" = relink; then
7960   # Fast installation is not supported
7961   enable_fast_install=no
7962 elif test "$shlibpath_overrides_runpath" = yes ||
7963      test "$enable_shared" = no; then
7964   # Fast installation is not necessary
7965   enable_fast_install=needless
7966 fi
7967
7968 striplib=
7969 old_striplib=
7970 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7971 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7972 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7973   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7974   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7975   echo "$as_me:$LINENO: result: yes" >&5
7976 echo "${ECHO_T}yes" >&6
7977 else
7978 # FIXME - insert some real tests, host_os isn't really good enough
7979   case $host_os in
7980    darwin*)
7981        if test -n "$STRIP" ; then
7982          striplib="$STRIP -x"
7983          echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7985        else
7986   echo "$as_me:$LINENO: result: no" >&5
7987 echo "${ECHO_T}no" >&6
7988 fi
7989        ;;
7990    *)
7991   echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6
7993     ;;
7994   esac
7995 fi
7996
7997 if test "x$enable_dlopen" != xyes; then
7998   enable_dlopen=unknown
7999   enable_dlopen_self=unknown
8000   enable_dlopen_self_static=unknown
8001 else
8002   lt_cv_dlopen=no
8003   lt_cv_dlopen_libs=
8004
8005   case $host_os in
8006   beos*)
8007     lt_cv_dlopen="load_add_on"
8008     lt_cv_dlopen_libs=
8009     lt_cv_dlopen_self=yes
8010     ;;
8011
8012   mingw* | pw32*)
8013     lt_cv_dlopen="LoadLibrary"
8014     lt_cv_dlopen_libs=
8015    ;;
8016
8017   cygwin*)
8018     lt_cv_dlopen="dlopen"
8019     lt_cv_dlopen_libs=
8020    ;;
8021
8022   darwin*)
8023   # if libdl is installed we need to link against it
8024     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029   ac_check_lib_save_LIBS=$LIBS
8030 LIBS="-ldl  $LIBS"
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h.  */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h.  */
8037
8038 /* Override any gcc2 internal prototype to avoid an error.  */
8039 #ifdef __cplusplus
8040 extern "C"
8041 #endif
8042 /* We use char because int might match the return type of a gcc2
8043    builtin and then its argument prototype would still apply.  */
8044 char dlopen ();
8045 int
8046 main ()
8047 {
8048 dlopen ();
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055   (eval $ac_link) 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag"
8063                          || test ! -s conftest.err'
8064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065   (eval $ac_try) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; } &&
8069          { ac_try='test -s conftest$ac_exeext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_cv_lib_dl_dlopen=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 ac_cv_lib_dl_dlopen=no
8081 fi
8082 rm -f conftest.err conftest.$ac_objext \
8083       conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8085 fi
8086 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8087 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8088 if test $ac_cv_lib_dl_dlopen = yes; then
8089   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8090 else
8091
8092     lt_cv_dlopen="dyld"
8093     lt_cv_dlopen_libs=
8094     lt_cv_dlopen_self=yes
8095
8096 fi
8097
8098    ;;
8099
8100   *)
8101     echo "$as_me:$LINENO: checking for shl_load" >&5
8102 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8103 if test "${ac_cv_func_shl_load+set}" = set; then
8104   echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106   cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8114 #define shl_load innocuous_shl_load
8115
8116 /* System header to define __stub macros and hopefully few prototypes,
8117     which can conflict with char shl_load (); below.
8118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8119     <limits.h> exists even on freestanding compilers.  */
8120
8121 #ifdef __STDC__
8122 # include <limits.h>
8123 #else
8124 # include <assert.h>
8125 #endif
8126
8127 #undef shl_load
8128
8129 /* Override any gcc2 internal prototype to avoid an error.  */
8130 #ifdef __cplusplus
8131 extern "C"
8132 {
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135    builtin and then its argument prototype would still apply.  */
8136 char shl_load ();
8137 /* The GNU C library defines this for functions which it implements
8138     to always fail with ENOSYS.  Some functions are actually named
8139     something starting with __ and the normal name is an alias.  */
8140 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8141 choke me
8142 #else
8143 char (*f) () = shl_load;
8144 #endif
8145 #ifdef __cplusplus
8146 }
8147 #endif
8148
8149 int
8150 main ()
8151 {
8152 return f != shl_load;
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159   (eval $ac_link) 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -z "$ac_c_werror_flag"
8167                          || test ! -s conftest.err'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; } &&
8173          { ac_try='test -s conftest$ac_exeext'
8174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175   (eval $ac_try) 2>&5
8176   ac_status=$?
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   ac_cv_func_shl_load=yes
8180 else
8181   echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 ac_cv_func_shl_load=no
8185 fi
8186 rm -f conftest.err conftest.$ac_objext \
8187       conftest$ac_exeext conftest.$ac_ext
8188 fi
8189 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8190 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8191 if test $ac_cv_func_shl_load = yes; then
8192   lt_cv_dlopen="shl_load"
8193 else
8194   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8195 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8197   echo $ECHO_N "(cached) $ECHO_C" >&6
8198 else
8199   ac_check_lib_save_LIBS=$LIBS
8200 LIBS="-ldld  $LIBS"
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207
8208 /* Override any gcc2 internal prototype to avoid an error.  */
8209 #ifdef __cplusplus
8210 extern "C"
8211 #endif
8212 /* We use char because int might match the return type of a gcc2
8213    builtin and then its argument prototype would still apply.  */
8214 char shl_load ();
8215 int
8216 main ()
8217 {
8218 shl_load ();
8219   ;
8220   return 0;
8221 }
8222 _ACEOF
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8225   (eval $ac_link) 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -z "$ac_c_werror_flag"
8233                          || test ! -s conftest.err'
8234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235   (eval $ac_try) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; } &&
8239          { ac_try='test -s conftest$ac_exeext'
8240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241   (eval $ac_try) 2>&5
8242   ac_status=$?
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); }; }; then
8245   ac_cv_lib_dld_shl_load=yes
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ac_cv_lib_dld_shl_load=no
8251 fi
8252 rm -f conftest.err conftest.$ac_objext \
8253       conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_lib_save_LIBS
8255 fi
8256 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8257 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8258 if test $ac_cv_lib_dld_shl_load = yes; then
8259   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8260 else
8261   echo "$as_me:$LINENO: checking for dlopen" >&5
8262 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8263 if test "${ac_cv_func_dlopen+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8274 #define dlopen innocuous_dlopen
8275
8276 /* System header to define __stub macros and hopefully few prototypes,
8277     which can conflict with char dlopen (); below.
8278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8279     <limits.h> exists even on freestanding compilers.  */
8280
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8286
8287 #undef dlopen
8288
8289 /* Override any gcc2 internal prototype to avoid an error.  */
8290 #ifdef __cplusplus
8291 extern "C"
8292 {
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char dlopen ();
8297 /* The GNU C library defines this for functions which it implements
8298     to always fail with ENOSYS.  Some functions are actually named
8299     something starting with __ and the normal name is an alias.  */
8300 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8301 choke me
8302 #else
8303 char (*f) () = dlopen;
8304 #endif
8305 #ifdef __cplusplus
8306 }
8307 #endif
8308
8309 int
8310 main ()
8311 {
8312 return f != dlopen;
8313   ;
8314   return 0;
8315 }
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319   (eval $ac_link) 2>conftest.er1
8320   ac_status=$?
8321   grep -v '^ *+' conftest.er1 >conftest.err
8322   rm -f conftest.er1
8323   cat conftest.err >&5
8324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325   (exit $ac_status); } &&
8326          { ac_try='test -z "$ac_c_werror_flag"
8327                          || test ! -s conftest.err'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest$ac_exeext'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; }; then
8339   ac_cv_func_dlopen=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_func_dlopen=no
8345 fi
8346 rm -f conftest.err conftest.$ac_objext \
8347       conftest$ac_exeext conftest.$ac_ext
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8350 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8351 if test $ac_cv_func_dlopen = yes; then
8352   lt_cv_dlopen="dlopen"
8353 else
8354   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-ldl  $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367
8368 /* Override any gcc2 internal prototype to avoid an error.  */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373    builtin and then its argument prototype would still apply.  */
8374 char dlopen ();
8375 int
8376 main ()
8377 {
8378 dlopen ();
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385   (eval $ac_link) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"
8393                          || test ! -s conftest.err'
8394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395   (eval $ac_try) 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest$ac_exeext'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; }; then
8405   ac_cv_lib_dl_dlopen=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 ac_cv_lib_dl_dlopen=no
8411 fi
8412 rm -f conftest.err conftest.$ac_objext \
8413       conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8415 fi
8416 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8417 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8418 if test $ac_cv_lib_dl_dlopen = yes; then
8419   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8420 else
8421   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8422 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8423 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lsvld  $LIBS"
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434
8435 /* Override any gcc2 internal prototype to avoid an error.  */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 /* We use char because int might match the return type of a gcc2
8440    builtin and then its argument prototype would still apply.  */
8441 char dlopen ();
8442 int
8443 main ()
8444 {
8445 dlopen ();
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452   (eval $ac_link) 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } &&
8459          { ac_try='test -z "$ac_c_werror_flag"
8460                          || test ! -s conftest.err'
8461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462   (eval $ac_try) 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; } &&
8466          { ac_try='test -s conftest$ac_exeext'
8467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; }; then
8472   ac_cv_lib_svld_dlopen=yes
8473 else
8474   echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_cv_lib_svld_dlopen=no
8478 fi
8479 rm -f conftest.err conftest.$ac_objext \
8480       conftest$ac_exeext conftest.$ac_ext
8481 LIBS=$ac_check_lib_save_LIBS
8482 fi
8483 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8484 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8485 if test $ac_cv_lib_svld_dlopen = yes; then
8486   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8487 else
8488   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8489 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8490 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493   ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-ldld  $LIBS"
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any gcc2 internal prototype to avoid an error.  */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 /* We use char because int might match the return type of a gcc2
8507    builtin and then its argument prototype would still apply.  */
8508 char dld_link ();
8509 int
8510 main ()
8511 {
8512 dld_link ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519   (eval $ac_link) 2>conftest.er1
8520   ac_status=$?
8521   grep -v '^ *+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -z "$ac_c_werror_flag"
8527                          || test ! -s conftest.err'
8528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529   (eval $ac_try) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; } &&
8533          { ac_try='test -s conftest$ac_exeext'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; }; then
8539   ac_cv_lib_dld_dld_link=yes
8540 else
8541   echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8543
8544 ac_cv_lib_dld_dld_link=no
8545 fi
8546 rm -f conftest.err conftest.$ac_objext \
8547       conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8551 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8552 if test $ac_cv_lib_dld_dld_link = yes; then
8553   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8554 fi
8555
8556
8557 fi
8558
8559
8560 fi
8561
8562
8563 fi
8564
8565
8566 fi
8567
8568
8569 fi
8570
8571     ;;
8572   esac
8573
8574   if test "x$lt_cv_dlopen" != xno; then
8575     enable_dlopen=yes
8576   else
8577     enable_dlopen=no
8578   fi
8579
8580   case $lt_cv_dlopen in
8581   dlopen)
8582     save_CPPFLAGS="$CPPFLAGS"
8583     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8584
8585     save_LDFLAGS="$LDFLAGS"
8586     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8587
8588     save_LIBS="$LIBS"
8589     LIBS="$lt_cv_dlopen_libs $LIBS"
8590
8591     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8592 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8593 if test "${lt_cv_dlopen_self+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596           if test "$cross_compiling" = yes; then :
8597   lt_cv_dlopen_self=cross
8598 else
8599   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8600   lt_status=$lt_dlunknown
8601   cat > conftest.$ac_ext <<EOF
8602 #line 8602 "configure"
8603 #include "confdefs.h"
8604
8605 #if HAVE_DLFCN_H
8606 #include <dlfcn.h>
8607 #endif
8608
8609 #include <stdio.h>
8610
8611 #ifdef RTLD_GLOBAL
8612 #  define LT_DLGLOBAL           RTLD_GLOBAL
8613 #else
8614 #  ifdef DL_GLOBAL
8615 #    define LT_DLGLOBAL         DL_GLOBAL
8616 #  else
8617 #    define LT_DLGLOBAL         0
8618 #  endif
8619 #endif
8620
8621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8622    find out it does not work in some platform. */
8623 #ifndef LT_DLLAZY_OR_NOW
8624 #  ifdef RTLD_LAZY
8625 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8626 #  else
8627 #    ifdef DL_LAZY
8628 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8629 #    else
8630 #      ifdef RTLD_NOW
8631 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8632 #      else
8633 #        ifdef DL_NOW
8634 #          define LT_DLLAZY_OR_NOW      DL_NOW
8635 #        else
8636 #          define LT_DLLAZY_OR_NOW      0
8637 #        endif
8638 #      endif
8639 #    endif
8640 #  endif
8641 #endif
8642
8643 #ifdef __cplusplus
8644 extern "C" void exit (int);
8645 #endif
8646
8647 void fnord() { int i=42;}
8648 int main ()
8649 {
8650   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8651   int status = $lt_dlunknown;
8652
8653   if (self)
8654     {
8655       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8656       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8657       /* dlclose (self); */
8658     }
8659
8660     exit (status);
8661 }
8662 EOF
8663   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8668     (./conftest; exit; ) 2>/dev/null
8669     lt_status=$?
8670     case x$lt_status in
8671       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8672       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8673       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8674     esac
8675   else :
8676     # compilation failed
8677     lt_cv_dlopen_self=no
8678   fi
8679 fi
8680 rm -fr conftest*
8681
8682
8683 fi
8684 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8685 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8686
8687     if test "x$lt_cv_dlopen_self" = xyes; then
8688       LDFLAGS="$LDFLAGS $link_static_flag"
8689       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8690 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8691 if test "${lt_cv_dlopen_self_static+set}" = set; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694           if test "$cross_compiling" = yes; then :
8695   lt_cv_dlopen_self_static=cross
8696 else
8697   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8698   lt_status=$lt_dlunknown
8699   cat > conftest.$ac_ext <<EOF
8700 #line 8700 "configure"
8701 #include "confdefs.h"
8702
8703 #if HAVE_DLFCN_H
8704 #include <dlfcn.h>
8705 #endif
8706
8707 #include <stdio.h>
8708
8709 #ifdef RTLD_GLOBAL
8710 #  define LT_DLGLOBAL           RTLD_GLOBAL
8711 #else
8712 #  ifdef DL_GLOBAL
8713 #    define LT_DLGLOBAL         DL_GLOBAL
8714 #  else
8715 #    define LT_DLGLOBAL         0
8716 #  endif
8717 #endif
8718
8719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8720    find out it does not work in some platform. */
8721 #ifndef LT_DLLAZY_OR_NOW
8722 #  ifdef RTLD_LAZY
8723 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8724 #  else
8725 #    ifdef DL_LAZY
8726 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8727 #    else
8728 #      ifdef RTLD_NOW
8729 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8730 #      else
8731 #        ifdef DL_NOW
8732 #          define LT_DLLAZY_OR_NOW      DL_NOW
8733 #        else
8734 #          define LT_DLLAZY_OR_NOW      0
8735 #        endif
8736 #      endif
8737 #    endif
8738 #  endif
8739 #endif
8740
8741 #ifdef __cplusplus
8742 extern "C" void exit (int);
8743 #endif
8744
8745 void fnord() { int i=42;}
8746 int main ()
8747 {
8748   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8749   int status = $lt_dlunknown;
8750
8751   if (self)
8752     {
8753       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8754       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8755       /* dlclose (self); */
8756     }
8757
8758     exit (status);
8759 }
8760 EOF
8761   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762   (eval $ac_link) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8766     (./conftest; exit; ) 2>/dev/null
8767     lt_status=$?
8768     case x$lt_status in
8769       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8770       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8771       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8772     esac
8773   else :
8774     # compilation failed
8775     lt_cv_dlopen_self_static=no
8776   fi
8777 fi
8778 rm -fr conftest*
8779
8780
8781 fi
8782 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8783 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8784     fi
8785
8786     CPPFLAGS="$save_CPPFLAGS"
8787     LDFLAGS="$save_LDFLAGS"
8788     LIBS="$save_LIBS"
8789     ;;
8790   esac
8791
8792   case $lt_cv_dlopen_self in
8793   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8794   *) enable_dlopen_self=unknown ;;
8795   esac
8796
8797   case $lt_cv_dlopen_self_static in
8798   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8799   *) enable_dlopen_self_static=unknown ;;
8800   esac
8801 fi
8802
8803
8804 # Report which librarie types wil actually be built
8805 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8806 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8807 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8808 echo "${ECHO_T}$can_build_shared" >&6
8809
8810 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8811 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8812 test "$can_build_shared" = "no" && enable_shared=no
8813
8814 # On AIX, shared libraries and static libraries use the same namespace, and
8815 # are all built from PIC.
8816 case "$host_os" in
8817 aix3*)
8818   test "$enable_shared" = yes && enable_static=no
8819   if test -n "$RANLIB"; then
8820     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8821     postinstall_cmds='$RANLIB $lib'
8822   fi
8823   ;;
8824
8825 aix4* | aix5*)
8826   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8827     test "$enable_shared" = yes && enable_static=no
8828   fi
8829     ;;
8830 esac
8831 echo "$as_me:$LINENO: result: $enable_shared" >&5
8832 echo "${ECHO_T}$enable_shared" >&6
8833
8834 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8835 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8836 # Make sure either enable_shared or enable_static is yes.
8837 test "$enable_shared" = yes || enable_static=yes
8838 echo "$as_me:$LINENO: result: $enable_static" >&5
8839 echo "${ECHO_T}$enable_static" >&6
8840
8841 # The else clause should only fire when bootstrapping the
8842 # libtool distribution, otherwise you forgot to ship ltmain.sh
8843 # with your package, and you will get complaints that there are
8844 # no rules to generate ltmain.sh.
8845 if test -f "$ltmain"; then
8846   # See if we are running on zsh, and set the options which allow our commands through
8847   # without removal of \ escapes.
8848   if test -n "${ZSH_VERSION+set}" ; then
8849     setopt NO_GLOB_SUBST
8850   fi
8851   # Now quote all the things that may contain metacharacters while being
8852   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8853   # variables and quote the copies for generation of the libtool script.
8854   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8855     SED SHELL STRIP \
8856     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8857     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8858     deplibs_check_method reload_flag reload_cmds need_locks \
8859     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8860     lt_cv_sys_global_symbol_to_c_name_address \
8861     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8862     old_postinstall_cmds old_postuninstall_cmds \
8863     compiler \
8864     CC \
8865     LD \
8866     lt_prog_compiler_wl \
8867     lt_prog_compiler_pic \
8868     lt_prog_compiler_static \
8869     lt_prog_compiler_no_builtin_flag \
8870     export_dynamic_flag_spec \
8871     thread_safe_flag_spec \
8872     whole_archive_flag_spec \
8873     enable_shared_with_static_runtimes \
8874     old_archive_cmds \
8875     old_archive_from_new_cmds \
8876     predep_objects \
8877     postdep_objects \
8878     predeps \
8879     postdeps \
8880     compiler_lib_search_path \
8881     archive_cmds \
8882     archive_expsym_cmds \
8883     postinstall_cmds \
8884     postuninstall_cmds \
8885     old_archive_from_expsyms_cmds \
8886     allow_undefined_flag \
8887     no_undefined_flag \
8888     export_symbols_cmds \
8889     hardcode_libdir_flag_spec \
8890     hardcode_libdir_flag_spec_ld \
8891     hardcode_libdir_separator \
8892     hardcode_automatic \
8893     module_cmds \
8894     module_expsym_cmds \
8895     lt_cv_prog_compiler_c_o \
8896     exclude_expsyms \
8897     include_expsyms; do
8898
8899     case $var in
8900     old_archive_cmds | \
8901     old_archive_from_new_cmds | \
8902     archive_cmds | \
8903     archive_expsym_cmds | \
8904     module_cmds | \
8905     module_expsym_cmds | \
8906     old_archive_from_expsyms_cmds | \
8907     export_symbols_cmds | \
8908     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8909     postinstall_cmds | postuninstall_cmds | \
8910     old_postinstall_cmds | old_postuninstall_cmds | \
8911     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8912       # Double-quote double-evaled strings.
8913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8914       ;;
8915     *)
8916       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8917       ;;
8918     esac
8919   done
8920
8921   case $lt_echo in
8922   *'\$0 --fallback-echo"')
8923     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8924     ;;
8925   esac
8926
8927 cfgfile="${ofile}T"
8928   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8929   $rm -f "$cfgfile"
8930   { echo "$as_me:$LINENO: creating $ofile" >&5
8931 echo "$as_me: creating $ofile" >&6;}
8932
8933   cat <<__EOF__ >> "$cfgfile"
8934 #! $SHELL
8935
8936 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8937 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8938 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8939 #
8940 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8941 # Free Software Foundation, Inc.
8942 #
8943 # This file is part of GNU Libtool:
8944 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8945 #
8946 # This program is free software; you can redistribute it and/or modify
8947 # it under the terms of the GNU General Public License as published by
8948 # the Free Software Foundation; either version 2 of the License, or
8949 # (at your option) any later version.
8950 #
8951 # This program is distributed in the hope that it will be useful, but
8952 # WITHOUT ANY WARRANTY; without even the implied warranty of
8953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8954 # General Public License for more details.
8955 #
8956 # You should have received a copy of the GNU General Public License
8957 # along with this program; if not, write to the Free Software
8958 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8959 #
8960 # As a special exception to the GNU General Public License, if you
8961 # distribute this file as part of a program that contains a
8962 # configuration script generated by Autoconf, you may include it under
8963 # the same distribution terms that you use for the rest of that program.
8964
8965 # A sed program that does not truncate output.
8966 SED=$lt_SED
8967
8968 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8969 Xsed="$SED -e s/^X//"
8970
8971 # The HP-UX ksh and POSIX shell print the target directory to stdout
8972 # if CDPATH is set.
8973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8974
8975 # The names of the tagged configurations supported by this script.
8976 available_tags=
8977
8978 # ### BEGIN LIBTOOL CONFIG
8979
8980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8981
8982 # Shell to use when invoking shell scripts.
8983 SHELL=$lt_SHELL
8984
8985 # Whether or not to build shared libraries.
8986 build_libtool_libs=$enable_shared
8987
8988 # Whether or not to build static libraries.
8989 build_old_libs=$enable_static
8990
8991 # Whether or not to add -lc for building shared libraries.
8992 build_libtool_need_lc=$archive_cmds_need_lc
8993
8994 # Whether or not to disallow shared libs when runtime libs are static
8995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8996
8997 # Whether or not to optimize for fast installation.
8998 fast_install=$enable_fast_install
8999
9000 # The host system.
9001 host_alias=$host_alias
9002 host=$host
9003
9004 # An echo program that does not interpret backslashes.
9005 echo=$lt_echo
9006
9007 # The archiver.
9008 AR=$lt_AR
9009 AR_FLAGS=$lt_AR_FLAGS
9010
9011 # A C compiler.
9012 LTCC=$lt_LTCC
9013
9014 # A language-specific compiler.
9015 CC=$lt_compiler
9016
9017 # Is the compiler the GNU C compiler?
9018 with_gcc=$GCC
9019
9020 # An ERE matcher.
9021 EGREP=$lt_EGREP
9022
9023 # The linker used to build libraries.
9024 LD=$lt_LD
9025
9026 # Whether we need hard or soft links.
9027 LN_S=$lt_LN_S
9028
9029 # A BSD-compatible nm program.
9030 NM=$lt_NM
9031
9032 # A symbol stripping program
9033 STRIP=$lt_STRIP
9034
9035 # Used to examine libraries when file_magic_cmd begins "file"
9036 MAGIC_CMD=$MAGIC_CMD
9037
9038 # Used on cygwin: DLL creation program.
9039 DLLTOOL="$DLLTOOL"
9040
9041 # Used on cygwin: object dumper.
9042 OBJDUMP="$OBJDUMP"
9043
9044 # Used on cygwin: assembler.
9045 AS="$AS"
9046
9047 # The name of the directory that contains temporary libtool files.
9048 objdir=$objdir
9049
9050 # How to create reloadable object files.
9051 reload_flag=$lt_reload_flag
9052 reload_cmds=$lt_reload_cmds
9053
9054 # How to pass a linker flag through the compiler.
9055 wl=$lt_lt_prog_compiler_wl
9056
9057 # Object file suffix (normally "o").
9058 objext="$ac_objext"
9059
9060 # Old archive suffix (normally "a").
9061 libext="$libext"
9062
9063 # Shared library suffix (normally ".so").
9064 shrext_cmds='$shrext_cmds'
9065
9066 # Executable file suffix (normally "").
9067 exeext="$exeext"
9068
9069 # Additional compiler flags for building library objects.
9070 pic_flag=$lt_lt_prog_compiler_pic
9071 pic_mode=$pic_mode
9072
9073 # What is the maximum length of a command?
9074 max_cmd_len=$lt_cv_sys_max_cmd_len
9075
9076 # Does compiler simultaneously support -c and -o options?
9077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9078
9079 # Must we lock files when doing compilation ?
9080 need_locks=$lt_need_locks
9081
9082 # Do we need the lib prefix for modules?
9083 need_lib_prefix=$need_lib_prefix
9084
9085 # Do we need a version for libraries?
9086 need_version=$need_version
9087
9088 # Whether dlopen is supported.
9089 dlopen_support=$enable_dlopen
9090
9091 # Whether dlopen of programs is supported.
9092 dlopen_self=$enable_dlopen_self
9093
9094 # Whether dlopen of statically linked programs is supported.
9095 dlopen_self_static=$enable_dlopen_self_static
9096
9097 # Compiler flag to prevent dynamic linking.
9098 link_static_flag=$lt_lt_prog_compiler_static
9099
9100 # Compiler flag to turn off builtin functions.
9101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9102
9103 # Compiler flag to allow reflexive dlopens.
9104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9105
9106 # Compiler flag to generate shared objects directly from archives.
9107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9108
9109 # Compiler flag to generate thread-safe objects.
9110 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9111
9112 # Library versioning type.
9113 version_type=$version_type
9114
9115 # Format of library name prefix.
9116 libname_spec=$lt_libname_spec
9117
9118 # List of archive names.  First name is the real one, the rest are links.
9119 # The last name is the one that the linker finds with -lNAME.
9120 library_names_spec=$lt_library_names_spec
9121
9122 # The coded name of the library, if different from the real name.
9123 soname_spec=$lt_soname_spec
9124
9125 # Commands used to build and install an old-style archive.
9126 RANLIB=$lt_RANLIB
9127 old_archive_cmds=$lt_old_archive_cmds
9128 old_postinstall_cmds=$lt_old_postinstall_cmds
9129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9130
9131 # Create an old-style archive from a shared archive.
9132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9133
9134 # Create a temporary old-style archive to link instead of a shared archive.
9135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9136
9137 # Commands used to build and install a shared archive.
9138 archive_cmds=$lt_archive_cmds
9139 archive_expsym_cmds=$lt_archive_expsym_cmds
9140 postinstall_cmds=$lt_postinstall_cmds
9141 postuninstall_cmds=$lt_postuninstall_cmds
9142
9143 # Commands used to build a loadable module (assumed same as above if empty)
9144 module_cmds=$lt_module_cmds
9145 module_expsym_cmds=$lt_module_expsym_cmds
9146
9147 # Commands to strip libraries.
9148 old_striplib=$lt_old_striplib
9149 striplib=$lt_striplib
9150
9151 # Dependencies to place before the objects being linked to create a
9152 # shared library.
9153 predep_objects=$lt_predep_objects
9154
9155 # Dependencies to place after the objects being linked to create a
9156 # shared library.
9157 postdep_objects=$lt_postdep_objects
9158
9159 # Dependencies to place before the objects being linked to create a
9160 # shared library.
9161 predeps=$lt_predeps
9162
9163 # Dependencies to place after the objects being linked to create a
9164 # shared library.
9165 postdeps=$lt_postdeps
9166
9167 # The library search path used internally by the compiler when linking
9168 # a shared library.
9169 compiler_lib_search_path=$lt_compiler_lib_search_path
9170
9171 # Method to check whether dependent libraries are shared objects.
9172 deplibs_check_method=$lt_deplibs_check_method
9173
9174 # Command to use when deplibs_check_method == file_magic.
9175 file_magic_cmd=$lt_file_magic_cmd
9176
9177 # Flag that allows shared libraries with undefined symbols to be built.
9178 allow_undefined_flag=$lt_allow_undefined_flag
9179
9180 # Flag that forces no undefined symbols.
9181 no_undefined_flag=$lt_no_undefined_flag
9182
9183 # Commands used to finish a libtool library installation in a directory.
9184 finish_cmds=$lt_finish_cmds
9185
9186 # Same as above, but a single script fragment to be evaled but not shown.
9187 finish_eval=$lt_finish_eval
9188
9189 # Take the output of nm and produce a listing of raw symbols and C names.
9190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9191
9192 # Transform the output of nm in a proper C declaration
9193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9194
9195 # Transform the output of nm in a C name address pair
9196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9197
9198 # This is the shared library runtime path variable.
9199 runpath_var=$runpath_var
9200
9201 # This is the shared library path variable.
9202 shlibpath_var=$shlibpath_var
9203
9204 # Is shlibpath searched before the hard-coded library search path?
9205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9206
9207 # How to hardcode a shared library path into an executable.
9208 hardcode_action=$hardcode_action
9209
9210 # Whether we should hardcode library paths into libraries.
9211 hardcode_into_libs=$hardcode_into_libs
9212
9213 # Flag to hardcode \$libdir into a binary during linking.
9214 # This must work even if \$libdir does not exist.
9215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9216
9217 # If ld is used when linking, flag to hardcode \$libdir into
9218 # a binary during linking. This must work even if \$libdir does
9219 # not exist.
9220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9221
9222 # Whether we need a single -rpath flag with a separated argument.
9223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9224
9225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9226 # resulting binary.
9227 hardcode_direct=$hardcode_direct
9228
9229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9230 # resulting binary.
9231 hardcode_minus_L=$hardcode_minus_L
9232
9233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9234 # the resulting binary.
9235 hardcode_shlibpath_var=$hardcode_shlibpath_var
9236
9237 # Set to yes if building a shared library automatically hardcodes DIR into the library
9238 # and all subsequent libraries and executables linked against it.
9239 hardcode_automatic=$hardcode_automatic
9240
9241 # Variables whose values should be saved in libtool wrapper scripts and
9242 # restored at relink time.
9243 variables_saved_for_relink="$variables_saved_for_relink"
9244
9245 # Whether libtool must link a program against all its dependency libraries.
9246 link_all_deplibs=$link_all_deplibs
9247
9248 # Compile-time system search path for libraries
9249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9250
9251 # Run-time system search path for libraries
9252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9253
9254 # Fix the shell variable \$srcfile for the compiler.
9255 fix_srcfile_path="$fix_srcfile_path"
9256
9257 # Set to yes if exported symbols are required.
9258 always_export_symbols=$always_export_symbols
9259
9260 # The commands to list exported symbols.
9261 export_symbols_cmds=$lt_export_symbols_cmds
9262
9263 # The commands to extract the exported symbol list from a shared archive.
9264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9265
9266 # Symbols that should not be listed in the preloaded symbols.
9267 exclude_expsyms=$lt_exclude_expsyms
9268
9269 # Symbols that must always be exported.
9270 include_expsyms=$lt_include_expsyms
9271
9272 # ### END LIBTOOL CONFIG
9273
9274 __EOF__
9275
9276
9277   case $host_os in
9278   aix3*)
9279     cat <<\EOF >> "$cfgfile"
9280
9281 # AIX sometimes has problems with the GCC collect2 program.  For some
9282 # reason, if we set the COLLECT_NAMES environment variable, the problems
9283 # vanish in a puff of smoke.
9284 if test "X${COLLECT_NAMES+set}" != Xset; then
9285   COLLECT_NAMES=
9286   export COLLECT_NAMES
9287 fi
9288 EOF
9289     ;;
9290   esac
9291
9292   # We use sed instead of cat because bash on DJGPP gets confused if
9293   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9294   # text mode, it properly converts lines to CR/LF.  This bash problem
9295   # is reportedly fixed, but why not run on old versions too?
9296   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9297
9298   mv -f "$cfgfile" "$ofile" || \
9299     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9300   chmod +x "$ofile"
9301
9302 else
9303   # If there is no Makefile yet, we rely on a make rule to execute
9304   # `config.status --recheck' to rerun these tests and create the
9305   # libtool script then.
9306   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9307   if test -f "$ltmain_in"; then
9308     test -f Makefile && make "$ltmain"
9309   fi
9310 fi
9311
9312
9313 ac_ext=c
9314 ac_cpp='$CPP $CPPFLAGS'
9315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9318
9319 CC="$lt_save_CC"
9320
9321
9322 # Check whether --with-tags or --without-tags was given.
9323 if test "${with_tags+set}" = set; then
9324   withval="$with_tags"
9325   tagnames="$withval"
9326 fi;
9327
9328 if test -f "$ltmain" && test -n "$tagnames"; then
9329   if test ! -f "${ofile}"; then
9330     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9331 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9332   fi
9333
9334   if test -z "$LTCC"; then
9335     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9336     if test -z "$LTCC"; then
9337       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9338 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9339     else
9340       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9341 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9342     fi
9343   fi
9344
9345   # Extract list of available tagged configurations in $ofile.
9346   # Note that this assumes the entire list is on one line.
9347   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9348
9349   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9350   for tagname in $tagnames; do
9351     IFS="$lt_save_ifs"
9352     # Check whether tagname contains only valid characters
9353     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9354     "") ;;
9355     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9356 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9357    { (exit 1); exit 1; }; }
9358         ;;
9359     esac
9360
9361     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9362     then
9363       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9364 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9365    { (exit 1); exit 1; }; }
9366     fi
9367
9368     # Update the list of available tags.
9369     if test -n "$tagname"; then
9370       echo appending configuration tag "$tagname" to $ofile
9371
9372       case $tagname in
9373       CXX)
9374         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9375             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9376             (test "X$CXX" != "Xg++"))) ; then
9377           ac_ext=cc
9378 ac_cpp='$CXXCPP $CPPFLAGS'
9379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9382
9383
9384
9385
9386 archive_cmds_need_lc_CXX=no
9387 allow_undefined_flag_CXX=
9388 always_export_symbols_CXX=no
9389 archive_expsym_cmds_CXX=
9390 export_dynamic_flag_spec_CXX=
9391 hardcode_direct_CXX=no
9392 hardcode_libdir_flag_spec_CXX=
9393 hardcode_libdir_flag_spec_ld_CXX=
9394 hardcode_libdir_separator_CXX=
9395 hardcode_minus_L_CXX=no
9396 hardcode_automatic_CXX=no
9397 module_cmds_CXX=
9398 module_expsym_cmds_CXX=
9399 link_all_deplibs_CXX=unknown
9400 old_archive_cmds_CXX=$old_archive_cmds
9401 no_undefined_flag_CXX=
9402 whole_archive_flag_spec_CXX=
9403 enable_shared_with_static_runtimes_CXX=no
9404
9405 # Dependencies to place before and after the object being linked:
9406 predep_objects_CXX=
9407 postdep_objects_CXX=
9408 predeps_CXX=
9409 postdeps_CXX=
9410 compiler_lib_search_path_CXX=
9411
9412 # Source file extension for C++ test sources.
9413 ac_ext=cc
9414
9415 # Object file extension for compiled C++ test sources.
9416 objext=o
9417 objext_CXX=$objext
9418
9419 # Code to be used in simple compile tests
9420 lt_simple_compile_test_code="int some_variable = 0;\n"
9421
9422 # Code to be used in simple link tests
9423 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9424
9425 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9426
9427 # If no C compiler was specified, use CC.
9428 LTCC=${LTCC-"$CC"}
9429
9430 # Allow CC to be a program name with arguments.
9431 compiler=$CC
9432
9433
9434 # Allow CC to be a program name with arguments.
9435 lt_save_CC=$CC
9436 lt_save_LD=$LD
9437 lt_save_GCC=$GCC
9438 GCC=$GXX
9439 lt_save_with_gnu_ld=$with_gnu_ld
9440 lt_save_path_LD=$lt_cv_path_LD
9441 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9442   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9443 else
9444   unset lt_cv_prog_gnu_ld
9445 fi
9446 if test -n "${lt_cv_path_LDCXX+set}"; then
9447   lt_cv_path_LD=$lt_cv_path_LDCXX
9448 else
9449   unset lt_cv_path_LD
9450 fi
9451 test -z "${LDCXX+set}" || LD=$LDCXX
9452 CC=${CXX-"c++"}
9453 compiler=$CC
9454 compiler_CXX=$CC
9455 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9456
9457 # We don't want -fno-exception wen compiling C++ code, so set the
9458 # no_builtin_flag separately
9459 if test "$GXX" = yes; then
9460   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9461 else
9462   lt_prog_compiler_no_builtin_flag_CXX=
9463 fi
9464
9465 if test "$GXX" = yes; then
9466   # Set up default GNU C++ configuration
9467
9468
9469 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9470 if test "${with_gnu_ld+set}" = set; then
9471   withval="$with_gnu_ld"
9472   test "$withval" = no || with_gnu_ld=yes
9473 else
9474   with_gnu_ld=no
9475 fi;
9476 ac_prog=ld
9477 if test "$GCC" = yes; then
9478   # Check if gcc -print-prog-name=ld gives a path.
9479   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9480 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9481   case $host in
9482   *-*-mingw*)
9483     # gcc leaves a trailing carriage return which upsets mingw
9484     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9485   *)
9486     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9487   esac
9488   case $ac_prog in
9489     # Accept absolute paths.
9490     [\\/]* | ?:[\\/]*)
9491       re_direlt='/[^/][^/]*/\.\./'
9492       # Canonicalize the pathname of ld
9493       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9494       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9495         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9496       done
9497       test -z "$LD" && LD="$ac_prog"
9498       ;;
9499   "")
9500     # If it fails, then pretend we aren't using GCC.
9501     ac_prog=ld
9502     ;;
9503   *)
9504     # If it is relative, then search for the first ld in PATH.
9505     with_gnu_ld=unknown
9506     ;;
9507   esac
9508 elif test "$with_gnu_ld" = yes; then
9509   echo "$as_me:$LINENO: checking for GNU ld" >&5
9510 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9511 else
9512   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9513 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9514 fi
9515 if test "${lt_cv_path_LD+set}" = set; then
9516   echo $ECHO_N "(cached) $ECHO_C" >&6
9517 else
9518   if test -z "$LD"; then
9519   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520   for ac_dir in $PATH; do
9521     IFS="$lt_save_ifs"
9522     test -z "$ac_dir" && ac_dir=.
9523     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9524       lt_cv_path_LD="$ac_dir/$ac_prog"
9525       # Check to see if the program is GNU ld.  I'd rather use --version,
9526       # but apparently some GNU ld's only accept -v.
9527       # Break only if it was the GNU/non-GNU ld that we prefer.
9528       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9529       *GNU* | *'with BFD'*)
9530         test "$with_gnu_ld" != no && break
9531         ;;
9532       *)
9533         test "$with_gnu_ld" != yes && break
9534         ;;
9535       esac
9536     fi
9537   done
9538   IFS="$lt_save_ifs"
9539 else
9540   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9541 fi
9542 fi
9543
9544 LD="$lt_cv_path_LD"
9545 if test -n "$LD"; then
9546   echo "$as_me:$LINENO: result: $LD" >&5
9547 echo "${ECHO_T}$LD" >&6
9548 else
9549   echo "$as_me:$LINENO: result: no" >&5
9550 echo "${ECHO_T}no" >&6
9551 fi
9552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9554    { (exit 1); exit 1; }; }
9555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9557 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9558   echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9561 case `$LD -v 2>&1 </dev/null` in
9562 *GNU* | *'with BFD'*)
9563   lt_cv_prog_gnu_ld=yes
9564   ;;
9565 *)
9566   lt_cv_prog_gnu_ld=no
9567   ;;
9568 esac
9569 fi
9570 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9571 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9572 with_gnu_ld=$lt_cv_prog_gnu_ld
9573
9574
9575
9576   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9577   # archiving commands below assume that GNU ld is being used.
9578   if test "$with_gnu_ld" = yes; then
9579     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580     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'
9581
9582     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9583     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9584
9585     # If archive_cmds runs LD, not CC, wlarc should be empty
9586     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9587     #     investigate it a little bit more. (MM)
9588     wlarc='${wl}'
9589
9590     # ancient GNU ld didn't support --whole-archive et. al.
9591     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9592         grep 'no-whole-archive' > /dev/null; then
9593       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9594     else
9595       whole_archive_flag_spec_CXX=
9596     fi
9597   else
9598     with_gnu_ld=no
9599     wlarc=
9600
9601     # A generic and very simple default shared library creation
9602     # command for GNU C++ for the case where it uses the native
9603     # linker, instead of GNU ld.  If possible, this setting should
9604     # overridden to take advantage of the native linker features on
9605     # the platform it is being used on.
9606     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9607   fi
9608
9609   # Commands to make compiler produce verbose output that lists
9610   # what "hidden" libraries, object files and flags are used when
9611   # linking a shared library.
9612   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9613
9614 else
9615   GXX=no
9616   with_gnu_ld=no
9617   wlarc=
9618 fi
9619
9620 # PORTME: fill in a description of your system's C++ link characteristics
9621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9623 ld_shlibs_CXX=yes
9624 case $host_os in
9625   aix3*)
9626     # FIXME: insert proper C++ library support
9627     ld_shlibs_CXX=no
9628     ;;
9629   aix4* | aix5*)
9630     if test "$host_cpu" = ia64; then
9631       # On IA64, the linker does run time linking by default, so we don't
9632       # have to do anything special.
9633       aix_use_runtimelinking=no
9634       exp_sym_flag='-Bexport'
9635       no_entry_flag=""
9636     else
9637       aix_use_runtimelinking=no
9638
9639       # Test if we are trying to use run time linking or normal
9640       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9641       # need to do runtime linking.
9642       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9643         for ld_flag in $LDFLAGS; do
9644           case $ld_flag in
9645           *-brtl*)
9646             aix_use_runtimelinking=yes
9647             break
9648             ;;
9649           esac
9650         done
9651       esac
9652
9653       exp_sym_flag='-bexport'
9654       no_entry_flag='-bnoentry'
9655     fi
9656
9657     # When large executables or shared objects are built, AIX ld can
9658     # have problems creating the table of contents.  If linking a library
9659     # or program results in "error TOC overflow" add -mminimal-toc to
9660     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9661     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9662
9663     archive_cmds_CXX=''
9664     hardcode_direct_CXX=yes
9665     hardcode_libdir_separator_CXX=':'
9666     link_all_deplibs_CXX=yes
9667
9668     if test "$GXX" = yes; then
9669       case $host_os in aix4.012|aix4.012.*)
9670       # We only want to do this on AIX 4.2 and lower, the check
9671       # below for broken collect2 doesn't work under 4.3+
9672         collect2name=`${CC} -print-prog-name=collect2`
9673         if test -f "$collect2name" && \
9674            strings "$collect2name" | grep resolve_lib_name >/dev/null
9675         then
9676           # We have reworked collect2
9677           hardcode_direct_CXX=yes
9678         else
9679           # We have old collect2
9680           hardcode_direct_CXX=unsupported
9681           # It fails to find uninstalled libraries when the uninstalled
9682           # path is not listed in the libpath.  Setting hardcode_minus_L
9683           # to unsupported forces relinking
9684           hardcode_minus_L_CXX=yes
9685           hardcode_libdir_flag_spec_CXX='-L$libdir'
9686           hardcode_libdir_separator_CXX=
9687         fi
9688       esac
9689       shared_flag='-shared'
9690     else
9691       # not using gcc
9692       if test "$host_cpu" = ia64; then
9693         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9694         # chokes on -Wl,-G. The following line is correct:
9695         shared_flag='-G'
9696       else
9697         if test "$aix_use_runtimelinking" = yes; then
9698           shared_flag='${wl}-G'
9699         else
9700           shared_flag='${wl}-bM:SRE'
9701         fi
9702       fi
9703     fi
9704
9705     # It seems that -bexpall does not export symbols beginning with
9706     # underscore (_), so it is better to generate a list of symbols to export.
9707     always_export_symbols_CXX=yes
9708     if test "$aix_use_runtimelinking" = yes; then
9709       # Warning - without using the other runtime loading flags (-brtl),
9710       # -berok will link without error, but may produce a broken library.
9711       allow_undefined_flag_CXX='-berok'
9712       # Determine the default libpath from the value encoded in an empty executable.
9713       cat >conftest.$ac_ext <<_ACEOF
9714 /* confdefs.h.  */
9715 _ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h.  */
9719
9720 int
9721 main ()
9722 {
9723
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730   (eval $ac_link) 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } &&
9737          { ac_try='test -z "$ac_cxx_werror_flag"
9738                          || test ! -s conftest.err'
9739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740   (eval $ac_try) 2>&5
9741   ac_status=$?
9742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743   (exit $ac_status); }; } &&
9744          { ac_try='test -s conftest$ac_exeext'
9745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746   (eval $ac_try) 2>&5
9747   ac_status=$?
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); }; }; then
9750
9751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9752 }'`
9753 # Check for a 64-bit object if we didn't find anything.
9754 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; }
9755 }'`; fi
9756 else
9757   echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 fi
9761 rm -f conftest.err conftest.$ac_objext \
9762       conftest$ac_exeext conftest.$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9764
9765       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9766
9767       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"
9768      else
9769       if test "$host_cpu" = ia64; then
9770         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9771         allow_undefined_flag_CXX="-z nodefs"
9772         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"
9773       else
9774         # Determine the default libpath from the value encoded in an empty executable.
9775         cat >conftest.$ac_ext <<_ACEOF
9776 /* confdefs.h.  */
9777 _ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h.  */
9781
9782 int
9783 main ()
9784 {
9785
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792   (eval $ac_link) 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } &&
9799          { ac_try='test -z "$ac_cxx_werror_flag"
9800                          || test ! -s conftest.err'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; } &&
9806          { ac_try='test -s conftest$ac_exeext'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812
9813 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9814 }'`
9815 # Check for a 64-bit object if we didn't find anything.
9816 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; }
9817 }'`; fi
9818 else
9819   echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 fi
9823 rm -f conftest.err conftest.$ac_objext \
9824       conftest$ac_exeext conftest.$ac_ext
9825 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9826
9827         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9828         # Warning - without using the other run time loading flags,
9829         # -berok will link without error, but may produce a broken library.
9830         no_undefined_flag_CXX=' ${wl}-bernotok'
9831         allow_undefined_flag_CXX=' ${wl}-berok'
9832         # -bexpall does not export symbols beginning with underscore (_)
9833         always_export_symbols_CXX=yes
9834         # Exported symbols can be pulled into shared objects from archives
9835         whole_archive_flag_spec_CXX=' '
9836         archive_cmds_need_lc_CXX=yes
9837         # This is similar to how AIX traditionally builds it's shared libraries.
9838         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'
9839       fi
9840     fi
9841     ;;
9842   chorus*)
9843     case $cc_basename in
9844       *)
9845         # FIXME: insert proper C++ library support
9846         ld_shlibs_CXX=no
9847         ;;
9848     esac
9849     ;;
9850
9851
9852   cygwin* | mingw* | pw32*)
9853     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9854     # as there is no search path for DLLs.
9855     hardcode_libdir_flag_spec_CXX='-L$libdir'
9856     allow_undefined_flag_CXX=unsupported
9857     always_export_symbols_CXX=no
9858     enable_shared_with_static_runtimes_CXX=yes
9859
9860     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9861       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'
9862       # If the export-symbols file already is a .def file (1st line
9863       # is EXPORTS), use it as is; otherwise, prepend...
9864       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9865         cp $export_symbols $output_objdir/$soname.def;
9866       else
9867         echo EXPORTS > $output_objdir/$soname.def;
9868         cat $export_symbols >> $output_objdir/$soname.def;
9869       fi~
9870       $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'
9871     else
9872       ld_shlibs_CXX=no
9873     fi
9874   ;;
9875       darwin* | rhapsody*)
9876         case "$host_os" in
9877         rhapsody* | darwin1.[012])
9878          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9879          ;;
9880        *) # Darwin 1.3 on
9881          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9882            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9883          else
9884            case ${MACOSX_DEPLOYMENT_TARGET} in
9885              10.[012])
9886                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9887                ;;
9888              10.*)
9889                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9890                ;;
9891            esac
9892          fi
9893          ;;
9894         esac
9895       archive_cmds_need_lc_CXX=no
9896       hardcode_direct_CXX=no
9897       hardcode_automatic_CXX=yes
9898       hardcode_shlibpath_var_CXX=unsupported
9899       whole_archive_flag_spec_CXX=''
9900       link_all_deplibs_CXX=yes
9901
9902     if test "$GXX" = yes ; then
9903       lt_int_apple_cc_single_mod=no
9904       output_verbose_link_cmd='echo'
9905       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9906        lt_int_apple_cc_single_mod=yes
9907       fi
9908       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9909        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9910       else
9911           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'
9912         fi
9913         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9914         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9915           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9916             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}'
9917           else
9918             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}'
9919           fi
9920             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}'
9921       else
9922       case "$cc_basename" in
9923         xlc*)
9924          output_verbose_link_cmd='echo'
9925           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'
9926           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9927           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9928           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}'
9929           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}'
9930           ;;
9931        *)
9932          ld_shlibs_CXX=no
9933           ;;
9934       esac
9935       fi
9936         ;;
9937
9938   dgux*)
9939     case $cc_basename in
9940       ec++)
9941         # FIXME: insert proper C++ library support
9942         ld_shlibs_CXX=no
9943         ;;
9944       ghcx)
9945         # Green Hills C++ Compiler
9946         # FIXME: insert proper C++ library support
9947         ld_shlibs_CXX=no
9948         ;;
9949       *)
9950         # FIXME: insert proper C++ library support
9951         ld_shlibs_CXX=no
9952         ;;
9953     esac
9954     ;;
9955   freebsd12*)
9956     # C++ shared libraries reported to be fairly broken before switch to ELF
9957     ld_shlibs_CXX=no
9958     ;;
9959   freebsd-elf*)
9960     archive_cmds_need_lc_CXX=no
9961     ;;
9962   freebsd* | kfreebsd*-gnu)
9963     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9964     # conventions
9965     ld_shlibs_CXX=yes
9966     ;;
9967   gnu*)
9968     ;;
9969   hpux9*)
9970     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9971     hardcode_libdir_separator_CXX=:
9972     export_dynamic_flag_spec_CXX='${wl}-E'
9973     hardcode_direct_CXX=yes
9974     hardcode_minus_L_CXX=yes # Not in the search PATH,
9975                                 # but as the default
9976                                 # location of the library.
9977
9978     case $cc_basename in
9979     CC)
9980       # FIXME: insert proper C++ library support
9981       ld_shlibs_CXX=no
9982       ;;
9983     aCC)
9984       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'
9985       # Commands to make compiler produce verbose output that lists
9986       # what "hidden" libraries, object files and flags are used when
9987       # linking a shared library.
9988       #
9989       # There doesn't appear to be a way to prevent this compiler from
9990       # explicitly linking system object files so we need to strip them
9991       # from the output so that they don't get included in the library
9992       # dependencies.
9993       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'
9994       ;;
9995     *)
9996       if test "$GXX" = yes; then
9997         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'
9998       else
9999         # FIXME: insert proper C++ library support
10000         ld_shlibs_CXX=no
10001       fi
10002       ;;
10003     esac
10004     ;;
10005   hpux10*|hpux11*)
10006     if test $with_gnu_ld = no; then
10007       case "$host_cpu" in
10008       hppa*64*)
10009         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10010         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10011         hardcode_libdir_separator_CXX=:
10012         ;;
10013       ia64*)
10014         hardcode_libdir_flag_spec_CXX='-L$libdir'
10015         ;;
10016       *)
10017         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018         hardcode_libdir_separator_CXX=:
10019         export_dynamic_flag_spec_CXX='${wl}-E'
10020         ;;
10021       esac
10022     fi
10023     case "$host_cpu" in
10024     hppa*64*)
10025       hardcode_direct_CXX=no
10026       hardcode_shlibpath_var_CXX=no
10027       ;;
10028     ia64*)
10029       hardcode_direct_CXX=no
10030       hardcode_shlibpath_var_CXX=no
10031       hardcode_minus_L_CXX=yes # Not in the search PATH,
10032                                               # but as the default
10033                                               # location of the library.
10034       ;;
10035     *)
10036       hardcode_direct_CXX=yes
10037       hardcode_minus_L_CXX=yes # Not in the search PATH,
10038                                               # but as the default
10039                                               # location of the library.
10040       ;;
10041     esac
10042
10043     case $cc_basename in
10044       CC)
10045         # FIXME: insert proper C++ library support
10046         ld_shlibs_CXX=no
10047         ;;
10048       aCC)
10049         case "$host_cpu" in
10050         hppa*64*|ia64*)
10051           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10052           ;;
10053         *)
10054           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10055           ;;
10056         esac
10057         # Commands to make compiler produce verbose output that lists
10058         # what "hidden" libraries, object files and flags are used when
10059         # linking a shared library.
10060         #
10061         # There doesn't appear to be a way to prevent this compiler from
10062         # explicitly linking system object files so we need to strip them
10063         # from the output so that they don't get included in the library
10064         # dependencies.
10065         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'
10066         ;;
10067       *)
10068         if test "$GXX" = yes; then
10069           if test $with_gnu_ld = no; then
10070             case "$host_cpu" in
10071             ia64*|hppa*64*)
10072               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10073               ;;
10074             *)
10075               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'
10076               ;;
10077             esac
10078           fi
10079         else
10080           # FIXME: insert proper C++ library support
10081           ld_shlibs_CXX=no
10082         fi
10083         ;;
10084     esac
10085     ;;
10086   irix5* | irix6*)
10087     case $cc_basename in
10088       CC)
10089         # SGI C++
10090         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'
10091
10092         # Archives containing C++ object files must be created using
10093         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10094         # necessary to make sure instantiated templates are included
10095         # in the archive.
10096         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10097         ;;
10098       *)
10099         if test "$GXX" = yes; then
10100           if test "$with_gnu_ld" = no; then
10101             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'
10102           else
10103             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'
10104           fi
10105         fi
10106         link_all_deplibs_CXX=yes
10107         ;;
10108     esac
10109     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10110     hardcode_libdir_separator_CXX=:
10111     ;;
10112   linux*)
10113     case $cc_basename in
10114       KCC)
10115         # Kuck and Associates, Inc. (KAI) C++ Compiler
10116
10117         # KCC will only create a shared library if the output file
10118         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10119         # to its proper name (with version) after linking.
10120         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'
10121         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'
10122         # Commands to make compiler produce verbose output that lists
10123         # what "hidden" libraries, object files and flags are used when
10124         # linking a shared library.
10125         #
10126         # There doesn't appear to be a way to prevent this compiler from
10127         # explicitly linking system object files so we need to strip them
10128         # from the output so that they don't get included in the library
10129         # dependencies.
10130         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'
10131
10132         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10133         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10134
10135         # Archives containing C++ object files must be created using
10136         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10137         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10138         ;;
10139       icpc)
10140         # Intel C++
10141         with_gnu_ld=yes
10142         # version 8.0 and above of icpc choke on multiply defined symbols
10143         # if we add $predep_objects and $postdep_objects, however 7.1 and
10144         # earlier do not add the objects themselves.
10145         case `$CC -V 2>&1` in
10146         *"Version 7."*)
10147           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10148           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'
10149           ;;
10150         *)  # Version 8.0 or newer
10151           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10153           ;;
10154         esac
10155         archive_cmds_need_lc_CXX=no
10156         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10157         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10158         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10159         ;;
10160       cxx)
10161         # Compaq C++
10162         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10163         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'
10164
10165         runpath_var=LD_RUN_PATH
10166         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10167         hardcode_libdir_separator_CXX=:
10168
10169         # Commands to make compiler produce verbose output that lists
10170         # what "hidden" libraries, object files and flags are used when
10171         # linking a shared library.
10172         #
10173         # There doesn't appear to be a way to prevent this compiler from
10174         # explicitly linking system object files so we need to strip them
10175         # from the output so that they don't get included in the library
10176         # dependencies.
10177         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'
10178         ;;
10179     esac
10180     ;;
10181   lynxos*)
10182     # FIXME: insert proper C++ library support
10183     ld_shlibs_CXX=no
10184     ;;
10185   m88k*)
10186     # FIXME: insert proper C++ library support
10187     ld_shlibs_CXX=no
10188     ;;
10189   mvs*)
10190     case $cc_basename in
10191       cxx)
10192         # FIXME: insert proper C++ library support
10193         ld_shlibs_CXX=no
10194         ;;
10195       *)
10196         # FIXME: insert proper C++ library support
10197         ld_shlibs_CXX=no
10198         ;;
10199     esac
10200     ;;
10201   netbsd*)
10202     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10203       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10204       wlarc=
10205       hardcode_libdir_flag_spec_CXX='-R$libdir'
10206       hardcode_direct_CXX=yes
10207       hardcode_shlibpath_var_CXX=no
10208     fi
10209     # Workaround some broken pre-1.5 toolchains
10210     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10211     ;;
10212   openbsd2*)
10213     # C++ shared libraries are fairly broken
10214     ld_shlibs_CXX=no
10215     ;;
10216   openbsd*)
10217     hardcode_direct_CXX=yes
10218     hardcode_shlibpath_var_CXX=no
10219     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10220     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10221     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10222       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10223       export_dynamic_flag_spec_CXX='${wl}-E'
10224       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10225     fi
10226     output_verbose_link_cmd='echo'
10227     ;;
10228   osf3*)
10229     case $cc_basename in
10230       KCC)
10231         # Kuck and Associates, Inc. (KAI) C++ Compiler
10232
10233         # KCC will only create a shared library if the output file
10234         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10235         # to its proper name (with version) after linking.
10236         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'
10237
10238         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10239         hardcode_libdir_separator_CXX=:
10240
10241         # Archives containing C++ object files must be created using
10242         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10243         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10244
10245         ;;
10246       RCC)
10247         # Rational C++ 2.4.1
10248         # FIXME: insert proper C++ library support
10249         ld_shlibs_CXX=no
10250         ;;
10251       cxx)
10252         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10253         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'
10254
10255         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10256         hardcode_libdir_separator_CXX=:
10257
10258         # Commands to make compiler produce verbose output that lists
10259         # what "hidden" libraries, object files and flags are used when
10260         # linking a shared library.
10261         #
10262         # There doesn't appear to be a way to prevent this compiler from
10263         # explicitly linking system object files so we need to strip them
10264         # from the output so that they don't get included in the library
10265         # dependencies.
10266         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'
10267         ;;
10268       *)
10269         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10270           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10271           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'
10272
10273           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10274           hardcode_libdir_separator_CXX=:
10275
10276           # Commands to make compiler produce verbose output that lists
10277           # what "hidden" libraries, object files and flags are used when
10278           # linking a shared library.
10279           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10280
10281         else
10282           # FIXME: insert proper C++ library support
10283           ld_shlibs_CXX=no
10284         fi
10285         ;;
10286     esac
10287     ;;
10288   osf4* | osf5*)
10289     case $cc_basename in
10290       KCC)
10291         # Kuck and Associates, Inc. (KAI) C++ Compiler
10292
10293         # KCC will only create a shared library if the output file
10294         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295         # to its proper name (with version) after linking.
10296         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'
10297
10298         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10299         hardcode_libdir_separator_CXX=:
10300
10301         # Archives containing C++ object files must be created using
10302         # the KAI C++ compiler.
10303         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10304         ;;
10305       RCC)
10306         # Rational C++ 2.4.1
10307         # FIXME: insert proper C++ library support
10308         ld_shlibs_CXX=no
10309         ;;
10310       cxx)
10311         allow_undefined_flag_CXX=' -expect_unresolved \*'
10312         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'
10313         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10314           echo "-hidden">> $lib.exp~
10315           $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~
10316           $rm $lib.exp'
10317
10318         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10319         hardcode_libdir_separator_CXX=:
10320
10321         # Commands to make compiler produce verbose output that lists
10322         # what "hidden" libraries, object files and flags are used when
10323         # linking a shared library.
10324         #
10325         # There doesn't appear to be a way to prevent this compiler from
10326         # explicitly linking system object files so we need to strip them
10327         # from the output so that they don't get included in the library
10328         # dependencies.
10329         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'
10330         ;;
10331       *)
10332         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10333           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10334          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'
10335
10336           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10337           hardcode_libdir_separator_CXX=:
10338
10339           # Commands to make compiler produce verbose output that lists
10340           # what "hidden" libraries, object files and flags are used when
10341           # linking a shared library.
10342           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10343
10344         else
10345           # FIXME: insert proper C++ library support
10346           ld_shlibs_CXX=no
10347         fi
10348         ;;
10349     esac
10350     ;;
10351   psos*)
10352     # FIXME: insert proper C++ library support
10353     ld_shlibs_CXX=no
10354     ;;
10355   sco*)
10356     archive_cmds_need_lc_CXX=no
10357     case $cc_basename in
10358       CC)
10359         # FIXME: insert proper C++ library support
10360         ld_shlibs_CXX=no
10361         ;;
10362       *)
10363         # FIXME: insert proper C++ library support
10364         ld_shlibs_CXX=no
10365         ;;
10366     esac
10367     ;;
10368   sunos4*)
10369     case $cc_basename in
10370       CC)
10371         # Sun C++ 4.x
10372         # FIXME: insert proper C++ library support
10373         ld_shlibs_CXX=no
10374         ;;
10375       lcc)
10376         # Lucid
10377         # FIXME: insert proper C++ library support
10378         ld_shlibs_CXX=no
10379         ;;
10380       *)
10381         # FIXME: insert proper C++ library support
10382         ld_shlibs_CXX=no
10383         ;;
10384     esac
10385     ;;
10386   solaris*)
10387     case $cc_basename in
10388       CC)
10389         # Sun C++ 4.2, 5.x and Centerline C++
10390         no_undefined_flag_CXX=' -zdefs'
10391         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10392         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10393         $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'
10394
10395         hardcode_libdir_flag_spec_CXX='-R$libdir'
10396         hardcode_shlibpath_var_CXX=no
10397         case $host_os in
10398           solaris2.0-5 | solaris2.0-5.*) ;;
10399           *)
10400             # The C++ compiler is used as linker so we must use $wl
10401             # flag to pass the commands to the underlying system
10402             # linker.
10403             # Supported since Solaris 2.6 (maybe 2.5.1?)
10404             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10405             ;;
10406         esac
10407         link_all_deplibs_CXX=yes
10408
10409         # Commands to make compiler produce verbose output that lists
10410         # what "hidden" libraries, object files and flags are used when
10411         # linking a shared library.
10412         #
10413         # There doesn't appear to be a way to prevent this compiler from
10414         # explicitly linking system object files so we need to strip them
10415         # from the output so that they don't get included in the library
10416         # dependencies.
10417         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'
10418
10419         # Archives containing C++ object files must be created using
10420         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10421         # necessary to make sure instantiated templates are included
10422         # in the archive.
10423         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10424         ;;
10425       gcx)
10426         # Green Hills C++ Compiler
10427         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10428
10429         # The C++ compiler must be used to create the archive.
10430         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10431         ;;
10432       *)
10433         # GNU C++ compiler with Solaris linker
10434         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10435           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10436           if $CC --version | grep -v '^2\.7' > /dev/null; then
10437             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10438             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10439                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10440
10441             # Commands to make compiler produce verbose output that lists
10442             # what "hidden" libraries, object files and flags are used when
10443             # linking a shared library.
10444             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10445           else
10446             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10447             # platform.
10448             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10449             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10450                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10451
10452             # Commands to make compiler produce verbose output that lists
10453             # what "hidden" libraries, object files and flags are used when
10454             # linking a shared library.
10455             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10456           fi
10457
10458           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10459         fi
10460         ;;
10461     esac
10462     ;;
10463   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10464     archive_cmds_need_lc_CXX=no
10465     ;;
10466   tandem*)
10467     case $cc_basename in
10468       NCC)
10469         # NonStop-UX NCC 3.20
10470         # FIXME: insert proper C++ library support
10471         ld_shlibs_CXX=no
10472         ;;
10473       *)
10474         # FIXME: insert proper C++ library support
10475         ld_shlibs_CXX=no
10476         ;;
10477     esac
10478     ;;
10479   vxworks*)
10480     # FIXME: insert proper C++ library support
10481     ld_shlibs_CXX=no
10482     ;;
10483   *)
10484     # FIXME: insert proper C++ library support
10485     ld_shlibs_CXX=no
10486     ;;
10487 esac
10488 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10489 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10490 test "$ld_shlibs_CXX" = no && can_build_shared=no
10491
10492 GCC_CXX="$GXX"
10493 LD_CXX="$LD"
10494
10495
10496 cat > conftest.$ac_ext <<EOF
10497 class Foo
10498 {
10499 public:
10500   Foo (void) { a = 0; }
10501 private:
10502   int a;
10503 };
10504 EOF
10505
10506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10507   (eval $ac_compile) 2>&5
10508   ac_status=$?
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); }; then
10511   # Parse the compiler output and extract the necessary
10512   # objects, libraries and library flags.
10513
10514   # Sentinel used to keep track of whether or not we are before
10515   # the conftest object file.
10516   pre_test_object_deps_done=no
10517
10518   # The `*' in the case matches for architectures that use `case' in
10519   # $output_verbose_cmd can trigger glob expansion during the loop
10520   # eval without this substitution.
10521   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10522
10523   for p in `eval $output_verbose_link_cmd`; do
10524     case $p in
10525
10526     -L* | -R* | -l*)
10527        # Some compilers place space between "-{L,R}" and the path.
10528        # Remove the space.
10529        if test $p = "-L" \
10530           || test $p = "-R"; then
10531          prev=$p
10532          continue
10533        else
10534          prev=
10535        fi
10536
10537        if test "$pre_test_object_deps_done" = no; then
10538          case $p in
10539          -L* | -R*)
10540            # Internal compiler library paths should come after those
10541            # provided the user.  The postdeps already come after the
10542            # user supplied libs so there is no need to process them.
10543            if test -z "$compiler_lib_search_path_CXX"; then
10544              compiler_lib_search_path_CXX="${prev}${p}"
10545            else
10546              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10547            fi
10548            ;;
10549          # The "-l" case would never come before the object being
10550          # linked, so don't bother handling this case.
10551          esac
10552        else
10553          if test -z "$postdeps_CXX"; then
10554            postdeps_CXX="${prev}${p}"
10555          else
10556            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10557          fi
10558        fi
10559        ;;
10560
10561     *.$objext)
10562        # This assumes that the test object file only shows up
10563        # once in the compiler output.
10564        if test "$p" = "conftest.$objext"; then
10565          pre_test_object_deps_done=yes
10566          continue
10567        fi
10568
10569        if test "$pre_test_object_deps_done" = no; then
10570          if test -z "$predep_objects_CXX"; then
10571            predep_objects_CXX="$p"
10572          else
10573            predep_objects_CXX="$predep_objects_CXX $p"
10574          fi
10575        else
10576          if test -z "$postdep_objects_CXX"; then
10577            postdep_objects_CXX="$p"
10578          else
10579            postdep_objects_CXX="$postdep_objects_CXX $p"
10580          fi
10581        fi
10582        ;;
10583
10584     *) ;; # Ignore the rest.
10585
10586     esac
10587   done
10588
10589   # Clean up.
10590   rm -f a.out a.exe
10591 else
10592   echo "libtool.m4: error: problem compiling CXX test program"
10593 fi
10594
10595 $rm -f confest.$objext
10596
10597 case " $postdeps_CXX " in
10598 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10599 esac
10600
10601 lt_prog_compiler_wl_CXX=
10602 lt_prog_compiler_pic_CXX=
10603 lt_prog_compiler_static_CXX=
10604
10605 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10607
10608   # C++ specific cases for pic, static, wl, etc.
10609   if test "$GXX" = yes; then
10610     lt_prog_compiler_wl_CXX='-Wl,'
10611     lt_prog_compiler_static_CXX='-static'
10612
10613     case $host_os in
10614     aix*)
10615       # All AIX code is PIC.
10616       if test "$host_cpu" = ia64; then
10617         # AIX 5 now supports IA64 processor
10618         lt_prog_compiler_static_CXX='-Bstatic'
10619       fi
10620       ;;
10621     amigaos*)
10622       # FIXME: we need at least 68020 code to build shared libraries, but
10623       # adding the `-m68020' flag to GCC prevents building anything better,
10624       # like `-m68040'.
10625       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10626       ;;
10627     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10628       # PIC is the default for these OSes.
10629       ;;
10630     mingw* | os2* | pw32*)
10631       # This hack is so that the source file can tell whether it is being
10632       # built for inclusion in a dll (and should export symbols for example).
10633       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10634       ;;
10635     darwin* | rhapsody*)
10636       # PIC is the default on this platform
10637       # Common symbols not allowed in MH_DYLIB files
10638       lt_prog_compiler_pic_CXX='-fno-common'
10639       ;;
10640     *djgpp*)
10641       # DJGPP does not support shared libraries at all
10642       lt_prog_compiler_pic_CXX=
10643       ;;
10644     sysv4*MP*)
10645       if test -d /usr/nec; then
10646         lt_prog_compiler_pic_CXX=-Kconform_pic
10647       fi
10648       ;;
10649     hpux*)
10650       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10651       # not for PA HP-UX.
10652       case "$host_cpu" in
10653       hppa*64*|ia64*)
10654         ;;
10655       *)
10656         lt_prog_compiler_pic_CXX='-fPIC'
10657         ;;
10658       esac
10659       ;;
10660     *)
10661       lt_prog_compiler_pic_CXX='-fPIC'
10662       ;;
10663     esac
10664   else
10665     case $host_os in
10666       aix4* | aix5*)
10667         # All AIX code is PIC.
10668         if test "$host_cpu" = ia64; then
10669           # AIX 5 now supports IA64 processor
10670           lt_prog_compiler_static_CXX='-Bstatic'
10671         else
10672           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10673         fi
10674         ;;
10675       chorus*)
10676         case $cc_basename in
10677         cxch68)
10678           # Green Hills C++ Compiler
10679           # _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"
10680           ;;
10681         esac
10682         ;;
10683        darwin*)
10684          # PIC is the default on this platform
10685          # Common symbols not allowed in MH_DYLIB files
10686          case "$cc_basename" in
10687            xlc*)
10688            lt_prog_compiler_pic_CXX='-qnocommon'
10689            lt_prog_compiler_wl_CXX='-Wl,'
10690            ;;
10691          esac
10692        ;;
10693       dgux*)
10694         case $cc_basename in
10695           ec++)
10696             lt_prog_compiler_pic_CXX='-KPIC'
10697             ;;
10698           ghcx)
10699             # Green Hills C++ Compiler
10700             lt_prog_compiler_pic_CXX='-pic'
10701             ;;
10702           *)
10703             ;;
10704         esac
10705         ;;
10706       freebsd* | kfreebsd*-gnu)
10707         # FreeBSD uses GNU C++
10708         ;;
10709       hpux9* | hpux10* | hpux11*)
10710         case $cc_basename in
10711           CC)
10712             lt_prog_compiler_wl_CXX='-Wl,'
10713             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10714             if test "$host_cpu" != ia64; then
10715               lt_prog_compiler_pic_CXX='+Z'
10716             fi
10717             ;;
10718           aCC)
10719             lt_prog_compiler_wl_CXX='-Wl,'
10720             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10721             case "$host_cpu" in
10722             hppa*64*|ia64*)
10723               # +Z the default
10724               ;;
10725             *)
10726               lt_prog_compiler_pic_CXX='+Z'
10727               ;;
10728             esac
10729             ;;
10730           *)
10731             ;;
10732         esac
10733         ;;
10734       irix5* | irix6* | nonstopux*)
10735         case $cc_basename in
10736           CC)
10737             lt_prog_compiler_wl_CXX='-Wl,'
10738             lt_prog_compiler_static_CXX='-non_shared'
10739             # CC pic flag -KPIC is the default.
10740             ;;
10741           *)
10742             ;;
10743         esac
10744         ;;
10745       linux*)
10746         case $cc_basename in
10747           KCC)
10748             # KAI C++ Compiler
10749             lt_prog_compiler_wl_CXX='--backend -Wl,'
10750             lt_prog_compiler_pic_CXX='-fPIC'
10751             ;;
10752           icpc)
10753             # Intel C++
10754             lt_prog_compiler_wl_CXX='-Wl,'
10755             lt_prog_compiler_pic_CXX='-KPIC'
10756             lt_prog_compiler_static_CXX='-static'
10757             ;;
10758           cxx)
10759             # Compaq C++
10760             # Make sure the PIC flag is empty.  It appears that all Alpha
10761             # Linux and Compaq Tru64 Unix objects are PIC.
10762             lt_prog_compiler_pic_CXX=
10763             lt_prog_compiler_static_CXX='-non_shared'
10764             ;;
10765           *)
10766             ;;
10767         esac
10768         ;;
10769       lynxos*)
10770         ;;
10771       m88k*)
10772         ;;
10773       mvs*)
10774         case $cc_basename in
10775           cxx)
10776             lt_prog_compiler_pic_CXX='-W c,exportall'
10777             ;;
10778           *)
10779             ;;
10780         esac
10781         ;;
10782       netbsd*)
10783         ;;
10784       osf3* | osf4* | osf5*)
10785         case $cc_basename in
10786           KCC)
10787             lt_prog_compiler_wl_CXX='--backend -Wl,'
10788             ;;
10789           RCC)
10790             # Rational C++ 2.4.1
10791             lt_prog_compiler_pic_CXX='-pic'
10792             ;;
10793           cxx)
10794             # Digital/Compaq C++
10795             lt_prog_compiler_wl_CXX='-Wl,'
10796             # Make sure the PIC flag is empty.  It appears that all Alpha
10797             # Linux and Compaq Tru64 Unix objects are PIC.
10798             lt_prog_compiler_pic_CXX=
10799             lt_prog_compiler_static_CXX='-non_shared'
10800             ;;
10801           *)
10802             ;;
10803         esac
10804         ;;
10805       psos*)
10806         ;;
10807       sco*)
10808         case $cc_basename in
10809           CC)
10810             lt_prog_compiler_pic_CXX='-fPIC'
10811             ;;
10812           *)
10813             ;;
10814         esac
10815         ;;
10816       solaris*)
10817         case $cc_basename in
10818           CC)
10819             # Sun C++ 4.2, 5.x and Centerline C++
10820             lt_prog_compiler_pic_CXX='-KPIC'
10821             lt_prog_compiler_static_CXX='-Bstatic'
10822             lt_prog_compiler_wl_CXX='-Qoption ld '
10823             ;;
10824           gcx)
10825             # Green Hills C++ Compiler
10826             lt_prog_compiler_pic_CXX='-PIC'
10827             ;;
10828           *)
10829             ;;
10830         esac
10831         ;;
10832       sunos4*)
10833         case $cc_basename in
10834           CC)
10835             # Sun C++ 4.x
10836             lt_prog_compiler_pic_CXX='-pic'
10837             lt_prog_compiler_static_CXX='-Bstatic'
10838             ;;
10839           lcc)
10840             # Lucid
10841             lt_prog_compiler_pic_CXX='-pic'
10842             ;;
10843           *)
10844             ;;
10845         esac
10846         ;;
10847       tandem*)
10848         case $cc_basename in
10849           NCC)
10850             # NonStop-UX NCC 3.20
10851             lt_prog_compiler_pic_CXX='-KPIC'
10852             ;;
10853           *)
10854             ;;
10855         esac
10856         ;;
10857       unixware*)
10858         ;;
10859       vxworks*)
10860         ;;
10861       *)
10862         lt_prog_compiler_can_build_shared_CXX=no
10863         ;;
10864     esac
10865   fi
10866
10867 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10868 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10869
10870 #
10871 # Check to make sure the PIC flag actually works.
10872 #
10873 if test -n "$lt_prog_compiler_pic_CXX"; then
10874
10875 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10876 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10877 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   lt_prog_compiler_pic_works_CXX=no
10881   ac_outfile=conftest.$ac_objext
10882    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10884    # Insert the option either (1) after the last *FLAGS variable, or
10885    # (2) before a word containing "conftest.", or (3) at the end.
10886    # Note that $ac_compile itself does not contain backslashes and begins
10887    # with a dollar sign (not a hyphen), so the echo should work correctly.
10888    # The option is referenced via a variable to avoid confusing sed.
10889    lt_compile=`echo "$ac_compile" | $SED \
10890    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10892    -e 's:$: $lt_compiler_flag:'`
10893    (eval echo "\"\$as_me:10893: $lt_compile\"" >&5)
10894    (eval "$lt_compile" 2>conftest.err)
10895    ac_status=$?
10896    cat conftest.err >&5
10897    echo "$as_me:10897: \$? = $ac_status" >&5
10898    if (exit $ac_status) && test -s "$ac_outfile"; then
10899      # The compiler can only warn and ignore the option if not recognized
10900      # So say no if there are warnings
10901      if test ! -s conftest.err; then
10902        lt_prog_compiler_pic_works_CXX=yes
10903      fi
10904    fi
10905    $rm conftest*
10906
10907 fi
10908 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10909 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10910
10911 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10912     case $lt_prog_compiler_pic_CXX in
10913      "" | " "*) ;;
10914      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10915      esac
10916 else
10917     lt_prog_compiler_pic_CXX=
10918      lt_prog_compiler_can_build_shared_CXX=no
10919 fi
10920
10921 fi
10922 case "$host_os" in
10923   # For platforms which do not support PIC, -DPIC is meaningless:
10924   *djgpp*)
10925     lt_prog_compiler_pic_CXX=
10926     ;;
10927   *)
10928     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10929     ;;
10930 esac
10931
10932 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10933 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10934 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   lt_cv_prog_compiler_c_o_CXX=no
10938    $rm -r conftest 2>/dev/null
10939    mkdir conftest
10940    cd conftest
10941    mkdir out
10942    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10943
10944    lt_compiler_flag="-o out/conftest2.$ac_objext"
10945    # Insert the option either (1) after the last *FLAGS variable, or
10946    # (2) before a word containing "conftest.", or (3) at the end.
10947    # Note that $ac_compile itself does not contain backslashes and begins
10948    # with a dollar sign (not a hyphen), so the echo should work correctly.
10949    lt_compile=`echo "$ac_compile" | $SED \
10950    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10952    -e 's:$: $lt_compiler_flag:'`
10953    (eval echo "\"\$as_me:10953: $lt_compile\"" >&5)
10954    (eval "$lt_compile" 2>out/conftest.err)
10955    ac_status=$?
10956    cat out/conftest.err >&5
10957    echo "$as_me:10957: \$? = $ac_status" >&5
10958    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10959    then
10960      # The compiler can only warn and ignore the option if not recognized
10961      # So say no if there are warnings
10962      if test ! -s out/conftest.err; then
10963        lt_cv_prog_compiler_c_o_CXX=yes
10964      fi
10965    fi
10966    chmod u+w .
10967    $rm conftest*
10968    # SGI C++ compiler will create directory out/ii_files/ for
10969    # template instantiation
10970    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10971    $rm out/* && rmdir out
10972    cd ..
10973    rmdir conftest
10974    $rm conftest*
10975
10976 fi
10977 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10979
10980
10981 hard_links="nottested"
10982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10983   # do not overwrite the value of need_locks provided by the user
10984   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10986   hard_links=yes
10987   $rm conftest*
10988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10989   touch conftest.a
10990   ln conftest.a conftest.b 2>&5 || hard_links=no
10991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992   echo "$as_me:$LINENO: result: $hard_links" >&5
10993 echo "${ECHO_T}$hard_links" >&6
10994   if test "$hard_links" = no; then
10995     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10997     need_locks=warn
10998   fi
10999 else
11000   need_locks=no
11001 fi
11002
11003 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11005
11006   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11007   case $host_os in
11008   aix4* | aix5*)
11009     # If we're using GNU nm, then we don't want the "-C" option.
11010     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11011     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11012       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'
11013     else
11014       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'
11015     fi
11016     ;;
11017   pw32*)
11018     export_symbols_cmds_CXX="$ltdll_cmds"
11019   ;;
11020   cygwin* | mingw*)
11021     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11022   ;;
11023   *)
11024     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11025   ;;
11026   esac
11027
11028 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11029 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11030 test "$ld_shlibs_CXX" = no && can_build_shared=no
11031
11032 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11033 if test "$GCC" = yes; then
11034   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11035 fi
11036
11037 #
11038 # Do we need to explicitly link libc?
11039 #
11040 case "x$archive_cmds_need_lc_CXX" in
11041 x|xyes)
11042   # Assume -lc should be added
11043   archive_cmds_need_lc_CXX=yes
11044
11045   if test "$enable_shared" = yes && test "$GCC" = yes; then
11046     case $archive_cmds_CXX in
11047     *'~'*)
11048       # FIXME: we may have to deal with multi-command sequences.
11049       ;;
11050     '$CC '*)
11051       # Test whether the compiler implicitly links with -lc since on some
11052       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11053       # to ld, don't add -lc before -lgcc.
11054       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11055 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11056       $rm conftest*
11057       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11058
11059       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060   (eval $ac_compile) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } 2>conftest.err; then
11064         soname=conftest
11065         lib=conftest
11066         libobjs=conftest.$ac_objext
11067         deplibs=
11068         wl=$lt_prog_compiler_wl_CXX
11069         compiler_flags=-v
11070         linker_flags=-v
11071         verstring=
11072         output_objdir=.
11073         libname=conftest
11074         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11075         allow_undefined_flag_CXX=
11076         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11077   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }
11081         then
11082           archive_cmds_need_lc_CXX=no
11083         else
11084           archive_cmds_need_lc_CXX=yes
11085         fi
11086         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11087       else
11088         cat conftest.err 1>&5
11089       fi
11090       $rm conftest*
11091       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11092 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11093       ;;
11094     esac
11095   fi
11096   ;;
11097 esac
11098
11099 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11100 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11101 library_names_spec=
11102 libname_spec='lib$name'
11103 soname_spec=
11104 shrext_cmds=".so"
11105 postinstall_cmds=
11106 postuninstall_cmds=
11107 finish_cmds=
11108 finish_eval=
11109 shlibpath_var=
11110 shlibpath_overrides_runpath=unknown
11111 version_type=none
11112 dynamic_linker="$host_os ld.so"
11113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11114 if test "$GCC" = yes; then
11115   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11116   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11117     # if the path contains ";" then we assume it to be the separator
11118     # otherwise default to the standard path separator (i.e. ":") - it is
11119     # assumed that no part of a normal pathname contains ";" but that should
11120     # okay in the real world where ";" in dirpaths is itself problematic.
11121     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11122   else
11123     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11124   fi
11125 else
11126   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11127 fi
11128 need_lib_prefix=unknown
11129 hardcode_into_libs=no
11130
11131 # when you set need_version to no, make sure it does not cause -set_version
11132 # flags to be left without arguments
11133 need_version=unknown
11134
11135 case $host_os in
11136 aix3*)
11137   version_type=linux
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11139   shlibpath_var=LIBPATH
11140
11141   # AIX 3 has no versioning support, so we append a major version to the name.
11142   soname_spec='${libname}${release}${shared_ext}$major'
11143   ;;
11144
11145 aix4* | aix5*)
11146   version_type=linux
11147   need_lib_prefix=no
11148   need_version=no
11149   hardcode_into_libs=yes
11150   if test "$host_cpu" = ia64; then
11151     # AIX 5 supports IA64
11152     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11153     shlibpath_var=LD_LIBRARY_PATH
11154   else
11155     # With GCC up to 2.95.x, collect2 would create an import file
11156     # for dependence libraries.  The import file would start with
11157     # the line `#! .'.  This would cause the generated library to
11158     # depend on `.', always an invalid library.  This was fixed in
11159     # development snapshots of GCC prior to 3.0.
11160     case $host_os in
11161       aix4 | aix4.[01] | aix4.[01].*)
11162       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11163            echo ' yes '
11164            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11165         :
11166       else
11167         can_build_shared=no
11168       fi
11169       ;;
11170     esac
11171     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11172     # soname into executable. Probably we can add versioning support to
11173     # collect2, so additional links can be useful in future.
11174     if test "$aix_use_runtimelinking" = yes; then
11175       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11176       # instead of lib<name>.a to let people know that these are not
11177       # typical AIX shared libraries.
11178       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179     else
11180       # We preserve .a as extension for shared libraries through AIX4.2
11181       # and later when we are not doing run time linking.
11182       library_names_spec='${libname}${release}.a $libname.a'
11183       soname_spec='${libname}${release}${shared_ext}$major'
11184     fi
11185     shlibpath_var=LIBPATH
11186   fi
11187   ;;
11188
11189 amigaos*)
11190   library_names_spec='$libname.ixlibrary $libname.a'
11191   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11192   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'
11193   ;;
11194
11195 beos*)
11196   library_names_spec='${libname}${shared_ext}'
11197   dynamic_linker="$host_os ld.so"
11198   shlibpath_var=LIBRARY_PATH
11199   ;;
11200
11201 bsdi[45]*)
11202   version_type=linux
11203   need_version=no
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11209   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11210   # the default ld.so.conf also contains /usr/contrib/lib and
11211   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11212   # libtool to hard-code these into programs
11213   ;;
11214
11215 cygwin* | mingw* | pw32*)
11216   version_type=windows
11217   shrext_cmds=".dll"
11218   need_version=no
11219   need_lib_prefix=no
11220
11221   case $GCC,$host_os in
11222   yes,cygwin* | yes,mingw* | yes,pw32*)
11223     library_names_spec='$libname.dll.a'
11224     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11225     postinstall_cmds='base_file=`basename \${file}`~
11226       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11227       dldir=$destdir/`dirname \$dlpath`~
11228       test -d \$dldir || mkdir -p \$dldir~
11229       $install_prog $dir/$dlname \$dldir/$dlname'
11230     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11231       dlpath=$dir/\$dldll~
11232        $rm \$dlpath'
11233     shlibpath_overrides_runpath=yes
11234
11235     case $host_os in
11236     cygwin*)
11237       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11238       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11240       ;;
11241     mingw*)
11242       # MinGW DLLs use traditional 'lib' prefix
11243       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11245       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11246         # It is most probably a Windows format PATH printed by
11247         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11248         # path with ; separators, and with drive letters. We can handle the
11249         # drive letters (cygwin fileutils understands them), so leave them,
11250         # especially as we might pass files found there to a mingw objdump,
11251         # which wouldn't understand a cygwinified path. Ahh.
11252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11253       else
11254         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11255       fi
11256       ;;
11257     pw32*)
11258       # pw32 DLLs use 'pw' prefix rather than 'lib'
11259       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11260       ;;
11261     esac
11262     ;;
11263
11264   *)
11265     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11266     ;;
11267   esac
11268   dynamic_linker='Win32 ld.exe'
11269   # FIXME: first we should search . and the directory the executable is in
11270   shlibpath_var=PATH
11271   ;;
11272
11273 darwin* | rhapsody*)
11274   dynamic_linker="$host_os dyld"
11275   version_type=darwin
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11279   soname_spec='${libname}${release}${major}$shared_ext'
11280   shlibpath_overrides_runpath=yes
11281   shlibpath_var=DYLD_LIBRARY_PATH
11282   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11283   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11284   if test "$GCC" = yes; then
11285     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"`
11286   else
11287     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11288   fi
11289   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11290   ;;
11291
11292 dgux*)
11293   version_type=linux
11294   need_lib_prefix=no
11295   need_version=no
11296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11297   soname_spec='${libname}${release}${shared_ext}$major'
11298   shlibpath_var=LD_LIBRARY_PATH
11299   ;;
11300
11301 freebsd1*)
11302   dynamic_linker=no
11303   ;;
11304
11305 kfreebsd*-gnu)
11306   version_type=linux
11307   need_lib_prefix=no
11308   need_version=no
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11310   soname_spec='${libname}${release}${shared_ext}$major'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   shlibpath_overrides_runpath=no
11313   hardcode_into_libs=yes
11314   dynamic_linker='GNU ld.so'
11315   ;;
11316
11317 freebsd*)
11318   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11319   version_type=freebsd-$objformat
11320   case $version_type in
11321     freebsd-elf*)
11322       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323       need_version=no
11324       need_lib_prefix=no
11325       ;;
11326     freebsd-*)
11327       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11328       need_version=yes
11329       ;;
11330   esac
11331   shlibpath_var=LD_LIBRARY_PATH
11332   case $host_os in
11333   freebsd2*)
11334     shlibpath_overrides_runpath=yes
11335     ;;
11336   freebsd3.01* | freebsdelf3.01*)
11337     shlibpath_overrides_runpath=yes
11338     hardcode_into_libs=yes
11339     ;;
11340   *) # from 3.2 on
11341     shlibpath_overrides_runpath=no
11342     hardcode_into_libs=yes
11343     ;;
11344   esac
11345   ;;
11346
11347 gnu*)
11348   version_type=linux
11349   need_lib_prefix=no
11350   need_version=no
11351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11352   soname_spec='${libname}${release}${shared_ext}$major'
11353   shlibpath_var=LD_LIBRARY_PATH
11354   hardcode_into_libs=yes
11355   ;;
11356
11357 hpux9* | hpux10* | hpux11*)
11358   # Give a soname corresponding to the major version so that dld.sl refuses to
11359   # link against other versions.
11360   version_type=sunos
11361   need_lib_prefix=no
11362   need_version=no
11363   case "$host_cpu" in
11364   ia64*)
11365     shrext_cmds='.so'
11366     hardcode_into_libs=yes
11367     dynamic_linker="$host_os dld.so"
11368     shlibpath_var=LD_LIBRARY_PATH
11369     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371     soname_spec='${libname}${release}${shared_ext}$major'
11372     if test "X$HPUX_IA64_MODE" = X32; then
11373       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11374     else
11375       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11376     fi
11377     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11378     ;;
11379    hppa*64*)
11380      shrext_cmds='.sl'
11381      hardcode_into_libs=yes
11382      dynamic_linker="$host_os dld.sl"
11383      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386      soname_spec='${libname}${release}${shared_ext}$major'
11387      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11389      ;;
11390    *)
11391     shrext_cmds='.sl'
11392     dynamic_linker="$host_os dld.sl"
11393     shlibpath_var=SHLIB_PATH
11394     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396     soname_spec='${libname}${release}${shared_ext}$major'
11397     ;;
11398   esac
11399   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11400   postinstall_cmds='chmod 555 $lib'
11401   ;;
11402
11403 irix5* | irix6* | nonstopux*)
11404   case $host_os in
11405     nonstopux*) version_type=nonstopux ;;
11406     *)
11407         if test "$lt_cv_prog_gnu_ld" = yes; then
11408                 version_type=linux
11409         else
11410                 version_type=irix
11411         fi ;;
11412   esac
11413   need_lib_prefix=no
11414   need_version=no
11415   soname_spec='${libname}${release}${shared_ext}$major'
11416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11417   case $host_os in
11418   irix5* | nonstopux*)
11419     libsuff= shlibsuff=
11420     ;;
11421   *)
11422     case $LD in # libtool.m4 will add one of these switches to LD
11423     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11424       libsuff= shlibsuff= libmagic=32-bit;;
11425     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11426       libsuff=32 shlibsuff=N32 libmagic=N32;;
11427     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11428       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11429     *) libsuff= shlibsuff= libmagic=never-match;;
11430     esac
11431     ;;
11432   esac
11433   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434   shlibpath_overrides_runpath=no
11435   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11437   hardcode_into_libs=yes
11438   ;;
11439
11440 # No shared lib support for Linux oldld, aout, or coff.
11441 linux*oldld* | linux*aout* | linux*coff*)
11442   dynamic_linker=no
11443   ;;
11444
11445 # This must be Linux ELF.
11446 linux*)
11447   version_type=linux
11448   need_lib_prefix=no
11449   need_version=no
11450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451   soname_spec='${libname}${release}${shared_ext}$major'
11452   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   shlibpath_overrides_runpath=no
11455   # This implies no fast_install, which is unacceptable.
11456   # Some rework will be needed to allow for fast_install
11457   # before this can be enabled.
11458   hardcode_into_libs=yes
11459
11460   # Append ld.so.conf contents to the search path
11461   if test -f /etc/ld.so.conf; then
11462     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11463     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11464   fi
11465
11466   # We used to test for /lib/ld.so.1 and disable shared libraries on
11467   # powerpc, because MkLinux only supported shared libraries with the
11468   # GNU dynamic linker.  Since this was broken with cross compilers,
11469   # most powerpc-linux boxes support dynamic linking these days and
11470   # people can always --disable-shared, the test was removed, and we
11471   # assume the GNU/Linux dynamic linker is in use.
11472   dynamic_linker='GNU/Linux ld.so'
11473   ;;
11474
11475 knetbsd*-gnu)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   shlibpath_overrides_runpath=no
11483   hardcode_into_libs=yes
11484   dynamic_linker='GNU ld.so'
11485   ;;
11486
11487 netbsd*)
11488   version_type=sunos
11489   need_lib_prefix=no
11490   need_version=no
11491   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11493     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11494     dynamic_linker='NetBSD (a.out) ld.so'
11495   else
11496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11497     soname_spec='${libname}${release}${shared_ext}$major'
11498     dynamic_linker='NetBSD ld.elf_so'
11499   fi
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=yes
11502   hardcode_into_libs=yes
11503   ;;
11504
11505 newsos6)
11506   version_type=linux
11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   ;;
11511
11512 nto-qnx*)
11513   version_type=linux
11514   need_lib_prefix=no
11515   need_version=no
11516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11517   soname_spec='${libname}${release}${shared_ext}$major'
11518   shlibpath_var=LD_LIBRARY_PATH
11519   shlibpath_overrides_runpath=yes
11520   ;;
11521
11522 openbsd*)
11523   version_type=sunos
11524   need_lib_prefix=no
11525   need_version=no
11526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528   shlibpath_var=LD_LIBRARY_PATH
11529   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11530     case $host_os in
11531       openbsd2.[89] | openbsd2.[89].*)
11532         shlibpath_overrides_runpath=no
11533         ;;
11534       *)
11535         shlibpath_overrides_runpath=yes
11536         ;;
11537       esac
11538   else
11539     shlibpath_overrides_runpath=yes
11540   fi
11541   ;;
11542
11543 os2*)
11544   libname_spec='$name'
11545   shrext_cmds=".dll"
11546   need_lib_prefix=no
11547   library_names_spec='$libname${shared_ext} $libname.a'
11548   dynamic_linker='OS/2 ld.exe'
11549   shlibpath_var=LIBPATH
11550   ;;
11551
11552 osf3* | osf4* | osf5*)
11553   version_type=osf
11554   need_lib_prefix=no
11555   need_version=no
11556   soname_spec='${libname}${release}${shared_ext}$major'
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558   shlibpath_var=LD_LIBRARY_PATH
11559   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11560   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11561   ;;
11562
11563 sco3.2v5*)
11564   version_type=osf
11565   soname_spec='${libname}${release}${shared_ext}$major'
11566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   ;;
11569
11570 solaris*)
11571   version_type=linux
11572   need_lib_prefix=no
11573   need_version=no
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575   soname_spec='${libname}${release}${shared_ext}$major'
11576   shlibpath_var=LD_LIBRARY_PATH
11577   shlibpath_overrides_runpath=yes
11578   hardcode_into_libs=yes
11579   # ldd complains unless libraries are executable
11580   postinstall_cmds='chmod +x $lib'
11581   ;;
11582
11583 sunos4*)
11584   version_type=sunos
11585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11586   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11587   shlibpath_var=LD_LIBRARY_PATH
11588   shlibpath_overrides_runpath=yes
11589   if test "$with_gnu_ld" = yes; then
11590     need_lib_prefix=no
11591   fi
11592   need_version=yes
11593   ;;
11594
11595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11596   version_type=linux
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598   soname_spec='${libname}${release}${shared_ext}$major'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   case $host_vendor in
11601     sni)
11602       shlibpath_overrides_runpath=no
11603       need_lib_prefix=no
11604       export_dynamic_flag_spec='${wl}-Blargedynsym'
11605       runpath_var=LD_RUN_PATH
11606       ;;
11607     siemens)
11608       need_lib_prefix=no
11609       ;;
11610     motorola)
11611       need_lib_prefix=no
11612       need_version=no
11613       shlibpath_overrides_runpath=no
11614       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11615       ;;
11616   esac
11617   ;;
11618
11619 sysv4*MP*)
11620   if test -d /usr/nec ;then
11621     version_type=linux
11622     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11623     soname_spec='$libname${shared_ext}.$major'
11624     shlibpath_var=LD_LIBRARY_PATH
11625   fi
11626   ;;
11627
11628 uts4*)
11629   version_type=linux
11630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631   soname_spec='${libname}${release}${shared_ext}$major'
11632   shlibpath_var=LD_LIBRARY_PATH
11633   ;;
11634
11635 *)
11636   dynamic_linker=no
11637   ;;
11638 esac
11639 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11640 echo "${ECHO_T}$dynamic_linker" >&6
11641 test "$dynamic_linker" = no && can_build_shared=no
11642
11643 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11645 hardcode_action_CXX=
11646 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11647    test -n "$runpath_var_CXX" || \
11648    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11649
11650   # We can hardcode non-existant directories.
11651   if test "$hardcode_direct_CXX" != no &&
11652      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11653      # have to relink, otherwise we might link with an installed library
11654      # when we should be linking with a yet-to-be-installed one
11655      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11656      test "$hardcode_minus_L_CXX" != no; then
11657     # Linking always hardcodes the temporary library directory.
11658     hardcode_action_CXX=relink
11659   else
11660     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11661     hardcode_action_CXX=immediate
11662   fi
11663 else
11664   # We cannot hardcode anything, or else we can only hardcode existing
11665   # directories.
11666   hardcode_action_CXX=unsupported
11667 fi
11668 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11669 echo "${ECHO_T}$hardcode_action_CXX" >&6
11670
11671 if test "$hardcode_action_CXX" = relink; then
11672   # Fast installation is not supported
11673   enable_fast_install=no
11674 elif test "$shlibpath_overrides_runpath" = yes ||
11675      test "$enable_shared" = no; then
11676   # Fast installation is not necessary
11677   enable_fast_install=needless
11678 fi
11679
11680 striplib=
11681 old_striplib=
11682 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11683 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11684 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11685   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11686   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11687   echo "$as_me:$LINENO: result: yes" >&5
11688 echo "${ECHO_T}yes" >&6
11689 else
11690 # FIXME - insert some real tests, host_os isn't really good enough
11691   case $host_os in
11692    darwin*)
11693        if test -n "$STRIP" ; then
11694          striplib="$STRIP -x"
11695          echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11697        else
11698   echo "$as_me:$LINENO: result: no" >&5
11699 echo "${ECHO_T}no" >&6
11700 fi
11701        ;;
11702    *)
11703   echo "$as_me:$LINENO: result: no" >&5
11704 echo "${ECHO_T}no" >&6
11705     ;;
11706   esac
11707 fi
11708
11709 if test "x$enable_dlopen" != xyes; then
11710   enable_dlopen=unknown
11711   enable_dlopen_self=unknown
11712   enable_dlopen_self_static=unknown
11713 else
11714   lt_cv_dlopen=no
11715   lt_cv_dlopen_libs=
11716
11717   case $host_os in
11718   beos*)
11719     lt_cv_dlopen="load_add_on"
11720     lt_cv_dlopen_libs=
11721     lt_cv_dlopen_self=yes
11722     ;;
11723
11724   mingw* | pw32*)
11725     lt_cv_dlopen="LoadLibrary"
11726     lt_cv_dlopen_libs=
11727    ;;
11728
11729   cygwin*)
11730     lt_cv_dlopen="dlopen"
11731     lt_cv_dlopen_libs=
11732    ;;
11733
11734   darwin*)
11735   # if libdl is installed we need to link against it
11736     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11739   echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741   ac_check_lib_save_LIBS=$LIBS
11742 LIBS="-ldl  $LIBS"
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749
11750 /* Override any gcc2 internal prototype to avoid an error.  */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 /* We use char because int might match the return type of a gcc2
11755    builtin and then its argument prototype would still apply.  */
11756 char dlopen ();
11757 int
11758 main ()
11759 {
11760 dlopen ();
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext conftest$ac_exeext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11767   (eval $ac_link) 2>conftest.er1
11768   ac_status=$?
11769   grep -v '^ *+' conftest.er1 >conftest.err
11770   rm -f conftest.er1
11771   cat conftest.err >&5
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); } &&
11774          { ac_try='test -z "$ac_cxx_werror_flag"
11775                          || test ! -s conftest.err'
11776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777   (eval $ac_try) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }; } &&
11781          { ac_try='test -s conftest$ac_exeext'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; }; then
11787   ac_cv_lib_dl_dlopen=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 ac_cv_lib_dl_dlopen=no
11793 fi
11794 rm -f conftest.err conftest.$ac_objext \
11795       conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_lib_save_LIBS
11797 fi
11798 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11799 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11800 if test $ac_cv_lib_dl_dlopen = yes; then
11801   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11802 else
11803
11804     lt_cv_dlopen="dyld"
11805     lt_cv_dlopen_libs=
11806     lt_cv_dlopen_self=yes
11807
11808 fi
11809
11810    ;;
11811
11812   *)
11813     echo "$as_me:$LINENO: checking for shl_load" >&5
11814 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11815 if test "${ac_cv_func_shl_load+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11826 #define shl_load innocuous_shl_load
11827
11828 /* System header to define __stub macros and hopefully few prototypes,
11829     which can conflict with char shl_load (); below.
11830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11831     <limits.h> exists even on freestanding compilers.  */
11832
11833 #ifdef __STDC__
11834 # include <limits.h>
11835 #else
11836 # include <assert.h>
11837 #endif
11838
11839 #undef shl_load
11840
11841 /* Override any gcc2 internal prototype to avoid an error.  */
11842 #ifdef __cplusplus
11843 extern "C"
11844 {
11845 #endif
11846 /* We use char because int might match the return type of a gcc2
11847    builtin and then its argument prototype would still apply.  */
11848 char shl_load ();
11849 /* The GNU C library defines this for functions which it implements
11850     to always fail with ENOSYS.  Some functions are actually named
11851     something starting with __ and the normal name is an alias.  */
11852 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11853 choke me
11854 #else
11855 char (*f) () = shl_load;
11856 #endif
11857 #ifdef __cplusplus
11858 }
11859 #endif
11860
11861 int
11862 main ()
11863 {
11864 return f != shl_load;
11865   ;
11866   return 0;
11867 }
11868 _ACEOF
11869 rm -f conftest.$ac_objext conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871   (eval $ac_link) 2>conftest.er1
11872   ac_status=$?
11873   grep -v '^ *+' conftest.er1 >conftest.err
11874   rm -f conftest.er1
11875   cat conftest.err >&5
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); } &&
11878          { ac_try='test -z "$ac_cxx_werror_flag"
11879                          || test ! -s conftest.err'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; } &&
11885          { ac_try='test -s conftest$ac_exeext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_func_shl_load=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_func_shl_load=no
11897 fi
11898 rm -f conftest.err conftest.$ac_objext \
11899       conftest$ac_exeext conftest.$ac_ext
11900 fi
11901 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11902 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11903 if test $ac_cv_func_shl_load = yes; then
11904   lt_cv_dlopen="shl_load"
11905 else
11906   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11907 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11908 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11909   echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911   ac_check_lib_save_LIBS=$LIBS
11912 LIBS="-ldld  $LIBS"
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919
11920 /* Override any gcc2 internal prototype to avoid an error.  */
11921 #ifdef __cplusplus
11922 extern "C"
11923 #endif
11924 /* We use char because int might match the return type of a gcc2
11925    builtin and then its argument prototype would still apply.  */
11926 char shl_load ();
11927 int
11928 main ()
11929 {
11930 shl_load ();
11931   ;
11932   return 0;
11933 }
11934 _ACEOF
11935 rm -f conftest.$ac_objext conftest$ac_exeext
11936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937   (eval $ac_link) 2>conftest.er1
11938   ac_status=$?
11939   grep -v '^ *+' conftest.er1 >conftest.err
11940   rm -f conftest.er1
11941   cat conftest.err >&5
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -z "$ac_cxx_werror_flag"
11945                          || test ! -s conftest.err'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; } &&
11951          { ac_try='test -s conftest$ac_exeext'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; }; then
11957   ac_cv_lib_dld_shl_load=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_cv_lib_dld_shl_load=no
11963 fi
11964 rm -f conftest.err conftest.$ac_objext \
11965       conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11969 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11970 if test $ac_cv_lib_dld_shl_load = yes; then
11971   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11972 else
11973   echo "$as_me:$LINENO: checking for dlopen" >&5
11974 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11975 if test "${ac_cv_func_dlopen+set}" = set; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11986 #define dlopen innocuous_dlopen
11987
11988 /* System header to define __stub macros and hopefully few prototypes,
11989     which can conflict with char dlopen (); below.
11990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11991     <limits.h> exists even on freestanding compilers.  */
11992
11993 #ifdef __STDC__
11994 # include <limits.h>
11995 #else
11996 # include <assert.h>
11997 #endif
11998
11999 #undef dlopen
12000
12001 /* Override any gcc2 internal prototype to avoid an error.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 {
12005 #endif
12006 /* We use char because int might match the return type of a gcc2
12007    builtin and then its argument prototype would still apply.  */
12008 char dlopen ();
12009 /* The GNU C library defines this for functions which it implements
12010     to always fail with ENOSYS.  Some functions are actually named
12011     something starting with __ and the normal name is an alias.  */
12012 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12013 choke me
12014 #else
12015 char (*f) () = dlopen;
12016 #endif
12017 #ifdef __cplusplus
12018 }
12019 #endif
12020
12021 int
12022 main ()
12023 {
12024 return f != dlopen;
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext conftest$ac_exeext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12031   (eval $ac_link) 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_cxx_werror_flag"
12039                          || test ! -s conftest.err'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; } &&
12045          { ac_try='test -s conftest$ac_exeext'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; }; then
12051   ac_cv_func_dlopen=yes
12052 else
12053   echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 ac_cv_func_dlopen=no
12057 fi
12058 rm -f conftest.err conftest.$ac_objext \
12059       conftest$ac_exeext conftest.$ac_ext
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12062 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12063 if test $ac_cv_func_dlopen = yes; then
12064   lt_cv_dlopen="dlopen"
12065 else
12066   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12069   echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-ldl  $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079
12080 /* Override any gcc2 internal prototype to avoid an error.  */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 /* We use char because int might match the return type of a gcc2
12085    builtin and then its argument prototype would still apply.  */
12086 char dlopen ();
12087 int
12088 main ()
12089 {
12090 dlopen ();
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -z "$ac_cxx_werror_flag"
12105                          || test ! -s conftest.err'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; } &&
12111          { ac_try='test -s conftest$ac_exeext'
12112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113   (eval $ac_try) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; }; then
12117   ac_cv_lib_dl_dlopen=yes
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122 ac_cv_lib_dl_dlopen=no
12123 fi
12124 rm -f conftest.err conftest.$ac_objext \
12125       conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12130 if test $ac_cv_lib_dl_dlopen = yes; then
12131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12132 else
12133   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12134 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12135 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12136   echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138   ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-lsvld  $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 /* Override any gcc2 internal prototype to avoid an error.  */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 /* We use char because int might match the return type of a gcc2
12152    builtin and then its argument prototype would still apply.  */
12153 char dlopen ();
12154 int
12155 main ()
12156 {
12157 dlopen ();
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164   (eval $ac_link) 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -z "$ac_cxx_werror_flag"
12172                          || test ! -s conftest.err'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; } &&
12178          { ac_try='test -s conftest$ac_exeext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   ac_cv_lib_svld_dlopen=yes
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_cv_lib_svld_dlopen=no
12190 fi
12191 rm -f conftest.err conftest.$ac_objext \
12192       conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12194 fi
12195 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12196 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12197 if test $ac_cv_lib_svld_dlopen = yes; then
12198   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12199 else
12200   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12201 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12202 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12203   echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205   ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-ldld  $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213
12214 /* Override any gcc2 internal prototype to avoid an error.  */
12215 #ifdef __cplusplus
12216 extern "C"
12217 #endif
12218 /* We use char because int might match the return type of a gcc2
12219    builtin and then its argument prototype would still apply.  */
12220 char dld_link ();
12221 int
12222 main ()
12223 {
12224 dld_link ();
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12231   (eval $ac_link) 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -z "$ac_cxx_werror_flag"
12239                          || test ! -s conftest.err'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; } &&
12245          { ac_try='test -s conftest$ac_exeext'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; }; then
12251   ac_cv_lib_dld_dld_link=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_cv_lib_dld_dld_link=no
12257 fi
12258 rm -f conftest.err conftest.$ac_objext \
12259       conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12263 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12264 if test $ac_cv_lib_dld_dld_link = yes; then
12265   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12266 fi
12267
12268
12269 fi
12270
12271
12272 fi
12273
12274
12275 fi
12276
12277
12278 fi
12279
12280
12281 fi
12282
12283     ;;
12284   esac
12285
12286   if test "x$lt_cv_dlopen" != xno; then
12287     enable_dlopen=yes
12288   else
12289     enable_dlopen=no
12290   fi
12291
12292   case $lt_cv_dlopen in
12293   dlopen)
12294     save_CPPFLAGS="$CPPFLAGS"
12295     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12296
12297     save_LDFLAGS="$LDFLAGS"
12298     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12299
12300     save_LIBS="$LIBS"
12301     LIBS="$lt_cv_dlopen_libs $LIBS"
12302
12303     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12304 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12305 if test "${lt_cv_dlopen_self+set}" = set; then
12306   echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308           if test "$cross_compiling" = yes; then :
12309   lt_cv_dlopen_self=cross
12310 else
12311   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12312   lt_status=$lt_dlunknown
12313   cat > conftest.$ac_ext <<EOF
12314 #line 12314 "configure"
12315 #include "confdefs.h"
12316
12317 #if HAVE_DLFCN_H
12318 #include <dlfcn.h>
12319 #endif
12320
12321 #include <stdio.h>
12322
12323 #ifdef RTLD_GLOBAL
12324 #  define LT_DLGLOBAL           RTLD_GLOBAL
12325 #else
12326 #  ifdef DL_GLOBAL
12327 #    define LT_DLGLOBAL         DL_GLOBAL
12328 #  else
12329 #    define LT_DLGLOBAL         0
12330 #  endif
12331 #endif
12332
12333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12334    find out it does not work in some platform. */
12335 #ifndef LT_DLLAZY_OR_NOW
12336 #  ifdef RTLD_LAZY
12337 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12338 #  else
12339 #    ifdef DL_LAZY
12340 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12341 #    else
12342 #      ifdef RTLD_NOW
12343 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12344 #      else
12345 #        ifdef DL_NOW
12346 #          define LT_DLLAZY_OR_NOW      DL_NOW
12347 #        else
12348 #          define LT_DLLAZY_OR_NOW      0
12349 #        endif
12350 #      endif
12351 #    endif
12352 #  endif
12353 #endif
12354
12355 #ifdef __cplusplus
12356 extern "C" void exit (int);
12357 #endif
12358
12359 void fnord() { int i=42;}
12360 int main ()
12361 {
12362   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12363   int status = $lt_dlunknown;
12364
12365   if (self)
12366     {
12367       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12368       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12369       /* dlclose (self); */
12370     }
12371
12372     exit (status);
12373 }
12374 EOF
12375   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376   (eval $ac_link) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12380     (./conftest; exit; ) 2>/dev/null
12381     lt_status=$?
12382     case x$lt_status in
12383       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12384       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12385       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12386     esac
12387   else :
12388     # compilation failed
12389     lt_cv_dlopen_self=no
12390   fi
12391 fi
12392 rm -fr conftest*
12393
12394
12395 fi
12396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12397 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12398
12399     if test "x$lt_cv_dlopen_self" = xyes; then
12400       LDFLAGS="$LDFLAGS $link_static_flag"
12401       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12402 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12403 if test "${lt_cv_dlopen_self_static+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406           if test "$cross_compiling" = yes; then :
12407   lt_cv_dlopen_self_static=cross
12408 else
12409   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12410   lt_status=$lt_dlunknown
12411   cat > conftest.$ac_ext <<EOF
12412 #line 12412 "configure"
12413 #include "confdefs.h"
12414
12415 #if HAVE_DLFCN_H
12416 #include <dlfcn.h>
12417 #endif
12418
12419 #include <stdio.h>
12420
12421 #ifdef RTLD_GLOBAL
12422 #  define LT_DLGLOBAL           RTLD_GLOBAL
12423 #else
12424 #  ifdef DL_GLOBAL
12425 #    define LT_DLGLOBAL         DL_GLOBAL
12426 #  else
12427 #    define LT_DLGLOBAL         0
12428 #  endif
12429 #endif
12430
12431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12432    find out it does not work in some platform. */
12433 #ifndef LT_DLLAZY_OR_NOW
12434 #  ifdef RTLD_LAZY
12435 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12436 #  else
12437 #    ifdef DL_LAZY
12438 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12439 #    else
12440 #      ifdef RTLD_NOW
12441 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12442 #      else
12443 #        ifdef DL_NOW
12444 #          define LT_DLLAZY_OR_NOW      DL_NOW
12445 #        else
12446 #          define LT_DLLAZY_OR_NOW      0
12447 #        endif
12448 #      endif
12449 #    endif
12450 #  endif
12451 #endif
12452
12453 #ifdef __cplusplus
12454 extern "C" void exit (int);
12455 #endif
12456
12457 void fnord() { int i=42;}
12458 int main ()
12459 {
12460   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12461   int status = $lt_dlunknown;
12462
12463   if (self)
12464     {
12465       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12466       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12467       /* dlclose (self); */
12468     }
12469
12470     exit (status);
12471 }
12472 EOF
12473   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474   (eval $ac_link) 2>&5
12475   ac_status=$?
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12478     (./conftest; exit; ) 2>/dev/null
12479     lt_status=$?
12480     case x$lt_status in
12481       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12482       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12483       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12484     esac
12485   else :
12486     # compilation failed
12487     lt_cv_dlopen_self_static=no
12488   fi
12489 fi
12490 rm -fr conftest*
12491
12492
12493 fi
12494 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12496     fi
12497
12498     CPPFLAGS="$save_CPPFLAGS"
12499     LDFLAGS="$save_LDFLAGS"
12500     LIBS="$save_LIBS"
12501     ;;
12502   esac
12503
12504   case $lt_cv_dlopen_self in
12505   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12506   *) enable_dlopen_self=unknown ;;
12507   esac
12508
12509   case $lt_cv_dlopen_self_static in
12510   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12511   *) enable_dlopen_self_static=unknown ;;
12512   esac
12513 fi
12514
12515
12516 # The else clause should only fire when bootstrapping the
12517 # libtool distribution, otherwise you forgot to ship ltmain.sh
12518 # with your package, and you will get complaints that there are
12519 # no rules to generate ltmain.sh.
12520 if test -f "$ltmain"; then
12521   # See if we are running on zsh, and set the options which allow our commands through
12522   # without removal of \ escapes.
12523   if test -n "${ZSH_VERSION+set}" ; then
12524     setopt NO_GLOB_SUBST
12525   fi
12526   # Now quote all the things that may contain metacharacters while being
12527   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12528   # variables and quote the copies for generation of the libtool script.
12529   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12530     SED SHELL STRIP \
12531     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12532     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12533     deplibs_check_method reload_flag reload_cmds need_locks \
12534     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12535     lt_cv_sys_global_symbol_to_c_name_address \
12536     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12537     old_postinstall_cmds old_postuninstall_cmds \
12538     compiler_CXX \
12539     CC_CXX \
12540     LD_CXX \
12541     lt_prog_compiler_wl_CXX \
12542     lt_prog_compiler_pic_CXX \
12543     lt_prog_compiler_static_CXX \
12544     lt_prog_compiler_no_builtin_flag_CXX \
12545     export_dynamic_flag_spec_CXX \
12546     thread_safe_flag_spec_CXX \
12547     whole_archive_flag_spec_CXX \
12548     enable_shared_with_static_runtimes_CXX \
12549     old_archive_cmds_CXX \
12550     old_archive_from_new_cmds_CXX \
12551     predep_objects_CXX \
12552     postdep_objects_CXX \
12553     predeps_CXX \
12554     postdeps_CXX \
12555     compiler_lib_search_path_CXX \
12556     archive_cmds_CXX \
12557     archive_expsym_cmds_CXX \
12558     postinstall_cmds_CXX \
12559     postuninstall_cmds_CXX \
12560     old_archive_from_expsyms_cmds_CXX \
12561     allow_undefined_flag_CXX \
12562     no_undefined_flag_CXX \
12563     export_symbols_cmds_CXX \
12564     hardcode_libdir_flag_spec_CXX \
12565     hardcode_libdir_flag_spec_ld_CXX \
12566     hardcode_libdir_separator_CXX \
12567     hardcode_automatic_CXX \
12568     module_cmds_CXX \
12569     module_expsym_cmds_CXX \
12570     lt_cv_prog_compiler_c_o_CXX \
12571     exclude_expsyms_CXX \
12572     include_expsyms_CXX; do
12573
12574     case $var in
12575     old_archive_cmds_CXX | \
12576     old_archive_from_new_cmds_CXX | \
12577     archive_cmds_CXX | \
12578     archive_expsym_cmds_CXX | \
12579     module_cmds_CXX | \
12580     module_expsym_cmds_CXX | \
12581     old_archive_from_expsyms_cmds_CXX | \
12582     export_symbols_cmds_CXX | \
12583     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12584     postinstall_cmds | postuninstall_cmds | \
12585     old_postinstall_cmds | old_postuninstall_cmds | \
12586     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12587       # Double-quote double-evaled strings.
12588       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12589       ;;
12590     *)
12591       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12592       ;;
12593     esac
12594   done
12595
12596   case $lt_echo in
12597   *'\$0 --fallback-echo"')
12598     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12599     ;;
12600   esac
12601
12602 cfgfile="$ofile"
12603
12604   cat <<__EOF__ >> "$cfgfile"
12605 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12606
12607 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12608
12609 # Shell to use when invoking shell scripts.
12610 SHELL=$lt_SHELL
12611
12612 # Whether or not to build shared libraries.
12613 build_libtool_libs=$enable_shared
12614
12615 # Whether or not to build static libraries.
12616 build_old_libs=$enable_static
12617
12618 # Whether or not to add -lc for building shared libraries.
12619 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12620
12621 # Whether or not to disallow shared libs when runtime libs are static
12622 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12623
12624 # Whether or not to optimize for fast installation.
12625 fast_install=$enable_fast_install
12626
12627 # The host system.
12628 host_alias=$host_alias
12629 host=$host
12630
12631 # An echo program that does not interpret backslashes.
12632 echo=$lt_echo
12633
12634 # The archiver.
12635 AR=$lt_AR
12636 AR_FLAGS=$lt_AR_FLAGS
12637
12638 # A C compiler.
12639 LTCC=$lt_LTCC
12640
12641 # A language-specific compiler.
12642 CC=$lt_compiler_CXX
12643
12644 # Is the compiler the GNU C compiler?
12645 with_gcc=$GCC_CXX
12646
12647 # An ERE matcher.
12648 EGREP=$lt_EGREP
12649
12650 # The linker used to build libraries.
12651 LD=$lt_LD_CXX
12652
12653 # Whether we need hard or soft links.
12654 LN_S=$lt_LN_S
12655
12656 # A BSD-compatible nm program.
12657 NM=$lt_NM
12658
12659 # A symbol stripping program
12660 STRIP=$lt_STRIP
12661
12662 # Used to examine libraries when file_magic_cmd begins "file"
12663 MAGIC_CMD=$MAGIC_CMD
12664
12665 # Used on cygwin: DLL creation program.
12666 DLLTOOL="$DLLTOOL"
12667
12668 # Used on cygwin: object dumper.
12669 OBJDUMP="$OBJDUMP"
12670
12671 # Used on cygwin: assembler.
12672 AS="$AS"
12673
12674 # The name of the directory that contains temporary libtool files.
12675 objdir=$objdir
12676
12677 # How to create reloadable object files.
12678 reload_flag=$lt_reload_flag
12679 reload_cmds=$lt_reload_cmds
12680
12681 # How to pass a linker flag through the compiler.
12682 wl=$lt_lt_prog_compiler_wl_CXX
12683
12684 # Object file suffix (normally "o").
12685 objext="$ac_objext"
12686
12687 # Old archive suffix (normally "a").
12688 libext="$libext"
12689
12690 # Shared library suffix (normally ".so").
12691 shrext_cmds='$shrext_cmds'
12692
12693 # Executable file suffix (normally "").
12694 exeext="$exeext"
12695
12696 # Additional compiler flags for building library objects.
12697 pic_flag=$lt_lt_prog_compiler_pic_CXX
12698 pic_mode=$pic_mode
12699
12700 # What is the maximum length of a command?
12701 max_cmd_len=$lt_cv_sys_max_cmd_len
12702
12703 # Does compiler simultaneously support -c and -o options?
12704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12705
12706 # Must we lock files when doing compilation ?
12707 need_locks=$lt_need_locks
12708
12709 # Do we need the lib prefix for modules?
12710 need_lib_prefix=$need_lib_prefix
12711
12712 # Do we need a version for libraries?
12713 need_version=$need_version
12714
12715 # Whether dlopen is supported.
12716 dlopen_support=$enable_dlopen
12717
12718 # Whether dlopen of programs is supported.
12719 dlopen_self=$enable_dlopen_self
12720
12721 # Whether dlopen of statically linked programs is supported.
12722 dlopen_self_static=$enable_dlopen_self_static
12723
12724 # Compiler flag to prevent dynamic linking.
12725 link_static_flag=$lt_lt_prog_compiler_static_CXX
12726
12727 # Compiler flag to turn off builtin functions.
12728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12729
12730 # Compiler flag to allow reflexive dlopens.
12731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12732
12733 # Compiler flag to generate shared objects directly from archives.
12734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12735
12736 # Compiler flag to generate thread-safe objects.
12737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12738
12739 # Library versioning type.
12740 version_type=$version_type
12741
12742 # Format of library name prefix.
12743 libname_spec=$lt_libname_spec
12744
12745 # List of archive names.  First name is the real one, the rest are links.
12746 # The last name is the one that the linker finds with -lNAME.
12747 library_names_spec=$lt_library_names_spec
12748
12749 # The coded name of the library, if different from the real name.
12750 soname_spec=$lt_soname_spec
12751
12752 # Commands used to build and install an old-style archive.
12753 RANLIB=$lt_RANLIB
12754 old_archive_cmds=$lt_old_archive_cmds_CXX
12755 old_postinstall_cmds=$lt_old_postinstall_cmds
12756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12757
12758 # Create an old-style archive from a shared archive.
12759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12760
12761 # Create a temporary old-style archive to link instead of a shared archive.
12762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12763
12764 # Commands used to build and install a shared archive.
12765 archive_cmds=$lt_archive_cmds_CXX
12766 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12767 postinstall_cmds=$lt_postinstall_cmds
12768 postuninstall_cmds=$lt_postuninstall_cmds
12769
12770 # Commands used to build a loadable module (assumed same as above if empty)
12771 module_cmds=$lt_module_cmds_CXX
12772 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12773
12774 # Commands to strip libraries.
12775 old_striplib=$lt_old_striplib
12776 striplib=$lt_striplib
12777
12778 # Dependencies to place before the objects being linked to create a
12779 # shared library.
12780 predep_objects=$lt_predep_objects_CXX
12781
12782 # Dependencies to place after the objects being linked to create a
12783 # shared library.
12784 postdep_objects=$lt_postdep_objects_CXX
12785
12786 # Dependencies to place before the objects being linked to create a
12787 # shared library.
12788 predeps=$lt_predeps_CXX
12789
12790 # Dependencies to place after the objects being linked to create a
12791 # shared library.
12792 postdeps=$lt_postdeps_CXX
12793
12794 # The library search path used internally by the compiler when linking
12795 # a shared library.
12796 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12797
12798 # Method to check whether dependent libraries are shared objects.
12799 deplibs_check_method=$lt_deplibs_check_method
12800
12801 # Command to use when deplibs_check_method == file_magic.
12802 file_magic_cmd=$lt_file_magic_cmd
12803
12804 # Flag that allows shared libraries with undefined symbols to be built.
12805 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12806
12807 # Flag that forces no undefined symbols.
12808 no_undefined_flag=$lt_no_undefined_flag_CXX
12809
12810 # Commands used to finish a libtool library installation in a directory.
12811 finish_cmds=$lt_finish_cmds
12812
12813 # Same as above, but a single script fragment to be evaled but not shown.
12814 finish_eval=$lt_finish_eval
12815
12816 # Take the output of nm and produce a listing of raw symbols and C names.
12817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12818
12819 # Transform the output of nm in a proper C declaration
12820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12821
12822 # Transform the output of nm in a C name address pair
12823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12824
12825 # This is the shared library runtime path variable.
12826 runpath_var=$runpath_var
12827
12828 # This is the shared library path variable.
12829 shlibpath_var=$shlibpath_var
12830
12831 # Is shlibpath searched before the hard-coded library search path?
12832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12833
12834 # How to hardcode a shared library path into an executable.
12835 hardcode_action=$hardcode_action_CXX
12836
12837 # Whether we should hardcode library paths into libraries.
12838 hardcode_into_libs=$hardcode_into_libs
12839
12840 # Flag to hardcode \$libdir into a binary during linking.
12841 # This must work even if \$libdir does not exist.
12842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12843
12844 # If ld is used when linking, flag to hardcode \$libdir into
12845 # a binary during linking. This must work even if \$libdir does
12846 # not exist.
12847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12848
12849 # Whether we need a single -rpath flag with a separated argument.
12850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12851
12852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12853 # resulting binary.
12854 hardcode_direct=$hardcode_direct_CXX
12855
12856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12857 # resulting binary.
12858 hardcode_minus_L=$hardcode_minus_L_CXX
12859
12860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12861 # the resulting binary.
12862 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12863
12864 # Set to yes if building a shared library automatically hardcodes DIR into the library
12865 # and all subsequent libraries and executables linked against it.
12866 hardcode_automatic=$hardcode_automatic_CXX
12867
12868 # Variables whose values should be saved in libtool wrapper scripts and
12869 # restored at relink time.
12870 variables_saved_for_relink="$variables_saved_for_relink"
12871
12872 # Whether libtool must link a program against all its dependency libraries.
12873 link_all_deplibs=$link_all_deplibs_CXX
12874
12875 # Compile-time system search path for libraries
12876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12877
12878 # Run-time system search path for libraries
12879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12880
12881 # Fix the shell variable \$srcfile for the compiler.
12882 fix_srcfile_path="$fix_srcfile_path_CXX"
12883
12884 # Set to yes if exported symbols are required.
12885 always_export_symbols=$always_export_symbols_CXX
12886
12887 # The commands to list exported symbols.
12888 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12889
12890 # The commands to extract the exported symbol list from a shared archive.
12891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12892
12893 # Symbols that should not be listed in the preloaded symbols.
12894 exclude_expsyms=$lt_exclude_expsyms_CXX
12895
12896 # Symbols that must always be exported.
12897 include_expsyms=$lt_include_expsyms_CXX
12898
12899 # ### END LIBTOOL TAG CONFIG: $tagname
12900
12901 __EOF__
12902
12903
12904 else
12905   # If there is no Makefile yet, we rely on a make rule to execute
12906   # `config.status --recheck' to rerun these tests and create the
12907   # libtool script then.
12908   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12909   if test -f "$ltmain_in"; then
12910     test -f Makefile && make "$ltmain"
12911   fi
12912 fi
12913
12914
12915 ac_ext=c
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920
12921 CC=$lt_save_CC
12922 LDCXX=$LD
12923 LD=$lt_save_LD
12924 GCC=$lt_save_GCC
12925 with_gnu_ldcxx=$with_gnu_ld
12926 with_gnu_ld=$lt_save_with_gnu_ld
12927 lt_cv_path_LDCXX=$lt_cv_path_LD
12928 lt_cv_path_LD=$lt_save_path_LD
12929 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12930 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12931
12932         else
12933           tagname=""
12934         fi
12935         ;;
12936
12937       F77)
12938         if test -n "$F77" && test "X$F77" != "Xno"; then
12939
12940 ac_ext=f
12941 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12942 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12944
12945
12946 archive_cmds_need_lc_F77=no
12947 allow_undefined_flag_F77=
12948 always_export_symbols_F77=no
12949 archive_expsym_cmds_F77=
12950 export_dynamic_flag_spec_F77=
12951 hardcode_direct_F77=no
12952 hardcode_libdir_flag_spec_F77=
12953 hardcode_libdir_flag_spec_ld_F77=
12954 hardcode_libdir_separator_F77=
12955 hardcode_minus_L_F77=no
12956 hardcode_automatic_F77=no
12957 module_cmds_F77=
12958 module_expsym_cmds_F77=
12959 link_all_deplibs_F77=unknown
12960 old_archive_cmds_F77=$old_archive_cmds
12961 no_undefined_flag_F77=
12962 whole_archive_flag_spec_F77=
12963 enable_shared_with_static_runtimes_F77=no
12964
12965 # Source file extension for f77 test sources.
12966 ac_ext=f
12967
12968 # Object file extension for compiled f77 test sources.
12969 objext=o
12970 objext_F77=$objext
12971
12972 # Code to be used in simple compile tests
12973 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12974
12975 # Code to be used in simple link tests
12976 lt_simple_link_test_code="      program t\n      end\n"
12977
12978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12979
12980 # If no C compiler was specified, use CC.
12981 LTCC=${LTCC-"$CC"}
12982
12983 # Allow CC to be a program name with arguments.
12984 compiler=$CC
12985
12986
12987 # Allow CC to be a program name with arguments.
12988 lt_save_CC="$CC"
12989 CC=${F77-"f77"}
12990 compiler=$CC
12991 compiler_F77=$CC
12992 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12993
12994 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12995 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12996 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12997 echo "${ECHO_T}$can_build_shared" >&6
12998
12999 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13000 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13001 test "$can_build_shared" = "no" && enable_shared=no
13002
13003 # On AIX, shared libraries and static libraries use the same namespace, and
13004 # are all built from PIC.
13005 case "$host_os" in
13006 aix3*)
13007   test "$enable_shared" = yes && enable_static=no
13008   if test -n "$RANLIB"; then
13009     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13010     postinstall_cmds='$RANLIB $lib'
13011   fi
13012   ;;
13013 aix4* | aix5*)
13014   test "$enable_shared" = yes && enable_static=no
13015   ;;
13016 esac
13017 echo "$as_me:$LINENO: result: $enable_shared" >&5
13018 echo "${ECHO_T}$enable_shared" >&6
13019
13020 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13021 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13022 # Make sure either enable_shared or enable_static is yes.
13023 test "$enable_shared" = yes || enable_static=yes
13024 echo "$as_me:$LINENO: result: $enable_static" >&5
13025 echo "${ECHO_T}$enable_static" >&6
13026
13027 test "$ld_shlibs_F77" = no && can_build_shared=no
13028
13029 GCC_F77="$G77"
13030 LD_F77="$LD"
13031
13032 lt_prog_compiler_wl_F77=
13033 lt_prog_compiler_pic_F77=
13034 lt_prog_compiler_static_F77=
13035
13036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13038
13039   if test "$GCC" = yes; then
13040     lt_prog_compiler_wl_F77='-Wl,'
13041     lt_prog_compiler_static_F77='-static'
13042
13043     case $host_os in
13044       aix*)
13045       # All AIX code is PIC.
13046       if test "$host_cpu" = ia64; then
13047         # AIX 5 now supports IA64 processor
13048         lt_prog_compiler_static_F77='-Bstatic'
13049       fi
13050       ;;
13051
13052     amigaos*)
13053       # FIXME: we need at least 68020 code to build shared libraries, but
13054       # adding the `-m68020' flag to GCC prevents building anything better,
13055       # like `-m68040'.
13056       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13057       ;;
13058
13059     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060       # PIC is the default for these OSes.
13061       ;;
13062
13063     mingw* | pw32* | os2*)
13064       # This hack is so that the source file can tell whether it is being
13065       # built for inclusion in a dll (and should export symbols for example).
13066       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13067       ;;
13068
13069     darwin* | rhapsody*)
13070       # PIC is the default on this platform
13071       # Common symbols not allowed in MH_DYLIB files
13072       lt_prog_compiler_pic_F77='-fno-common'
13073       ;;
13074
13075     msdosdjgpp*)
13076       # Just because we use GCC doesn't mean we suddenly get shared libraries
13077       # on systems that don't support them.
13078       lt_prog_compiler_can_build_shared_F77=no
13079       enable_shared=no
13080       ;;
13081
13082     sysv4*MP*)
13083       if test -d /usr/nec; then
13084         lt_prog_compiler_pic_F77=-Kconform_pic
13085       fi
13086       ;;
13087
13088     hpux*)
13089       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13090       # not for PA HP-UX.
13091       case "$host_cpu" in
13092       hppa*64*|ia64*)
13093         # +Z the default
13094         ;;
13095       *)
13096         lt_prog_compiler_pic_F77='-fPIC'
13097         ;;
13098       esac
13099       ;;
13100
13101     *)
13102       lt_prog_compiler_pic_F77='-fPIC'
13103       ;;
13104     esac
13105   else
13106     # PORTME Check for flag to pass linker flags through the system compiler.
13107     case $host_os in
13108     aix*)
13109       lt_prog_compiler_wl_F77='-Wl,'
13110       if test "$host_cpu" = ia64; then
13111         # AIX 5 now supports IA64 processor
13112         lt_prog_compiler_static_F77='-Bstatic'
13113       else
13114         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13115       fi
13116       ;;
13117       darwin*)
13118         # PIC is the default on this platform
13119         # Common symbols not allowed in MH_DYLIB files
13120        case "$cc_basename" in
13121          xlc*)
13122          lt_prog_compiler_pic_F77='-qnocommon'
13123          lt_prog_compiler_wl_F77='-Wl,'
13124          ;;
13125        esac
13126        ;;
13127
13128     mingw* | pw32* | os2*)
13129       # This hack is so that the source file can tell whether it is being
13130       # built for inclusion in a dll (and should export symbols for example).
13131       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13132       ;;
13133
13134     hpux9* | hpux10* | hpux11*)
13135       lt_prog_compiler_wl_F77='-Wl,'
13136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13137       # not for PA HP-UX.
13138       case "$host_cpu" in
13139       hppa*64*|ia64*)
13140         # +Z the default
13141         ;;
13142       *)
13143         lt_prog_compiler_pic_F77='+Z'
13144         ;;
13145       esac
13146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13147       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13148       ;;
13149
13150     irix5* | irix6* | nonstopux*)
13151       lt_prog_compiler_wl_F77='-Wl,'
13152       # PIC (with -KPIC) is the default.
13153       lt_prog_compiler_static_F77='-non_shared'
13154       ;;
13155
13156     newsos6)
13157       lt_prog_compiler_pic_F77='-KPIC'
13158       lt_prog_compiler_static_F77='-Bstatic'
13159       ;;
13160
13161     linux*)
13162       case $CC in
13163       icc* | ecc*)
13164         lt_prog_compiler_wl_F77='-Wl,'
13165         lt_prog_compiler_pic_F77='-KPIC'
13166         lt_prog_compiler_static_F77='-static'
13167         ;;
13168       ccc*)
13169         lt_prog_compiler_wl_F77='-Wl,'
13170         # All Alpha code is PIC.
13171         lt_prog_compiler_static_F77='-non_shared'
13172         ;;
13173       esac
13174       ;;
13175
13176     osf3* | osf4* | osf5*)
13177       lt_prog_compiler_wl_F77='-Wl,'
13178       # All OSF/1 code is PIC.
13179       lt_prog_compiler_static_F77='-non_shared'
13180       ;;
13181
13182     sco3.2v5*)
13183       lt_prog_compiler_pic_F77='-Kpic'
13184       lt_prog_compiler_static_F77='-dn'
13185       ;;
13186
13187     solaris*)
13188       lt_prog_compiler_wl_F77='-Wl,'
13189       lt_prog_compiler_pic_F77='-KPIC'
13190       lt_prog_compiler_static_F77='-Bstatic'
13191       ;;
13192
13193     sunos4*)
13194       lt_prog_compiler_wl_F77='-Qoption ld '
13195       lt_prog_compiler_pic_F77='-PIC'
13196       lt_prog_compiler_static_F77='-Bstatic'
13197       ;;
13198
13199     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13200       lt_prog_compiler_wl_F77='-Wl,'
13201       lt_prog_compiler_pic_F77='-KPIC'
13202       lt_prog_compiler_static_F77='-Bstatic'
13203       ;;
13204
13205     sysv4*MP*)
13206       if test -d /usr/nec ;then
13207         lt_prog_compiler_pic_F77='-Kconform_pic'
13208         lt_prog_compiler_static_F77='-Bstatic'
13209       fi
13210       ;;
13211
13212     uts4*)
13213       lt_prog_compiler_pic_F77='-pic'
13214       lt_prog_compiler_static_F77='-Bstatic'
13215       ;;
13216
13217     *)
13218       lt_prog_compiler_can_build_shared_F77=no
13219       ;;
13220     esac
13221   fi
13222
13223 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13224 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13225
13226 #
13227 # Check to make sure the PIC flag actually works.
13228 #
13229 if test -n "$lt_prog_compiler_pic_F77"; then
13230
13231 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13232 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13233 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13234   echo $ECHO_N "(cached) $ECHO_C" >&6
13235 else
13236   lt_prog_compiler_pic_works_F77=no
13237   ac_outfile=conftest.$ac_objext
13238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13239    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13240    # Insert the option either (1) after the last *FLAGS variable, or
13241    # (2) before a word containing "conftest.", or (3) at the end.
13242    # Note that $ac_compile itself does not contain backslashes and begins
13243    # with a dollar sign (not a hyphen), so the echo should work correctly.
13244    # The option is referenced via a variable to avoid confusing sed.
13245    lt_compile=`echo "$ac_compile" | $SED \
13246    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13248    -e 's:$: $lt_compiler_flag:'`
13249    (eval echo "\"\$as_me:13249: $lt_compile\"" >&5)
13250    (eval "$lt_compile" 2>conftest.err)
13251    ac_status=$?
13252    cat conftest.err >&5
13253    echo "$as_me:13253: \$? = $ac_status" >&5
13254    if (exit $ac_status) && test -s "$ac_outfile"; then
13255      # The compiler can only warn and ignore the option if not recognized
13256      # So say no if there are warnings
13257      if test ! -s conftest.err; then
13258        lt_prog_compiler_pic_works_F77=yes
13259      fi
13260    fi
13261    $rm conftest*
13262
13263 fi
13264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13265 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13266
13267 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13268     case $lt_prog_compiler_pic_F77 in
13269      "" | " "*) ;;
13270      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13271      esac
13272 else
13273     lt_prog_compiler_pic_F77=
13274      lt_prog_compiler_can_build_shared_F77=no
13275 fi
13276
13277 fi
13278 case "$host_os" in
13279   # For platforms which do not support PIC, -DPIC is meaningless:
13280   *djgpp*)
13281     lt_prog_compiler_pic_F77=
13282     ;;
13283   *)
13284     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13285     ;;
13286 esac
13287
13288 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13289 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13290 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13291   echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293   lt_cv_prog_compiler_c_o_F77=no
13294    $rm -r conftest 2>/dev/null
13295    mkdir conftest
13296    cd conftest
13297    mkdir out
13298    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13299
13300    lt_compiler_flag="-o out/conftest2.$ac_objext"
13301    # Insert the option either (1) after the last *FLAGS variable, or
13302    # (2) before a word containing "conftest.", or (3) at the end.
13303    # Note that $ac_compile itself does not contain backslashes and begins
13304    # with a dollar sign (not a hyphen), so the echo should work correctly.
13305    lt_compile=`echo "$ac_compile" | $SED \
13306    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13308    -e 's:$: $lt_compiler_flag:'`
13309    (eval echo "\"\$as_me:13309: $lt_compile\"" >&5)
13310    (eval "$lt_compile" 2>out/conftest.err)
13311    ac_status=$?
13312    cat out/conftest.err >&5
13313    echo "$as_me:13313: \$? = $ac_status" >&5
13314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13315    then
13316      # The compiler can only warn and ignore the option if not recognized
13317      # So say no if there are warnings
13318      if test ! -s out/conftest.err; then
13319        lt_cv_prog_compiler_c_o_F77=yes
13320      fi
13321    fi
13322    chmod u+w .
13323    $rm conftest*
13324    # SGI C++ compiler will create directory out/ii_files/ for
13325    # template instantiation
13326    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13327    $rm out/* && rmdir out
13328    cd ..
13329    rmdir conftest
13330    $rm conftest*
13331
13332 fi
13333 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13334 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13335
13336
13337 hard_links="nottested"
13338 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13339   # do not overwrite the value of need_locks provided by the user
13340   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13341 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13342   hard_links=yes
13343   $rm conftest*
13344   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13345   touch conftest.a
13346   ln conftest.a conftest.b 2>&5 || hard_links=no
13347   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348   echo "$as_me:$LINENO: result: $hard_links" >&5
13349 echo "${ECHO_T}$hard_links" >&6
13350   if test "$hard_links" = no; then
13351     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13352 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13353     need_locks=warn
13354   fi
13355 else
13356   need_locks=no
13357 fi
13358
13359 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13360 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13361
13362   runpath_var=
13363   allow_undefined_flag_F77=
13364   enable_shared_with_static_runtimes_F77=no
13365   archive_cmds_F77=
13366   archive_expsym_cmds_F77=
13367   old_archive_From_new_cmds_F77=
13368   old_archive_from_expsyms_cmds_F77=
13369   export_dynamic_flag_spec_F77=
13370   whole_archive_flag_spec_F77=
13371   thread_safe_flag_spec_F77=
13372   hardcode_libdir_flag_spec_F77=
13373   hardcode_libdir_flag_spec_ld_F77=
13374   hardcode_libdir_separator_F77=
13375   hardcode_direct_F77=no
13376   hardcode_minus_L_F77=no
13377   hardcode_shlibpath_var_F77=unsupported
13378   link_all_deplibs_F77=unknown
13379   hardcode_automatic_F77=no
13380   module_cmds_F77=
13381   module_expsym_cmds_F77=
13382   always_export_symbols_F77=no
13383   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384   # include_expsyms should be a list of space-separated symbols to be *always*
13385   # included in the symbol list
13386   include_expsyms_F77=
13387   # exclude_expsyms can be an extended regexp of symbols to exclude
13388   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13389   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13390   # as well as any symbol that contains `d'.
13391   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13392   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13393   # platforms (ab)use it in PIC code, but their linkers get confused if
13394   # the symbol is explicitly referenced.  Since portable code cannot
13395   # rely on this symbol name, it's probably fine to never include it in
13396   # preloaded symbol tables.
13397   extract_expsyms_cmds=
13398
13399   case $host_os in
13400   cygwin* | mingw* | pw32*)
13401     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13402     # When not using gcc, we currently assume that we are using
13403     # Microsoft Visual C++.
13404     if test "$GCC" != yes; then
13405       with_gnu_ld=no
13406     fi
13407     ;;
13408   openbsd*)
13409     with_gnu_ld=no
13410     ;;
13411   esac
13412
13413   ld_shlibs_F77=yes
13414   if test "$with_gnu_ld" = yes; then
13415     # If archive_cmds runs LD, not CC, wlarc should be empty
13416     wlarc='${wl}'
13417
13418     # See if GNU ld supports shared libraries.
13419     case $host_os in
13420     aix3* | aix4* | aix5*)
13421       # On AIX/PPC, the GNU linker is very broken
13422       if test "$host_cpu" != ia64; then
13423         ld_shlibs_F77=no
13424         cat <<EOF 1>&2
13425
13426 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13427 *** to be unable to reliably create shared libraries on AIX.
13428 *** Therefore, libtool is disabling shared libraries support.  If you
13429 *** really care for shared libraries, you may want to modify your PATH
13430 *** so that a non-GNU linker is found, and then restart.
13431
13432 EOF
13433       fi
13434       ;;
13435
13436     amigaos*)
13437       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)'
13438       hardcode_libdir_flag_spec_F77='-L$libdir'
13439       hardcode_minus_L_F77=yes
13440
13441       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13442       # that the semantics of dynamic libraries on AmigaOS, at least up
13443       # to version 4, is to share data among multiple programs linked
13444       # with the same dynamic library.  Since this doesn't match the
13445       # behavior of shared libraries on other platforms, we can't use
13446       # them.
13447       ld_shlibs_F77=no
13448       ;;
13449
13450     beos*)
13451       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13452         allow_undefined_flag_F77=unsupported
13453         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13454         # support --undefined.  This deserves some investigation.  FIXME
13455         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13456       else
13457         ld_shlibs_F77=no
13458       fi
13459       ;;
13460
13461     cygwin* | mingw* | pw32*)
13462       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13463       # as there is no search path for DLLs.
13464       hardcode_libdir_flag_spec_F77='-L$libdir'
13465       allow_undefined_flag_F77=unsupported
13466       always_export_symbols_F77=no
13467       enable_shared_with_static_runtimes_F77=yes
13468       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13469
13470       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13471         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13472         # If the export-symbols file already is a .def file (1st line
13473         # is EXPORTS), use it as is; otherwise, prepend...
13474         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13475           cp $export_symbols $output_objdir/$soname.def;
13476         else
13477           echo EXPORTS > $output_objdir/$soname.def;
13478           cat $export_symbols >> $output_objdir/$soname.def;
13479         fi~
13480         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13481       else
13482         ld_shlibs=no
13483       fi
13484       ;;
13485
13486     netbsd*)
13487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13488         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13489         wlarc=
13490       else
13491         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13493       fi
13494       ;;
13495
13496     solaris* | sysv5*)
13497       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13498         ld_shlibs_F77=no
13499         cat <<EOF 1>&2
13500
13501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13502 *** create shared libraries on Solaris systems.  Therefore, libtool
13503 *** is disabling shared libraries support.  We urge you to upgrade GNU
13504 *** binutils to release 2.9.1 or newer.  Another option is to modify
13505 *** your PATH or compiler configuration so that the native linker is
13506 *** used, and then restart.
13507
13508 EOF
13509       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13510         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13511         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13512       else
13513         ld_shlibs_F77=no
13514       fi
13515       ;;
13516
13517     sunos4*)
13518       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13519       wlarc=
13520       hardcode_direct_F77=yes
13521       hardcode_shlibpath_var_F77=no
13522       ;;
13523
13524   linux*)
13525     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13526         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13527         archive_cmds_F77="$tmp_archive_cmds"
13528       supports_anon_versioning=no
13529       case `$LD -v 2>/dev/null` in
13530         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13531         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13532         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13533         *\ 2.11.*) ;; # other 2.11 versions
13534         *) supports_anon_versioning=yes ;;
13535       esac
13536       if test $supports_anon_versioning = yes; then
13537         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13539 $echo "local: *; };" >> $output_objdir/$libname.ver~
13540         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13541       else
13542         archive_expsym_cmds_F77="$tmp_archive_cmds"
13543       fi
13544     else
13545       ld_shlibs_F77=no
13546     fi
13547     ;;
13548
13549     *)
13550       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13551         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13553       else
13554         ld_shlibs_F77=no
13555       fi
13556       ;;
13557     esac
13558
13559     if test "$ld_shlibs_F77" = yes; then
13560       runpath_var=LD_RUN_PATH
13561       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13562       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13563       # ancient GNU ld didn't support --whole-archive et. al.
13564       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13565         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13566       else
13567         whole_archive_flag_spec_F77=
13568       fi
13569     fi
13570   else
13571     # PORTME fill in a description of your system's linker (not GNU ld)
13572     case $host_os in
13573     aix3*)
13574       allow_undefined_flag_F77=unsupported
13575       always_export_symbols_F77=yes
13576       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'
13577       # Note: this linker hardcodes the directories in LIBPATH if there
13578       # are no directories specified by -L.
13579       hardcode_minus_L_F77=yes
13580       if test "$GCC" = yes && test -z "$link_static_flag"; then
13581         # Neither direct hardcoding nor static linking is supported with a
13582         # broken collect2.
13583         hardcode_direct_F77=unsupported
13584       fi
13585       ;;
13586
13587     aix4* | aix5*)
13588       if test "$host_cpu" = ia64; then
13589         # On IA64, the linker does run time linking by default, so we don't
13590         # have to do anything special.
13591         aix_use_runtimelinking=no
13592         exp_sym_flag='-Bexport'
13593         no_entry_flag=""
13594       else
13595         # If we're using GNU nm, then we don't want the "-C" option.
13596         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13597         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13598           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'
13599         else
13600           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'
13601         fi
13602         aix_use_runtimelinking=no
13603
13604         # Test if we are trying to use run time linking or normal
13605         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13606         # need to do runtime linking.
13607         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13608           for ld_flag in $LDFLAGS; do
13609           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13610             aix_use_runtimelinking=yes
13611             break
13612           fi
13613           done
13614         esac
13615
13616         exp_sym_flag='-bexport'
13617         no_entry_flag='-bnoentry'
13618       fi
13619
13620       # When large executables or shared objects are built, AIX ld can
13621       # have problems creating the table of contents.  If linking a library
13622       # or program results in "error TOC overflow" add -mminimal-toc to
13623       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13624       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13625
13626       archive_cmds_F77=''
13627       hardcode_direct_F77=yes
13628       hardcode_libdir_separator_F77=':'
13629       link_all_deplibs_F77=yes
13630
13631       if test "$GCC" = yes; then
13632         case $host_os in aix4.012|aix4.012.*)
13633         # We only want to do this on AIX 4.2 and lower, the check
13634         # below for broken collect2 doesn't work under 4.3+
13635           collect2name=`${CC} -print-prog-name=collect2`
13636           if test -f "$collect2name" && \
13637            strings "$collect2name" | grep resolve_lib_name >/dev/null
13638           then
13639           # We have reworked collect2
13640           hardcode_direct_F77=yes
13641           else
13642           # We have old collect2
13643           hardcode_direct_F77=unsupported
13644           # It fails to find uninstalled libraries when the uninstalled
13645           # path is not listed in the libpath.  Setting hardcode_minus_L
13646           # to unsupported forces relinking
13647           hardcode_minus_L_F77=yes
13648           hardcode_libdir_flag_spec_F77='-L$libdir'
13649           hardcode_libdir_separator_F77=
13650           fi
13651         esac
13652         shared_flag='-shared'
13653       else
13654         # not using gcc
13655         if test "$host_cpu" = ia64; then
13656         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13657         # chokes on -Wl,-G. The following line is correct:
13658           shared_flag='-G'
13659         else
13660         if test "$aix_use_runtimelinking" = yes; then
13661             shared_flag='${wl}-G'
13662           else
13663             shared_flag='${wl}-bM:SRE'
13664         fi
13665         fi
13666       fi
13667
13668       # It seems that -bexpall does not export symbols beginning with
13669       # underscore (_), so it is better to generate a list of symbols to export.
13670       always_export_symbols_F77=yes
13671       if test "$aix_use_runtimelinking" = yes; then
13672         # Warning - without using the other runtime loading flags (-brtl),
13673         # -berok will link without error, but may produce a broken library.
13674         allow_undefined_flag_F77='-berok'
13675        # Determine the default libpath from the value encoded in an empty executable.
13676        cat >conftest.$ac_ext <<_ACEOF
13677       program main
13678
13679       end
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683   (eval $ac_link) 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -z "$ac_f77_werror_flag"
13691                          || test ! -s conftest.err'
13692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693   (eval $ac_try) 2>&5
13694   ac_status=$?
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); }; } &&
13697          { ac_try='test -s conftest$ac_exeext'
13698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699   (eval $ac_try) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; }; then
13703
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13705 }'`
13706 # Check for a 64-bit object if we didn't find anything.
13707 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; }
13708 }'`; fi
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 fi
13714 rm -f conftest.err conftest.$ac_objext \
13715       conftest$ac_exeext conftest.$ac_ext
13716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13717
13718        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13719         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"
13720        else
13721         if test "$host_cpu" = ia64; then
13722           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13723           allow_undefined_flag_F77="-z nodefs"
13724           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"
13725         else
13726          # Determine the default libpath from the value encoded in an empty executable.
13727          cat >conftest.$ac_ext <<_ACEOF
13728       program main
13729
13730       end
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13734   (eval $ac_link) 2>conftest.er1
13735   ac_status=$?
13736   grep -v '^ *+' conftest.er1 >conftest.err
13737   rm -f conftest.er1
13738   cat conftest.err >&5
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); } &&
13741          { ac_try='test -z "$ac_f77_werror_flag"
13742                          || test ! -s conftest.err'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; } &&
13748          { ac_try='test -s conftest$ac_exeext'
13749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750   (eval $ac_try) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); }; }; then
13754
13755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13756 }'`
13757 # Check for a 64-bit object if we didn't find anything.
13758 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; }
13759 }'`; fi
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 fi
13765 rm -f conftest.err conftest.$ac_objext \
13766       conftest$ac_exeext conftest.$ac_ext
13767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13768
13769          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13770           # Warning - without using the other run time loading flags,
13771           # -berok will link without error, but may produce a broken library.
13772           no_undefined_flag_F77=' ${wl}-bernotok'
13773           allow_undefined_flag_F77=' ${wl}-berok'
13774           # -bexpall does not export symbols beginning with underscore (_)
13775           always_export_symbols_F77=yes
13776           # Exported symbols can be pulled into shared objects from archives
13777           whole_archive_flag_spec_F77=' '
13778           archive_cmds_need_lc_F77=yes
13779           # This is similar to how AIX traditionally builds it's shared libraries.
13780           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'
13781         fi
13782       fi
13783       ;;
13784
13785     amigaos*)
13786       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)'
13787       hardcode_libdir_flag_spec_F77='-L$libdir'
13788       hardcode_minus_L_F77=yes
13789       # see comment about different semantics on the GNU ld section
13790       ld_shlibs_F77=no
13791       ;;
13792
13793     bsdi[45]*)
13794       export_dynamic_flag_spec_F77=-rdynamic
13795       ;;
13796
13797     cygwin* | mingw* | pw32*)
13798       # When not using gcc, we currently assume that we are using
13799       # Microsoft Visual C++.
13800       # hardcode_libdir_flag_spec is actually meaningless, as there is
13801       # no search path for DLLs.
13802       hardcode_libdir_flag_spec_F77=' '
13803       allow_undefined_flag_F77=unsupported
13804       # Tell ltmain to make .lib files, not .a files.
13805       libext=lib
13806       # Tell ltmain to make .dll files, not .so files.
13807       shrext_cmds=".dll"
13808       # FIXME: Setting linknames here is a bad hack.
13809       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13810       # The linker will automatically build a .lib file if we build a DLL.
13811       old_archive_From_new_cmds_F77='true'
13812       # FIXME: Should let the user specify the lib program.
13813       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13814       fix_srcfile_path='`cygpath -w "$srcfile"`'
13815       enable_shared_with_static_runtimes_F77=yes
13816       ;;
13817
13818     darwin* | rhapsody*)
13819       case "$host_os" in
13820         rhapsody* | darwin1.[012])
13821          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13822          ;;
13823        *) # Darwin 1.3 on
13824          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13825            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13826          else
13827            case ${MACOSX_DEPLOYMENT_TARGET} in
13828              10.[012])
13829                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13830                ;;
13831              10.*)
13832                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13833                ;;
13834            esac
13835          fi
13836          ;;
13837       esac
13838       archive_cmds_need_lc_F77=no
13839       hardcode_direct_F77=no
13840       hardcode_automatic_F77=yes
13841       hardcode_shlibpath_var_F77=unsupported
13842       whole_archive_flag_spec_F77=''
13843       link_all_deplibs_F77=yes
13844     if test "$GCC" = yes ; then
13845         output_verbose_link_cmd='echo'
13846         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13847       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13848       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13849       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}'
13850       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}'
13851     else
13852       case "$cc_basename" in
13853         xlc*)
13854          output_verbose_link_cmd='echo'
13855          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13856          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13857           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13858          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}'
13859           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}'
13860           ;;
13861        *)
13862          ld_shlibs_F77=no
13863           ;;
13864       esac
13865     fi
13866       ;;
13867
13868     dgux*)
13869       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870       hardcode_libdir_flag_spec_F77='-L$libdir'
13871       hardcode_shlibpath_var_F77=no
13872       ;;
13873
13874     freebsd1*)
13875       ld_shlibs_F77=no
13876       ;;
13877
13878     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13879     # support.  Future versions do this automatically, but an explicit c++rt0.o
13880     # does not break anything, and helps significantly (at the cost of a little
13881     # extra space).
13882     freebsd2.2*)
13883       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13884       hardcode_libdir_flag_spec_F77='-R$libdir'
13885       hardcode_direct_F77=yes
13886       hardcode_shlibpath_var_F77=no
13887       ;;
13888
13889     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13890     freebsd2*)
13891       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13892       hardcode_direct_F77=yes
13893       hardcode_minus_L_F77=yes
13894       hardcode_shlibpath_var_F77=no
13895       ;;
13896
13897     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13898     freebsd* | kfreebsd*-gnu)
13899       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13900       hardcode_libdir_flag_spec_F77='-R$libdir'
13901       hardcode_direct_F77=yes
13902       hardcode_shlibpath_var_F77=no
13903       ;;
13904
13905     hpux9*)
13906       if test "$GCC" = yes; then
13907         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'
13908       else
13909         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'
13910       fi
13911       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13912       hardcode_libdir_separator_F77=:
13913       hardcode_direct_F77=yes
13914
13915       # hardcode_minus_L: Not really in the search PATH,
13916       # but as the default location of the library.
13917       hardcode_minus_L_F77=yes
13918       export_dynamic_flag_spec_F77='${wl}-E'
13919       ;;
13920
13921     hpux10* | hpux11*)
13922       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13923         case "$host_cpu" in
13924         hppa*64*|ia64*)
13925           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13926           ;;
13927         *)
13928           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13929           ;;
13930         esac
13931       else
13932         case "$host_cpu" in
13933         hppa*64*|ia64*)
13934           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13935           ;;
13936         *)
13937           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13938           ;;
13939         esac
13940       fi
13941       if test "$with_gnu_ld" = no; then
13942         case "$host_cpu" in
13943         hppa*64*)
13944           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13946           hardcode_libdir_separator_F77=:
13947           hardcode_direct_F77=no
13948           hardcode_shlibpath_var_F77=no
13949           ;;
13950         ia64*)
13951           hardcode_libdir_flag_spec_F77='-L$libdir'
13952           hardcode_direct_F77=no
13953           hardcode_shlibpath_var_F77=no
13954
13955           # hardcode_minus_L: Not really in the search PATH,
13956           # but as the default location of the library.
13957           hardcode_minus_L_F77=yes
13958           ;;
13959         *)
13960           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13961           hardcode_libdir_separator_F77=:
13962           hardcode_direct_F77=yes
13963           export_dynamic_flag_spec_F77='${wl}-E'
13964
13965           # hardcode_minus_L: Not really in the search PATH,
13966           # but as the default location of the library.
13967           hardcode_minus_L_F77=yes
13968           ;;
13969         esac
13970       fi
13971       ;;
13972
13973     irix5* | irix6* | nonstopux*)
13974       if test "$GCC" = yes; then
13975         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'
13976       else
13977         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'
13978         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13979       fi
13980       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981       hardcode_libdir_separator_F77=:
13982       link_all_deplibs_F77=yes
13983       ;;
13984
13985     netbsd*)
13986       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13987         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13988       else
13989         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13990       fi
13991       hardcode_libdir_flag_spec_F77='-R$libdir'
13992       hardcode_direct_F77=yes
13993       hardcode_shlibpath_var_F77=no
13994       ;;
13995
13996     newsos6)
13997       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13998       hardcode_direct_F77=yes
13999       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14000       hardcode_libdir_separator_F77=:
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     openbsd*)
14005       hardcode_direct_F77=yes
14006       hardcode_shlibpath_var_F77=no
14007       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14008         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14009         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14010         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14011         export_dynamic_flag_spec_F77='${wl}-E'
14012       else
14013        case $host_os in
14014          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14015            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14016            hardcode_libdir_flag_spec_F77='-R$libdir'
14017            ;;
14018          *)
14019            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14020            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14021            ;;
14022        esac
14023       fi
14024       ;;
14025
14026     os2*)
14027       hardcode_libdir_flag_spec_F77='-L$libdir'
14028       hardcode_minus_L_F77=yes
14029       allow_undefined_flag_F77=unsupported
14030       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'
14031       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14032       ;;
14033
14034     osf3*)
14035       if test "$GCC" = yes; then
14036         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14037         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'
14038       else
14039         allow_undefined_flag_F77=' -expect_unresolved \*'
14040         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'
14041       fi
14042       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14043       hardcode_libdir_separator_F77=:
14044       ;;
14045
14046     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14047       if test "$GCC" = yes; then
14048         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14049         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'
14050         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051       else
14052         allow_undefined_flag_F77=' -expect_unresolved \*'
14053         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'
14054         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~
14055         $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'
14056
14057         # Both c and cxx compiler support -rpath directly
14058         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14059       fi
14060       hardcode_libdir_separator_F77=:
14061       ;;
14062
14063     sco3.2v5*)
14064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065       hardcode_shlibpath_var_F77=no
14066       export_dynamic_flag_spec_F77='${wl}-Bexport'
14067       runpath_var=LD_RUN_PATH
14068       hardcode_runpath_var=yes
14069       ;;
14070
14071     solaris*)
14072       no_undefined_flag_F77=' -z text'
14073       if test "$GCC" = yes; then
14074         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14075         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14076           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14077       else
14078         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14080         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14081       fi
14082       hardcode_libdir_flag_spec_F77='-R$libdir'
14083       hardcode_shlibpath_var_F77=no
14084       case $host_os in
14085       solaris2.[0-5] | solaris2.[0-5].*) ;;
14086       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14087         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14088       esac
14089       link_all_deplibs_F77=yes
14090       ;;
14091
14092     sunos4*)
14093       if test "x$host_vendor" = xsequent; then
14094         # Use $CC to link under sequent, because it throws in some extra .o
14095         # files that make .init and .fini sections work.
14096         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14097       else
14098         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14099       fi
14100       hardcode_libdir_flag_spec_F77='-L$libdir'
14101       hardcode_direct_F77=yes
14102       hardcode_minus_L_F77=yes
14103       hardcode_shlibpath_var_F77=no
14104       ;;
14105
14106     sysv4)
14107       case $host_vendor in
14108         sni)
14109           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14110           hardcode_direct_F77=yes # is this really true???
14111         ;;
14112         siemens)
14113           ## LD is ld it makes a PLAMLIB
14114           ## CC just makes a GrossModule.
14115           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14116           reload_cmds_F77='$CC -r -o $output$reload_objs'
14117           hardcode_direct_F77=no
14118         ;;
14119         motorola)
14120           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14121           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14122         ;;
14123       esac
14124       runpath_var='LD_RUN_PATH'
14125       hardcode_shlibpath_var_F77=no
14126       ;;
14127
14128     sysv4.3*)
14129       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14130       hardcode_shlibpath_var_F77=no
14131       export_dynamic_flag_spec_F77='-Bexport'
14132       ;;
14133
14134     sysv4*MP*)
14135       if test -d /usr/nec; then
14136         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137         hardcode_shlibpath_var_F77=no
14138         runpath_var=LD_RUN_PATH
14139         hardcode_runpath_var=yes
14140         ld_shlibs_F77=yes
14141       fi
14142       ;;
14143
14144     sysv4.2uw2*)
14145       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14146       hardcode_direct_F77=yes
14147       hardcode_minus_L_F77=no
14148       hardcode_shlibpath_var_F77=no
14149       hardcode_runpath_var=yes
14150       runpath_var=LD_RUN_PATH
14151       ;;
14152
14153    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14154       no_undefined_flag_F77='${wl}-z ${wl}text'
14155       if test "$GCC" = yes; then
14156         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14157       else
14158         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159       fi
14160       runpath_var='LD_RUN_PATH'
14161       hardcode_shlibpath_var_F77=no
14162       ;;
14163
14164     sysv5*)
14165       no_undefined_flag_F77=' -z text'
14166       # $CC -shared without GNU ld will not create a library from C++
14167       # object files and a static libstdc++, better avoid it by now
14168       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14169       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14170                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14171       hardcode_libdir_flag_spec_F77=
14172       hardcode_shlibpath_var_F77=no
14173       runpath_var='LD_RUN_PATH'
14174       ;;
14175
14176     uts4*)
14177       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14178       hardcode_libdir_flag_spec_F77='-L$libdir'
14179       hardcode_shlibpath_var_F77=no
14180       ;;
14181
14182     *)
14183       ld_shlibs_F77=no
14184       ;;
14185     esac
14186   fi
14187
14188 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14189 echo "${ECHO_T}$ld_shlibs_F77" >&6
14190 test "$ld_shlibs_F77" = no && can_build_shared=no
14191
14192 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14193 if test "$GCC" = yes; then
14194   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14195 fi
14196
14197 #
14198 # Do we need to explicitly link libc?
14199 #
14200 case "x$archive_cmds_need_lc_F77" in
14201 x|xyes)
14202   # Assume -lc should be added
14203   archive_cmds_need_lc_F77=yes
14204
14205   if test "$enable_shared" = yes && test "$GCC" = yes; then
14206     case $archive_cmds_F77 in
14207     *'~'*)
14208       # FIXME: we may have to deal with multi-command sequences.
14209       ;;
14210     '$CC '*)
14211       # Test whether the compiler implicitly links with -lc since on some
14212       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14213       # to ld, don't add -lc before -lgcc.
14214       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14215 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14216       $rm conftest*
14217       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220   (eval $ac_compile) 2>&5
14221   ac_status=$?
14222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223   (exit $ac_status); } 2>conftest.err; then
14224         soname=conftest
14225         lib=conftest
14226         libobjs=conftest.$ac_objext
14227         deplibs=
14228         wl=$lt_prog_compiler_wl_F77
14229         compiler_flags=-v
14230         linker_flags=-v
14231         verstring=
14232         output_objdir=.
14233         libname=conftest
14234         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14235         allow_undefined_flag_F77=
14236         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14237   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14238   ac_status=$?
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); }
14241         then
14242           archive_cmds_need_lc_F77=no
14243         else
14244           archive_cmds_need_lc_F77=yes
14245         fi
14246         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14247       else
14248         cat conftest.err 1>&5
14249       fi
14250       $rm conftest*
14251       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14252 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14253       ;;
14254     esac
14255   fi
14256   ;;
14257 esac
14258
14259 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14260 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14261 library_names_spec=
14262 libname_spec='lib$name'
14263 soname_spec=
14264 shrext_cmds=".so"
14265 postinstall_cmds=
14266 postuninstall_cmds=
14267 finish_cmds=
14268 finish_eval=
14269 shlibpath_var=
14270 shlibpath_overrides_runpath=unknown
14271 version_type=none
14272 dynamic_linker="$host_os ld.so"
14273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14274 if test "$GCC" = yes; then
14275   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14276   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14277     # if the path contains ";" then we assume it to be the separator
14278     # otherwise default to the standard path separator (i.e. ":") - it is
14279     # assumed that no part of a normal pathname contains ";" but that should
14280     # okay in the real world where ";" in dirpaths is itself problematic.
14281     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14282   else
14283     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14284   fi
14285 else
14286   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14287 fi
14288 need_lib_prefix=unknown
14289 hardcode_into_libs=no
14290
14291 # when you set need_version to no, make sure it does not cause -set_version
14292 # flags to be left without arguments
14293 need_version=unknown
14294
14295 case $host_os in
14296 aix3*)
14297   version_type=linux
14298   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14299   shlibpath_var=LIBPATH
14300
14301   # AIX 3 has no versioning support, so we append a major version to the name.
14302   soname_spec='${libname}${release}${shared_ext}$major'
14303   ;;
14304
14305 aix4* | aix5*)
14306   version_type=linux
14307   need_lib_prefix=no
14308   need_version=no
14309   hardcode_into_libs=yes
14310   if test "$host_cpu" = ia64; then
14311     # AIX 5 supports IA64
14312     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14313     shlibpath_var=LD_LIBRARY_PATH
14314   else
14315     # With GCC up to 2.95.x, collect2 would create an import file
14316     # for dependence libraries.  The import file would start with
14317     # the line `#! .'.  This would cause the generated library to
14318     # depend on `.', always an invalid library.  This was fixed in
14319     # development snapshots of GCC prior to 3.0.
14320     case $host_os in
14321       aix4 | aix4.[01] | aix4.[01].*)
14322       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14323            echo ' yes '
14324            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14325         :
14326       else
14327         can_build_shared=no
14328       fi
14329       ;;
14330     esac
14331     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14332     # soname into executable. Probably we can add versioning support to
14333     # collect2, so additional links can be useful in future.
14334     if test "$aix_use_runtimelinking" = yes; then
14335       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14336       # instead of lib<name>.a to let people know that these are not
14337       # typical AIX shared libraries.
14338       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14339     else
14340       # We preserve .a as extension for shared libraries through AIX4.2
14341       # and later when we are not doing run time linking.
14342       library_names_spec='${libname}${release}.a $libname.a'
14343       soname_spec='${libname}${release}${shared_ext}$major'
14344     fi
14345     shlibpath_var=LIBPATH
14346   fi
14347   ;;
14348
14349 amigaos*)
14350   library_names_spec='$libname.ixlibrary $libname.a'
14351   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14352   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'
14353   ;;
14354
14355 beos*)
14356   library_names_spec='${libname}${shared_ext}'
14357   dynamic_linker="$host_os ld.so"
14358   shlibpath_var=LIBRARY_PATH
14359   ;;
14360
14361 bsdi[45]*)
14362   version_type=linux
14363   need_version=no
14364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14365   soname_spec='${libname}${release}${shared_ext}$major'
14366   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14367   shlibpath_var=LD_LIBRARY_PATH
14368   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14369   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14370   # the default ld.so.conf also contains /usr/contrib/lib and
14371   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14372   # libtool to hard-code these into programs
14373   ;;
14374
14375 cygwin* | mingw* | pw32*)
14376   version_type=windows
14377   shrext_cmds=".dll"
14378   need_version=no
14379   need_lib_prefix=no
14380
14381   case $GCC,$host_os in
14382   yes,cygwin* | yes,mingw* | yes,pw32*)
14383     library_names_spec='$libname.dll.a'
14384     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14385     postinstall_cmds='base_file=`basename \${file}`~
14386       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14387       dldir=$destdir/`dirname \$dlpath`~
14388       test -d \$dldir || mkdir -p \$dldir~
14389       $install_prog $dir/$dlname \$dldir/$dlname'
14390     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14391       dlpath=$dir/\$dldll~
14392        $rm \$dlpath'
14393     shlibpath_overrides_runpath=yes
14394
14395     case $host_os in
14396     cygwin*)
14397       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14398       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14399       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14400       ;;
14401     mingw*)
14402       # MinGW DLLs use traditional 'lib' prefix
14403       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14404       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14405       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14406         # It is most probably a Windows format PATH printed by
14407         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14408         # path with ; separators, and with drive letters. We can handle the
14409         # drive letters (cygwin fileutils understands them), so leave them,
14410         # especially as we might pass files found there to a mingw objdump,
14411         # which wouldn't understand a cygwinified path. Ahh.
14412         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14413       else
14414         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14415       fi
14416       ;;
14417     pw32*)
14418       # pw32 DLLs use 'pw' prefix rather than 'lib'
14419       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14420       ;;
14421     esac
14422     ;;
14423
14424   *)
14425     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14426     ;;
14427   esac
14428   dynamic_linker='Win32 ld.exe'
14429   # FIXME: first we should search . and the directory the executable is in
14430   shlibpath_var=PATH
14431   ;;
14432
14433 darwin* | rhapsody*)
14434   dynamic_linker="$host_os dyld"
14435   version_type=darwin
14436   need_lib_prefix=no
14437   need_version=no
14438   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14439   soname_spec='${libname}${release}${major}$shared_ext'
14440   shlibpath_overrides_runpath=yes
14441   shlibpath_var=DYLD_LIBRARY_PATH
14442   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14443   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14444   if test "$GCC" = yes; then
14445     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"`
14446   else
14447     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14448   fi
14449   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14450   ;;
14451
14452 dgux*)
14453   version_type=linux
14454   need_lib_prefix=no
14455   need_version=no
14456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14457   soname_spec='${libname}${release}${shared_ext}$major'
14458   shlibpath_var=LD_LIBRARY_PATH
14459   ;;
14460
14461 freebsd1*)
14462   dynamic_linker=no
14463   ;;
14464
14465 kfreebsd*-gnu)
14466   version_type=linux
14467   need_lib_prefix=no
14468   need_version=no
14469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14470   soname_spec='${libname}${release}${shared_ext}$major'
14471   shlibpath_var=LD_LIBRARY_PATH
14472   shlibpath_overrides_runpath=no
14473   hardcode_into_libs=yes
14474   dynamic_linker='GNU ld.so'
14475   ;;
14476
14477 freebsd*)
14478   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14479   version_type=freebsd-$objformat
14480   case $version_type in
14481     freebsd-elf*)
14482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14483       need_version=no
14484       need_lib_prefix=no
14485       ;;
14486     freebsd-*)
14487       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14488       need_version=yes
14489       ;;
14490   esac
14491   shlibpath_var=LD_LIBRARY_PATH
14492   case $host_os in
14493   freebsd2*)
14494     shlibpath_overrides_runpath=yes
14495     ;;
14496   freebsd3.01* | freebsdelf3.01*)
14497     shlibpath_overrides_runpath=yes
14498     hardcode_into_libs=yes
14499     ;;
14500   *) # from 3.2 on
14501     shlibpath_overrides_runpath=no
14502     hardcode_into_libs=yes
14503     ;;
14504   esac
14505   ;;
14506
14507 gnu*)
14508   version_type=linux
14509   need_lib_prefix=no
14510   need_version=no
14511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   shlibpath_var=LD_LIBRARY_PATH
14514   hardcode_into_libs=yes
14515   ;;
14516
14517 hpux9* | hpux10* | hpux11*)
14518   # Give a soname corresponding to the major version so that dld.sl refuses to
14519   # link against other versions.
14520   version_type=sunos
14521   need_lib_prefix=no
14522   need_version=no
14523   case "$host_cpu" in
14524   ia64*)
14525     shrext_cmds='.so'
14526     hardcode_into_libs=yes
14527     dynamic_linker="$host_os dld.so"
14528     shlibpath_var=LD_LIBRARY_PATH
14529     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14531     soname_spec='${libname}${release}${shared_ext}$major'
14532     if test "X$HPUX_IA64_MODE" = X32; then
14533       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14534     else
14535       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14536     fi
14537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14538     ;;
14539    hppa*64*)
14540      shrext_cmds='.sl'
14541      hardcode_into_libs=yes
14542      dynamic_linker="$host_os dld.sl"
14543      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14544      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546      soname_spec='${libname}${release}${shared_ext}$major'
14547      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14548      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14549      ;;
14550    *)
14551     shrext_cmds='.sl'
14552     dynamic_linker="$host_os dld.sl"
14553     shlibpath_var=SHLIB_PATH
14554     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14556     soname_spec='${libname}${release}${shared_ext}$major'
14557     ;;
14558   esac
14559   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14560   postinstall_cmds='chmod 555 $lib'
14561   ;;
14562
14563 irix5* | irix6* | nonstopux*)
14564   case $host_os in
14565     nonstopux*) version_type=nonstopux ;;
14566     *)
14567         if test "$lt_cv_prog_gnu_ld" = yes; then
14568                 version_type=linux
14569         else
14570                 version_type=irix
14571         fi ;;
14572   esac
14573   need_lib_prefix=no
14574   need_version=no
14575   soname_spec='${libname}${release}${shared_ext}$major'
14576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14577   case $host_os in
14578   irix5* | nonstopux*)
14579     libsuff= shlibsuff=
14580     ;;
14581   *)
14582     case $LD in # libtool.m4 will add one of these switches to LD
14583     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14584       libsuff= shlibsuff= libmagic=32-bit;;
14585     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14586       libsuff=32 shlibsuff=N32 libmagic=N32;;
14587     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14588       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14589     *) libsuff= shlibsuff= libmagic=never-match;;
14590     esac
14591     ;;
14592   esac
14593   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14594   shlibpath_overrides_runpath=no
14595   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14596   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14597   hardcode_into_libs=yes
14598   ;;
14599
14600 # No shared lib support for Linux oldld, aout, or coff.
14601 linux*oldld* | linux*aout* | linux*coff*)
14602   dynamic_linker=no
14603   ;;
14604
14605 # This must be Linux ELF.
14606 linux*)
14607   version_type=linux
14608   need_lib_prefix=no
14609   need_version=no
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611   soname_spec='${libname}${release}${shared_ext}$major'
14612   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   shlibpath_overrides_runpath=no
14615   # This implies no fast_install, which is unacceptable.
14616   # Some rework will be needed to allow for fast_install
14617   # before this can be enabled.
14618   hardcode_into_libs=yes
14619
14620   # Append ld.so.conf contents to the search path
14621   if test -f /etc/ld.so.conf; then
14622     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14623     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14624   fi
14625
14626   # We used to test for /lib/ld.so.1 and disable shared libraries on
14627   # powerpc, because MkLinux only supported shared libraries with the
14628   # GNU dynamic linker.  Since this was broken with cross compilers,
14629   # most powerpc-linux boxes support dynamic linking these days and
14630   # people can always --disable-shared, the test was removed, and we
14631   # assume the GNU/Linux dynamic linker is in use.
14632   dynamic_linker='GNU/Linux ld.so'
14633   ;;
14634
14635 knetbsd*-gnu)
14636   version_type=linux
14637   need_lib_prefix=no
14638   need_version=no
14639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14640   soname_spec='${libname}${release}${shared_ext}$major'
14641   shlibpath_var=LD_LIBRARY_PATH
14642   shlibpath_overrides_runpath=no
14643   hardcode_into_libs=yes
14644   dynamic_linker='GNU ld.so'
14645   ;;
14646
14647 netbsd*)
14648   version_type=sunos
14649   need_lib_prefix=no
14650   need_version=no
14651   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654     dynamic_linker='NetBSD (a.out) ld.so'
14655   else
14656     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14657     soname_spec='${libname}${release}${shared_ext}$major'
14658     dynamic_linker='NetBSD ld.elf_so'
14659   fi
14660   shlibpath_var=LD_LIBRARY_PATH
14661   shlibpath_overrides_runpath=yes
14662   hardcode_into_libs=yes
14663   ;;
14664
14665 newsos6)
14666   version_type=linux
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14668   shlibpath_var=LD_LIBRARY_PATH
14669   shlibpath_overrides_runpath=yes
14670   ;;
14671
14672 nto-qnx*)
14673   version_type=linux
14674   need_lib_prefix=no
14675   need_version=no
14676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677   soname_spec='${libname}${release}${shared_ext}$major'
14678   shlibpath_var=LD_LIBRARY_PATH
14679   shlibpath_overrides_runpath=yes
14680   ;;
14681
14682 openbsd*)
14683   version_type=sunos
14684   need_lib_prefix=no
14685   need_version=no
14686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14688   shlibpath_var=LD_LIBRARY_PATH
14689   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14690     case $host_os in
14691       openbsd2.[89] | openbsd2.[89].*)
14692         shlibpath_overrides_runpath=no
14693         ;;
14694       *)
14695         shlibpath_overrides_runpath=yes
14696         ;;
14697       esac
14698   else
14699     shlibpath_overrides_runpath=yes
14700   fi
14701   ;;
14702
14703 os2*)
14704   libname_spec='$name'
14705   shrext_cmds=".dll"
14706   need_lib_prefix=no
14707   library_names_spec='$libname${shared_ext} $libname.a'
14708   dynamic_linker='OS/2 ld.exe'
14709   shlibpath_var=LIBPATH
14710   ;;
14711
14712 osf3* | osf4* | osf5*)
14713   version_type=osf
14714   need_lib_prefix=no
14715   need_version=no
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14720   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14721   ;;
14722
14723 sco3.2v5*)
14724   version_type=osf
14725   soname_spec='${libname}${release}${shared_ext}$major'
14726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727   shlibpath_var=LD_LIBRARY_PATH
14728   ;;
14729
14730 solaris*)
14731   version_type=linux
14732   need_lib_prefix=no
14733   need_version=no
14734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735   soname_spec='${libname}${release}${shared_ext}$major'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   shlibpath_overrides_runpath=yes
14738   hardcode_into_libs=yes
14739   # ldd complains unless libraries are executable
14740   postinstall_cmds='chmod +x $lib'
14741   ;;
14742
14743 sunos4*)
14744   version_type=sunos
14745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14746   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14747   shlibpath_var=LD_LIBRARY_PATH
14748   shlibpath_overrides_runpath=yes
14749   if test "$with_gnu_ld" = yes; then
14750     need_lib_prefix=no
14751   fi
14752   need_version=yes
14753   ;;
14754
14755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14756   version_type=linux
14757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758   soname_spec='${libname}${release}${shared_ext}$major'
14759   shlibpath_var=LD_LIBRARY_PATH
14760   case $host_vendor in
14761     sni)
14762       shlibpath_overrides_runpath=no
14763       need_lib_prefix=no
14764       export_dynamic_flag_spec='${wl}-Blargedynsym'
14765       runpath_var=LD_RUN_PATH
14766       ;;
14767     siemens)
14768       need_lib_prefix=no
14769       ;;
14770     motorola)
14771       need_lib_prefix=no
14772       need_version=no
14773       shlibpath_overrides_runpath=no
14774       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14775       ;;
14776   esac
14777   ;;
14778
14779 sysv4*MP*)
14780   if test -d /usr/nec ;then
14781     version_type=linux
14782     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14783     soname_spec='$libname${shared_ext}.$major'
14784     shlibpath_var=LD_LIBRARY_PATH
14785   fi
14786   ;;
14787
14788 uts4*)
14789   version_type=linux
14790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791   soname_spec='${libname}${release}${shared_ext}$major'
14792   shlibpath_var=LD_LIBRARY_PATH
14793   ;;
14794
14795 *)
14796   dynamic_linker=no
14797   ;;
14798 esac
14799 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14800 echo "${ECHO_T}$dynamic_linker" >&6
14801 test "$dynamic_linker" = no && can_build_shared=no
14802
14803 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14804 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14805 hardcode_action_F77=
14806 if test -n "$hardcode_libdir_flag_spec_F77" || \
14807    test -n "$runpath_var_F77" || \
14808    test "X$hardcode_automatic_F77" = "Xyes" ; then
14809
14810   # We can hardcode non-existant directories.
14811   if test "$hardcode_direct_F77" != no &&
14812      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14813      # have to relink, otherwise we might link with an installed library
14814      # when we should be linking with a yet-to-be-installed one
14815      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14816      test "$hardcode_minus_L_F77" != no; then
14817     # Linking always hardcodes the temporary library directory.
14818     hardcode_action_F77=relink
14819   else
14820     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14821     hardcode_action_F77=immediate
14822   fi
14823 else
14824   # We cannot hardcode anything, or else we can only hardcode existing
14825   # directories.
14826   hardcode_action_F77=unsupported
14827 fi
14828 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14829 echo "${ECHO_T}$hardcode_action_F77" >&6
14830
14831 if test "$hardcode_action_F77" = relink; then
14832   # Fast installation is not supported
14833   enable_fast_install=no
14834 elif test "$shlibpath_overrides_runpath" = yes ||
14835      test "$enable_shared" = no; then
14836   # Fast installation is not necessary
14837   enable_fast_install=needless
14838 fi
14839
14840 striplib=
14841 old_striplib=
14842 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14843 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14844 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14845   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14846   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14847   echo "$as_me:$LINENO: result: yes" >&5
14848 echo "${ECHO_T}yes" >&6
14849 else
14850 # FIXME - insert some real tests, host_os isn't really good enough
14851   case $host_os in
14852    darwin*)
14853        if test -n "$STRIP" ; then
14854          striplib="$STRIP -x"
14855          echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6
14857        else
14858   echo "$as_me:$LINENO: result: no" >&5
14859 echo "${ECHO_T}no" >&6
14860 fi
14861        ;;
14862    *)
14863   echo "$as_me:$LINENO: result: no" >&5
14864 echo "${ECHO_T}no" >&6
14865     ;;
14866   esac
14867 fi
14868
14869
14870
14871 # The else clause should only fire when bootstrapping the
14872 # libtool distribution, otherwise you forgot to ship ltmain.sh
14873 # with your package, and you will get complaints that there are
14874 # no rules to generate ltmain.sh.
14875 if test -f "$ltmain"; then
14876   # See if we are running on zsh, and set the options which allow our commands through
14877   # without removal of \ escapes.
14878   if test -n "${ZSH_VERSION+set}" ; then
14879     setopt NO_GLOB_SUBST
14880   fi
14881   # Now quote all the things that may contain metacharacters while being
14882   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14883   # variables and quote the copies for generation of the libtool script.
14884   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14885     SED SHELL STRIP \
14886     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14887     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14888     deplibs_check_method reload_flag reload_cmds need_locks \
14889     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14890     lt_cv_sys_global_symbol_to_c_name_address \
14891     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14892     old_postinstall_cmds old_postuninstall_cmds \
14893     compiler_F77 \
14894     CC_F77 \
14895     LD_F77 \
14896     lt_prog_compiler_wl_F77 \
14897     lt_prog_compiler_pic_F77 \
14898     lt_prog_compiler_static_F77 \
14899     lt_prog_compiler_no_builtin_flag_F77 \
14900     export_dynamic_flag_spec_F77 \
14901     thread_safe_flag_spec_F77 \
14902     whole_archive_flag_spec_F77 \
14903     enable_shared_with_static_runtimes_F77 \
14904     old_archive_cmds_F77 \
14905     old_archive_from_new_cmds_F77 \
14906     predep_objects_F77 \
14907     postdep_objects_F77 \
14908     predeps_F77 \
14909     postdeps_F77 \
14910     compiler_lib_search_path_F77 \
14911     archive_cmds_F77 \
14912     archive_expsym_cmds_F77 \
14913     postinstall_cmds_F77 \
14914     postuninstall_cmds_F77 \
14915     old_archive_from_expsyms_cmds_F77 \
14916     allow_undefined_flag_F77 \
14917     no_undefined_flag_F77 \
14918     export_symbols_cmds_F77 \
14919     hardcode_libdir_flag_spec_F77 \
14920     hardcode_libdir_flag_spec_ld_F77 \
14921     hardcode_libdir_separator_F77 \
14922     hardcode_automatic_F77 \
14923     module_cmds_F77 \
14924     module_expsym_cmds_F77 \
14925     lt_cv_prog_compiler_c_o_F77 \
14926     exclude_expsyms_F77 \
14927     include_expsyms_F77; do
14928
14929     case $var in
14930     old_archive_cmds_F77 | \
14931     old_archive_from_new_cmds_F77 | \
14932     archive_cmds_F77 | \
14933     archive_expsym_cmds_F77 | \
14934     module_cmds_F77 | \
14935     module_expsym_cmds_F77 | \
14936     old_archive_from_expsyms_cmds_F77 | \
14937     export_symbols_cmds_F77 | \
14938     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14939     postinstall_cmds | postuninstall_cmds | \
14940     old_postinstall_cmds | old_postuninstall_cmds | \
14941     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14942       # Double-quote double-evaled strings.
14943       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14944       ;;
14945     *)
14946       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14947       ;;
14948     esac
14949   done
14950
14951   case $lt_echo in
14952   *'\$0 --fallback-echo"')
14953     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14954     ;;
14955   esac
14956
14957 cfgfile="$ofile"
14958
14959   cat <<__EOF__ >> "$cfgfile"
14960 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14961
14962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14963
14964 # Shell to use when invoking shell scripts.
14965 SHELL=$lt_SHELL
14966
14967 # Whether or not to build shared libraries.
14968 build_libtool_libs=$enable_shared
14969
14970 # Whether or not to build static libraries.
14971 build_old_libs=$enable_static
14972
14973 # Whether or not to add -lc for building shared libraries.
14974 build_libtool_need_lc=$archive_cmds_need_lc_F77
14975
14976 # Whether or not to disallow shared libs when runtime libs are static
14977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14978
14979 # Whether or not to optimize for fast installation.
14980 fast_install=$enable_fast_install
14981
14982 # The host system.
14983 host_alias=$host_alias
14984 host=$host
14985
14986 # An echo program that does not interpret backslashes.
14987 echo=$lt_echo
14988
14989 # The archiver.
14990 AR=$lt_AR
14991 AR_FLAGS=$lt_AR_FLAGS
14992
14993 # A C compiler.
14994 LTCC=$lt_LTCC
14995
14996 # A language-specific compiler.
14997 CC=$lt_compiler_F77
14998
14999 # Is the compiler the GNU C compiler?
15000 with_gcc=$GCC_F77
15001
15002 # An ERE matcher.
15003 EGREP=$lt_EGREP
15004
15005 # The linker used to build libraries.
15006 LD=$lt_LD_F77
15007
15008 # Whether we need hard or soft links.
15009 LN_S=$lt_LN_S
15010
15011 # A BSD-compatible nm program.
15012 NM=$lt_NM
15013
15014 # A symbol stripping program
15015 STRIP=$lt_STRIP
15016
15017 # Used to examine libraries when file_magic_cmd begins "file"
15018 MAGIC_CMD=$MAGIC_CMD
15019
15020 # Used on cygwin: DLL creation program.
15021 DLLTOOL="$DLLTOOL"
15022
15023 # Used on cygwin: object dumper.
15024 OBJDUMP="$OBJDUMP"
15025
15026 # Used on cygwin: assembler.
15027 AS="$AS"
15028
15029 # The name of the directory that contains temporary libtool files.
15030 objdir=$objdir
15031
15032 # How to create reloadable object files.
15033 reload_flag=$lt_reload_flag
15034 reload_cmds=$lt_reload_cmds
15035
15036 # How to pass a linker flag through the compiler.
15037 wl=$lt_lt_prog_compiler_wl_F77
15038
15039 # Object file suffix (normally "o").
15040 objext="$ac_objext"
15041
15042 # Old archive suffix (normally "a").
15043 libext="$libext"
15044
15045 # Shared library suffix (normally ".so").
15046 shrext_cmds='$shrext_cmds'
15047
15048 # Executable file suffix (normally "").
15049 exeext="$exeext"
15050
15051 # Additional compiler flags for building library objects.
15052 pic_flag=$lt_lt_prog_compiler_pic_F77
15053 pic_mode=$pic_mode
15054
15055 # What is the maximum length of a command?
15056 max_cmd_len=$lt_cv_sys_max_cmd_len
15057
15058 # Does compiler simultaneously support -c and -o options?
15059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15060
15061 # Must we lock files when doing compilation ?
15062 need_locks=$lt_need_locks
15063
15064 # Do we need the lib prefix for modules?
15065 need_lib_prefix=$need_lib_prefix
15066
15067 # Do we need a version for libraries?
15068 need_version=$need_version
15069
15070 # Whether dlopen is supported.
15071 dlopen_support=$enable_dlopen
15072
15073 # Whether dlopen of programs is supported.
15074 dlopen_self=$enable_dlopen_self
15075
15076 # Whether dlopen of statically linked programs is supported.
15077 dlopen_self_static=$enable_dlopen_self_static
15078
15079 # Compiler flag to prevent dynamic linking.
15080 link_static_flag=$lt_lt_prog_compiler_static_F77
15081
15082 # Compiler flag to turn off builtin functions.
15083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15084
15085 # Compiler flag to allow reflexive dlopens.
15086 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15087
15088 # Compiler flag to generate shared objects directly from archives.
15089 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15090
15091 # Compiler flag to generate thread-safe objects.
15092 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15093
15094 # Library versioning type.
15095 version_type=$version_type
15096
15097 # Format of library name prefix.
15098 libname_spec=$lt_libname_spec
15099
15100 # List of archive names.  First name is the real one, the rest are links.
15101 # The last name is the one that the linker finds with -lNAME.
15102 library_names_spec=$lt_library_names_spec
15103
15104 # The coded name of the library, if different from the real name.
15105 soname_spec=$lt_soname_spec
15106
15107 # Commands used to build and install an old-style archive.
15108 RANLIB=$lt_RANLIB
15109 old_archive_cmds=$lt_old_archive_cmds_F77
15110 old_postinstall_cmds=$lt_old_postinstall_cmds
15111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15112
15113 # Create an old-style archive from a shared archive.
15114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15115
15116 # Create a temporary old-style archive to link instead of a shared archive.
15117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15118
15119 # Commands used to build and install a shared archive.
15120 archive_cmds=$lt_archive_cmds_F77
15121 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15122 postinstall_cmds=$lt_postinstall_cmds
15123 postuninstall_cmds=$lt_postuninstall_cmds
15124
15125 # Commands used to build a loadable module (assumed same as above if empty)
15126 module_cmds=$lt_module_cmds_F77
15127 module_expsym_cmds=$lt_module_expsym_cmds_F77
15128
15129 # Commands to strip libraries.
15130 old_striplib=$lt_old_striplib
15131 striplib=$lt_striplib
15132
15133 # Dependencies to place before the objects being linked to create a
15134 # shared library.
15135 predep_objects=$lt_predep_objects_F77
15136
15137 # Dependencies to place after the objects being linked to create a
15138 # shared library.
15139 postdep_objects=$lt_postdep_objects_F77
15140
15141 # Dependencies to place before the objects being linked to create a
15142 # shared library.
15143 predeps=$lt_predeps_F77
15144
15145 # Dependencies to place after the objects being linked to create a
15146 # shared library.
15147 postdeps=$lt_postdeps_F77
15148
15149 # The library search path used internally by the compiler when linking
15150 # a shared library.
15151 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15152
15153 # Method to check whether dependent libraries are shared objects.
15154 deplibs_check_method=$lt_deplibs_check_method
15155
15156 # Command to use when deplibs_check_method == file_magic.
15157 file_magic_cmd=$lt_file_magic_cmd
15158
15159 # Flag that allows shared libraries with undefined symbols to be built.
15160 allow_undefined_flag=$lt_allow_undefined_flag_F77
15161
15162 # Flag that forces no undefined symbols.
15163 no_undefined_flag=$lt_no_undefined_flag_F77
15164
15165 # Commands used to finish a libtool library installation in a directory.
15166 finish_cmds=$lt_finish_cmds
15167
15168 # Same as above, but a single script fragment to be evaled but not shown.
15169 finish_eval=$lt_finish_eval
15170
15171 # Take the output of nm and produce a listing of raw symbols and C names.
15172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15173
15174 # Transform the output of nm in a proper C declaration
15175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15176
15177 # Transform the output of nm in a C name address pair
15178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15179
15180 # This is the shared library runtime path variable.
15181 runpath_var=$runpath_var
15182
15183 # This is the shared library path variable.
15184 shlibpath_var=$shlibpath_var
15185
15186 # Is shlibpath searched before the hard-coded library search path?
15187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15188
15189 # How to hardcode a shared library path into an executable.
15190 hardcode_action=$hardcode_action_F77
15191
15192 # Whether we should hardcode library paths into libraries.
15193 hardcode_into_libs=$hardcode_into_libs
15194
15195 # Flag to hardcode \$libdir into a binary during linking.
15196 # This must work even if \$libdir does not exist.
15197 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15198
15199 # If ld is used when linking, flag to hardcode \$libdir into
15200 # a binary during linking. This must work even if \$libdir does
15201 # not exist.
15202 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15203
15204 # Whether we need a single -rpath flag with a separated argument.
15205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15206
15207 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15208 # resulting binary.
15209 hardcode_direct=$hardcode_direct_F77
15210
15211 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15212 # resulting binary.
15213 hardcode_minus_L=$hardcode_minus_L_F77
15214
15215 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15216 # the resulting binary.
15217 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15218
15219 # Set to yes if building a shared library automatically hardcodes DIR into the library
15220 # and all subsequent libraries and executables linked against it.
15221 hardcode_automatic=$hardcode_automatic_F77
15222
15223 # Variables whose values should be saved in libtool wrapper scripts and
15224 # restored at relink time.
15225 variables_saved_for_relink="$variables_saved_for_relink"
15226
15227 # Whether libtool must link a program against all its dependency libraries.
15228 link_all_deplibs=$link_all_deplibs_F77
15229
15230 # Compile-time system search path for libraries
15231 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15232
15233 # Run-time system search path for libraries
15234 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15235
15236 # Fix the shell variable \$srcfile for the compiler.
15237 fix_srcfile_path="$fix_srcfile_path_F77"
15238
15239 # Set to yes if exported symbols are required.
15240 always_export_symbols=$always_export_symbols_F77
15241
15242 # The commands to list exported symbols.
15243 export_symbols_cmds=$lt_export_symbols_cmds_F77
15244
15245 # The commands to extract the exported symbol list from a shared archive.
15246 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15247
15248 # Symbols that should not be listed in the preloaded symbols.
15249 exclude_expsyms=$lt_exclude_expsyms_F77
15250
15251 # Symbols that must always be exported.
15252 include_expsyms=$lt_include_expsyms_F77
15253
15254 # ### END LIBTOOL TAG CONFIG: $tagname
15255
15256 __EOF__
15257
15258
15259 else
15260   # If there is no Makefile yet, we rely on a make rule to execute
15261   # `config.status --recheck' to rerun these tests and create the
15262   # libtool script then.
15263   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15264   if test -f "$ltmain_in"; then
15265     test -f Makefile && make "$ltmain"
15266   fi
15267 fi
15268
15269
15270 ac_ext=c
15271 ac_cpp='$CPP $CPPFLAGS'
15272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15275
15276 CC="$lt_save_CC"
15277
15278         else
15279           tagname=""
15280         fi
15281         ;;
15282
15283       GCJ)
15284         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15285           ac_ext=c
15286 ac_cpp='$CPP $CPPFLAGS'
15287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290
15291
15292 # Source file extension for Java test sources.
15293 ac_ext=java
15294
15295 # Object file extension for compiled Java test sources.
15296 objext=o
15297 objext_GCJ=$objext
15298
15299 # Code to be used in simple compile tests
15300 lt_simple_compile_test_code="class foo {}\n"
15301
15302 # Code to be used in simple link tests
15303 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15304
15305 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15306
15307 # If no C compiler was specified, use CC.
15308 LTCC=${LTCC-"$CC"}
15309
15310 # Allow CC to be a program name with arguments.
15311 compiler=$CC
15312
15313
15314 # Allow CC to be a program name with arguments.
15315 lt_save_CC="$CC"
15316 CC=${GCJ-"gcj"}
15317 compiler=$CC
15318 compiler_GCJ=$CC
15319
15320 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15321 archive_cmds_need_lc_GCJ=no
15322
15323
15324 lt_prog_compiler_no_builtin_flag_GCJ=
15325
15326 if test "$GCC" = yes; then
15327   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15328
15329
15330 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15331 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15332 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15333   echo $ECHO_N "(cached) $ECHO_C" >&6
15334 else
15335   lt_cv_prog_compiler_rtti_exceptions=no
15336   ac_outfile=conftest.$ac_objext
15337    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15338    lt_compiler_flag="-fno-rtti -fno-exceptions"
15339    # Insert the option either (1) after the last *FLAGS variable, or
15340    # (2) before a word containing "conftest.", or (3) at the end.
15341    # Note that $ac_compile itself does not contain backslashes and begins
15342    # with a dollar sign (not a hyphen), so the echo should work correctly.
15343    # The option is referenced via a variable to avoid confusing sed.
15344    lt_compile=`echo "$ac_compile" | $SED \
15345    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347    -e 's:$: $lt_compiler_flag:'`
15348    (eval echo "\"\$as_me:15348: $lt_compile\"" >&5)
15349    (eval "$lt_compile" 2>conftest.err)
15350    ac_status=$?
15351    cat conftest.err >&5
15352    echo "$as_me:15352: \$? = $ac_status" >&5
15353    if (exit $ac_status) && test -s "$ac_outfile"; then
15354      # The compiler can only warn and ignore the option if not recognized
15355      # So say no if there are warnings
15356      if test ! -s conftest.err; then
15357        lt_cv_prog_compiler_rtti_exceptions=yes
15358      fi
15359    fi
15360    $rm conftest*
15361
15362 fi
15363 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15365
15366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15367     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15368 else
15369     :
15370 fi
15371
15372 fi
15373
15374 lt_prog_compiler_wl_GCJ=
15375 lt_prog_compiler_pic_GCJ=
15376 lt_prog_compiler_static_GCJ=
15377
15378 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15380
15381   if test "$GCC" = yes; then
15382     lt_prog_compiler_wl_GCJ='-Wl,'
15383     lt_prog_compiler_static_GCJ='-static'
15384
15385     case $host_os in
15386       aix*)
15387       # All AIX code is PIC.
15388       if test "$host_cpu" = ia64; then
15389         # AIX 5 now supports IA64 processor
15390         lt_prog_compiler_static_GCJ='-Bstatic'
15391       fi
15392       ;;
15393
15394     amigaos*)
15395       # FIXME: we need at least 68020 code to build shared libraries, but
15396       # adding the `-m68020' flag to GCC prevents building anything better,
15397       # like `-m68040'.
15398       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15399       ;;
15400
15401     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15402       # PIC is the default for these OSes.
15403       ;;
15404
15405     mingw* | pw32* | os2*)
15406       # This hack is so that the source file can tell whether it is being
15407       # built for inclusion in a dll (and should export symbols for example).
15408       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15409       ;;
15410
15411     darwin* | rhapsody*)
15412       # PIC is the default on this platform
15413       # Common symbols not allowed in MH_DYLIB files
15414       lt_prog_compiler_pic_GCJ='-fno-common'
15415       ;;
15416
15417     msdosdjgpp*)
15418       # Just because we use GCC doesn't mean we suddenly get shared libraries
15419       # on systems that don't support them.
15420       lt_prog_compiler_can_build_shared_GCJ=no
15421       enable_shared=no
15422       ;;
15423
15424     sysv4*MP*)
15425       if test -d /usr/nec; then
15426         lt_prog_compiler_pic_GCJ=-Kconform_pic
15427       fi
15428       ;;
15429
15430     hpux*)
15431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15432       # not for PA HP-UX.
15433       case "$host_cpu" in
15434       hppa*64*|ia64*)
15435         # +Z the default
15436         ;;
15437       *)
15438         lt_prog_compiler_pic_GCJ='-fPIC'
15439         ;;
15440       esac
15441       ;;
15442
15443     *)
15444       lt_prog_compiler_pic_GCJ='-fPIC'
15445       ;;
15446     esac
15447   else
15448     # PORTME Check for flag to pass linker flags through the system compiler.
15449     case $host_os in
15450     aix*)
15451       lt_prog_compiler_wl_GCJ='-Wl,'
15452       if test "$host_cpu" = ia64; then
15453         # AIX 5 now supports IA64 processor
15454         lt_prog_compiler_static_GCJ='-Bstatic'
15455       else
15456         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15457       fi
15458       ;;
15459       darwin*)
15460         # PIC is the default on this platform
15461         # Common symbols not allowed in MH_DYLIB files
15462        case "$cc_basename" in
15463          xlc*)
15464          lt_prog_compiler_pic_GCJ='-qnocommon'
15465          lt_prog_compiler_wl_GCJ='-Wl,'
15466          ;;
15467        esac
15468        ;;
15469
15470     mingw* | pw32* | os2*)
15471       # This hack is so that the source file can tell whether it is being
15472       # built for inclusion in a dll (and should export symbols for example).
15473       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15474       ;;
15475
15476     hpux9* | hpux10* | hpux11*)
15477       lt_prog_compiler_wl_GCJ='-Wl,'
15478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15479       # not for PA HP-UX.
15480       case "$host_cpu" in
15481       hppa*64*|ia64*)
15482         # +Z the default
15483         ;;
15484       *)
15485         lt_prog_compiler_pic_GCJ='+Z'
15486         ;;
15487       esac
15488       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15489       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15490       ;;
15491
15492     irix5* | irix6* | nonstopux*)
15493       lt_prog_compiler_wl_GCJ='-Wl,'
15494       # PIC (with -KPIC) is the default.
15495       lt_prog_compiler_static_GCJ='-non_shared'
15496       ;;
15497
15498     newsos6)
15499       lt_prog_compiler_pic_GCJ='-KPIC'
15500       lt_prog_compiler_static_GCJ='-Bstatic'
15501       ;;
15502
15503     linux*)
15504       case $CC in
15505       icc* | ecc*)
15506         lt_prog_compiler_wl_GCJ='-Wl,'
15507         lt_prog_compiler_pic_GCJ='-KPIC'
15508         lt_prog_compiler_static_GCJ='-static'
15509         ;;
15510       ccc*)
15511         lt_prog_compiler_wl_GCJ='-Wl,'
15512         # All Alpha code is PIC.
15513         lt_prog_compiler_static_GCJ='-non_shared'
15514         ;;
15515       esac
15516       ;;
15517
15518     osf3* | osf4* | osf5*)
15519       lt_prog_compiler_wl_GCJ='-Wl,'
15520       # All OSF/1 code is PIC.
15521       lt_prog_compiler_static_GCJ='-non_shared'
15522       ;;
15523
15524     sco3.2v5*)
15525       lt_prog_compiler_pic_GCJ='-Kpic'
15526       lt_prog_compiler_static_GCJ='-dn'
15527       ;;
15528
15529     solaris*)
15530       lt_prog_compiler_wl_GCJ='-Wl,'
15531       lt_prog_compiler_pic_GCJ='-KPIC'
15532       lt_prog_compiler_static_GCJ='-Bstatic'
15533       ;;
15534
15535     sunos4*)
15536       lt_prog_compiler_wl_GCJ='-Qoption ld '
15537       lt_prog_compiler_pic_GCJ='-PIC'
15538       lt_prog_compiler_static_GCJ='-Bstatic'
15539       ;;
15540
15541     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15542       lt_prog_compiler_wl_GCJ='-Wl,'
15543       lt_prog_compiler_pic_GCJ='-KPIC'
15544       lt_prog_compiler_static_GCJ='-Bstatic'
15545       ;;
15546
15547     sysv4*MP*)
15548       if test -d /usr/nec ;then
15549         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15550         lt_prog_compiler_static_GCJ='-Bstatic'
15551       fi
15552       ;;
15553
15554     uts4*)
15555       lt_prog_compiler_pic_GCJ='-pic'
15556       lt_prog_compiler_static_GCJ='-Bstatic'
15557       ;;
15558
15559     *)
15560       lt_prog_compiler_can_build_shared_GCJ=no
15561       ;;
15562     esac
15563   fi
15564
15565 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15566 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15567
15568 #
15569 # Check to make sure the PIC flag actually works.
15570 #
15571 if test -n "$lt_prog_compiler_pic_GCJ"; then
15572
15573 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15574 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15575 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15576   echo $ECHO_N "(cached) $ECHO_C" >&6
15577 else
15578   lt_prog_compiler_pic_works_GCJ=no
15579   ac_outfile=conftest.$ac_objext
15580    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15582    # Insert the option either (1) after the last *FLAGS variable, or
15583    # (2) before a word containing "conftest.", or (3) at the end.
15584    # Note that $ac_compile itself does not contain backslashes and begins
15585    # with a dollar sign (not a hyphen), so the echo should work correctly.
15586    # The option is referenced via a variable to avoid confusing sed.
15587    lt_compile=`echo "$ac_compile" | $SED \
15588    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15590    -e 's:$: $lt_compiler_flag:'`
15591    (eval echo "\"\$as_me:15591: $lt_compile\"" >&5)
15592    (eval "$lt_compile" 2>conftest.err)
15593    ac_status=$?
15594    cat conftest.err >&5
15595    echo "$as_me:15595: \$? = $ac_status" >&5
15596    if (exit $ac_status) && test -s "$ac_outfile"; then
15597      # The compiler can only warn and ignore the option if not recognized
15598      # So say no if there are warnings
15599      if test ! -s conftest.err; then
15600        lt_prog_compiler_pic_works_GCJ=yes
15601      fi
15602    fi
15603    $rm conftest*
15604
15605 fi
15606 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15607 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15608
15609 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15610     case $lt_prog_compiler_pic_GCJ in
15611      "" | " "*) ;;
15612      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15613      esac
15614 else
15615     lt_prog_compiler_pic_GCJ=
15616      lt_prog_compiler_can_build_shared_GCJ=no
15617 fi
15618
15619 fi
15620 case "$host_os" in
15621   # For platforms which do not support PIC, -DPIC is meaningless:
15622   *djgpp*)
15623     lt_prog_compiler_pic_GCJ=
15624     ;;
15625   *)
15626     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15627     ;;
15628 esac
15629
15630 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15631 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15632 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15633   echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635   lt_cv_prog_compiler_c_o_GCJ=no
15636    $rm -r conftest 2>/dev/null
15637    mkdir conftest
15638    cd conftest
15639    mkdir out
15640    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15641
15642    lt_compiler_flag="-o out/conftest2.$ac_objext"
15643    # Insert the option either (1) after the last *FLAGS variable, or
15644    # (2) before a word containing "conftest.", or (3) at the end.
15645    # Note that $ac_compile itself does not contain backslashes and begins
15646    # with a dollar sign (not a hyphen), so the echo should work correctly.
15647    lt_compile=`echo "$ac_compile" | $SED \
15648    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650    -e 's:$: $lt_compiler_flag:'`
15651    (eval echo "\"\$as_me:15651: $lt_compile\"" >&5)
15652    (eval "$lt_compile" 2>out/conftest.err)
15653    ac_status=$?
15654    cat out/conftest.err >&5
15655    echo "$as_me:15655: \$? = $ac_status" >&5
15656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15657    then
15658      # The compiler can only warn and ignore the option if not recognized
15659      # So say no if there are warnings
15660      if test ! -s out/conftest.err; then
15661        lt_cv_prog_compiler_c_o_GCJ=yes
15662      fi
15663    fi
15664    chmod u+w .
15665    $rm conftest*
15666    # SGI C++ compiler will create directory out/ii_files/ for
15667    # template instantiation
15668    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15669    $rm out/* && rmdir out
15670    cd ..
15671    rmdir conftest
15672    $rm conftest*
15673
15674 fi
15675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15677
15678
15679 hard_links="nottested"
15680 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15681   # do not overwrite the value of need_locks provided by the user
15682   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15684   hard_links=yes
15685   $rm conftest*
15686   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15687   touch conftest.a
15688   ln conftest.a conftest.b 2>&5 || hard_links=no
15689   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690   echo "$as_me:$LINENO: result: $hard_links" >&5
15691 echo "${ECHO_T}$hard_links" >&6
15692   if test "$hard_links" = no; then
15693     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15695     need_locks=warn
15696   fi
15697 else
15698   need_locks=no
15699 fi
15700
15701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15703
15704   runpath_var=
15705   allow_undefined_flag_GCJ=
15706   enable_shared_with_static_runtimes_GCJ=no
15707   archive_cmds_GCJ=
15708   archive_expsym_cmds_GCJ=
15709   old_archive_From_new_cmds_GCJ=
15710   old_archive_from_expsyms_cmds_GCJ=
15711   export_dynamic_flag_spec_GCJ=
15712   whole_archive_flag_spec_GCJ=
15713   thread_safe_flag_spec_GCJ=
15714   hardcode_libdir_flag_spec_GCJ=
15715   hardcode_libdir_flag_spec_ld_GCJ=
15716   hardcode_libdir_separator_GCJ=
15717   hardcode_direct_GCJ=no
15718   hardcode_minus_L_GCJ=no
15719   hardcode_shlibpath_var_GCJ=unsupported
15720   link_all_deplibs_GCJ=unknown
15721   hardcode_automatic_GCJ=no
15722   module_cmds_GCJ=
15723   module_expsym_cmds_GCJ=
15724   always_export_symbols_GCJ=no
15725   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15726   # include_expsyms should be a list of space-separated symbols to be *always*
15727   # included in the symbol list
15728   include_expsyms_GCJ=
15729   # exclude_expsyms can be an extended regexp of symbols to exclude
15730   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15731   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15732   # as well as any symbol that contains `d'.
15733   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15734   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15735   # platforms (ab)use it in PIC code, but their linkers get confused if
15736   # the symbol is explicitly referenced.  Since portable code cannot
15737   # rely on this symbol name, it's probably fine to never include it in
15738   # preloaded symbol tables.
15739   extract_expsyms_cmds=
15740
15741   case $host_os in
15742   cygwin* | mingw* | pw32*)
15743     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15744     # When not using gcc, we currently assume that we are using
15745     # Microsoft Visual C++.
15746     if test "$GCC" != yes; then
15747       with_gnu_ld=no
15748     fi
15749     ;;
15750   openbsd*)
15751     with_gnu_ld=no
15752     ;;
15753   esac
15754
15755   ld_shlibs_GCJ=yes
15756   if test "$with_gnu_ld" = yes; then
15757     # If archive_cmds runs LD, not CC, wlarc should be empty
15758     wlarc='${wl}'
15759
15760     # See if GNU ld supports shared libraries.
15761     case $host_os in
15762     aix3* | aix4* | aix5*)
15763       # On AIX/PPC, the GNU linker is very broken
15764       if test "$host_cpu" != ia64; then
15765         ld_shlibs_GCJ=no
15766         cat <<EOF 1>&2
15767
15768 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15769 *** to be unable to reliably create shared libraries on AIX.
15770 *** Therefore, libtool is disabling shared libraries support.  If you
15771 *** really care for shared libraries, you may want to modify your PATH
15772 *** so that a non-GNU linker is found, and then restart.
15773
15774 EOF
15775       fi
15776       ;;
15777
15778     amigaos*)
15779       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)'
15780       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15781       hardcode_minus_L_GCJ=yes
15782
15783       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15784       # that the semantics of dynamic libraries on AmigaOS, at least up
15785       # to version 4, is to share data among multiple programs linked
15786       # with the same dynamic library.  Since this doesn't match the
15787       # behavior of shared libraries on other platforms, we can't use
15788       # them.
15789       ld_shlibs_GCJ=no
15790       ;;
15791
15792     beos*)
15793       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15794         allow_undefined_flag_GCJ=unsupported
15795         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15796         # support --undefined.  This deserves some investigation.  FIXME
15797         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798       else
15799         ld_shlibs_GCJ=no
15800       fi
15801       ;;
15802
15803     cygwin* | mingw* | pw32*)
15804       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15805       # as there is no search path for DLLs.
15806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15807       allow_undefined_flag_GCJ=unsupported
15808       always_export_symbols_GCJ=no
15809       enable_shared_with_static_runtimes_GCJ=yes
15810       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15811
15812       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15813         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15814         # If the export-symbols file already is a .def file (1st line
15815         # is EXPORTS), use it as is; otherwise, prepend...
15816         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15817           cp $export_symbols $output_objdir/$soname.def;
15818         else
15819           echo EXPORTS > $output_objdir/$soname.def;
15820           cat $export_symbols >> $output_objdir/$soname.def;
15821         fi~
15822         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15823       else
15824         ld_shlibs=no
15825       fi
15826       ;;
15827
15828     netbsd*)
15829       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15830         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15831         wlarc=
15832       else
15833         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15834         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15835       fi
15836       ;;
15837
15838     solaris* | sysv5*)
15839       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15840         ld_shlibs_GCJ=no
15841         cat <<EOF 1>&2
15842
15843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15844 *** create shared libraries on Solaris systems.  Therefore, libtool
15845 *** is disabling shared libraries support.  We urge you to upgrade GNU
15846 *** binutils to release 2.9.1 or newer.  Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15849
15850 EOF
15851       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15852         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15854       else
15855         ld_shlibs_GCJ=no
15856       fi
15857       ;;
15858
15859     sunos4*)
15860       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15861       wlarc=
15862       hardcode_direct_GCJ=yes
15863       hardcode_shlibpath_var_GCJ=no
15864       ;;
15865
15866   linux*)
15867     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15868         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15869         archive_cmds_GCJ="$tmp_archive_cmds"
15870       supports_anon_versioning=no
15871       case `$LD -v 2>/dev/null` in
15872         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15873         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15874         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15875         *\ 2.11.*) ;; # other 2.11 versions
15876         *) supports_anon_versioning=yes ;;
15877       esac
15878       if test $supports_anon_versioning = yes; then
15879         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15881 $echo "local: *; };" >> $output_objdir/$libname.ver~
15882         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15883       else
15884         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15885       fi
15886     else
15887       ld_shlibs_GCJ=no
15888     fi
15889     ;;
15890
15891     *)
15892       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15893         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15894         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15895       else
15896         ld_shlibs_GCJ=no
15897       fi
15898       ;;
15899     esac
15900
15901     if test "$ld_shlibs_GCJ" = yes; then
15902       runpath_var=LD_RUN_PATH
15903       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15904       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15905       # ancient GNU ld didn't support --whole-archive et. al.
15906       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15907         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15908       else
15909         whole_archive_flag_spec_GCJ=
15910       fi
15911     fi
15912   else
15913     # PORTME fill in a description of your system's linker (not GNU ld)
15914     case $host_os in
15915     aix3*)
15916       allow_undefined_flag_GCJ=unsupported
15917       always_export_symbols_GCJ=yes
15918       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'
15919       # Note: this linker hardcodes the directories in LIBPATH if there
15920       # are no directories specified by -L.
15921       hardcode_minus_L_GCJ=yes
15922       if test "$GCC" = yes && test -z "$link_static_flag"; then
15923         # Neither direct hardcoding nor static linking is supported with a
15924         # broken collect2.
15925         hardcode_direct_GCJ=unsupported
15926       fi
15927       ;;
15928
15929     aix4* | aix5*)
15930       if test "$host_cpu" = ia64; then
15931         # On IA64, the linker does run time linking by default, so we don't
15932         # have to do anything special.
15933         aix_use_runtimelinking=no
15934         exp_sym_flag='-Bexport'
15935         no_entry_flag=""
15936       else
15937         # If we're using GNU nm, then we don't want the "-C" option.
15938         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15939         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15940           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'
15941         else
15942           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'
15943         fi
15944         aix_use_runtimelinking=no
15945
15946         # Test if we are trying to use run time linking or normal
15947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948         # need to do runtime linking.
15949         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15950           for ld_flag in $LDFLAGS; do
15951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15952             aix_use_runtimelinking=yes
15953             break
15954           fi
15955           done
15956         esac
15957
15958         exp_sym_flag='-bexport'
15959         no_entry_flag='-bnoentry'
15960       fi
15961
15962       # When large executables or shared objects are built, AIX ld can
15963       # have problems creating the table of contents.  If linking a library
15964       # or program results in "error TOC overflow" add -mminimal-toc to
15965       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15966       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15967
15968       archive_cmds_GCJ=''
15969       hardcode_direct_GCJ=yes
15970       hardcode_libdir_separator_GCJ=':'
15971       link_all_deplibs_GCJ=yes
15972
15973       if test "$GCC" = yes; then
15974         case $host_os in aix4.012|aix4.012.*)
15975         # We only want to do this on AIX 4.2 and lower, the check
15976         # below for broken collect2 doesn't work under 4.3+
15977           collect2name=`${CC} -print-prog-name=collect2`
15978           if test -f "$collect2name" && \
15979            strings "$collect2name" | grep resolve_lib_name >/dev/null
15980           then
15981           # We have reworked collect2
15982           hardcode_direct_GCJ=yes
15983           else
15984           # We have old collect2
15985           hardcode_direct_GCJ=unsupported
15986           # It fails to find uninstalled libraries when the uninstalled
15987           # path is not listed in the libpath.  Setting hardcode_minus_L
15988           # to unsupported forces relinking
15989           hardcode_minus_L_GCJ=yes
15990           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15991           hardcode_libdir_separator_GCJ=
15992           fi
15993         esac
15994         shared_flag='-shared'
15995       else
15996         # not using gcc
15997         if test "$host_cpu" = ia64; then
15998         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15999         # chokes on -Wl,-G. The following line is correct:
16000           shared_flag='-G'
16001         else
16002         if test "$aix_use_runtimelinking" = yes; then
16003             shared_flag='${wl}-G'
16004           else
16005             shared_flag='${wl}-bM:SRE'
16006         fi
16007         fi
16008       fi
16009
16010       # It seems that -bexpall does not export symbols beginning with
16011       # underscore (_), so it is better to generate a list of symbols to export.
16012       always_export_symbols_GCJ=yes
16013       if test "$aix_use_runtimelinking" = yes; then
16014         # Warning - without using the other runtime loading flags (-brtl),
16015         # -berok will link without error, but may produce a broken library.
16016         allow_undefined_flag_GCJ='-berok'
16017        # Determine the default libpath from the value encoded in an empty executable.
16018        cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024
16025 int
16026 main ()
16027 {
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16035   (eval $ac_link) 2>conftest.er1
16036   ac_status=$?
16037   grep -v '^ *+' conftest.er1 >conftest.err
16038   rm -f conftest.er1
16039   cat conftest.err >&5
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); } &&
16042          { ac_try='test -z "$ac_c_werror_flag"
16043                          || test ! -s conftest.err'
16044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045   (eval $ac_try) 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; } &&
16049          { ac_try='test -s conftest$ac_exeext'
16050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051   (eval $ac_try) 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); }; }; then
16055
16056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16057 }'`
16058 # Check for a 64-bit object if we didn't find anything.
16059 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; }
16060 }'`; fi
16061 else
16062   echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 fi
16066 rm -f conftest.err conftest.$ac_objext \
16067       conftest$ac_exeext conftest.$ac_ext
16068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16069
16070        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16071         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"
16072        else
16073         if test "$host_cpu" = ia64; then
16074           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16075           allow_undefined_flag_GCJ="-z nodefs"
16076           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"
16077         else
16078          # Determine the default libpath from the value encoded in an empty executable.
16079          cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085
16086 int
16087 main ()
16088 {
16089
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096   (eval $ac_link) 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -z "$ac_c_werror_flag"
16104                          || test ! -s conftest.err'
16105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106   (eval $ac_try) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116
16117 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16118 }'`
16119 # Check for a 64-bit object if we didn't find anything.
16120 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; }
16121 }'`; fi
16122 else
16123   echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 fi
16127 rm -f conftest.err conftest.$ac_objext \
16128       conftest$ac_exeext conftest.$ac_ext
16129 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16130
16131          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16132           # Warning - without using the other run time loading flags,
16133           # -berok will link without error, but may produce a broken library.
16134           no_undefined_flag_GCJ=' ${wl}-bernotok'
16135           allow_undefined_flag_GCJ=' ${wl}-berok'
16136           # -bexpall does not export symbols beginning with underscore (_)
16137           always_export_symbols_GCJ=yes
16138           # Exported symbols can be pulled into shared objects from archives
16139           whole_archive_flag_spec_GCJ=' '
16140           archive_cmds_need_lc_GCJ=yes
16141           # This is similar to how AIX traditionally builds it's shared libraries.
16142           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'
16143         fi
16144       fi
16145       ;;
16146
16147     amigaos*)
16148       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)'
16149       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150       hardcode_minus_L_GCJ=yes
16151       # see comment about different semantics on the GNU ld section
16152       ld_shlibs_GCJ=no
16153       ;;
16154
16155     bsdi[45]*)
16156       export_dynamic_flag_spec_GCJ=-rdynamic
16157       ;;
16158
16159     cygwin* | mingw* | pw32*)
16160       # When not using gcc, we currently assume that we are using
16161       # Microsoft Visual C++.
16162       # hardcode_libdir_flag_spec is actually meaningless, as there is
16163       # no search path for DLLs.
16164       hardcode_libdir_flag_spec_GCJ=' '
16165       allow_undefined_flag_GCJ=unsupported
16166       # Tell ltmain to make .lib files, not .a files.
16167       libext=lib
16168       # Tell ltmain to make .dll files, not .so files.
16169       shrext_cmds=".dll"
16170       # FIXME: Setting linknames here is a bad hack.
16171       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16172       # The linker will automatically build a .lib file if we build a DLL.
16173       old_archive_From_new_cmds_GCJ='true'
16174       # FIXME: Should let the user specify the lib program.
16175       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16176       fix_srcfile_path='`cygpath -w "$srcfile"`'
16177       enable_shared_with_static_runtimes_GCJ=yes
16178       ;;
16179
16180     darwin* | rhapsody*)
16181       case "$host_os" in
16182         rhapsody* | darwin1.[012])
16183          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16184          ;;
16185        *) # Darwin 1.3 on
16186          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16187            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16188          else
16189            case ${MACOSX_DEPLOYMENT_TARGET} in
16190              10.[012])
16191                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16192                ;;
16193              10.*)
16194                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16195                ;;
16196            esac
16197          fi
16198          ;;
16199       esac
16200       archive_cmds_need_lc_GCJ=no
16201       hardcode_direct_GCJ=no
16202       hardcode_automatic_GCJ=yes
16203       hardcode_shlibpath_var_GCJ=unsupported
16204       whole_archive_flag_spec_GCJ=''
16205       link_all_deplibs_GCJ=yes
16206     if test "$GCC" = yes ; then
16207         output_verbose_link_cmd='echo'
16208         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16209       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16210       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16211       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}'
16212       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}'
16213     else
16214       case "$cc_basename" in
16215         xlc*)
16216          output_verbose_link_cmd='echo'
16217          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16218          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16219           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16220          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}'
16221           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}'
16222           ;;
16223        *)
16224          ld_shlibs_GCJ=no
16225           ;;
16226       esac
16227     fi
16228       ;;
16229
16230     dgux*)
16231       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16233       hardcode_shlibpath_var_GCJ=no
16234       ;;
16235
16236     freebsd1*)
16237       ld_shlibs_GCJ=no
16238       ;;
16239
16240     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16241     # support.  Future versions do this automatically, but an explicit c++rt0.o
16242     # does not break anything, and helps significantly (at the cost of a little
16243     # extra space).
16244     freebsd2.2*)
16245       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16246       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16247       hardcode_direct_GCJ=yes
16248       hardcode_shlibpath_var_GCJ=no
16249       ;;
16250
16251     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16252     freebsd2*)
16253       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16254       hardcode_direct_GCJ=yes
16255       hardcode_minus_L_GCJ=yes
16256       hardcode_shlibpath_var_GCJ=no
16257       ;;
16258
16259     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16260     freebsd* | kfreebsd*-gnu)
16261       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16262       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16263       hardcode_direct_GCJ=yes
16264       hardcode_shlibpath_var_GCJ=no
16265       ;;
16266
16267     hpux9*)
16268       if test "$GCC" = yes; then
16269         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'
16270       else
16271         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'
16272       fi
16273       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16274       hardcode_libdir_separator_GCJ=:
16275       hardcode_direct_GCJ=yes
16276
16277       # hardcode_minus_L: Not really in the search PATH,
16278       # but as the default location of the library.
16279       hardcode_minus_L_GCJ=yes
16280       export_dynamic_flag_spec_GCJ='${wl}-E'
16281       ;;
16282
16283     hpux10* | hpux11*)
16284       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16285         case "$host_cpu" in
16286         hppa*64*|ia64*)
16287           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16288           ;;
16289         *)
16290           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16291           ;;
16292         esac
16293       else
16294         case "$host_cpu" in
16295         hppa*64*|ia64*)
16296           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16297           ;;
16298         *)
16299           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16300           ;;
16301         esac
16302       fi
16303       if test "$with_gnu_ld" = no; then
16304         case "$host_cpu" in
16305         hppa*64*)
16306           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16307           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16308           hardcode_libdir_separator_GCJ=:
16309           hardcode_direct_GCJ=no
16310           hardcode_shlibpath_var_GCJ=no
16311           ;;
16312         ia64*)
16313           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314           hardcode_direct_GCJ=no
16315           hardcode_shlibpath_var_GCJ=no
16316
16317           # hardcode_minus_L: Not really in the search PATH,
16318           # but as the default location of the library.
16319           hardcode_minus_L_GCJ=yes
16320           ;;
16321         *)
16322           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16323           hardcode_libdir_separator_GCJ=:
16324           hardcode_direct_GCJ=yes
16325           export_dynamic_flag_spec_GCJ='${wl}-E'
16326
16327           # hardcode_minus_L: Not really in the search PATH,
16328           # but as the default location of the library.
16329           hardcode_minus_L_GCJ=yes
16330           ;;
16331         esac
16332       fi
16333       ;;
16334
16335     irix5* | irix6* | nonstopux*)
16336       if test "$GCC" = yes; then
16337         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'
16338       else
16339         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'
16340         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16341       fi
16342       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16343       hardcode_libdir_separator_GCJ=:
16344       link_all_deplibs_GCJ=yes
16345       ;;
16346
16347     netbsd*)
16348       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16349         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16350       else
16351         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16352       fi
16353       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16354       hardcode_direct_GCJ=yes
16355       hardcode_shlibpath_var_GCJ=no
16356       ;;
16357
16358     newsos6)
16359       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360       hardcode_direct_GCJ=yes
16361       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16362       hardcode_libdir_separator_GCJ=:
16363       hardcode_shlibpath_var_GCJ=no
16364       ;;
16365
16366     openbsd*)
16367       hardcode_direct_GCJ=yes
16368       hardcode_shlibpath_var_GCJ=no
16369       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16370         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16371         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16372         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16373         export_dynamic_flag_spec_GCJ='${wl}-E'
16374       else
16375        case $host_os in
16376          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16377            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16378            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16379            ;;
16380          *)
16381            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16383            ;;
16384        esac
16385       fi
16386       ;;
16387
16388     os2*)
16389       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390       hardcode_minus_L_GCJ=yes
16391       allow_undefined_flag_GCJ=unsupported
16392       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'
16393       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16394       ;;
16395
16396     osf3*)
16397       if test "$GCC" = yes; then
16398         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16399         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'
16400       else
16401         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16402         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'
16403       fi
16404       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16405       hardcode_libdir_separator_GCJ=:
16406       ;;
16407
16408     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16409       if test "$GCC" = yes; then
16410         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16411         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'
16412         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413       else
16414         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16415         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'
16416         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~
16417         $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'
16418
16419         # Both c and cxx compiler support -rpath directly
16420         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16421       fi
16422       hardcode_libdir_separator_GCJ=:
16423       ;;
16424
16425     sco3.2v5*)
16426       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16427       hardcode_shlibpath_var_GCJ=no
16428       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16429       runpath_var=LD_RUN_PATH
16430       hardcode_runpath_var=yes
16431       ;;
16432
16433     solaris*)
16434       no_undefined_flag_GCJ=' -z text'
16435       if test "$GCC" = yes; then
16436         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16437         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16438           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16439       else
16440         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16442         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16443       fi
16444       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16445       hardcode_shlibpath_var_GCJ=no
16446       case $host_os in
16447       solaris2.[0-5] | solaris2.[0-5].*) ;;
16448       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16449         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16450       esac
16451       link_all_deplibs_GCJ=yes
16452       ;;
16453
16454     sunos4*)
16455       if test "x$host_vendor" = xsequent; then
16456         # Use $CC to link under sequent, because it throws in some extra .o
16457         # files that make .init and .fini sections work.
16458         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459       else
16460         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16461       fi
16462       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463       hardcode_direct_GCJ=yes
16464       hardcode_minus_L_GCJ=yes
16465       hardcode_shlibpath_var_GCJ=no
16466       ;;
16467
16468     sysv4)
16469       case $host_vendor in
16470         sni)
16471           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472           hardcode_direct_GCJ=yes # is this really true???
16473         ;;
16474         siemens)
16475           ## LD is ld it makes a PLAMLIB
16476           ## CC just makes a GrossModule.
16477           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16478           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16479           hardcode_direct_GCJ=no
16480         ;;
16481         motorola)
16482           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16483           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16484         ;;
16485       esac
16486       runpath_var='LD_RUN_PATH'
16487       hardcode_shlibpath_var_GCJ=no
16488       ;;
16489
16490     sysv4.3*)
16491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16492       hardcode_shlibpath_var_GCJ=no
16493       export_dynamic_flag_spec_GCJ='-Bexport'
16494       ;;
16495
16496     sysv4*MP*)
16497       if test -d /usr/nec; then
16498         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499         hardcode_shlibpath_var_GCJ=no
16500         runpath_var=LD_RUN_PATH
16501         hardcode_runpath_var=yes
16502         ld_shlibs_GCJ=yes
16503       fi
16504       ;;
16505
16506     sysv4.2uw2*)
16507       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16508       hardcode_direct_GCJ=yes
16509       hardcode_minus_L_GCJ=no
16510       hardcode_shlibpath_var_GCJ=no
16511       hardcode_runpath_var=yes
16512       runpath_var=LD_RUN_PATH
16513       ;;
16514
16515    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16516       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16517       if test "$GCC" = yes; then
16518         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16519       else
16520         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16521       fi
16522       runpath_var='LD_RUN_PATH'
16523       hardcode_shlibpath_var_GCJ=no
16524       ;;
16525
16526     sysv5*)
16527       no_undefined_flag_GCJ=' -z text'
16528       # $CC -shared without GNU ld will not create a library from C++
16529       # object files and a static libstdc++, better avoid it by now
16530       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16532                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16533       hardcode_libdir_flag_spec_GCJ=
16534       hardcode_shlibpath_var_GCJ=no
16535       runpath_var='LD_RUN_PATH'
16536       ;;
16537
16538     uts4*)
16539       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16540       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16541       hardcode_shlibpath_var_GCJ=no
16542       ;;
16543
16544     *)
16545       ld_shlibs_GCJ=no
16546       ;;
16547     esac
16548   fi
16549
16550 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16551 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16552 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16553
16554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555 if test "$GCC" = yes; then
16556   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16557 fi
16558
16559 #
16560 # Do we need to explicitly link libc?
16561 #
16562 case "x$archive_cmds_need_lc_GCJ" in
16563 x|xyes)
16564   # Assume -lc should be added
16565   archive_cmds_need_lc_GCJ=yes
16566
16567   if test "$enable_shared" = yes && test "$GCC" = yes; then
16568     case $archive_cmds_GCJ in
16569     *'~'*)
16570       # FIXME: we may have to deal with multi-command sequences.
16571       ;;
16572     '$CC '*)
16573       # Test whether the compiler implicitly links with -lc since on some
16574       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575       # to ld, don't add -lc before -lgcc.
16576       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16578       $rm conftest*
16579       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580
16581       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582   (eval $ac_compile) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } 2>conftest.err; then
16586         soname=conftest
16587         lib=conftest
16588         libobjs=conftest.$ac_objext
16589         deplibs=
16590         wl=$lt_prog_compiler_wl_GCJ
16591         compiler_flags=-v
16592         linker_flags=-v
16593         verstring=
16594         output_objdir=.
16595         libname=conftest
16596         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16597         allow_undefined_flag_GCJ=
16598         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }
16603         then
16604           archive_cmds_need_lc_GCJ=no
16605         else
16606           archive_cmds_need_lc_GCJ=yes
16607         fi
16608         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16609       else
16610         cat conftest.err 1>&5
16611       fi
16612       $rm conftest*
16613       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16614 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16615       ;;
16616     esac
16617   fi
16618   ;;
16619 esac
16620
16621 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623 library_names_spec=
16624 libname_spec='lib$name'
16625 soname_spec=
16626 shrext_cmds=".so"
16627 postinstall_cmds=
16628 postuninstall_cmds=
16629 finish_cmds=
16630 finish_eval=
16631 shlibpath_var=
16632 shlibpath_overrides_runpath=unknown
16633 version_type=none
16634 dynamic_linker="$host_os ld.so"
16635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636 if test "$GCC" = yes; then
16637   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639     # if the path contains ";" then we assume it to be the separator
16640     # otherwise default to the standard path separator (i.e. ":") - it is
16641     # assumed that no part of a normal pathname contains ";" but that should
16642     # okay in the real world where ";" in dirpaths is itself problematic.
16643     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16644   else
16645     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16646   fi
16647 else
16648   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16649 fi
16650 need_lib_prefix=unknown
16651 hardcode_into_libs=no
16652
16653 # when you set need_version to no, make sure it does not cause -set_version
16654 # flags to be left without arguments
16655 need_version=unknown
16656
16657 case $host_os in
16658 aix3*)
16659   version_type=linux
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661   shlibpath_var=LIBPATH
16662
16663   # AIX 3 has no versioning support, so we append a major version to the name.
16664   soname_spec='${libname}${release}${shared_ext}$major'
16665   ;;
16666
16667 aix4* | aix5*)
16668   version_type=linux
16669   need_lib_prefix=no
16670   need_version=no
16671   hardcode_into_libs=yes
16672   if test "$host_cpu" = ia64; then
16673     # AIX 5 supports IA64
16674     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675     shlibpath_var=LD_LIBRARY_PATH
16676   else
16677     # With GCC up to 2.95.x, collect2 would create an import file
16678     # for dependence libraries.  The import file would start with
16679     # the line `#! .'.  This would cause the generated library to
16680     # depend on `.', always an invalid library.  This was fixed in
16681     # development snapshots of GCC prior to 3.0.
16682     case $host_os in
16683       aix4 | aix4.[01] | aix4.[01].*)
16684       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16685            echo ' yes '
16686            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16687         :
16688       else
16689         can_build_shared=no
16690       fi
16691       ;;
16692     esac
16693     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694     # soname into executable. Probably we can add versioning support to
16695     # collect2, so additional links can be useful in future.
16696     if test "$aix_use_runtimelinking" = yes; then
16697       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698       # instead of lib<name>.a to let people know that these are not
16699       # typical AIX shared libraries.
16700       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701     else
16702       # We preserve .a as extension for shared libraries through AIX4.2
16703       # and later when we are not doing run time linking.
16704       library_names_spec='${libname}${release}.a $libname.a'
16705       soname_spec='${libname}${release}${shared_ext}$major'
16706     fi
16707     shlibpath_var=LIBPATH
16708   fi
16709   ;;
16710
16711 amigaos*)
16712   library_names_spec='$libname.ixlibrary $libname.a'
16713   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16714   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'
16715   ;;
16716
16717 beos*)
16718   library_names_spec='${libname}${shared_ext}'
16719   dynamic_linker="$host_os ld.so"
16720   shlibpath_var=LIBRARY_PATH
16721   ;;
16722
16723 bsdi[45]*)
16724   version_type=linux
16725   need_version=no
16726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729   shlibpath_var=LD_LIBRARY_PATH
16730   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732   # the default ld.so.conf also contains /usr/contrib/lib and
16733   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734   # libtool to hard-code these into programs
16735   ;;
16736
16737 cygwin* | mingw* | pw32*)
16738   version_type=windows
16739   shrext_cmds=".dll"
16740   need_version=no
16741   need_lib_prefix=no
16742
16743   case $GCC,$host_os in
16744   yes,cygwin* | yes,mingw* | yes,pw32*)
16745     library_names_spec='$libname.dll.a'
16746     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16747     postinstall_cmds='base_file=`basename \${file}`~
16748       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749       dldir=$destdir/`dirname \$dlpath`~
16750       test -d \$dldir || mkdir -p \$dldir~
16751       $install_prog $dir/$dlname \$dldir/$dlname'
16752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753       dlpath=$dir/\$dldll~
16754        $rm \$dlpath'
16755     shlibpath_overrides_runpath=yes
16756
16757     case $host_os in
16758     cygwin*)
16759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16761       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16762       ;;
16763     mingw*)
16764       # MinGW DLLs use traditional 'lib' prefix
16765       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768         # It is most probably a Windows format PATH printed by
16769         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770         # path with ; separators, and with drive letters. We can handle the
16771         # drive letters (cygwin fileutils understands them), so leave them,
16772         # especially as we might pass files found there to a mingw objdump,
16773         # which wouldn't understand a cygwinified path. Ahh.
16774         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775       else
16776         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16777       fi
16778       ;;
16779     pw32*)
16780       # pw32 DLLs use 'pw' prefix rather than 'lib'
16781       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16782       ;;
16783     esac
16784     ;;
16785
16786   *)
16787     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16788     ;;
16789   esac
16790   dynamic_linker='Win32 ld.exe'
16791   # FIXME: first we should search . and the directory the executable is in
16792   shlibpath_var=PATH
16793   ;;
16794
16795 darwin* | rhapsody*)
16796   dynamic_linker="$host_os dyld"
16797   version_type=darwin
16798   need_lib_prefix=no
16799   need_version=no
16800   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16801   soname_spec='${libname}${release}${major}$shared_ext'
16802   shlibpath_overrides_runpath=yes
16803   shlibpath_var=DYLD_LIBRARY_PATH
16804   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16805   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16806   if test "$GCC" = yes; then
16807     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"`
16808   else
16809     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16810   fi
16811   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16812   ;;
16813
16814 dgux*)
16815   version_type=linux
16816   need_lib_prefix=no
16817   need_version=no
16818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819   soname_spec='${libname}${release}${shared_ext}$major'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   ;;
16822
16823 freebsd1*)
16824   dynamic_linker=no
16825   ;;
16826
16827 kfreebsd*-gnu)
16828   version_type=linux
16829   need_lib_prefix=no
16830   need_version=no
16831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832   soname_spec='${libname}${release}${shared_ext}$major'
16833   shlibpath_var=LD_LIBRARY_PATH
16834   shlibpath_overrides_runpath=no
16835   hardcode_into_libs=yes
16836   dynamic_linker='GNU ld.so'
16837   ;;
16838
16839 freebsd*)
16840   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841   version_type=freebsd-$objformat
16842   case $version_type in
16843     freebsd-elf*)
16844       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845       need_version=no
16846       need_lib_prefix=no
16847       ;;
16848     freebsd-*)
16849       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16850       need_version=yes
16851       ;;
16852   esac
16853   shlibpath_var=LD_LIBRARY_PATH
16854   case $host_os in
16855   freebsd2*)
16856     shlibpath_overrides_runpath=yes
16857     ;;
16858   freebsd3.01* | freebsdelf3.01*)
16859     shlibpath_overrides_runpath=yes
16860     hardcode_into_libs=yes
16861     ;;
16862   *) # from 3.2 on
16863     shlibpath_overrides_runpath=no
16864     hardcode_into_libs=yes
16865     ;;
16866   esac
16867   ;;
16868
16869 gnu*)
16870   version_type=linux
16871   need_lib_prefix=no
16872   need_version=no
16873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874   soname_spec='${libname}${release}${shared_ext}$major'
16875   shlibpath_var=LD_LIBRARY_PATH
16876   hardcode_into_libs=yes
16877   ;;
16878
16879 hpux9* | hpux10* | hpux11*)
16880   # Give a soname corresponding to the major version so that dld.sl refuses to
16881   # link against other versions.
16882   version_type=sunos
16883   need_lib_prefix=no
16884   need_version=no
16885   case "$host_cpu" in
16886   ia64*)
16887     shrext_cmds='.so'
16888     hardcode_into_libs=yes
16889     dynamic_linker="$host_os dld.so"
16890     shlibpath_var=LD_LIBRARY_PATH
16891     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893     soname_spec='${libname}${release}${shared_ext}$major'
16894     if test "X$HPUX_IA64_MODE" = X32; then
16895       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16896     else
16897       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16898     fi
16899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16900     ;;
16901    hppa*64*)
16902      shrext_cmds='.sl'
16903      hardcode_into_libs=yes
16904      dynamic_linker="$host_os dld.sl"
16905      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908      soname_spec='${libname}${release}${shared_ext}$major'
16909      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911      ;;
16912    *)
16913     shrext_cmds='.sl'
16914     dynamic_linker="$host_os dld.sl"
16915     shlibpath_var=SHLIB_PATH
16916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918     soname_spec='${libname}${release}${shared_ext}$major'
16919     ;;
16920   esac
16921   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922   postinstall_cmds='chmod 555 $lib'
16923   ;;
16924
16925 irix5* | irix6* | nonstopux*)
16926   case $host_os in
16927     nonstopux*) version_type=nonstopux ;;
16928     *)
16929         if test "$lt_cv_prog_gnu_ld" = yes; then
16930                 version_type=linux
16931         else
16932                 version_type=irix
16933         fi ;;
16934   esac
16935   need_lib_prefix=no
16936   need_version=no
16937   soname_spec='${libname}${release}${shared_ext}$major'
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16939   case $host_os in
16940   irix5* | nonstopux*)
16941     libsuff= shlibsuff=
16942     ;;
16943   *)
16944     case $LD in # libtool.m4 will add one of these switches to LD
16945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946       libsuff= shlibsuff= libmagic=32-bit;;
16947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948       libsuff=32 shlibsuff=N32 libmagic=N32;;
16949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951     *) libsuff= shlibsuff= libmagic=never-match;;
16952     esac
16953     ;;
16954   esac
16955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956   shlibpath_overrides_runpath=no
16957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959   hardcode_into_libs=yes
16960   ;;
16961
16962 # No shared lib support for Linux oldld, aout, or coff.
16963 linux*oldld* | linux*aout* | linux*coff*)
16964   dynamic_linker=no
16965   ;;
16966
16967 # This must be Linux ELF.
16968 linux*)
16969   version_type=linux
16970   need_lib_prefix=no
16971   need_version=no
16972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973   soname_spec='${libname}${release}${shared_ext}$major'
16974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975   shlibpath_var=LD_LIBRARY_PATH
16976   shlibpath_overrides_runpath=no
16977   # This implies no fast_install, which is unacceptable.
16978   # Some rework will be needed to allow for fast_install
16979   # before this can be enabled.
16980   hardcode_into_libs=yes
16981
16982   # Append ld.so.conf contents to the search path
16983   if test -f /etc/ld.so.conf; then
16984     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16986   fi
16987
16988   # We used to test for /lib/ld.so.1 and disable shared libraries on
16989   # powerpc, because MkLinux only supported shared libraries with the
16990   # GNU dynamic linker.  Since this was broken with cross compilers,
16991   # most powerpc-linux boxes support dynamic linking these days and
16992   # people can always --disable-shared, the test was removed, and we
16993   # assume the GNU/Linux dynamic linker is in use.
16994   dynamic_linker='GNU/Linux ld.so'
16995   ;;
16996
16997 knetbsd*-gnu)
16998   version_type=linux
16999   need_lib_prefix=no
17000   need_version=no
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   shlibpath_var=LD_LIBRARY_PATH
17004   shlibpath_overrides_runpath=no
17005   hardcode_into_libs=yes
17006   dynamic_linker='GNU ld.so'
17007   ;;
17008
17009 netbsd*)
17010   version_type=sunos
17011   need_lib_prefix=no
17012   need_version=no
17013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016     dynamic_linker='NetBSD (a.out) ld.so'
17017   else
17018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17019     soname_spec='${libname}${release}${shared_ext}$major'
17020     dynamic_linker='NetBSD ld.elf_so'
17021   fi
17022   shlibpath_var=LD_LIBRARY_PATH
17023   shlibpath_overrides_runpath=yes
17024   hardcode_into_libs=yes
17025   ;;
17026
17027 newsos6)
17028   version_type=linux
17029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030   shlibpath_var=LD_LIBRARY_PATH
17031   shlibpath_overrides_runpath=yes
17032   ;;
17033
17034 nto-qnx*)
17035   version_type=linux
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039   soname_spec='${libname}${release}${shared_ext}$major'
17040   shlibpath_var=LD_LIBRARY_PATH
17041   shlibpath_overrides_runpath=yes
17042   ;;
17043
17044 openbsd*)
17045   version_type=sunos
17046   need_lib_prefix=no
17047   need_version=no
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050   shlibpath_var=LD_LIBRARY_PATH
17051   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052     case $host_os in
17053       openbsd2.[89] | openbsd2.[89].*)
17054         shlibpath_overrides_runpath=no
17055         ;;
17056       *)
17057         shlibpath_overrides_runpath=yes
17058         ;;
17059       esac
17060   else
17061     shlibpath_overrides_runpath=yes
17062   fi
17063   ;;
17064
17065 os2*)
17066   libname_spec='$name'
17067   shrext_cmds=".dll"
17068   need_lib_prefix=no
17069   library_names_spec='$libname${shared_ext} $libname.a'
17070   dynamic_linker='OS/2 ld.exe'
17071   shlibpath_var=LIBPATH
17072   ;;
17073
17074 osf3* | osf4* | osf5*)
17075   version_type=osf
17076   need_lib_prefix=no
17077   need_version=no
17078   soname_spec='${libname}${release}${shared_ext}$major'
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080   shlibpath_var=LD_LIBRARY_PATH
17081   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17083   ;;
17084
17085 sco3.2v5*)
17086   version_type=osf
17087   soname_spec='${libname}${release}${shared_ext}$major'
17088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   ;;
17091
17092 solaris*)
17093   version_type=linux
17094   need_lib_prefix=no
17095   need_version=no
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097   soname_spec='${libname}${release}${shared_ext}$major'
17098   shlibpath_var=LD_LIBRARY_PATH
17099   shlibpath_overrides_runpath=yes
17100   hardcode_into_libs=yes
17101   # ldd complains unless libraries are executable
17102   postinstall_cmds='chmod +x $lib'
17103   ;;
17104
17105 sunos4*)
17106   version_type=sunos
17107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109   shlibpath_var=LD_LIBRARY_PATH
17110   shlibpath_overrides_runpath=yes
17111   if test "$with_gnu_ld" = yes; then
17112     need_lib_prefix=no
17113   fi
17114   need_version=yes
17115   ;;
17116
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17118   version_type=linux
17119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120   soname_spec='${libname}${release}${shared_ext}$major'
17121   shlibpath_var=LD_LIBRARY_PATH
17122   case $host_vendor in
17123     sni)
17124       shlibpath_overrides_runpath=no
17125       need_lib_prefix=no
17126       export_dynamic_flag_spec='${wl}-Blargedynsym'
17127       runpath_var=LD_RUN_PATH
17128       ;;
17129     siemens)
17130       need_lib_prefix=no
17131       ;;
17132     motorola)
17133       need_lib_prefix=no
17134       need_version=no
17135       shlibpath_overrides_runpath=no
17136       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137       ;;
17138   esac
17139   ;;
17140
17141 sysv4*MP*)
17142   if test -d /usr/nec ;then
17143     version_type=linux
17144     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145     soname_spec='$libname${shared_ext}.$major'
17146     shlibpath_var=LD_LIBRARY_PATH
17147   fi
17148   ;;
17149
17150 uts4*)
17151   version_type=linux
17152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153   soname_spec='${libname}${release}${shared_ext}$major'
17154   shlibpath_var=LD_LIBRARY_PATH
17155   ;;
17156
17157 *)
17158   dynamic_linker=no
17159   ;;
17160 esac
17161 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162 echo "${ECHO_T}$dynamic_linker" >&6
17163 test "$dynamic_linker" = no && can_build_shared=no
17164
17165 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167 hardcode_action_GCJ=
17168 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17169    test -n "$runpath_var_GCJ" || \
17170    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17171
17172   # We can hardcode non-existant directories.
17173   if test "$hardcode_direct_GCJ" != no &&
17174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175      # have to relink, otherwise we might link with an installed library
17176      # when we should be linking with a yet-to-be-installed one
17177      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17178      test "$hardcode_minus_L_GCJ" != no; then
17179     # Linking always hardcodes the temporary library directory.
17180     hardcode_action_GCJ=relink
17181   else
17182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183     hardcode_action_GCJ=immediate
17184   fi
17185 else
17186   # We cannot hardcode anything, or else we can only hardcode existing
17187   # directories.
17188   hardcode_action_GCJ=unsupported
17189 fi
17190 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17191 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17192
17193 if test "$hardcode_action_GCJ" = relink; then
17194   # Fast installation is not supported
17195   enable_fast_install=no
17196 elif test "$shlibpath_overrides_runpath" = yes ||
17197      test "$enable_shared" = no; then
17198   # Fast installation is not necessary
17199   enable_fast_install=needless
17200 fi
17201
17202 striplib=
17203 old_striplib=
17204 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209   echo "$as_me:$LINENO: result: yes" >&5
17210 echo "${ECHO_T}yes" >&6
17211 else
17212 # FIXME - insert some real tests, host_os isn't really good enough
17213   case $host_os in
17214    darwin*)
17215        if test -n "$STRIP" ; then
17216          striplib="$STRIP -x"
17217          echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17219        else
17220   echo "$as_me:$LINENO: result: no" >&5
17221 echo "${ECHO_T}no" >&6
17222 fi
17223        ;;
17224    *)
17225   echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17227     ;;
17228   esac
17229 fi
17230
17231 if test "x$enable_dlopen" != xyes; then
17232   enable_dlopen=unknown
17233   enable_dlopen_self=unknown
17234   enable_dlopen_self_static=unknown
17235 else
17236   lt_cv_dlopen=no
17237   lt_cv_dlopen_libs=
17238
17239   case $host_os in
17240   beos*)
17241     lt_cv_dlopen="load_add_on"
17242     lt_cv_dlopen_libs=
17243     lt_cv_dlopen_self=yes
17244     ;;
17245
17246   mingw* | pw32*)
17247     lt_cv_dlopen="LoadLibrary"
17248     lt_cv_dlopen_libs=
17249    ;;
17250
17251   cygwin*)
17252     lt_cv_dlopen="dlopen"
17253     lt_cv_dlopen_libs=
17254    ;;
17255
17256   darwin*)
17257   # if libdl is installed we need to link against it
17258     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   ac_check_lib_save_LIBS=$LIBS
17264 LIBS="-ldl  $LIBS"
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271
17272 /* Override any gcc2 internal prototype to avoid an error.  */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 /* We use char because int might match the return type of a gcc2
17277    builtin and then its argument prototype would still apply.  */
17278 char dlopen ();
17279 int
17280 main ()
17281 {
17282 dlopen ();
17283   ;
17284   return 0;
17285 }
17286 _ACEOF
17287 rm -f conftest.$ac_objext conftest$ac_exeext
17288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17289   (eval $ac_link) 2>conftest.er1
17290   ac_status=$?
17291   grep -v '^ *+' conftest.er1 >conftest.err
17292   rm -f conftest.er1
17293   cat conftest.err >&5
17294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295   (exit $ac_status); } &&
17296          { ac_try='test -z "$ac_c_werror_flag"
17297                          || test ! -s conftest.err'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; } &&
17303          { ac_try='test -s conftest$ac_exeext'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; }; then
17309   ac_cv_lib_dl_dlopen=yes
17310 else
17311   echo "$as_me: failed program was:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17313
17314 ac_cv_lib_dl_dlopen=no
17315 fi
17316 rm -f conftest.err conftest.$ac_objext \
17317       conftest$ac_exeext conftest.$ac_ext
17318 LIBS=$ac_check_lib_save_LIBS
17319 fi
17320 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322 if test $ac_cv_lib_dl_dlopen = yes; then
17323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17324 else
17325
17326     lt_cv_dlopen="dyld"
17327     lt_cv_dlopen_libs=
17328     lt_cv_dlopen_self=yes
17329
17330 fi
17331
17332    ;;
17333
17334   *)
17335     echo "$as_me:$LINENO: checking for shl_load" >&5
17336 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337 if test "${ac_cv_func_shl_load+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17348 #define shl_load innocuous_shl_load
17349
17350 /* System header to define __stub macros and hopefully few prototypes,
17351     which can conflict with char shl_load (); below.
17352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353     <limits.h> exists even on freestanding compilers.  */
17354
17355 #ifdef __STDC__
17356 # include <limits.h>
17357 #else
17358 # include <assert.h>
17359 #endif
17360
17361 #undef shl_load
17362
17363 /* Override any gcc2 internal prototype to avoid an error.  */
17364 #ifdef __cplusplus
17365 extern "C"
17366 {
17367 #endif
17368 /* We use char because int might match the return type of a gcc2
17369    builtin and then its argument prototype would still apply.  */
17370 char shl_load ();
17371 /* The GNU C library defines this for functions which it implements
17372     to always fail with ENOSYS.  Some functions are actually named
17373     something starting with __ and the normal name is an alias.  */
17374 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17375 choke me
17376 #else
17377 char (*f) () = shl_load;
17378 #endif
17379 #ifdef __cplusplus
17380 }
17381 #endif
17382
17383 int
17384 main ()
17385 {
17386 return f != shl_load;
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393   (eval $ac_link) 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } &&
17400          { ac_try='test -z "$ac_c_werror_flag"
17401                          || test ! -s conftest.err'
17402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403   (eval $ac_try) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   ac_cv_func_shl_load=yes
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 ac_cv_func_shl_load=no
17419 fi
17420 rm -f conftest.err conftest.$ac_objext \
17421       conftest$ac_exeext conftest.$ac_ext
17422 fi
17423 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425 if test $ac_cv_func_shl_load = yes; then
17426   lt_cv_dlopen="shl_load"
17427 else
17428   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   ac_check_lib_save_LIBS=$LIBS
17434 LIBS="-ldld  $LIBS"
17435 cat >conftest.$ac_ext <<_ACEOF
17436 /* confdefs.h.  */
17437 _ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h.  */
17441
17442 /* Override any gcc2 internal prototype to avoid an error.  */
17443 #ifdef __cplusplus
17444 extern "C"
17445 #endif
17446 /* We use char because int might match the return type of a gcc2
17447    builtin and then its argument prototype would still apply.  */
17448 char shl_load ();
17449 int
17450 main ()
17451 {
17452 shl_load ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459   (eval $ac_link) 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } &&
17466          { ac_try='test -z "$ac_c_werror_flag"
17467                          || test ! -s conftest.err'
17468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469   (eval $ac_try) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; } &&
17473          { ac_try='test -s conftest$ac_exeext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_cv_lib_dld_shl_load=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_lib_dld_shl_load=no
17485 fi
17486 rm -f conftest.err conftest.$ac_objext \
17487       conftest$ac_exeext conftest.$ac_ext
17488 LIBS=$ac_check_lib_save_LIBS
17489 fi
17490 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492 if test $ac_cv_lib_dld_shl_load = yes; then
17493   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17494 else
17495   echo "$as_me:$LINENO: checking for dlopen" >&5
17496 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497 if test "${ac_cv_func_dlopen+set}" = set; then
17498   echo $ECHO_N "(cached) $ECHO_C" >&6
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501 /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17508 #define dlopen innocuous_dlopen
17509
17510 /* System header to define __stub macros and hopefully few prototypes,
17511     which can conflict with char dlopen (); below.
17512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513     <limits.h> exists even on freestanding compilers.  */
17514
17515 #ifdef __STDC__
17516 # include <limits.h>
17517 #else
17518 # include <assert.h>
17519 #endif
17520
17521 #undef dlopen
17522
17523 /* Override any gcc2 internal prototype to avoid an error.  */
17524 #ifdef __cplusplus
17525 extern "C"
17526 {
17527 #endif
17528 /* We use char because int might match the return type of a gcc2
17529    builtin and then its argument prototype would still apply.  */
17530 char dlopen ();
17531 /* The GNU C library defines this for functions which it implements
17532     to always fail with ENOSYS.  Some functions are actually named
17533     something starting with __ and the normal name is an alias.  */
17534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17535 choke me
17536 #else
17537 char (*f) () = dlopen;
17538 #endif
17539 #ifdef __cplusplus
17540 }
17541 #endif
17542
17543 int
17544 main ()
17545 {
17546 return f != dlopen;
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17553   (eval $ac_link) 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag"
17561                          || test ! -s conftest.err'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } &&
17567          { ac_try='test -s conftest$ac_exeext'
17568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569   (eval $ac_try) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; }; then
17573   ac_cv_func_dlopen=yes
17574 else
17575   echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578 ac_cv_func_dlopen=no
17579 fi
17580 rm -f conftest.err conftest.$ac_objext \
17581       conftest$ac_exeext conftest.$ac_ext
17582 fi
17583 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585 if test $ac_cv_func_dlopen = yes; then
17586   lt_cv_dlopen="dlopen"
17587 else
17588   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-ldl  $LIBS"
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601
17602 /* Override any gcc2 internal prototype to avoid an error.  */
17603 #ifdef __cplusplus
17604 extern "C"
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607    builtin and then its argument prototype would still apply.  */
17608 char dlopen ();
17609 int
17610 main ()
17611 {
17612 dlopen ();
17613   ;
17614   return 0;
17615 }
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619   (eval $ac_link) 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_c_werror_flag"
17627                          || test ! -s conftest.err'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_lib_dl_dlopen=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_lib_dl_dlopen=no
17645 fi
17646 rm -f conftest.err conftest.$ac_objext \
17647       conftest$ac_exeext conftest.$ac_ext
17648 LIBS=$ac_check_lib_save_LIBS
17649 fi
17650 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652 if test $ac_cv_lib_dl_dlopen = yes; then
17653   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17654 else
17655   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658   echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660   ac_check_lib_save_LIBS=$LIBS
17661 LIBS="-lsvld  $LIBS"
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668
17669 /* Override any gcc2 internal prototype to avoid an error.  */
17670 #ifdef __cplusplus
17671 extern "C"
17672 #endif
17673 /* We use char because int might match the return type of a gcc2
17674    builtin and then its argument prototype would still apply.  */
17675 char dlopen ();
17676 int
17677 main ()
17678 {
17679 dlopen ();
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686   (eval $ac_link) 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } &&
17693          { ac_try='test -z "$ac_c_werror_flag"
17694                          || test ! -s conftest.err'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; } &&
17700          { ac_try='test -s conftest$ac_exeext'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706   ac_cv_lib_svld_dlopen=yes
17707 else
17708   echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17710
17711 ac_cv_lib_svld_dlopen=no
17712 fi
17713 rm -f conftest.err conftest.$ac_objext \
17714       conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17716 fi
17717 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719 if test $ac_cv_lib_svld_dlopen = yes; then
17720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17721 else
17722   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   ac_check_lib_save_LIBS=$LIBS
17728 LIBS="-ldld  $LIBS"
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 /* Override any gcc2 internal prototype to avoid an error.  */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 /* We use char because int might match the return type of a gcc2
17741    builtin and then its argument prototype would still apply.  */
17742 char dld_link ();
17743 int
17744 main ()
17745 {
17746 dld_link ();
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753   (eval $ac_link) 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } &&
17760          { ac_try='test -z "$ac_c_werror_flag"
17761                          || test ! -s conftest.err'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest$ac_exeext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   ac_cv_lib_dld_dld_link=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_cv_lib_dld_dld_link=no
17779 fi
17780 rm -f conftest.err conftest.$ac_objext \
17781       conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17783 fi
17784 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786 if test $ac_cv_lib_dld_dld_link = yes; then
17787   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17788 fi
17789
17790
17791 fi
17792
17793
17794 fi
17795
17796
17797 fi
17798
17799
17800 fi
17801
17802
17803 fi
17804
17805     ;;
17806   esac
17807
17808   if test "x$lt_cv_dlopen" != xno; then
17809     enable_dlopen=yes
17810   else
17811     enable_dlopen=no
17812   fi
17813
17814   case $lt_cv_dlopen in
17815   dlopen)
17816     save_CPPFLAGS="$CPPFLAGS"
17817     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17818
17819     save_LDFLAGS="$LDFLAGS"
17820     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17821
17822     save_LIBS="$LIBS"
17823     LIBS="$lt_cv_dlopen_libs $LIBS"
17824
17825     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827 if test "${lt_cv_dlopen_self+set}" = set; then
17828   echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830           if test "$cross_compiling" = yes; then :
17831   lt_cv_dlopen_self=cross
17832 else
17833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834   lt_status=$lt_dlunknown
17835   cat > conftest.$ac_ext <<EOF
17836 #line 17836 "configure"
17837 #include "confdefs.h"
17838
17839 #if HAVE_DLFCN_H
17840 #include <dlfcn.h>
17841 #endif
17842
17843 #include <stdio.h>
17844
17845 #ifdef RTLD_GLOBAL
17846 #  define LT_DLGLOBAL           RTLD_GLOBAL
17847 #else
17848 #  ifdef DL_GLOBAL
17849 #    define LT_DLGLOBAL         DL_GLOBAL
17850 #  else
17851 #    define LT_DLGLOBAL         0
17852 #  endif
17853 #endif
17854
17855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856    find out it does not work in some platform. */
17857 #ifndef LT_DLLAZY_OR_NOW
17858 #  ifdef RTLD_LAZY
17859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17860 #  else
17861 #    ifdef DL_LAZY
17862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17863 #    else
17864 #      ifdef RTLD_NOW
17865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17866 #      else
17867 #        ifdef DL_NOW
17868 #          define LT_DLLAZY_OR_NOW      DL_NOW
17869 #        else
17870 #          define LT_DLLAZY_OR_NOW      0
17871 #        endif
17872 #      endif
17873 #    endif
17874 #  endif
17875 #endif
17876
17877 #ifdef __cplusplus
17878 extern "C" void exit (int);
17879 #endif
17880
17881 void fnord() { int i=42;}
17882 int main ()
17883 {
17884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885   int status = $lt_dlunknown;
17886
17887   if (self)
17888     {
17889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17890       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891       /* dlclose (self); */
17892     }
17893
17894     exit (status);
17895 }
17896 EOF
17897   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898   (eval $ac_link) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902     (./conftest; exit; ) 2>/dev/null
17903     lt_status=$?
17904     case x$lt_status in
17905       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17908     esac
17909   else :
17910     # compilation failed
17911     lt_cv_dlopen_self=no
17912   fi
17913 fi
17914 rm -fr conftest*
17915
17916
17917 fi
17918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17920
17921     if test "x$lt_cv_dlopen_self" = xyes; then
17922       LDFLAGS="$LDFLAGS $link_static_flag"
17923       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925 if test "${lt_cv_dlopen_self_static+set}" = set; then
17926   echo $ECHO_N "(cached) $ECHO_C" >&6
17927 else
17928           if test "$cross_compiling" = yes; then :
17929   lt_cv_dlopen_self_static=cross
17930 else
17931   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932   lt_status=$lt_dlunknown
17933   cat > conftest.$ac_ext <<EOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17936
17937 #if HAVE_DLFCN_H
17938 #include <dlfcn.h>
17939 #endif
17940
17941 #include <stdio.h>
17942
17943 #ifdef RTLD_GLOBAL
17944 #  define LT_DLGLOBAL           RTLD_GLOBAL
17945 #else
17946 #  ifdef DL_GLOBAL
17947 #    define LT_DLGLOBAL         DL_GLOBAL
17948 #  else
17949 #    define LT_DLGLOBAL         0
17950 #  endif
17951 #endif
17952
17953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954    find out it does not work in some platform. */
17955 #ifndef LT_DLLAZY_OR_NOW
17956 #  ifdef RTLD_LAZY
17957 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17958 #  else
17959 #    ifdef DL_LAZY
17960 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17961 #    else
17962 #      ifdef RTLD_NOW
17963 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17964 #      else
17965 #        ifdef DL_NOW
17966 #          define LT_DLLAZY_OR_NOW      DL_NOW
17967 #        else
17968 #          define LT_DLLAZY_OR_NOW      0
17969 #        endif
17970 #      endif
17971 #    endif
17972 #  endif
17973 #endif
17974
17975 #ifdef __cplusplus
17976 extern "C" void exit (int);
17977 #endif
17978
17979 void fnord() { int i=42;}
17980 int main ()
17981 {
17982   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983   int status = $lt_dlunknown;
17984
17985   if (self)
17986     {
17987       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17988       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989       /* dlclose (self); */
17990     }
17991
17992     exit (status);
17993 }
17994 EOF
17995   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996   (eval $ac_link) 2>&5
17997   ac_status=$?
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000     (./conftest; exit; ) 2>/dev/null
18001     lt_status=$?
18002     case x$lt_status in
18003       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18006     esac
18007   else :
18008     # compilation failed
18009     lt_cv_dlopen_self_static=no
18010   fi
18011 fi
18012 rm -fr conftest*
18013
18014
18015 fi
18016 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18018     fi
18019
18020     CPPFLAGS="$save_CPPFLAGS"
18021     LDFLAGS="$save_LDFLAGS"
18022     LIBS="$save_LIBS"
18023     ;;
18024   esac
18025
18026   case $lt_cv_dlopen_self in
18027   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028   *) enable_dlopen_self=unknown ;;
18029   esac
18030
18031   case $lt_cv_dlopen_self_static in
18032   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033   *) enable_dlopen_self_static=unknown ;;
18034   esac
18035 fi
18036
18037
18038 # The else clause should only fire when bootstrapping the
18039 # libtool distribution, otherwise you forgot to ship ltmain.sh
18040 # with your package, and you will get complaints that there are
18041 # no rules to generate ltmain.sh.
18042 if test -f "$ltmain"; then
18043   # See if we are running on zsh, and set the options which allow our commands through
18044   # without removal of \ escapes.
18045   if test -n "${ZSH_VERSION+set}" ; then
18046     setopt NO_GLOB_SUBST
18047   fi
18048   # Now quote all the things that may contain metacharacters while being
18049   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18050   # variables and quote the copies for generation of the libtool script.
18051   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18052     SED SHELL STRIP \
18053     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055     deplibs_check_method reload_flag reload_cmds need_locks \
18056     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057     lt_cv_sys_global_symbol_to_c_name_address \
18058     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059     old_postinstall_cmds old_postuninstall_cmds \
18060     compiler_GCJ \
18061     CC_GCJ \
18062     LD_GCJ \
18063     lt_prog_compiler_wl_GCJ \
18064     lt_prog_compiler_pic_GCJ \
18065     lt_prog_compiler_static_GCJ \
18066     lt_prog_compiler_no_builtin_flag_GCJ \
18067     export_dynamic_flag_spec_GCJ \
18068     thread_safe_flag_spec_GCJ \
18069     whole_archive_flag_spec_GCJ \
18070     enable_shared_with_static_runtimes_GCJ \
18071     old_archive_cmds_GCJ \
18072     old_archive_from_new_cmds_GCJ \
18073     predep_objects_GCJ \
18074     postdep_objects_GCJ \
18075     predeps_GCJ \
18076     postdeps_GCJ \
18077     compiler_lib_search_path_GCJ \
18078     archive_cmds_GCJ \
18079     archive_expsym_cmds_GCJ \
18080     postinstall_cmds_GCJ \
18081     postuninstall_cmds_GCJ \
18082     old_archive_from_expsyms_cmds_GCJ \
18083     allow_undefined_flag_GCJ \
18084     no_undefined_flag_GCJ \
18085     export_symbols_cmds_GCJ \
18086     hardcode_libdir_flag_spec_GCJ \
18087     hardcode_libdir_flag_spec_ld_GCJ \
18088     hardcode_libdir_separator_GCJ \
18089     hardcode_automatic_GCJ \
18090     module_cmds_GCJ \
18091     module_expsym_cmds_GCJ \
18092     lt_cv_prog_compiler_c_o_GCJ \
18093     exclude_expsyms_GCJ \
18094     include_expsyms_GCJ; do
18095
18096     case $var in
18097     old_archive_cmds_GCJ | \
18098     old_archive_from_new_cmds_GCJ | \
18099     archive_cmds_GCJ | \
18100     archive_expsym_cmds_GCJ | \
18101     module_cmds_GCJ | \
18102     module_expsym_cmds_GCJ | \
18103     old_archive_from_expsyms_cmds_GCJ | \
18104     export_symbols_cmds_GCJ | \
18105     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106     postinstall_cmds | postuninstall_cmds | \
18107     old_postinstall_cmds | old_postuninstall_cmds | \
18108     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109       # Double-quote double-evaled strings.
18110       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18111       ;;
18112     *)
18113       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18114       ;;
18115     esac
18116   done
18117
18118   case $lt_echo in
18119   *'\$0 --fallback-echo"')
18120     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18121     ;;
18122   esac
18123
18124 cfgfile="$ofile"
18125
18126   cat <<__EOF__ >> "$cfgfile"
18127 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18128
18129 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18130
18131 # Shell to use when invoking shell scripts.
18132 SHELL=$lt_SHELL
18133
18134 # Whether or not to build shared libraries.
18135 build_libtool_libs=$enable_shared
18136
18137 # Whether or not to build static libraries.
18138 build_old_libs=$enable_static
18139
18140 # Whether or not to add -lc for building shared libraries.
18141 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18142
18143 # Whether or not to disallow shared libs when runtime libs are static
18144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18145
18146 # Whether or not to optimize for fast installation.
18147 fast_install=$enable_fast_install
18148
18149 # The host system.
18150 host_alias=$host_alias
18151 host=$host
18152
18153 # An echo program that does not interpret backslashes.
18154 echo=$lt_echo
18155
18156 # The archiver.
18157 AR=$lt_AR
18158 AR_FLAGS=$lt_AR_FLAGS
18159
18160 # A C compiler.
18161 LTCC=$lt_LTCC
18162
18163 # A language-specific compiler.
18164 CC=$lt_compiler_GCJ
18165
18166 # Is the compiler the GNU C compiler?
18167 with_gcc=$GCC_GCJ
18168
18169 # An ERE matcher.
18170 EGREP=$lt_EGREP
18171
18172 # The linker used to build libraries.
18173 LD=$lt_LD_GCJ
18174
18175 # Whether we need hard or soft links.
18176 LN_S=$lt_LN_S
18177
18178 # A BSD-compatible nm program.
18179 NM=$lt_NM
18180
18181 # A symbol stripping program
18182 STRIP=$lt_STRIP
18183
18184 # Used to examine libraries when file_magic_cmd begins "file"
18185 MAGIC_CMD=$MAGIC_CMD
18186
18187 # Used on cygwin: DLL creation program.
18188 DLLTOOL="$DLLTOOL"
18189
18190 # Used on cygwin: object dumper.
18191 OBJDUMP="$OBJDUMP"
18192
18193 # Used on cygwin: assembler.
18194 AS="$AS"
18195
18196 # The name of the directory that contains temporary libtool files.
18197 objdir=$objdir
18198
18199 # How to create reloadable object files.
18200 reload_flag=$lt_reload_flag
18201 reload_cmds=$lt_reload_cmds
18202
18203 # How to pass a linker flag through the compiler.
18204 wl=$lt_lt_prog_compiler_wl_GCJ
18205
18206 # Object file suffix (normally "o").
18207 objext="$ac_objext"
18208
18209 # Old archive suffix (normally "a").
18210 libext="$libext"
18211
18212 # Shared library suffix (normally ".so").
18213 shrext_cmds='$shrext_cmds'
18214
18215 # Executable file suffix (normally "").
18216 exeext="$exeext"
18217
18218 # Additional compiler flags for building library objects.
18219 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18220 pic_mode=$pic_mode
18221
18222 # What is the maximum length of a command?
18223 max_cmd_len=$lt_cv_sys_max_cmd_len
18224
18225 # Does compiler simultaneously support -c and -o options?
18226 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18227
18228 # Must we lock files when doing compilation ?
18229 need_locks=$lt_need_locks
18230
18231 # Do we need the lib prefix for modules?
18232 need_lib_prefix=$need_lib_prefix
18233
18234 # Do we need a version for libraries?
18235 need_version=$need_version
18236
18237 # Whether dlopen is supported.
18238 dlopen_support=$enable_dlopen
18239
18240 # Whether dlopen of programs is supported.
18241 dlopen_self=$enable_dlopen_self
18242
18243 # Whether dlopen of statically linked programs is supported.
18244 dlopen_self_static=$enable_dlopen_self_static
18245
18246 # Compiler flag to prevent dynamic linking.
18247 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18248
18249 # Compiler flag to turn off builtin functions.
18250 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18251
18252 # Compiler flag to allow reflexive dlopens.
18253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18254
18255 # Compiler flag to generate shared objects directly from archives.
18256 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18257
18258 # Compiler flag to generate thread-safe objects.
18259 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18260
18261 # Library versioning type.
18262 version_type=$version_type
18263
18264 # Format of library name prefix.
18265 libname_spec=$lt_libname_spec
18266
18267 # List of archive names.  First name is the real one, the rest are links.
18268 # The last name is the one that the linker finds with -lNAME.
18269 library_names_spec=$lt_library_names_spec
18270
18271 # The coded name of the library, if different from the real name.
18272 soname_spec=$lt_soname_spec
18273
18274 # Commands used to build and install an old-style archive.
18275 RANLIB=$lt_RANLIB
18276 old_archive_cmds=$lt_old_archive_cmds_GCJ
18277 old_postinstall_cmds=$lt_old_postinstall_cmds
18278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18279
18280 # Create an old-style archive from a shared archive.
18281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18282
18283 # Create a temporary old-style archive to link instead of a shared archive.
18284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18285
18286 # Commands used to build and install a shared archive.
18287 archive_cmds=$lt_archive_cmds_GCJ
18288 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18289 postinstall_cmds=$lt_postinstall_cmds
18290 postuninstall_cmds=$lt_postuninstall_cmds
18291
18292 # Commands used to build a loadable module (assumed same as above if empty)
18293 module_cmds=$lt_module_cmds_GCJ
18294 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18295
18296 # Commands to strip libraries.
18297 old_striplib=$lt_old_striplib
18298 striplib=$lt_striplib
18299
18300 # Dependencies to place before the objects being linked to create a
18301 # shared library.
18302 predep_objects=$lt_predep_objects_GCJ
18303
18304 # Dependencies to place after the objects being linked to create a
18305 # shared library.
18306 postdep_objects=$lt_postdep_objects_GCJ
18307
18308 # Dependencies to place before the objects being linked to create a
18309 # shared library.
18310 predeps=$lt_predeps_GCJ
18311
18312 # Dependencies to place after the objects being linked to create a
18313 # shared library.
18314 postdeps=$lt_postdeps_GCJ
18315
18316 # The library search path used internally by the compiler when linking
18317 # a shared library.
18318 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18319
18320 # Method to check whether dependent libraries are shared objects.
18321 deplibs_check_method=$lt_deplibs_check_method
18322
18323 # Command to use when deplibs_check_method == file_magic.
18324 file_magic_cmd=$lt_file_magic_cmd
18325
18326 # Flag that allows shared libraries with undefined symbols to be built.
18327 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18328
18329 # Flag that forces no undefined symbols.
18330 no_undefined_flag=$lt_no_undefined_flag_GCJ
18331
18332 # Commands used to finish a libtool library installation in a directory.
18333 finish_cmds=$lt_finish_cmds
18334
18335 # Same as above, but a single script fragment to be evaled but not shown.
18336 finish_eval=$lt_finish_eval
18337
18338 # Take the output of nm and produce a listing of raw symbols and C names.
18339 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18340
18341 # Transform the output of nm in a proper C declaration
18342 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18343
18344 # Transform the output of nm in a C name address pair
18345 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18346
18347 # This is the shared library runtime path variable.
18348 runpath_var=$runpath_var
18349
18350 # This is the shared library path variable.
18351 shlibpath_var=$shlibpath_var
18352
18353 # Is shlibpath searched before the hard-coded library search path?
18354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18355
18356 # How to hardcode a shared library path into an executable.
18357 hardcode_action=$hardcode_action_GCJ
18358
18359 # Whether we should hardcode library paths into libraries.
18360 hardcode_into_libs=$hardcode_into_libs
18361
18362 # Flag to hardcode \$libdir into a binary during linking.
18363 # This must work even if \$libdir does not exist.
18364 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18365
18366 # If ld is used when linking, flag to hardcode \$libdir into
18367 # a binary during linking. This must work even if \$libdir does
18368 # not exist.
18369 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18370
18371 # Whether we need a single -rpath flag with a separated argument.
18372 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18373
18374 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375 # resulting binary.
18376 hardcode_direct=$hardcode_direct_GCJ
18377
18378 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379 # resulting binary.
18380 hardcode_minus_L=$hardcode_minus_L_GCJ
18381
18382 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383 # the resulting binary.
18384 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18385
18386 # Set to yes if building a shared library automatically hardcodes DIR into the library
18387 # and all subsequent libraries and executables linked against it.
18388 hardcode_automatic=$hardcode_automatic_GCJ
18389
18390 # Variables whose values should be saved in libtool wrapper scripts and
18391 # restored at relink time.
18392 variables_saved_for_relink="$variables_saved_for_relink"
18393
18394 # Whether libtool must link a program against all its dependency libraries.
18395 link_all_deplibs=$link_all_deplibs_GCJ
18396
18397 # Compile-time system search path for libraries
18398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18399
18400 # Run-time system search path for libraries
18401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18402
18403 # Fix the shell variable \$srcfile for the compiler.
18404 fix_srcfile_path="$fix_srcfile_path_GCJ"
18405
18406 # Set to yes if exported symbols are required.
18407 always_export_symbols=$always_export_symbols_GCJ
18408
18409 # The commands to list exported symbols.
18410 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18411
18412 # The commands to extract the exported symbol list from a shared archive.
18413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414
18415 # Symbols that should not be listed in the preloaded symbols.
18416 exclude_expsyms=$lt_exclude_expsyms_GCJ
18417
18418 # Symbols that must always be exported.
18419 include_expsyms=$lt_include_expsyms_GCJ
18420
18421 # ### END LIBTOOL TAG CONFIG: $tagname
18422
18423 __EOF__
18424
18425
18426 else
18427   # If there is no Makefile yet, we rely on a make rule to execute
18428   # `config.status --recheck' to rerun these tests and create the
18429   # libtool script then.
18430   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431   if test -f "$ltmain_in"; then
18432     test -f Makefile && make "$ltmain"
18433   fi
18434 fi
18435
18436
18437 ac_ext=c
18438 ac_cpp='$CPP $CPPFLAGS'
18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442
18443 CC="$lt_save_CC"
18444
18445         else
18446           tagname=""
18447         fi
18448         ;;
18449
18450       RC)
18451         ac_ext=c
18452 ac_cpp='$CPP $CPPFLAGS'
18453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18456
18457
18458 # Source file extension for RC test sources.
18459 ac_ext=rc
18460
18461 # Object file extension for compiled RC test sources.
18462 objext=o
18463 objext_RC=$objext
18464
18465 # Code to be used in simple compile tests
18466 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18467
18468 # Code to be used in simple link tests
18469 lt_simple_link_test_code="$lt_simple_compile_test_code"
18470
18471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18472
18473 # If no C compiler was specified, use CC.
18474 LTCC=${LTCC-"$CC"}
18475
18476 # Allow CC to be a program name with arguments.
18477 compiler=$CC
18478
18479
18480 # Allow CC to be a program name with arguments.
18481 lt_save_CC="$CC"
18482 CC=${RC-"windres"}
18483 compiler=$CC
18484 compiler_RC=$CC
18485 lt_cv_prog_compiler_c_o_RC=yes
18486
18487 # The else clause should only fire when bootstrapping the
18488 # libtool distribution, otherwise you forgot to ship ltmain.sh
18489 # with your package, and you will get complaints that there are
18490 # no rules to generate ltmain.sh.
18491 if test -f "$ltmain"; then
18492   # See if we are running on zsh, and set the options which allow our commands through
18493   # without removal of \ escapes.
18494   if test -n "${ZSH_VERSION+set}" ; then
18495     setopt NO_GLOB_SUBST
18496   fi
18497   # Now quote all the things that may contain metacharacters while being
18498   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18499   # variables and quote the copies for generation of the libtool script.
18500   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18501     SED SHELL STRIP \
18502     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18503     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18504     deplibs_check_method reload_flag reload_cmds need_locks \
18505     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18506     lt_cv_sys_global_symbol_to_c_name_address \
18507     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18508     old_postinstall_cmds old_postuninstall_cmds \
18509     compiler_RC \
18510     CC_RC \
18511     LD_RC \
18512     lt_prog_compiler_wl_RC \
18513     lt_prog_compiler_pic_RC \
18514     lt_prog_compiler_static_RC \
18515     lt_prog_compiler_no_builtin_flag_RC \
18516     export_dynamic_flag_spec_RC \
18517     thread_safe_flag_spec_RC \
18518     whole_archive_flag_spec_RC \
18519     enable_shared_with_static_runtimes_RC \
18520     old_archive_cmds_RC \
18521     old_archive_from_new_cmds_RC \
18522     predep_objects_RC \
18523     postdep_objects_RC \
18524     predeps_RC \
18525     postdeps_RC \
18526     compiler_lib_search_path_RC \
18527     archive_cmds_RC \
18528     archive_expsym_cmds_RC \
18529     postinstall_cmds_RC \
18530     postuninstall_cmds_RC \
18531     old_archive_from_expsyms_cmds_RC \
18532     allow_undefined_flag_RC \
18533     no_undefined_flag_RC \
18534     export_symbols_cmds_RC \
18535     hardcode_libdir_flag_spec_RC \
18536     hardcode_libdir_flag_spec_ld_RC \
18537     hardcode_libdir_separator_RC \
18538     hardcode_automatic_RC \
18539     module_cmds_RC \
18540     module_expsym_cmds_RC \
18541     lt_cv_prog_compiler_c_o_RC \
18542     exclude_expsyms_RC \
18543     include_expsyms_RC; do
18544
18545     case $var in
18546     old_archive_cmds_RC | \
18547     old_archive_from_new_cmds_RC | \
18548     archive_cmds_RC | \
18549     archive_expsym_cmds_RC | \
18550     module_cmds_RC | \
18551     module_expsym_cmds_RC | \
18552     old_archive_from_expsyms_cmds_RC | \
18553     export_symbols_cmds_RC | \
18554     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18555     postinstall_cmds | postuninstall_cmds | \
18556     old_postinstall_cmds | old_postuninstall_cmds | \
18557     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18558       # Double-quote double-evaled strings.
18559       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18560       ;;
18561     *)
18562       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18563       ;;
18564     esac
18565   done
18566
18567   case $lt_echo in
18568   *'\$0 --fallback-echo"')
18569     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18570     ;;
18571   esac
18572
18573 cfgfile="$ofile"
18574
18575   cat <<__EOF__ >> "$cfgfile"
18576 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18577
18578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18579
18580 # Shell to use when invoking shell scripts.
18581 SHELL=$lt_SHELL
18582
18583 # Whether or not to build shared libraries.
18584 build_libtool_libs=$enable_shared
18585
18586 # Whether or not to build static libraries.
18587 build_old_libs=$enable_static
18588
18589 # Whether or not to add -lc for building shared libraries.
18590 build_libtool_need_lc=$archive_cmds_need_lc_RC
18591
18592 # Whether or not to disallow shared libs when runtime libs are static
18593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18594
18595 # Whether or not to optimize for fast installation.
18596 fast_install=$enable_fast_install
18597
18598 # The host system.
18599 host_alias=$host_alias
18600 host=$host
18601
18602 # An echo program that does not interpret backslashes.
18603 echo=$lt_echo
18604
18605 # The archiver.
18606 AR=$lt_AR
18607 AR_FLAGS=$lt_AR_FLAGS
18608
18609 # A C compiler.
18610 LTCC=$lt_LTCC
18611
18612 # A language-specific compiler.
18613 CC=$lt_compiler_RC
18614
18615 # Is the compiler the GNU C compiler?
18616 with_gcc=$GCC_RC
18617
18618 # An ERE matcher.
18619 EGREP=$lt_EGREP
18620
18621 # The linker used to build libraries.
18622 LD=$lt_LD_RC
18623
18624 # Whether we need hard or soft links.
18625 LN_S=$lt_LN_S
18626
18627 # A BSD-compatible nm program.
18628 NM=$lt_NM
18629
18630 # A symbol stripping program
18631 STRIP=$lt_STRIP
18632
18633 # Used to examine libraries when file_magic_cmd begins "file"
18634 MAGIC_CMD=$MAGIC_CMD
18635
18636 # Used on cygwin: DLL creation program.
18637 DLLTOOL="$DLLTOOL"
18638
18639 # Used on cygwin: object dumper.
18640 OBJDUMP="$OBJDUMP"
18641
18642 # Used on cygwin: assembler.
18643 AS="$AS"
18644
18645 # The name of the directory that contains temporary libtool files.
18646 objdir=$objdir
18647
18648 # How to create reloadable object files.
18649 reload_flag=$lt_reload_flag
18650 reload_cmds=$lt_reload_cmds
18651
18652 # How to pass a linker flag through the compiler.
18653 wl=$lt_lt_prog_compiler_wl_RC
18654
18655 # Object file suffix (normally "o").
18656 objext="$ac_objext"
18657
18658 # Old archive suffix (normally "a").
18659 libext="$libext"
18660
18661 # Shared library suffix (normally ".so").
18662 shrext_cmds='$shrext_cmds'
18663
18664 # Executable file suffix (normally "").
18665 exeext="$exeext"
18666
18667 # Additional compiler flags for building library objects.
18668 pic_flag=$lt_lt_prog_compiler_pic_RC
18669 pic_mode=$pic_mode
18670
18671 # What is the maximum length of a command?
18672 max_cmd_len=$lt_cv_sys_max_cmd_len
18673
18674 # Does compiler simultaneously support -c and -o options?
18675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18676
18677 # Must we lock files when doing compilation ?
18678 need_locks=$lt_need_locks
18679
18680 # Do we need the lib prefix for modules?
18681 need_lib_prefix=$need_lib_prefix
18682
18683 # Do we need a version for libraries?
18684 need_version=$need_version
18685
18686 # Whether dlopen is supported.
18687 dlopen_support=$enable_dlopen
18688
18689 # Whether dlopen of programs is supported.
18690 dlopen_self=$enable_dlopen_self
18691
18692 # Whether dlopen of statically linked programs is supported.
18693 dlopen_self_static=$enable_dlopen_self_static
18694
18695 # Compiler flag to prevent dynamic linking.
18696 link_static_flag=$lt_lt_prog_compiler_static_RC
18697
18698 # Compiler flag to turn off builtin functions.
18699 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18700
18701 # Compiler flag to allow reflexive dlopens.
18702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18703
18704 # Compiler flag to generate shared objects directly from archives.
18705 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18706
18707 # Compiler flag to generate thread-safe objects.
18708 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18709
18710 # Library versioning type.
18711 version_type=$version_type
18712
18713 # Format of library name prefix.
18714 libname_spec=$lt_libname_spec
18715
18716 # List of archive names.  First name is the real one, the rest are links.
18717 # The last name is the one that the linker finds with -lNAME.
18718 library_names_spec=$lt_library_names_spec
18719
18720 # The coded name of the library, if different from the real name.
18721 soname_spec=$lt_soname_spec
18722
18723 # Commands used to build and install an old-style archive.
18724 RANLIB=$lt_RANLIB
18725 old_archive_cmds=$lt_old_archive_cmds_RC
18726 old_postinstall_cmds=$lt_old_postinstall_cmds
18727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18728
18729 # Create an old-style archive from a shared archive.
18730 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18731
18732 # Create a temporary old-style archive to link instead of a shared archive.
18733 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18734
18735 # Commands used to build and install a shared archive.
18736 archive_cmds=$lt_archive_cmds_RC
18737 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18738 postinstall_cmds=$lt_postinstall_cmds
18739 postuninstall_cmds=$lt_postuninstall_cmds
18740
18741 # Commands used to build a loadable module (assumed same as above if empty)
18742 module_cmds=$lt_module_cmds_RC
18743 module_expsym_cmds=$lt_module_expsym_cmds_RC
18744
18745 # Commands to strip libraries.
18746 old_striplib=$lt_old_striplib
18747 striplib=$lt_striplib
18748
18749 # Dependencies to place before the objects being linked to create a
18750 # shared library.
18751 predep_objects=$lt_predep_objects_RC
18752
18753 # Dependencies to place after the objects being linked to create a
18754 # shared library.
18755 postdep_objects=$lt_postdep_objects_RC
18756
18757 # Dependencies to place before the objects being linked to create a
18758 # shared library.
18759 predeps=$lt_predeps_RC
18760
18761 # Dependencies to place after the objects being linked to create a
18762 # shared library.
18763 postdeps=$lt_postdeps_RC
18764
18765 # The library search path used internally by the compiler when linking
18766 # a shared library.
18767 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18768
18769 # Method to check whether dependent libraries are shared objects.
18770 deplibs_check_method=$lt_deplibs_check_method
18771
18772 # Command to use when deplibs_check_method == file_magic.
18773 file_magic_cmd=$lt_file_magic_cmd
18774
18775 # Flag that allows shared libraries with undefined symbols to be built.
18776 allow_undefined_flag=$lt_allow_undefined_flag_RC
18777
18778 # Flag that forces no undefined symbols.
18779 no_undefined_flag=$lt_no_undefined_flag_RC
18780
18781 # Commands used to finish a libtool library installation in a directory.
18782 finish_cmds=$lt_finish_cmds
18783
18784 # Same as above, but a single script fragment to be evaled but not shown.
18785 finish_eval=$lt_finish_eval
18786
18787 # Take the output of nm and produce a listing of raw symbols and C names.
18788 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18789
18790 # Transform the output of nm in a proper C declaration
18791 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18792
18793 # Transform the output of nm in a C name address pair
18794 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18795
18796 # This is the shared library runtime path variable.
18797 runpath_var=$runpath_var
18798
18799 # This is the shared library path variable.
18800 shlibpath_var=$shlibpath_var
18801
18802 # Is shlibpath searched before the hard-coded library search path?
18803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18804
18805 # How to hardcode a shared library path into an executable.
18806 hardcode_action=$hardcode_action_RC
18807
18808 # Whether we should hardcode library paths into libraries.
18809 hardcode_into_libs=$hardcode_into_libs
18810
18811 # Flag to hardcode \$libdir into a binary during linking.
18812 # This must work even if \$libdir does not exist.
18813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18814
18815 # If ld is used when linking, flag to hardcode \$libdir into
18816 # a binary during linking. This must work even if \$libdir does
18817 # not exist.
18818 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18819
18820 # Whether we need a single -rpath flag with a separated argument.
18821 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18822
18823 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18824 # resulting binary.
18825 hardcode_direct=$hardcode_direct_RC
18826
18827 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_minus_L=$hardcode_minus_L_RC
18830
18831 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18832 # the resulting binary.
18833 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18834
18835 # Set to yes if building a shared library automatically hardcodes DIR into the library
18836 # and all subsequent libraries and executables linked against it.
18837 hardcode_automatic=$hardcode_automatic_RC
18838
18839 # Variables whose values should be saved in libtool wrapper scripts and
18840 # restored at relink time.
18841 variables_saved_for_relink="$variables_saved_for_relink"
18842
18843 # Whether libtool must link a program against all its dependency libraries.
18844 link_all_deplibs=$link_all_deplibs_RC
18845
18846 # Compile-time system search path for libraries
18847 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18848
18849 # Run-time system search path for libraries
18850 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18851
18852 # Fix the shell variable \$srcfile for the compiler.
18853 fix_srcfile_path="$fix_srcfile_path_RC"
18854
18855 # Set to yes if exported symbols are required.
18856 always_export_symbols=$always_export_symbols_RC
18857
18858 # The commands to list exported symbols.
18859 export_symbols_cmds=$lt_export_symbols_cmds_RC
18860
18861 # The commands to extract the exported symbol list from a shared archive.
18862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18863
18864 # Symbols that should not be listed in the preloaded symbols.
18865 exclude_expsyms=$lt_exclude_expsyms_RC
18866
18867 # Symbols that must always be exported.
18868 include_expsyms=$lt_include_expsyms_RC
18869
18870 # ### END LIBTOOL TAG CONFIG: $tagname
18871
18872 __EOF__
18873
18874
18875 else
18876   # If there is no Makefile yet, we rely on a make rule to execute
18877   # `config.status --recheck' to rerun these tests and create the
18878   # libtool script then.
18879   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18880   if test -f "$ltmain_in"; then
18881     test -f Makefile && make "$ltmain"
18882   fi
18883 fi
18884
18885
18886 ac_ext=c
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892 CC="$lt_save_CC"
18893
18894         ;;
18895
18896       *)
18897         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18898 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18899    { (exit 1); exit 1; }; }
18900         ;;
18901       esac
18902
18903       # Append the new tag name to the list of available tags.
18904       if test -n "$tagname" ; then
18905       available_tags="$available_tags $tagname"
18906     fi
18907     fi
18908   done
18909   IFS="$lt_save_ifs"
18910
18911   # Now substitute the updated list of available tags.
18912   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18913     mv "${ofile}T" "$ofile"
18914     chmod +x "$ofile"
18915   else
18916     rm -f "${ofile}T"
18917     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18918 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18919    { (exit 1); exit 1; }; }
18920   fi
18921 fi
18922
18923
18924
18925 # This can be used to rebuild libtool when needed
18926 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18927
18928 # Always use our own libtool.
18929 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18930
18931 # Prevent multiple expansion
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953 # Extract the first word of "dot", so it can be a program name with args.
18954 set dummy dot; ac_word=$2
18955 echo "$as_me:$LINENO: checking for $ac_word" >&5
18956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18957 if test "${ac_cv_path_DOT+set}" = set; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960   case $DOT in
18961   [\\/]* | ?:[\\/]*)
18962   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18963   ;;
18964   *)
18965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18966 for as_dir in $PATH
18967 do
18968   IFS=$as_save_IFS
18969   test -z "$as_dir" && as_dir=.
18970   for ac_exec_ext in '' $ac_executable_extensions; do
18971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18972     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18974     break 2
18975   fi
18976 done
18977 done
18978
18979   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18980   ;;
18981 esac
18982 fi
18983 DOT=$ac_cv_path_DOT
18984
18985 if test -n "$DOT"; then
18986   echo "$as_me:$LINENO: result: $DOT" >&5
18987 echo "${ECHO_T}$DOT" >&6
18988 else
18989   echo "$as_me:$LINENO: result: no" >&5
18990 echo "${ECHO_T}no" >&6
18991 fi
18992
18993 # Extract the first word of "etags", so it can be a program name with args.
18994 set dummy etags; ac_word=$2
18995 echo "$as_me:$LINENO: checking for $ac_word" >&5
18996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18997 if test "${ac_cv_path_ETAGS+set}" = set; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   case $ETAGS in
19001   [\\/]* | ?:[\\/]*)
19002   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19003   ;;
19004   *)
19005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19006 for as_dir in $PATH
19007 do
19008   IFS=$as_save_IFS
19009   test -z "$as_dir" && as_dir=.
19010   for ac_exec_ext in '' $ac_executable_extensions; do
19011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19012     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19014     break 2
19015   fi
19016 done
19017 done
19018
19019   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19020   ;;
19021 esac
19022 fi
19023 ETAGS=$ac_cv_path_ETAGS
19024
19025 if test -n "$ETAGS"; then
19026   echo "$as_me:$LINENO: result: $ETAGS" >&5
19027 echo "${ECHO_T}$ETAGS" >&6
19028 else
19029   echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6
19031 fi
19032
19033 etags_version=`$ETAGS --version 2>&1`
19034 case "$etags_version" in
19035         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19036         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19037         *) ETAGSFLAGS="" ;;
19038 esac
19039 ETAGSFLAGS=$ETAGSFLAGS
19040
19041 # Extract the first word of "python", so it can be a program name with args.
19042 set dummy python; ac_word=$2
19043 echo "$as_me:$LINENO: checking for $ac_word" >&5
19044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045 if test "${ac_cv_path_PYTHON+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   case $PYTHON in
19049   [\\/]* | ?:[\\/]*)
19050   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19051   ;;
19052   *)
19053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19055 do
19056   IFS=$as_save_IFS
19057   test -z "$as_dir" && as_dir=.
19058   for ac_exec_ext in '' $ac_executable_extensions; do
19059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19062     break 2
19063   fi
19064 done
19065 done
19066
19067   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19068   ;;
19069 esac
19070 fi
19071 PYTHON=$ac_cv_path_PYTHON
19072
19073 if test -n "$PYTHON"; then
19074   echo "$as_me:$LINENO: result: $PYTHON" >&5
19075 echo "${ECHO_T}$PYTHON" >&6
19076 else
19077   echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19079 fi
19080
19081 if test "$PYTHON" = "false"
19082 then
19083         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19084 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19085 fi
19086 # Extract the first word of "qmtest", so it can be a program name with args.
19087 set dummy qmtest; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_path_QMTEST+set}" = set; then
19091   echo $ECHO_N "(cached) $ECHO_C" >&6
19092 else
19093   case $QMTEST in
19094   [\\/]* | ?:[\\/]*)
19095   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19096   ;;
19097   *)
19098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19100 do
19101   IFS=$as_save_IFS
19102   test -z "$as_dir" && as_dir=.
19103   for ac_exec_ext in '' $ac_executable_extensions; do
19104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19107     break 2
19108   fi
19109 done
19110 done
19111
19112   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19113   ;;
19114 esac
19115 fi
19116 QMTEST=$ac_cv_path_QMTEST
19117
19118 if test -n "$QMTEST"; then
19119   echo "$as_me:$LINENO: result: $QMTEST" >&5
19120 echo "${ECHO_T}$QMTEST" >&6
19121 else
19122   echo "$as_me:$LINENO: result: no" >&5
19123 echo "${ECHO_T}no" >&6
19124 fi
19125
19126 if test "$QMTEST" = "false"
19127 then
19128         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19129 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19130 fi
19131
19132 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19133 pymajor=`echo $pyversion | cut -d. -f1`
19134 pyminor=`echo $pyversion | cut -d. -f2`
19135
19136 if test "$pymajor" -ge "2"
19137 then
19138         if test "$pymajor" -eq "2"
19139         then
19140                 if test "$pyminor" -lt "2"
19141                 then
19142                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19143 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19144                 fi
19145         fi
19146 else
19147         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19148 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19149 fi
19150
19151
19152 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19153 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19154 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19155   echo $ECHO_N "(cached) $ECHO_C" >&6
19156 else
19157   ac_check_lib_save_LIBS=$LIBS
19158 LIBS="-lelf  $LIBS"
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165
19166 /* Override any gcc2 internal prototype to avoid an error.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 /* We use char because int might match the return type of a gcc2
19171    builtin and then its argument prototype would still apply.  */
19172 char elf_begin ();
19173 int
19174 main ()
19175 {
19176 elf_begin ();
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 rm -f conftest.$ac_objext conftest$ac_exeext
19182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19183   (eval $ac_link) 2>conftest.er1
19184   ac_status=$?
19185   grep -v '^ *+' conftest.er1 >conftest.err
19186   rm -f conftest.er1
19187   cat conftest.err >&5
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); } &&
19190          { ac_try='test -z "$ac_c_werror_flag"
19191                          || test ! -s conftest.err'
19192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193   (eval $ac_try) 2>&5
19194   ac_status=$?
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); }; } &&
19197          { ac_try='test -s conftest$ac_exeext'
19198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199   (eval $ac_try) 2>&5
19200   ac_status=$?
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); }; }; then
19203   ac_cv_lib_elf_elf_begin=yes
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_lib_elf_elf_begin=no
19209 fi
19210 rm -f conftest.err conftest.$ac_objext \
19211       conftest$ac_exeext conftest.$ac_ext
19212 LIBS=$ac_check_lib_save_LIBS
19213 fi
19214 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19215 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19216 if test $ac_cv_lib_elf_elf_begin = yes; then
19217   cat >>confdefs.h <<_ACEOF
19218 #define HAVE_LIBELF 1
19219 _ACEOF
19220
19221   LIBS="-lelf $LIBS"
19222
19223 fi
19224
19225
19226 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19227 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19228 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231   ac_check_lib_save_LIBS=$LIBS
19232 LIBS="-lbz2  $LIBS"
19233 cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h.  */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h.  */
19239
19240 /* Override any gcc2 internal prototype to avoid an error.  */
19241 #ifdef __cplusplus
19242 extern "C"
19243 #endif
19244 /* We use char because int might match the return type of a gcc2
19245    builtin and then its argument prototype would still apply.  */
19246 char BZ2_bzCompressInit ();
19247 int
19248 main ()
19249 {
19250 BZ2_bzCompressInit ();
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257   (eval $ac_link) 2>conftest.er1
19258   ac_status=$?
19259   grep -v '^ *+' conftest.er1 >conftest.err
19260   rm -f conftest.er1
19261   cat conftest.err >&5
19262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263   (exit $ac_status); } &&
19264          { ac_try='test -z "$ac_c_werror_flag"
19265                          || test ! -s conftest.err'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; } &&
19271          { ac_try='test -s conftest$ac_exeext'
19272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273   (eval $ac_try) 2>&5
19274   ac_status=$?
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); }; }; then
19277   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19278 else
19279   echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19283 fi
19284 rm -f conftest.err conftest.$ac_objext \
19285       conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19287 fi
19288 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19289 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19290 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19291   bzip2_found=1
19292 else
19293   bzip2_found=0
19294 fi
19295
19296
19297 for ac_header in bzlib.h
19298 do
19299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19301   echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304   echo $ECHO_N "(cached) $ECHO_C" >&6
19305 fi
19306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19308 else
19309   # Is the header compilable?
19310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19312 cat >conftest.$ac_ext <<_ACEOF
19313 /* confdefs.h.  */
19314 _ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h.  */
19318 $ac_includes_default
19319 #include <$ac_header>
19320 _ACEOF
19321 rm -f conftest.$ac_objext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19323   (eval $ac_compile) 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } &&
19330          { ac_try='test -z "$ac_c_werror_flag"
19331                          || test ! -s conftest.err'
19332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333   (eval $ac_try) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; } &&
19337          { ac_try='test -s conftest.$ac_objext'
19338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339   (eval $ac_try) 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; }; then
19343   ac_header_compiler=yes
19344 else
19345   echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348 ac_header_compiler=no
19349 fi
19350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19352 echo "${ECHO_T}$ac_header_compiler" >&6
19353
19354 # Is the header present?
19355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 #include <$ac_header>
19364 _ACEOF
19365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19366   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
19373   if test -s conftest.err; then
19374     ac_cpp_err=$ac_c_preproc_warn_flag
19375     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19376   else
19377     ac_cpp_err=
19378   fi
19379 else
19380   ac_cpp_err=yes
19381 fi
19382 if test -z "$ac_cpp_err"; then
19383   ac_header_preproc=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388   ac_header_preproc=no
19389 fi
19390 rm -f conftest.err conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19392 echo "${ECHO_T}$ac_header_preproc" >&6
19393
19394 # So?  What about this header?
19395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19396   yes:no: )
19397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19401     ac_header_preproc=yes
19402     ;;
19403   no:yes:* )
19404     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19406     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19407 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19408     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19410     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19411 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19414     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19416     (
19417       cat <<\_ASBOX
19418 ## ----------------------------------- ##
19419 ## Report this to llvmbugs@cs.uiuc.edu ##
19420 ## ----------------------------------- ##
19421 _ASBOX
19422     ) |
19423       sed "s/^/$as_me: WARNING:     /" >&2
19424     ;;
19425 esac
19426 echo "$as_me:$LINENO: checking for $ac_header" >&5
19427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   eval "$as_ac_Header=\$ac_header_preproc"
19432 fi
19433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19435
19436 fi
19437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19438   cat >>confdefs.h <<_ACEOF
19439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19440 _ACEOF
19441  bzlib_h_found=1
19442 else
19443   bzlib_h_found=0
19444 fi
19445
19446 done
19447
19448 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19449 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19450 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453   ac_check_lib_save_LIBS=$LIBS
19454 LIBS="-lz  $LIBS"
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462 /* Override any gcc2 internal prototype to avoid an error.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 /* We use char because int might match the return type of a gcc2
19467    builtin and then its argument prototype would still apply.  */
19468 char gzopen ();
19469 int
19470 main ()
19471 {
19472 gzopen ();
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479   (eval $ac_link) 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } &&
19486          { ac_try='test -z "$ac_c_werror_flag"
19487                          || test ! -s conftest.err'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; } &&
19493          { ac_try='test -s conftest$ac_exeext'
19494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495   (eval $ac_try) 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   ac_cv_lib_z_gzopen=yes
19500 else
19501   echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504 ac_cv_lib_z_gzopen=no
19505 fi
19506 rm -f conftest.err conftest.$ac_objext \
19507       conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19509 fi
19510 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19511 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19512 if test $ac_cv_lib_z_gzopen = yes; then
19513   zlib_found=1
19514 else
19515   zlib_found=0
19516 fi
19517
19518
19519 for ac_header in zlib.h
19520 do
19521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19523   echo "$as_me:$LINENO: checking for $ac_header" >&5
19524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526   echo $ECHO_N "(cached) $ECHO_C" >&6
19527 fi
19528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19530 else
19531   # Is the header compilable?
19532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 $ac_includes_default
19541 #include <$ac_header>
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545   (eval $ac_compile) 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } &&
19552          { ac_try='test -z "$ac_c_werror_flag"
19553                          || test ! -s conftest.err'
19554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555   (eval $ac_try) 2>&5
19556   ac_status=$?
19557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558   (exit $ac_status); }; } &&
19559          { ac_try='test -s conftest.$ac_objext'
19560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561   (eval $ac_try) 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_header_compiler=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 ac_header_compiler=no
19571 fi
19572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574 echo "${ECHO_T}$ac_header_compiler" >&6
19575
19576 # Is the header present?
19577 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h.  */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h.  */
19585 #include <$ac_header>
19586 _ACEOF
19587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19588   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
19595   if test -s conftest.err; then
19596     ac_cpp_err=$ac_c_preproc_warn_flag
19597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19598   else
19599     ac_cpp_err=
19600   fi
19601 else
19602   ac_cpp_err=yes
19603 fi
19604 if test -z "$ac_cpp_err"; then
19605   ac_header_preproc=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610   ac_header_preproc=no
19611 fi
19612 rm -f conftest.err conftest.$ac_ext
19613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614 echo "${ECHO_T}$ac_header_preproc" >&6
19615
19616 # So?  What about this header?
19617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618   yes:no: )
19619     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623     ac_header_preproc=yes
19624     ;;
19625   no:yes:* )
19626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19629 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19630     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19633 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19638     (
19639       cat <<\_ASBOX
19640 ## ----------------------------------- ##
19641 ## Report this to llvmbugs@cs.uiuc.edu ##
19642 ## ----------------------------------- ##
19643 _ASBOX
19644     ) |
19645       sed "s/^/$as_me: WARNING:     /" >&2
19646     ;;
19647 esac
19648 echo "$as_me:$LINENO: checking for $ac_header" >&5
19649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19651   echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653   eval "$as_ac_Header=\$ac_header_preproc"
19654 fi
19655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19657
19658 fi
19659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19660   cat >>confdefs.h <<_ACEOF
19661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19662 _ACEOF
19663  zlib_h_found=1
19664 else
19665   zlib_h_found=0
19666 fi
19667
19668 done
19669
19670 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19671
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_ZLIB 1
19674 _ACEOF
19675
19676   HAVE_ZLIB=1
19677
19678 else
19679   HAVE_ZLIB=0
19680
19681 fi
19682 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19683
19684 cat >>confdefs.h <<\_ACEOF
19685 #define HAVE_BZIP2 1
19686 _ACEOF
19687
19688   HAVE_BZIP2=1
19689
19690 else
19691   HAVE_BZIP2=0
19692
19693 fi
19694 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19695 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19696 if test "${ac_cv_search_dlopen+set}" = set; then
19697   echo $ECHO_N "(cached) $ECHO_C" >&6
19698 else
19699   ac_func_search_save_LIBS=$LIBS
19700 ac_cv_search_dlopen=no
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h.  */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h.  */
19707
19708 /* Override any gcc2 internal prototype to avoid an error.  */
19709 #ifdef __cplusplus
19710 extern "C"
19711 #endif
19712 /* We use char because int might match the return type of a gcc2
19713    builtin and then its argument prototype would still apply.  */
19714 char dlopen ();
19715 int
19716 main ()
19717 {
19718 dlopen ();
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19725   (eval $ac_link) 2>conftest.er1
19726   ac_status=$?
19727   grep -v '^ *+' conftest.er1 >conftest.err
19728   rm -f conftest.er1
19729   cat conftest.err >&5
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); } &&
19732          { ac_try='test -z "$ac_c_werror_flag"
19733                          || test ! -s conftest.err'
19734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735   (eval $ac_try) 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; } &&
19739          { ac_try='test -s conftest$ac_exeext'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; }; then
19745   ac_cv_search_dlopen="none required"
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 fi
19751 rm -f conftest.err conftest.$ac_objext \
19752       conftest$ac_exeext conftest.$ac_ext
19753 if test "$ac_cv_search_dlopen" = no; then
19754   for ac_lib in dl; do
19755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19756     cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h.  */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h.  */
19762
19763 /* Override any gcc2 internal prototype to avoid an error.  */
19764 #ifdef __cplusplus
19765 extern "C"
19766 #endif
19767 /* We use char because int might match the return type of a gcc2
19768    builtin and then its argument prototype would still apply.  */
19769 char dlopen ();
19770 int
19771 main ()
19772 {
19773 dlopen ();
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780   (eval $ac_link) 2>conftest.er1
19781   ac_status=$?
19782   grep -v '^ *+' conftest.er1 >conftest.err
19783   rm -f conftest.er1
19784   cat conftest.err >&5
19785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786   (exit $ac_status); } &&
19787          { ac_try='test -z "$ac_c_werror_flag"
19788                          || test ! -s conftest.err'
19789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790   (eval $ac_try) 2>&5
19791   ac_status=$?
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); }; } &&
19794          { ac_try='test -s conftest$ac_exeext'
19795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796   (eval $ac_try) 2>&5
19797   ac_status=$?
19798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799   (exit $ac_status); }; }; then
19800   ac_cv_search_dlopen="-l$ac_lib"
19801 break
19802 else
19803   echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 fi
19807 rm -f conftest.err conftest.$ac_objext \
19808       conftest$ac_exeext conftest.$ac_ext
19809   done
19810 fi
19811 LIBS=$ac_func_search_save_LIBS
19812 fi
19813 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19814 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19815 if test "$ac_cv_search_dlopen" != no; then
19816   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19817
19818 cat >>confdefs.h <<\_ACEOF
19819 #define HAVE_DLOPEN 1
19820 _ACEOF
19821
19822 else
19823   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19824 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19825 fi
19826
19827
19828 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19829 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19830 if test "${ac_cv_search_mallinfo+set}" = set; then
19831   echo $ECHO_N "(cached) $ECHO_C" >&6
19832 else
19833   ac_func_search_save_LIBS=$LIBS
19834 ac_cv_search_mallinfo=no
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841
19842 /* Override any gcc2 internal prototype to avoid an error.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 /* We use char because int might match the return type of a gcc2
19847    builtin and then its argument prototype would still apply.  */
19848 char mallinfo ();
19849 int
19850 main ()
19851 {
19852 mallinfo ();
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>conftest.er1
19860   ac_status=$?
19861   grep -v '^ *+' conftest.er1 >conftest.err
19862   rm -f conftest.er1
19863   cat conftest.err >&5
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); } &&
19866          { ac_try='test -z "$ac_c_werror_flag"
19867                          || test ! -s conftest.err'
19868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869   (eval $ac_try) 2>&5
19870   ac_status=$?
19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872   (exit $ac_status); }; } &&
19873          { ac_try='test -s conftest$ac_exeext'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; }; then
19879   ac_cv_search_mallinfo="none required"
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 fi
19885 rm -f conftest.err conftest.$ac_objext \
19886       conftest$ac_exeext conftest.$ac_ext
19887 if test "$ac_cv_search_mallinfo" = no; then
19888   for ac_lib in malloc; do
19889     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19890     cat >conftest.$ac_ext <<_ACEOF
19891 /* confdefs.h.  */
19892 _ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h.  */
19896
19897 /* Override any gcc2 internal prototype to avoid an error.  */
19898 #ifdef __cplusplus
19899 extern "C"
19900 #endif
19901 /* We use char because int might match the return type of a gcc2
19902    builtin and then its argument prototype would still apply.  */
19903 char mallinfo ();
19904 int
19905 main ()
19906 {
19907 mallinfo ();
19908   ;
19909   return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914   (eval $ac_link) 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } &&
19921          { ac_try='test -z "$ac_c_werror_flag"
19922                          || test ! -s conftest.err'
19923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924   (eval $ac_try) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }; } &&
19928          { ac_try='test -s conftest$ac_exeext'
19929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930   (eval $ac_try) 2>&5
19931   ac_status=$?
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); }; }; then
19934   ac_cv_search_mallinfo="-l$ac_lib"
19935 break
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940 fi
19941 rm -f conftest.err conftest.$ac_objext \
19942       conftest$ac_exeext conftest.$ac_ext
19943   done
19944 fi
19945 LIBS=$ac_func_search_save_LIBS
19946 fi
19947 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19948 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19949 if test "$ac_cv_search_mallinfo" != no; then
19950   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19951
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_MALLINFO 1
19954 _ACEOF
19955
19956 fi
19957
19958
19959 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19960 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   ac_func_search_save_LIBS=$LIBS
19965 ac_cv_search_pthread_mutex_lock=no
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h.  */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h.  */
19972
19973 /* Override any gcc2 internal prototype to avoid an error.  */
19974 #ifdef __cplusplus
19975 extern "C"
19976 #endif
19977 /* We use char because int might match the return type of a gcc2
19978    builtin and then its argument prototype would still apply.  */
19979 char pthread_mutex_lock ();
19980 int
19981 main ()
19982 {
19983 pthread_mutex_lock ();
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19990   (eval $ac_link) 2>conftest.er1
19991   ac_status=$?
19992   grep -v '^ *+' conftest.er1 >conftest.err
19993   rm -f conftest.er1
19994   cat conftest.err >&5
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); } &&
19997          { ac_try='test -z "$ac_c_werror_flag"
19998                          || test ! -s conftest.err'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } &&
20004          { ac_try='test -s conftest$ac_exeext'
20005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006   (eval $ac_try) 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }; }; then
20010   ac_cv_search_pthread_mutex_lock="none required"
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 fi
20016 rm -f conftest.err conftest.$ac_objext \
20017       conftest$ac_exeext conftest.$ac_ext
20018 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20019   for ac_lib in pthread; do
20020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20021     cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027
20028 /* Override any gcc2 internal prototype to avoid an error.  */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 /* We use char because int might match the return type of a gcc2
20033    builtin and then its argument prototype would still apply.  */
20034 char pthread_mutex_lock ();
20035 int
20036 main ()
20037 {
20038 pthread_mutex_lock ();
20039   ;
20040   return 0;
20041 }
20042 _ACEOF
20043 rm -f conftest.$ac_objext conftest$ac_exeext
20044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20045   (eval $ac_link) 2>conftest.er1
20046   ac_status=$?
20047   grep -v '^ *+' conftest.er1 >conftest.err
20048   rm -f conftest.er1
20049   cat conftest.err >&5
20050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051   (exit $ac_status); } &&
20052          { ac_try='test -z "$ac_c_werror_flag"
20053                          || test ! -s conftest.err'
20054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055   (eval $ac_try) 2>&5
20056   ac_status=$?
20057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058   (exit $ac_status); }; } &&
20059          { ac_try='test -s conftest$ac_exeext'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20066 break
20067 else
20068   echo "$as_me: failed program was:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20070
20071 fi
20072 rm -f conftest.err conftest.$ac_objext \
20073       conftest$ac_exeext conftest.$ac_ext
20074   done
20075 fi
20076 LIBS=$ac_func_search_save_LIBS
20077 fi
20078 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20079 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20080 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20081   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20082
20083 cat >>confdefs.h <<\_ACEOF
20084 #define HAVE_PTHREAD_MUTEX_LOCK 1
20085 _ACEOF
20086
20087 fi
20088
20089
20090 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20092 if test "${ac_cv_header_stdc+set}" = set; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101 #include <stdlib.h>
20102 #include <stdarg.h>
20103 #include <string.h>
20104 #include <float.h>
20105
20106 int
20107 main ()
20108 {
20109
20110   ;
20111   return 0;
20112 }
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116   (eval $ac_compile) 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } &&
20123          { ac_try='test -z "$ac_c_werror_flag"
20124                          || test ! -s conftest.err'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; } &&
20130          { ac_try='test -s conftest.$ac_objext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_cv_header_stdc=yes
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_cv_header_stdc=no
20142 fi
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20144
20145 if test $ac_cv_header_stdc = yes; then
20146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include <string.h>
20154
20155 _ACEOF
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157   $EGREP "memchr" >/dev/null 2>&1; then
20158   :
20159 else
20160   ac_cv_header_stdc=no
20161 fi
20162 rm -f conftest*
20163
20164 fi
20165
20166 if test $ac_cv_header_stdc = yes; then
20167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20168   cat >conftest.$ac_ext <<_ACEOF
20169 /* confdefs.h.  */
20170 _ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h.  */
20174 #include <stdlib.h>
20175
20176 _ACEOF
20177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178   $EGREP "free" >/dev/null 2>&1; then
20179   :
20180 else
20181   ac_cv_header_stdc=no
20182 fi
20183 rm -f conftest*
20184
20185 fi
20186
20187 if test $ac_cv_header_stdc = yes; then
20188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20189   if test "$cross_compiling" = yes; then
20190   :
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 #include <ctype.h>
20199 #if ((' ' & 0x0FF) == 0x020)
20200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20202 #else
20203 # define ISLOWER(c) \
20204                    (('a' <= (c) && (c) <= 'i') \
20205                      || ('j' <= (c) && (c) <= 'r') \
20206                      || ('s' <= (c) && (c) <= 'z'))
20207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20208 #endif
20209
20210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20211 int
20212 main ()
20213 {
20214   int i;
20215   for (i = 0; i < 256; i++)
20216     if (XOR (islower (i), ISLOWER (i))
20217         || toupper (i) != TOUPPER (i))
20218       exit(2);
20219   exit (0);
20220 }
20221 _ACEOF
20222 rm -f conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224   (eval $ac_link) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229   (eval $ac_try) 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; }; then
20233   :
20234 else
20235   echo "$as_me: program exited with status $ac_status" >&5
20236 echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ( exit $ac_status )
20240 ac_cv_header_stdc=no
20241 fi
20242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20243 fi
20244 fi
20245 fi
20246 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20247 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20248 if test $ac_cv_header_stdc = yes; then
20249
20250 cat >>confdefs.h <<\_ACEOF
20251 #define STDC_HEADERS 1
20252 _ACEOF
20253
20254 fi
20255
20256 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20257 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20258 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267 #include <sys/types.h>
20268 #include <sys/wait.h>
20269 #ifndef WEXITSTATUS
20270 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20271 #endif
20272 #ifndef WIFEXITED
20273 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20274 #endif
20275
20276 int
20277 main ()
20278 {
20279   int s;
20280   wait (&s);
20281   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20282   ;
20283   return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288   (eval $ac_compile) 2>conftest.er1
20289   ac_status=$?
20290   grep -v '^ *+' conftest.er1 >conftest.err
20291   rm -f conftest.er1
20292   cat conftest.err >&5
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); } &&
20295          { ac_try='test -z "$ac_c_werror_flag"
20296                          || test ! -s conftest.err'
20297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298   (eval $ac_try) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; } &&
20302          { ac_try='test -s conftest.$ac_objext'
20303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304   (eval $ac_try) 2>&5
20305   ac_status=$?
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); }; }; then
20308   ac_cv_header_sys_wait_h=yes
20309 else
20310   echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_cv_header_sys_wait_h=no
20314 fi
20315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20316 fi
20317 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20319 if test $ac_cv_header_sys_wait_h = yes; then
20320
20321 cat >>confdefs.h <<\_ACEOF
20322 #define HAVE_SYS_WAIT_H 1
20323 _ACEOF
20324
20325 fi
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339 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
20340 do
20341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20343   echo "$as_me:$LINENO: checking for $ac_header" >&5
20344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346   echo $ECHO_N "(cached) $ECHO_C" >&6
20347 fi
20348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20350 else
20351   # Is the header compilable?
20352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20355 /* confdefs.h.  */
20356 _ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h.  */
20360 $ac_includes_default
20361 #include <$ac_header>
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365   (eval $ac_compile) 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_c_werror_flag"
20373                          || test ! -s conftest.err'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_header_compiler=yes
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_header_compiler=no
20391 fi
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20394 echo "${ECHO_T}$ac_header_compiler" >&6
20395
20396 # Is the header present?
20397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20399 cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 #include <$ac_header>
20406 _ACEOF
20407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20408   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20415   if test -s conftest.err; then
20416     ac_cpp_err=$ac_c_preproc_warn_flag
20417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20418   else
20419     ac_cpp_err=
20420   fi
20421 else
20422   ac_cpp_err=yes
20423 fi
20424 if test -z "$ac_cpp_err"; then
20425   ac_header_preproc=yes
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430   ac_header_preproc=no
20431 fi
20432 rm -f conftest.err conftest.$ac_ext
20433 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20434 echo "${ECHO_T}$ac_header_preproc" >&6
20435
20436 # So?  What about this header?
20437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20438   yes:no: )
20439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20443     ac_header_preproc=yes
20444     ;;
20445   no:yes:* )
20446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20458     (
20459       cat <<\_ASBOX
20460 ## ----------------------------------- ##
20461 ## Report this to llvmbugs@cs.uiuc.edu ##
20462 ## ----------------------------------- ##
20463 _ASBOX
20464     ) |
20465       sed "s/^/$as_me: WARNING:     /" >&2
20466     ;;
20467 esac
20468 echo "$as_me:$LINENO: checking for $ac_header" >&5
20469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473   eval "$as_ac_Header=\$ac_header_preproc"
20474 fi
20475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20477
20478 fi
20479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20480   cat >>confdefs.h <<_ACEOF
20481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20482 _ACEOF
20483
20484 fi
20485
20486 done
20487
20488
20489 if test "${ac_cv_header_sys_types_h+set}" = set; then
20490   echo "$as_me:$LINENO: checking for sys/types.h" >&5
20491 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20492 if test "${ac_cv_header_sys_types_h+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 fi
20495 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20496 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20497 else
20498   # Is the header compilable?
20499 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20500 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20501 cat >conftest.$ac_ext <<_ACEOF
20502 /* confdefs.h.  */
20503 _ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h.  */
20507 $ac_includes_default
20508 #include <sys/types.h>
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512   (eval $ac_compile) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest.$ac_objext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_header_compiler=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_header_compiler=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20541 echo "${ECHO_T}$ac_header_compiler" >&6
20542
20543 # Is the header present?
20544 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20545 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 #include <sys/types.h>
20553 _ACEOF
20554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20555   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20562   if test -s conftest.err; then
20563     ac_cpp_err=$ac_c_preproc_warn_flag
20564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20565   else
20566     ac_cpp_err=
20567   fi
20568 else
20569   ac_cpp_err=yes
20570 fi
20571 if test -z "$ac_cpp_err"; then
20572   ac_header_preproc=yes
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577   ac_header_preproc=no
20578 fi
20579 rm -f conftest.err conftest.$ac_ext
20580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20581 echo "${ECHO_T}$ac_header_preproc" >&6
20582
20583 # So?  What about this header?
20584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20585   yes:no: )
20586     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20587 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20588     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20589 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20590     ac_header_preproc=yes
20591     ;;
20592   no:yes:* )
20593     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20594 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20595     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20596 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20597     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20598 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20599     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20600 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20601     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20602 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20603     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20604 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20605     (
20606       cat <<\_ASBOX
20607 ## ----------------------------------- ##
20608 ## Report this to llvmbugs@cs.uiuc.edu ##
20609 ## ----------------------------------- ##
20610 _ASBOX
20611     ) |
20612       sed "s/^/$as_me: WARNING:     /" >&2
20613     ;;
20614 esac
20615 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20616 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20617 if test "${ac_cv_header_sys_types_h+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   ac_cv_header_sys_types_h=$ac_header_preproc
20621 fi
20622 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20623 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20624
20625 fi
20626
20627
20628 if test "${ac_cv_header_inttypes_h+set}" = set; then
20629   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20630 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20631 if test "${ac_cv_header_inttypes_h+set}" = set; then
20632   echo $ECHO_N "(cached) $ECHO_C" >&6
20633 fi
20634 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20635 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20636 else
20637   # Is the header compilable?
20638 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20639 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646 $ac_includes_default
20647 #include <inttypes.h>
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651   (eval $ac_compile) 2>conftest.er1
20652   ac_status=$?
20653   grep -v '^ *+' conftest.er1 >conftest.err
20654   rm -f conftest.er1
20655   cat conftest.err >&5
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); } &&
20658          { ac_try='test -z "$ac_c_werror_flag"
20659                          || test ! -s conftest.err'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; } &&
20665          { ac_try='test -s conftest.$ac_objext'
20666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667   (eval $ac_try) 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; }; then
20671   ac_header_compiler=yes
20672 else
20673   echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_header_compiler=no
20677 fi
20678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20680 echo "${ECHO_T}$ac_header_compiler" >&6
20681
20682 # Is the header present?
20683 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20684 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691 #include <inttypes.h>
20692 _ACEOF
20693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20694   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20701   if test -s conftest.err; then
20702     ac_cpp_err=$ac_c_preproc_warn_flag
20703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20704   else
20705     ac_cpp_err=
20706   fi
20707 else
20708   ac_cpp_err=yes
20709 fi
20710 if test -z "$ac_cpp_err"; then
20711   ac_header_preproc=yes
20712 else
20713   echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716   ac_header_preproc=no
20717 fi
20718 rm -f conftest.err conftest.$ac_ext
20719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20720 echo "${ECHO_T}$ac_header_preproc" >&6
20721
20722 # So?  What about this header?
20723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20724   yes:no: )
20725     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20726 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20727     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20728 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20729     ac_header_preproc=yes
20730     ;;
20731   no:yes:* )
20732     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20733 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20734     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20735 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20736     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20737 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20738     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20739 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20740     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20741 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20742     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20743 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20744     (
20745       cat <<\_ASBOX
20746 ## ----------------------------------- ##
20747 ## Report this to llvmbugs@cs.uiuc.edu ##
20748 ## ----------------------------------- ##
20749 _ASBOX
20750     ) |
20751       sed "s/^/$as_me: WARNING:     /" >&2
20752     ;;
20753 esac
20754 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20755 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20756 if test "${ac_cv_header_inttypes_h+set}" = set; then
20757   echo $ECHO_N "(cached) $ECHO_C" >&6
20758 else
20759   ac_cv_header_inttypes_h=$ac_header_preproc
20760 fi
20761 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20762 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20763
20764 fi
20765
20766
20767 if test "${ac_cv_header_stdint_h+set}" = set; then
20768   echo "$as_me:$LINENO: checking for stdint.h" >&5
20769 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20770 if test "${ac_cv_header_stdint_h+set}" = set; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 fi
20773 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20774 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20775 else
20776   # Is the header compilable?
20777 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20778 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785 $ac_includes_default
20786 #include <stdint.h>
20787 _ACEOF
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790   (eval $ac_compile) 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } &&
20797          { ac_try='test -z "$ac_c_werror_flag"
20798                          || test ! -s conftest.err'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest.$ac_objext'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   ac_header_compiler=yes
20811 else
20812   echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20814
20815 ac_header_compiler=no
20816 fi
20817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20819 echo "${ECHO_T}$ac_header_compiler" >&6
20820
20821 # Is the header present?
20822 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20823 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20824 cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830 #include <stdint.h>
20831 _ACEOF
20832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20833   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
20840   if test -s conftest.err; then
20841     ac_cpp_err=$ac_c_preproc_warn_flag
20842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20843   else
20844     ac_cpp_err=
20845   fi
20846 else
20847   ac_cpp_err=yes
20848 fi
20849 if test -z "$ac_cpp_err"; then
20850   ac_header_preproc=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855   ac_header_preproc=no
20856 fi
20857 rm -f conftest.err conftest.$ac_ext
20858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20859 echo "${ECHO_T}$ac_header_preproc" >&6
20860
20861 # So?  What about this header?
20862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20863   yes:no: )
20864     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20865 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20866     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20867 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20868     ac_header_preproc=yes
20869     ;;
20870   no:yes:* )
20871     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20872 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20873     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20874 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20875     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20876 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20877     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20878 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20879     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20880 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20881     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20882 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20883     (
20884       cat <<\_ASBOX
20885 ## ----------------------------------- ##
20886 ## Report this to llvmbugs@cs.uiuc.edu ##
20887 ## ----------------------------------- ##
20888 _ASBOX
20889     ) |
20890       sed "s/^/$as_me: WARNING:     /" >&2
20891     ;;
20892 esac
20893 echo "$as_me:$LINENO: checking for stdint.h" >&5
20894 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20895 if test "${ac_cv_header_stdint_h+set}" = set; then
20896   echo $ECHO_N "(cached) $ECHO_C" >&6
20897 else
20898   ac_cv_header_stdint_h=$ac_header_preproc
20899 fi
20900 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20901 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20902
20903 fi
20904
20905
20906
20907 echo "$as_me:$LINENO: checking for pid_t" >&5
20908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20909 if test "${ac_cv_type_pid_t+set}" = set; then
20910   echo $ECHO_N "(cached) $ECHO_C" >&6
20911 else
20912   cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h.  */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h.  */
20918 $ac_includes_default
20919 int
20920 main ()
20921 {
20922 if ((pid_t *) 0)
20923   return 0;
20924 if (sizeof (pid_t))
20925   return 0;
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932   (eval $ac_compile) 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } &&
20939          { ac_try='test -z "$ac_c_werror_flag"
20940                          || test ! -s conftest.err'
20941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942   (eval $ac_try) 2>&5
20943   ac_status=$?
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); }; } &&
20946          { ac_try='test -s conftest.$ac_objext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_type_pid_t=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_type_pid_t=no
20958 fi
20959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20960 fi
20961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20963 if test $ac_cv_type_pid_t = yes; then
20964   :
20965 else
20966
20967 cat >>confdefs.h <<_ACEOF
20968 #define pid_t int
20969 _ACEOF
20970
20971 fi
20972
20973 echo "$as_me:$LINENO: checking for size_t" >&5
20974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20975 if test "${ac_cv_type_size_t+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 $ac_includes_default
20985 int
20986 main ()
20987 {
20988 if ((size_t *) 0)
20989   return 0;
20990 if (sizeof (size_t))
20991   return 0;
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998   (eval $ac_compile) 2>conftest.er1
20999   ac_status=$?
21000   grep -v '^ *+' conftest.er1 >conftest.err
21001   rm -f conftest.er1
21002   cat conftest.err >&5
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); } &&
21005          { ac_try='test -z "$ac_c_werror_flag"
21006                          || test ! -s conftest.err'
21007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008   (eval $ac_try) 2>&5
21009   ac_status=$?
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); }; } &&
21012          { ac_try='test -s conftest.$ac_objext'
21013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21014   (eval $ac_try) 2>&5
21015   ac_status=$?
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); }; }; then
21018   ac_cv_type_size_t=yes
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023 ac_cv_type_size_t=no
21024 fi
21025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21026 fi
21027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21029 if test $ac_cv_type_size_t = yes; then
21030   :
21031 else
21032
21033 cat >>confdefs.h <<_ACEOF
21034 #define size_t unsigned
21035 _ACEOF
21036
21037 fi
21038
21039 echo "$as_me:$LINENO: checking for int64_t" >&5
21040 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21041 if test "${ac_cv_type_int64_t+set}" = set; then
21042   echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044   cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 $ac_includes_default
21051 int
21052 main ()
21053 {
21054 if ((int64_t *) 0)
21055   return 0;
21056 if (sizeof (int64_t))
21057   return 0;
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21064   (eval $ac_compile) 2>conftest.er1
21065   ac_status=$?
21066   grep -v '^ *+' conftest.er1 >conftest.err
21067   rm -f conftest.er1
21068   cat conftest.err >&5
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); } &&
21071          { ac_try='test -z "$ac_c_werror_flag"
21072                          || test ! -s conftest.err'
21073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074   (eval $ac_try) 2>&5
21075   ac_status=$?
21076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077   (exit $ac_status); }; } &&
21078          { ac_try='test -s conftest.$ac_objext'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; }; then
21084   ac_cv_type_int64_t=yes
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 ac_cv_type_int64_t=no
21090 fi
21091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21092 fi
21093 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21094 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21095 if test $ac_cv_type_int64_t = yes; then
21096
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_INT64_T 1
21099 _ACEOF
21100
21101
21102 else
21103   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21104 echo "$as_me: error: Type int64_t required but not found" >&2;}
21105    { (exit 1); exit 1; }; }
21106 fi
21107
21108 echo "$as_me:$LINENO: checking for uint64_t" >&5
21109 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21110 if test "${ac_cv_type_uint64_t+set}" = set; then
21111   echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113   cat >conftest.$ac_ext <<_ACEOF
21114 /* confdefs.h.  */
21115 _ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h.  */
21119 $ac_includes_default
21120 int
21121 main ()
21122 {
21123 if ((uint64_t *) 0)
21124   return 0;
21125 if (sizeof (uint64_t))
21126   return 0;
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21133   (eval $ac_compile) 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag"
21141                          || test ! -s conftest.err'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; } &&
21147          { ac_try='test -s conftest.$ac_objext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_type_uint64_t=yes
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 ac_cv_type_uint64_t=no
21159 fi
21160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21161 fi
21162 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21163 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21164 if test $ac_cv_type_uint64_t = yes; then
21165
21166 cat >>confdefs.h <<_ACEOF
21167 #define HAVE_UINT64_T 1
21168 _ACEOF
21169
21170
21171 else
21172   echo "$as_me:$LINENO: checking for u_int64_t" >&5
21173 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21174 if test "${ac_cv_type_u_int64_t+set}" = set; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177   cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 $ac_includes_default
21184 int
21185 main ()
21186 {
21187 if ((u_int64_t *) 0)
21188   return 0;
21189 if (sizeof (u_int64_t))
21190   return 0;
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21197   (eval $ac_compile) 2>conftest.er1
21198   ac_status=$?
21199   grep -v '^ *+' conftest.er1 >conftest.err
21200   rm -f conftest.er1
21201   cat conftest.err >&5
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); } &&
21204          { ac_try='test -z "$ac_c_werror_flag"
21205                          || test ! -s conftest.err'
21206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207   (eval $ac_try) 2>&5
21208   ac_status=$?
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); }; } &&
21211          { ac_try='test -s conftest.$ac_objext'
21212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213   (eval $ac_try) 2>&5
21214   ac_status=$?
21215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216   (exit $ac_status); }; }; then
21217   ac_cv_type_u_int64_t=yes
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 ac_cv_type_u_int64_t=no
21223 fi
21224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21225 fi
21226 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21227 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21228 if test $ac_cv_type_u_int64_t = yes; then
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_U_INT64_T 1
21232 _ACEOF
21233
21234
21235 else
21236   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21237 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21238    { (exit 1); exit 1; }; }
21239 fi
21240
21241 fi
21242
21243 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21244 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21245 if test "${ac_cv_header_time+set}" = set; then
21246   echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248   cat >conftest.$ac_ext <<_ACEOF
21249 /* confdefs.h.  */
21250 _ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h.  */
21254 #include <sys/types.h>
21255 #include <sys/time.h>
21256 #include <time.h>
21257
21258 int
21259 main ()
21260 {
21261 if ((struct tm *) 0)
21262 return 0;
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21269   (eval $ac_compile) 2>conftest.er1
21270   ac_status=$?
21271   grep -v '^ *+' conftest.er1 >conftest.err
21272   rm -f conftest.er1
21273   cat conftest.err >&5
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } &&
21276          { ac_try='test -z "$ac_c_werror_flag"
21277                          || test ! -s conftest.err'
21278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279   (eval $ac_try) 2>&5
21280   ac_status=$?
21281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282   (exit $ac_status); }; } &&
21283          { ac_try='test -s conftest.$ac_objext'
21284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285   (eval $ac_try) 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_cv_header_time=yes
21290 else
21291   echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_cv_header_time=no
21295 fi
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 fi
21298 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21299 echo "${ECHO_T}$ac_cv_header_time" >&6
21300 if test $ac_cv_header_time = yes; then
21301
21302 cat >>confdefs.h <<\_ACEOF
21303 #define TIME_WITH_SYS_TIME 1
21304 _ACEOF
21305
21306 fi
21307
21308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21310 if test "${ac_cv_struct_tm+set}" = set; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <sys/types.h>
21320 #include <time.h>
21321
21322 int
21323 main ()
21324 {
21325 struct tm *tp; tp->tm_sec;
21326   ;
21327   return 0;
21328 }
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21332   (eval $ac_compile) 2>conftest.er1
21333   ac_status=$?
21334   grep -v '^ *+' conftest.er1 >conftest.err
21335   rm -f conftest.er1
21336   cat conftest.err >&5
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } &&
21339          { ac_try='test -z "$ac_c_werror_flag"
21340                          || test ! -s conftest.err'
21341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342   (eval $ac_try) 2>&5
21343   ac_status=$?
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); }; } &&
21346          { ac_try='test -s conftest.$ac_objext'
21347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348   (eval $ac_try) 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; }; then
21352   ac_cv_struct_tm=time.h
21353 else
21354   echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21356
21357 ac_cv_struct_tm=sys/time.h
21358 fi
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21360 fi
21361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21363 if test $ac_cv_struct_tm = sys/time.h; then
21364
21365 cat >>confdefs.h <<\_ACEOF
21366 #define TM_IN_SYS_TIME 1
21367 _ACEOF
21368
21369 fi
21370
21371
21372
21373   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21374 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21375   ac_ext=c
21376 ac_cpp='$CPP $CPPFLAGS'
21377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21380
21381   if test "$cross_compiling" = yes; then
21382   ac_c_printf_a=no
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385
21386     /* confdefs.h.  */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h.  */
21391
21392 #include <stdio.h>
21393 #include <stdlib.h>
21394
21395 int
21396 main ()
21397 {
21398
21399 volatile double A, B;
21400 char Buffer[100];
21401 A = 1;
21402 A /= 10.0;
21403 sprintf(Buffer, "%a", A);
21404 B = atof(Buffer);
21405 if (A != B)
21406   return (1);
21407 if (A != 0x1.999999999999ap-4)
21408   return (1);
21409 return (0);
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416   (eval $ac_link) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; }; then
21425   ac_c_printf_a=yes
21426 else
21427   echo "$as_me: program exited with status $ac_status" >&5
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ( exit $ac_status )
21432 ac_c_printf_a=no
21433 fi
21434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21435 fi
21436  ac_ext=c
21437 ac_cpp='$CPP $CPPFLAGS'
21438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441
21442  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21443 echo "${ECHO_T}$ac_c_printf_a" >&6
21444  if test "$ac_c_printf_a" = "yes"; then
21445
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_PRINTF_A 1
21448 _ACEOF
21449
21450  fi
21451
21452
21453 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21454 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21455 if test "${ac_cv_c_bigendian+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   # See if sys/param.h defines the BYTE_ORDER macro.
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 #include <sys/types.h>
21466 #include <sys/param.h>
21467
21468 int
21469 main ()
21470 {
21471 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21472  bogus endian macros
21473 #endif
21474
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481   (eval $ac_compile) 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -z "$ac_c_werror_flag"
21489                          || test ! -s conftest.err'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; } &&
21495          { ac_try='test -s conftest.$ac_objext'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   # It does; now see whether it defined to BIG_ENDIAN or not.
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
21515  not big endian
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   ac_cv_c_bigendian=yes
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 ac_cv_c_bigendian=no
21550 fi
21551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21552 else
21553   echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21555
21556 # It does not; compile a test program.
21557 if test "$cross_compiling" = yes; then
21558   # try to guess the endianness by grepping values into an object file
21559   ac_cv_c_bigendian=unknown
21560   cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21567 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21568 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21569 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21570 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21571 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21572 int
21573 main ()
21574 {
21575  _ascii (); _ebcdic ();
21576   ;
21577   return 0;
21578 }
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582   (eval $ac_compile) 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } &&
21589          { ac_try='test -z "$ac_c_werror_flag"
21590                          || test ! -s conftest.err'
21591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592   (eval $ac_try) 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; } &&
21596          { ac_try='test -s conftest.$ac_objext'
21597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598   (eval $ac_try) 2>&5
21599   ac_status=$?
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); }; }; then
21602   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21603   ac_cv_c_bigendian=yes
21604 fi
21605 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21606   if test "$ac_cv_c_bigendian" = unknown; then
21607     ac_cv_c_bigendian=no
21608   else
21609     # finding both strings is unlikely to happen, but who knows?
21610     ac_cv_c_bigendian=unknown
21611   fi
21612 fi
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 fi
21618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 int
21627 main ()
21628 {
21629   /* Are we little or big endian?  From Harbison&Steele.  */
21630   union
21631   {
21632     long l;
21633     char c[sizeof (long)];
21634   } u;
21635   u.l = 1;
21636   exit (u.c[sizeof (long) - 1] == 1);
21637 }
21638 _ACEOF
21639 rm -f conftest$ac_exeext
21640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21641   (eval $ac_link) 2>&5
21642   ac_status=$?
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_cv_c_bigendian=no
21651 else
21652   echo "$as_me: program exited with status $ac_status" >&5
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656 ( exit $ac_status )
21657 ac_cv_c_bigendian=yes
21658 fi
21659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 fi
21661 fi
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21663 fi
21664 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21665 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21666 case $ac_cv_c_bigendian in
21667   yes)
21668     ENDIAN=big
21669  ;;
21670   no)
21671     ENDIAN=little
21672  ;;
21673   *)
21674     { { echo "$as_me:$LINENO: error: unknown endianness
21675 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21676 echo "$as_me: error: unknown endianness
21677 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21678    { (exit 1); exit 1; }; } ;;
21679 esac
21680
21681
21682 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21683 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21684 if test "${ac_cv_cxx_namespaces+set}" = set; then
21685   echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687   ac_ext=cc
21688 ac_cpp='$CXXCPP $CPPFLAGS'
21689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21692
21693  cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 namespace Outer { namespace Inner { int i = 0; }}
21700 int
21701 main ()
21702 {
21703 using namespace Outer::Inner; return i;
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext
21709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21710   (eval $ac_compile) 2>conftest.er1
21711   ac_status=$?
21712   grep -v '^ *+' conftest.er1 >conftest.err
21713   rm -f conftest.er1
21714   cat conftest.err >&5
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); } &&
21717          { ac_try='test -z "$ac_cxx_werror_flag"
21718                          || test ! -s conftest.err'
21719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720   (eval $ac_try) 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; } &&
21724          { ac_try='test -s conftest.$ac_objext'
21725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726   (eval $ac_try) 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; }; then
21730   ac_cv_cxx_namespaces=yes
21731 else
21732   echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735 ac_cv_cxx_namespaces=no
21736 fi
21737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21738  ac_ext=c
21739 ac_cpp='$CPP $CPPFLAGS'
21740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21743
21744
21745 fi
21746 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21747 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21748 if test "$ac_cv_cxx_namespaces" = yes; then
21749
21750 cat >>confdefs.h <<\_ACEOF
21751 #define HAVE_NAMESPACES
21752 _ACEOF
21753
21754 fi
21755
21756 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21757 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21758 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21759   echo $ECHO_N "(cached) $ECHO_C" >&6
21760 else
21761
21762   ac_ext=cc
21763 ac_cpp='$CXXCPP $CPPFLAGS'
21764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21767
21768   cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774 #include <ext/hash_map>
21775 #ifdef HAVE_NAMESPACES
21776 using namespace std;
21777 #endif
21778 int
21779 main ()
21780 {
21781 hash_map<int, int> t;
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788   (eval $ac_compile) 2>conftest.er1
21789   ac_status=$?
21790   grep -v '^ *+' conftest.er1 >conftest.err
21791   rm -f conftest.er1
21792   cat conftest.err >&5
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } &&
21795          { ac_try='test -z "$ac_cxx_werror_flag"
21796                          || test ! -s conftest.err'
21797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798   (eval $ac_try) 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); }; } &&
21802          { ac_try='test -s conftest.$ac_objext'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; }; then
21808   ac_cv_cxx_have_std_ext_hash_map=yes
21809 else
21810   echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813 ac_cv_cxx_have_std_ext_hash_map=no
21814 fi
21815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21816   ac_ext=c
21817 ac_cpp='$CPP $CPPFLAGS'
21818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21821
21822 fi
21823 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21824 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21825  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21826  then
21827
21828 cat >>confdefs.h <<\_ACEOF
21829 #define HAVE_STD_EXT_HASH_MAP 1
21830 _ACEOF
21831
21832  else
21833
21834 cat >>confdefs.h <<\_ACEOF
21835 #define HAVE_STD_EXT_HASH_MAP 0
21836 _ACEOF
21837
21838  fi
21839
21840  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21841 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21842 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845
21846   ac_ext=cc
21847 ac_cpp='$CXXCPP $CPPFLAGS'
21848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21851
21852   cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h.  */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h.  */
21858 #include <ext/hash_map>
21859 #ifdef HAVE_NAMESPACES
21860 using namespace __gnu_cxx;
21861 #endif
21862 int
21863 main ()
21864 {
21865 hash_map<int,int> t;
21866   ;
21867   return 0;
21868 }
21869 _ACEOF
21870 rm -f conftest.$ac_objext
21871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21872   (eval $ac_compile) 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -z "$ac_cxx_werror_flag"
21880                          || test ! -s conftest.err'
21881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882   (eval $ac_try) 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); }; } &&
21886          { ac_try='test -s conftest.$ac_objext'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ac_cv_cxx_have_gnu_ext_hash_map=yes
21893 else
21894   echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 ac_cv_cxx_have_gnu_ext_hash_map=no
21898 fi
21899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21900   ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905
21906 fi
21907 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21908 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21909  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21910  then
21911
21912 cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_GNU_EXT_HASH_MAP 1
21914 _ACEOF
21915
21916  else
21917
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_GNU_EXT_HASH_MAP 0
21920 _ACEOF
21921
21922  fi
21923
21924  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21925 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21926 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21927   echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929
21930   ac_ext=cc
21931 ac_cpp='$CXXCPP $CPPFLAGS'
21932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21935
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 #include <hash_map>
21943 int
21944 main ()
21945 {
21946 hash_map<int,int> t;
21947   ;
21948   return 0;
21949 }
21950 _ACEOF
21951 rm -f conftest.$ac_objext
21952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21953   (eval $ac_compile) 2>conftest.er1
21954   ac_status=$?
21955   grep -v '^ *+' conftest.er1 >conftest.err
21956   rm -f conftest.er1
21957   cat conftest.err >&5
21958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959   (exit $ac_status); } &&
21960          { ac_try='test -z "$ac_cxx_werror_flag"
21961                          || test ! -s conftest.err'
21962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; } &&
21967          { ac_try='test -s conftest.$ac_objext'
21968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969   (eval $ac_try) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; }; then
21973   ac_cv_cxx_have_global_hash_map=yes
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978 ac_cv_cxx_have_global_hash_map=no
21979 fi
21980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21981   ac_ext=c
21982 ac_cpp='$CPP $CPPFLAGS'
21983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21986
21987 fi
21988 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21989 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21990  if test "$ac_cv_cxx_have_global_hash_map" = yes
21991  then
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_GLOBAL_HASH_MAP 1
21995 _ACEOF
21996
21997  else
21998
21999 cat >>confdefs.h <<\_ACEOF
22000 #define HAVE_GLOBAL_HASH_MAP 0
22001 _ACEOF
22002
22003  fi
22004
22005 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22006 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22007 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22008   echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010
22011   ac_ext=cc
22012 ac_cpp='$CXXCPP $CPPFLAGS'
22013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22016
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 #include <ext/hash_set>
22024 #ifdef HAVE_NAMESPACES
22025 using namespace std;
22026 #endif
22027 int
22028 main ()
22029 {
22030 hash_set<int> t;
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 rm -f conftest.$ac_objext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22037   (eval $ac_compile) 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } &&
22044          { ac_try='test -z "$ac_cxx_werror_flag"
22045                          || test ! -s conftest.err'
22046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047   (eval $ac_try) 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; } &&
22051          { ac_try='test -s conftest.$ac_objext'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; }; then
22057   ac_cv_cxx_have_std_ext_hash_set=yes
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062 ac_cv_cxx_have_std_ext_hash_set=no
22063 fi
22064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22065   ac_ext=c
22066 ac_cpp='$CPP $CPPFLAGS'
22067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22070
22071 fi
22072 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22073 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22074  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22075  then
22076
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_STD_EXT_HASH_SET 1
22079 _ACEOF
22080
22081  else
22082
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_STD_EXT_HASH_SET 0
22085 _ACEOF
22086
22087  fi
22088
22089  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22090 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22091 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22092   echo $ECHO_N "(cached) $ECHO_C" >&6
22093 else
22094
22095   ac_ext=cc
22096 ac_cpp='$CXXCPP $CPPFLAGS'
22097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22100
22101   cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h.  */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h.  */
22107 #include <ext/hash_set>
22108 #ifdef HAVE_NAMESPACES
22109 using namespace __gnu_cxx;
22110 #endif
22111 int
22112 main ()
22113 {
22114 hash_set<int> t;
22115   ;
22116   return 0;
22117 }
22118 _ACEOF
22119 rm -f conftest.$ac_objext
22120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22121   (eval $ac_compile) 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } &&
22128          { ac_try='test -z "$ac_cxx_werror_flag"
22129                          || test ! -s conftest.err'
22130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131   (eval $ac_try) 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); }; } &&
22135          { ac_try='test -s conftest.$ac_objext'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; }; then
22141   ac_cv_cxx_have_gnu_ext_hash_set=yes
22142 else
22143   echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146 ac_cv_cxx_have_gnu_ext_hash_set=no
22147 fi
22148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22149   ac_ext=c
22150 ac_cpp='$CPP $CPPFLAGS'
22151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22154
22155 fi
22156 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22157 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22158  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22159  then
22160
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GNU_EXT_HASH_SET 1
22163 _ACEOF
22164
22165  else
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_GNU_EXT_HASH_SET 0
22169 _ACEOF
22170
22171  fi
22172
22173  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22174 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22175 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22176   echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178
22179   ac_ext=cc
22180 ac_cpp='$CXXCPP $CPPFLAGS'
22181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22184
22185   cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h.  */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h.  */
22191 #include <hash_set>
22192 int
22193 main ()
22194 {
22195 hash_set<int> t; return 0;
22196   ;
22197   return 0;
22198 }
22199 _ACEOF
22200 rm -f conftest.$ac_objext
22201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22202   (eval $ac_compile) 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } &&
22209          { ac_try='test -z "$ac_cxx_werror_flag"
22210                          || test ! -s conftest.err'
22211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22212   (eval $ac_try) 2>&5
22213   ac_status=$?
22214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215   (exit $ac_status); }; } &&
22216          { ac_try='test -s conftest.$ac_objext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_cxx_have_global_hash_set=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 ac_cv_cxx_have_global_hash_set=no
22228 fi
22229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22230   ac_ext=c
22231 ac_cpp='$CPP $CPPFLAGS'
22232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22235
22236 fi
22237 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22238 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22239  if test "$ac_cv_cxx_have_global_hash_set" = yes
22240  then
22241
22242 cat >>confdefs.h <<\_ACEOF
22243 #define HAVE_GLOBAL_HASH_SET 1
22244 _ACEOF
22245
22246  else
22247
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_GLOBAL_HASH_SET 0
22250 _ACEOF
22251
22252  fi
22253
22254 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22255 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22256 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259
22260   ac_ext=cc
22261 ac_cpp='$CXXCPP $CPPFLAGS'
22262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265
22266   cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 #include <iterator>
22273 #ifdef HAVE_NAMESPACES
22274 using namespace std;
22275 #endif
22276 int
22277 main ()
22278 {
22279 iterator<int,int,int> t; return 0;
22280   ;
22281   return 0;
22282 }
22283 _ACEOF
22284 rm -f conftest.$ac_objext
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286   (eval $ac_compile) 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } &&
22293          { ac_try='test -z "$ac_cxx_werror_flag"
22294                          || test ! -s conftest.err'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; } &&
22300          { ac_try='test -s conftest.$ac_objext'
22301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302   (eval $ac_try) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }; }; then
22306   ac_cv_cxx_have_std_iterator=yes
22307 else
22308   echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 ac_cv_cxx_have_std_iterator=no
22312 fi
22313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22314   ac_ext=c
22315 ac_cpp='$CPP $CPPFLAGS'
22316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22319
22320
22321 fi
22322 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22323 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22324 if test "$ac_cv_cxx_have_std_iterator" = yes
22325 then
22326
22327 cat >>confdefs.h <<\_ACEOF
22328 #define HAVE_STD_ITERATOR 1
22329 _ACEOF
22330
22331 else
22332
22333 cat >>confdefs.h <<\_ACEOF
22334 #define HAVE_STD_ITERATOR 0
22335 _ACEOF
22336
22337 fi
22338
22339 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22340 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22341 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344
22345   ac_ext=cc
22346 ac_cpp='$CXXCPP $CPPFLAGS'
22347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22350
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <iterator>
22358 #ifdef HAVE_NAMESPACES
22359 using namespace std;
22360 #endif
22361 int
22362 main ()
22363 {
22364 bidirectional_iterator<int,int> t; return 0;
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest.$ac_objext
22370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22371   (eval $ac_compile) 2>conftest.er1
22372   ac_status=$?
22373   grep -v '^ *+' conftest.er1 >conftest.err
22374   rm -f conftest.er1
22375   cat conftest.err >&5
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); } &&
22378          { ac_try='test -z "$ac_cxx_werror_flag"
22379                          || test ! -s conftest.err'
22380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381   (eval $ac_try) 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); }; } &&
22385          { ac_try='test -s conftest.$ac_objext'
22386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387   (eval $ac_try) 2>&5
22388   ac_status=$?
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); }; }; then
22391   ac_cv_cxx_have_bi_iterator=yes
22392 else
22393   echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22395
22396 ac_cv_cxx_have_bi_iterator=no
22397 fi
22398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22399   ac_ext=c
22400 ac_cpp='$CPP $CPPFLAGS'
22401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22404
22405
22406 fi
22407 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22408 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22409 if test "$ac_cv_cxx_have_bi_iterator" = yes
22410 then
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define HAVE_BI_ITERATOR 1
22414 _ACEOF
22415
22416 else
22417
22418 cat >>confdefs.h <<\_ACEOF
22419 #define HAVE_BI_ITERATOR 0
22420 _ACEOF
22421
22422 fi
22423
22424 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22425 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22426 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22427   echo $ECHO_N "(cached) $ECHO_C" >&6
22428 else
22429
22430   ac_ext=cc
22431 ac_cpp='$CXXCPP $CPPFLAGS'
22432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22435
22436   cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442 #include <iterator>
22443 #ifdef HAVE_NAMESPACES
22444 using namespace std;
22445 #endif
22446 int
22447 main ()
22448 {
22449 forward_iterator<int,int> t; return 0;
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456   (eval $ac_compile) 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } &&
22463          { ac_try='test -z "$ac_cxx_werror_flag"
22464                          || test ! -s conftest.err'
22465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22466   (eval $ac_try) 2>&5
22467   ac_status=$?
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); }; } &&
22470          { ac_try='test -s conftest.$ac_objext'
22471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472   (eval $ac_try) 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_cxx_have_fwd_iterator=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481 ac_cv_cxx_have_fwd_iterator=no
22482 fi
22483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22484   ac_ext=c
22485 ac_cpp='$CPP $CPPFLAGS'
22486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22489
22490
22491 fi
22492 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22493 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22494 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22495 then
22496
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_FWD_ITERATOR 1
22499 _ACEOF
22500
22501 else
22502
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_FWD_ITERATOR 0
22505 _ACEOF
22506
22507 fi
22508
22509
22510
22511 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22512 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22513 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516   ac_ext=cc
22517 ac_cpp='$CXXCPP $CPPFLAGS'
22518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22521
22522   cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 #include <math.h>
22529                      int foo(float f) {return isnan(f);}
22530 _ACEOF
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533   (eval $ac_compile) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_cxx_werror_flag"
22541                          || test ! -s conftest.err'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; } &&
22547          { ac_try='test -s conftest.$ac_objext'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; }; then
22553   ac_cv_func_isnan_in_math_h=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558 ac_cv_func_isnan_in_math_h=no
22559 fi
22560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22561  ac_ext=c
22562 ac_cpp='$CPP $CPPFLAGS'
22563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22566
22567 fi
22568 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22569 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22570  if test "$ac_cv_func_isnan_in_math_h" = "yes"
22571  then
22572
22573 cat >>confdefs.h <<\_ACEOF
22574 #define HAVE_ISNAN_IN_MATH_H 1
22575 _ACEOF
22576
22577  fi
22578 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22579 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22580 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   ac_ext=cc
22584 ac_cpp='$CXXCPP $CPPFLAGS'
22585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22588
22589   cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595 #include <cmath>
22596                      int foo(float f) {return isnan(f);}
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22600   (eval $ac_compile) 2>conftest.er1
22601   ac_status=$?
22602   grep -v '^ *+' conftest.er1 >conftest.err
22603   rm -f conftest.er1
22604   cat conftest.err >&5
22605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606   (exit $ac_status); } &&
22607          { ac_try='test -z "$ac_cxx_werror_flag"
22608                          || test ! -s conftest.err'
22609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610   (eval $ac_try) 2>&5
22611   ac_status=$?
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); }; } &&
22614          { ac_try='test -s conftest.$ac_objext'
22615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616   (eval $ac_try) 2>&5
22617   ac_status=$?
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); }; }; then
22620   ac_cv_func_isnan_in_cmath=yes
22621 else
22622   echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22624
22625 ac_cv_func_isnan_in_cmath=no
22626 fi
22627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22628  ac_ext=c
22629 ac_cpp='$CPP $CPPFLAGS'
22630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22633
22634 fi
22635 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22636 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22637  if test "$ac_cv_func_isnan_in_cmath" = "yes"
22638  then
22639
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_ISNAN_IN_CMATH 1
22642 _ACEOF
22643
22644  fi
22645 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22646 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22647 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650   ac_ext=cc
22651 ac_cpp='$CXXCPP $CPPFLAGS'
22652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22655
22656   cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 #include <cmath>
22663                      using std::isnan; int foo(float f) {return isnan(f);}
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22667   (eval $ac_compile) 2>conftest.er1
22668   ac_status=$?
22669   grep -v '^ *+' conftest.er1 >conftest.err
22670   rm -f conftest.er1
22671   cat conftest.err >&5
22672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673   (exit $ac_status); } &&
22674          { ac_try='test -z "$ac_cxx_werror_flag"
22675                          || test ! -s conftest.err'
22676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677   (eval $ac_try) 2>&5
22678   ac_status=$?
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); }; } &&
22681          { ac_try='test -s conftest.$ac_objext'
22682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683   (eval $ac_try) 2>&5
22684   ac_status=$?
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); }; }; then
22687   ac_cv_func_std_isnan_in_cmath=yes
22688 else
22689   echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 ac_cv_func_std_isnan_in_cmath=no
22693 fi
22694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22695  ac_ext=c
22696 ac_cpp='$CPP $CPPFLAGS'
22697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22700
22701 fi
22702 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22703 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22704  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22705  then
22706
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_STD_ISNAN_IN_CMATH 1
22709 _ACEOF
22710
22711  fi
22712
22713
22714 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22715 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22716 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719   ac_ext=cc
22720 ac_cpp='$CXXCPP $CPPFLAGS'
22721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22724
22725   cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h.  */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h.  */
22731 #include <math.h>
22732                      int foo(float f) {return isinf(f);}
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22736   (eval $ac_compile) 2>conftest.er1
22737   ac_status=$?
22738   grep -v '^ *+' conftest.er1 >conftest.err
22739   rm -f conftest.er1
22740   cat conftest.err >&5
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); } &&
22743          { ac_try='test -z "$ac_cxx_werror_flag"
22744                          || test ! -s conftest.err'
22745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746   (eval $ac_try) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; } &&
22750          { ac_try='test -s conftest.$ac_objext'
22751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752   (eval $ac_try) 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; }; then
22756   ac_cv_func_isinf_in_math_h=yes
22757 else
22758   echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22760
22761 ac_cv_func_isinf_in_math_h=no
22762 fi
22763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22764  ac_ext=c
22765 ac_cpp='$CPP $CPPFLAGS'
22766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22769
22770 fi
22771 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22772 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22773  if test "$ac_cv_func_isinf_in_math_h" = "yes"
22774  then
22775
22776 cat >>confdefs.h <<\_ACEOF
22777 #define HAVE_ISINF_IN_MATH_H 1
22778 _ACEOF
22779
22780  fi
22781 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22782 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22783 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22784   echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786   ac_ext=cc
22787 ac_cpp='$CXXCPP $CPPFLAGS'
22788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22791
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 #include <cmath>
22799                      int foo(float f) {return isinf(f);}
22800 _ACEOF
22801 rm -f conftest.$ac_objext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22803   (eval $ac_compile) 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } &&
22810          { ac_try='test -z "$ac_cxx_werror_flag"
22811                          || test ! -s conftest.err'
22812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813   (eval $ac_try) 2>&5
22814   ac_status=$?
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); }; } &&
22817          { ac_try='test -s conftest.$ac_objext'
22818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819   (eval $ac_try) 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; }; then
22823   ac_cv_func_isinf_in_cmath=yes
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 ac_cv_func_isinf_in_cmath=no
22829 fi
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22831  ac_ext=c
22832 ac_cpp='$CPP $CPPFLAGS'
22833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22836
22837 fi
22838 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22839 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22840  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22841  then
22842
22843 cat >>confdefs.h <<\_ACEOF
22844 #define HAVE_ISINF_IN_CMATH 1
22845 _ACEOF
22846
22847  fi
22848 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22849 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22850 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22851   echo $ECHO_N "(cached) $ECHO_C" >&6
22852 else
22853   ac_ext=cc
22854 ac_cpp='$CXXCPP $CPPFLAGS'
22855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22858
22859   cat >conftest.$ac_ext <<_ACEOF
22860 /* confdefs.h.  */
22861 _ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h.  */
22865 #include <cmath>
22866                      using std::isinf; int foo(float f) {return isinf(f);}
22867 _ACEOF
22868 rm -f conftest.$ac_objext
22869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22870   (eval $ac_compile) 2>conftest.er1
22871   ac_status=$?
22872   grep -v '^ *+' conftest.er1 >conftest.err
22873   rm -f conftest.er1
22874   cat conftest.err >&5
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); } &&
22877          { ac_try='test -z "$ac_cxx_werror_flag"
22878                          || test ! -s conftest.err'
22879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880   (eval $ac_try) 2>&5
22881   ac_status=$?
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); }; } &&
22884          { ac_try='test -s conftest.$ac_objext'
22885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886   (eval $ac_try) 2>&5
22887   ac_status=$?
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); }; }; then
22890   ac_cv_func_std_isinf_in_cmath=yes
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895 ac_cv_func_std_isinf_in_cmath=no
22896 fi
22897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22898  ac_ext=c
22899 ac_cpp='$CPP $CPPFLAGS'
22900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22903
22904 fi
22905 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22906 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22907  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22908  then
22909
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_STD_ISINF_IN_CMATH 1
22912 _ACEOF
22913
22914  fi
22915 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   ac_ext=cc
22921 ac_cpp='$CXXCPP $CPPFLAGS'
22922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22925
22926   cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932 #include <ieeefp.h>
22933                      int foo(float f) {return finite(f);}
22934 _ACEOF
22935 rm -f conftest.$ac_objext
22936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22937   (eval $ac_compile) 2>conftest.er1
22938   ac_status=$?
22939   grep -v '^ *+' conftest.er1 >conftest.err
22940   rm -f conftest.er1
22941   cat conftest.err >&5
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); } &&
22944          { ac_try='test -z "$ac_cxx_werror_flag"
22945                          || test ! -s conftest.err'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; } &&
22951          { ac_try='test -s conftest.$ac_objext'
22952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953   (eval $ac_try) 2>&5
22954   ac_status=$?
22955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); }; }; then
22957   ac_cv_func_finite_in_ieeefp_h=yes
22958 else
22959   echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22961
22962 ac_cv_func_finite_in_ieeefp_h=no
22963 fi
22964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22965  ac_ext=c
22966 ac_cpp='$CPP $CPPFLAGS'
22967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22970
22971 fi
22972 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22974  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22975  then
22976
22977 cat >>confdefs.h <<\_ACEOF
22978 #define HAVE_FINITE_IN_IEEEFP_H 1
22979 _ACEOF
22980
22981  fi
22982
22983
22984 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22985 # for constant arguments.  Useless!
22986 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22987 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22988 if test "${ac_cv_working_alloca_h+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991   cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997 #include <alloca.h>
22998 int
22999 main ()
23000 {
23001 char *p = (char *) alloca (2 * sizeof (int));
23002   ;
23003   return 0;
23004 }
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008   (eval $ac_link) 2>conftest.er1
23009   ac_status=$?
23010   grep -v '^ *+' conftest.er1 >conftest.err
23011   rm -f conftest.er1
23012   cat conftest.err >&5
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } &&
23015          { ac_try='test -z "$ac_c_werror_flag"
23016                          || test ! -s conftest.err'
23017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018   (eval $ac_try) 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); }; } &&
23022          { ac_try='test -s conftest$ac_exeext'
23023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024   (eval $ac_try) 2>&5
23025   ac_status=$?
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); }; }; then
23028   ac_cv_working_alloca_h=yes
23029 else
23030   echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033 ac_cv_working_alloca_h=no
23034 fi
23035 rm -f conftest.err conftest.$ac_objext \
23036       conftest$ac_exeext conftest.$ac_ext
23037 fi
23038 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23039 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23040 if test $ac_cv_working_alloca_h = yes; then
23041
23042 cat >>confdefs.h <<\_ACEOF
23043 #define HAVE_ALLOCA_H 1
23044 _ACEOF
23045
23046 fi
23047
23048 echo "$as_me:$LINENO: checking for alloca" >&5
23049 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23050 if test "${ac_cv_func_alloca_works+set}" = set; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053   cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059 #ifdef __GNUC__
23060 # define alloca __builtin_alloca
23061 #else
23062 # ifdef _MSC_VER
23063 #  include <malloc.h>
23064 #  define alloca _alloca
23065 # else
23066 #  if HAVE_ALLOCA_H
23067 #   include <alloca.h>
23068 #  else
23069 #   ifdef _AIX
23070  #pragma alloca
23071 #   else
23072 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23073 char *alloca ();
23074 #    endif
23075 #   endif
23076 #  endif
23077 # endif
23078 #endif
23079
23080 int
23081 main ()
23082 {
23083 char *p = (char *) alloca (1);
23084   ;
23085   return 0;
23086 }
23087 _ACEOF
23088 rm -f conftest.$ac_objext conftest$ac_exeext
23089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23090   (eval $ac_link) 2>conftest.er1
23091   ac_status=$?
23092   grep -v '^ *+' conftest.er1 >conftest.err
23093   rm -f conftest.er1
23094   cat conftest.err >&5
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); } &&
23097          { ac_try='test -z "$ac_c_werror_flag"
23098                          || test ! -s conftest.err'
23099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100   (eval $ac_try) 2>&5
23101   ac_status=$?
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); }; } &&
23104          { ac_try='test -s conftest$ac_exeext'
23105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23106   (eval $ac_try) 2>&5
23107   ac_status=$?
23108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109   (exit $ac_status); }; }; then
23110   ac_cv_func_alloca_works=yes
23111 else
23112   echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 ac_cv_func_alloca_works=no
23116 fi
23117 rm -f conftest.err conftest.$ac_objext \
23118       conftest$ac_exeext conftest.$ac_ext
23119 fi
23120 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23121 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23122
23123 if test $ac_cv_func_alloca_works = yes; then
23124
23125 cat >>confdefs.h <<\_ACEOF
23126 #define HAVE_ALLOCA 1
23127 _ACEOF
23128
23129 else
23130   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23131 # that cause trouble.  Some versions do not even contain alloca or
23132 # contain a buggy version.  If you still want to use their alloca,
23133 # use ar to extract alloca.o from them instead of compiling alloca.c.
23134
23135 ALLOCA=alloca.$ac_objext
23136
23137 cat >>confdefs.h <<\_ACEOF
23138 #define C_ALLOCA 1
23139 _ACEOF
23140
23141
23142 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23143 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23144 if test "${ac_cv_os_cray+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147   cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153 #if defined(CRAY) && ! defined(CRAY2)
23154 webecray
23155 #else
23156 wenotbecray
23157 #endif
23158
23159 _ACEOF
23160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161   $EGREP "webecray" >/dev/null 2>&1; then
23162   ac_cv_os_cray=yes
23163 else
23164   ac_cv_os_cray=no
23165 fi
23166 rm -f conftest*
23167
23168 fi
23169 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23170 echo "${ECHO_T}$ac_cv_os_cray" >&6
23171 if test $ac_cv_os_cray = yes; then
23172   for ac_func in _getb67 GETB67 getb67; do
23173     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23174 echo "$as_me:$LINENO: checking for $ac_func" >&5
23175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23176 if eval "test \"\${$as_ac_var+set}\" = set"; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179   cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h.  */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h.  */
23185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23187 #define $ac_func innocuous_$ac_func
23188
23189 /* System header to define __stub macros and hopefully few prototypes,
23190     which can conflict with char $ac_func (); below.
23191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23192     <limits.h> exists even on freestanding compilers.  */
23193
23194 #ifdef __STDC__
23195 # include <limits.h>
23196 #else
23197 # include <assert.h>
23198 #endif
23199
23200 #undef $ac_func
23201
23202 /* Override any gcc2 internal prototype to avoid an error.  */
23203 #ifdef __cplusplus
23204 extern "C"
23205 {
23206 #endif
23207 /* We use char because int might match the return type of a gcc2
23208    builtin and then its argument prototype would still apply.  */
23209 char $ac_func ();
23210 /* The GNU C library defines this for functions which it implements
23211     to always fail with ENOSYS.  Some functions are actually named
23212     something starting with __ and the normal name is an alias.  */
23213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23214 choke me
23215 #else
23216 char (*f) () = $ac_func;
23217 #endif
23218 #ifdef __cplusplus
23219 }
23220 #endif
23221
23222 int
23223 main ()
23224 {
23225 return f != $ac_func;
23226   ;
23227   return 0;
23228 }
23229 _ACEOF
23230 rm -f conftest.$ac_objext conftest$ac_exeext
23231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23232   (eval $ac_link) 2>conftest.er1
23233   ac_status=$?
23234   grep -v '^ *+' conftest.er1 >conftest.err
23235   rm -f conftest.er1
23236   cat conftest.err >&5
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } &&
23239          { ac_try='test -z "$ac_c_werror_flag"
23240                          || test ! -s conftest.err'
23241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242   (eval $ac_try) 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; } &&
23246          { ac_try='test -s conftest$ac_exeext'
23247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248   (eval $ac_try) 2>&5
23249   ac_status=$?
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); }; }; then
23252   eval "$as_ac_var=yes"
23253 else
23254   echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257 eval "$as_ac_var=no"
23258 fi
23259 rm -f conftest.err conftest.$ac_objext \
23260       conftest$ac_exeext conftest.$ac_ext
23261 fi
23262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23264 if test `eval echo '${'$as_ac_var'}'` = yes; then
23265
23266 cat >>confdefs.h <<_ACEOF
23267 #define CRAY_STACKSEG_END $ac_func
23268 _ACEOF
23269
23270     break
23271 fi
23272
23273   done
23274 fi
23275
23276 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23277 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23278 if test "${ac_cv_c_stack_direction+set}" = set; then
23279   echo $ECHO_N "(cached) $ECHO_C" >&6
23280 else
23281   if test "$cross_compiling" = yes; then
23282   ac_cv_c_stack_direction=0
23283 else
23284   cat >conftest.$ac_ext <<_ACEOF
23285 /* confdefs.h.  */
23286 _ACEOF
23287 cat confdefs.h >>conftest.$ac_ext
23288 cat >>conftest.$ac_ext <<_ACEOF
23289 /* end confdefs.h.  */
23290 int
23291 find_stack_direction ()
23292 {
23293   static char *addr = 0;
23294   auto char dummy;
23295   if (addr == 0)
23296     {
23297       addr = &dummy;
23298       return find_stack_direction ();
23299     }
23300   else
23301     return (&dummy > addr) ? 1 : -1;
23302 }
23303
23304 int
23305 main ()
23306 {
23307   exit (find_stack_direction () < 0);
23308 }
23309 _ACEOF
23310 rm -f conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312   (eval $ac_link) 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317   (eval $ac_try) 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); }; }; then
23321   ac_cv_c_stack_direction=1
23322 else
23323   echo "$as_me: program exited with status $ac_status" >&5
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ( exit $ac_status )
23328 ac_cv_c_stack_direction=-1
23329 fi
23330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23331 fi
23332 fi
23333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23335
23336 cat >>confdefs.h <<_ACEOF
23337 #define STACK_DIRECTION $ac_cv_c_stack_direction
23338 _ACEOF
23339
23340
23341 fi
23342
23343
23344
23345 for ac_header in stdlib.h unistd.h
23346 do
23347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23349   echo "$as_me:$LINENO: checking for $ac_header" >&5
23350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352   echo $ECHO_N "(cached) $ECHO_C" >&6
23353 fi
23354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23356 else
23357   # Is the header compilable?
23358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23360 cat >conftest.$ac_ext <<_ACEOF
23361 /* confdefs.h.  */
23362 _ACEOF
23363 cat confdefs.h >>conftest.$ac_ext
23364 cat >>conftest.$ac_ext <<_ACEOF
23365 /* end confdefs.h.  */
23366 $ac_includes_default
23367 #include <$ac_header>
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371   (eval $ac_compile) 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag"
23379                          || test ! -s conftest.err'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; } &&
23385          { ac_try='test -s conftest.$ac_objext'
23386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387   (eval $ac_try) 2>&5
23388   ac_status=$?
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); }; }; then
23391   ac_header_compiler=yes
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396 ac_header_compiler=no
23397 fi
23398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23400 echo "${ECHO_T}$ac_header_compiler" >&6
23401
23402 # Is the header present?
23403 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23405 cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411 #include <$ac_header>
23412 _ACEOF
23413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23414   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
23421   if test -s conftest.err; then
23422     ac_cpp_err=$ac_c_preproc_warn_flag
23423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23424   else
23425     ac_cpp_err=
23426   fi
23427 else
23428   ac_cpp_err=yes
23429 fi
23430 if test -z "$ac_cpp_err"; then
23431   ac_header_preproc=yes
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436   ac_header_preproc=no
23437 fi
23438 rm -f conftest.err conftest.$ac_ext
23439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23440 echo "${ECHO_T}$ac_header_preproc" >&6
23441
23442 # So?  What about this header?
23443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23444   yes:no: )
23445     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23449     ac_header_preproc=yes
23450     ;;
23451   no:yes:* )
23452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23454     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23455 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23456     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23458     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23459 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23462     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23464     (
23465       cat <<\_ASBOX
23466 ## ----------------------------------- ##
23467 ## Report this to llvmbugs@cs.uiuc.edu ##
23468 ## ----------------------------------- ##
23469 _ASBOX
23470     ) |
23471       sed "s/^/$as_me: WARNING:     /" >&2
23472     ;;
23473 esac
23474 echo "$as_me:$LINENO: checking for $ac_header" >&5
23475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477   echo $ECHO_N "(cached) $ECHO_C" >&6
23478 else
23479   eval "$as_ac_Header=\$ac_header_preproc"
23480 fi
23481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23483
23484 fi
23485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23486   cat >>confdefs.h <<_ACEOF
23487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23488 _ACEOF
23489
23490 fi
23491
23492 done
23493
23494
23495 for ac_func in getpagesize
23496 do
23497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23498 echo "$as_me:$LINENO: checking for $ac_func" >&5
23499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23500 if eval "test \"\${$as_ac_var+set}\" = set"; then
23501   echo $ECHO_N "(cached) $ECHO_C" >&6
23502 else
23503   cat >conftest.$ac_ext <<_ACEOF
23504 /* confdefs.h.  */
23505 _ACEOF
23506 cat confdefs.h >>conftest.$ac_ext
23507 cat >>conftest.$ac_ext <<_ACEOF
23508 /* end confdefs.h.  */
23509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23510    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23511 #define $ac_func innocuous_$ac_func
23512
23513 /* System header to define __stub macros and hopefully few prototypes,
23514     which can conflict with char $ac_func (); below.
23515     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23516     <limits.h> exists even on freestanding compilers.  */
23517
23518 #ifdef __STDC__
23519 # include <limits.h>
23520 #else
23521 # include <assert.h>
23522 #endif
23523
23524 #undef $ac_func
23525
23526 /* Override any gcc2 internal prototype to avoid an error.  */
23527 #ifdef __cplusplus
23528 extern "C"
23529 {
23530 #endif
23531 /* We use char because int might match the return type of a gcc2
23532    builtin and then its argument prototype would still apply.  */
23533 char $ac_func ();
23534 /* The GNU C library defines this for functions which it implements
23535     to always fail with ENOSYS.  Some functions are actually named
23536     something starting with __ and the normal name is an alias.  */
23537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23538 choke me
23539 #else
23540 char (*f) () = $ac_func;
23541 #endif
23542 #ifdef __cplusplus
23543 }
23544 #endif
23545
23546 int
23547 main ()
23548 {
23549 return f != $ac_func;
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556   (eval $ac_link) 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } &&
23563          { ac_try='test -z "$ac_c_werror_flag"
23564                          || test ! -s conftest.err'
23565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566   (eval $ac_try) 2>&5
23567   ac_status=$?
23568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569   (exit $ac_status); }; } &&
23570          { ac_try='test -s conftest$ac_exeext'
23571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572   (eval $ac_try) 2>&5
23573   ac_status=$?
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); }; }; then
23576   eval "$as_ac_var=yes"
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581 eval "$as_ac_var=no"
23582 fi
23583 rm -f conftest.err conftest.$ac_objext \
23584       conftest$ac_exeext conftest.$ac_ext
23585 fi
23586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23588 if test `eval echo '${'$as_ac_var'}'` = yes; then
23589   cat >>confdefs.h <<_ACEOF
23590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23591 _ACEOF
23592
23593 fi
23594 done
23595
23596 echo "$as_me:$LINENO: checking for working mmap" >&5
23597 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23598 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23599   echo $ECHO_N "(cached) $ECHO_C" >&6
23600 else
23601   if test "$cross_compiling" = yes; then
23602   ac_cv_func_mmap_fixed_mapped=no
23603 else
23604   cat >conftest.$ac_ext <<_ACEOF
23605 /* confdefs.h.  */
23606 _ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h.  */
23610 $ac_includes_default
23611 /* malloc might have been renamed as rpl_malloc. */
23612 #undef malloc
23613
23614 /* Thanks to Mike Haertel and Jim Avera for this test.
23615    Here is a matrix of mmap possibilities:
23616         mmap private not fixed
23617         mmap private fixed at somewhere currently unmapped
23618         mmap private fixed at somewhere already mapped
23619         mmap shared not fixed
23620         mmap shared fixed at somewhere currently unmapped
23621         mmap shared fixed at somewhere already mapped
23622    For private mappings, we should verify that changes cannot be read()
23623    back from the file, nor mmap's back from the file at a different
23624    address.  (There have been systems where private was not correctly
23625    implemented like the infamous i386 svr4.0, and systems where the
23626    VM page cache was not coherent with the file system buffer cache
23627    like early versions of FreeBSD and possibly contemporary NetBSD.)
23628    For shared mappings, we should conversely verify that changes get
23629    propagated back to all the places they're supposed to be.
23630
23631    Grep wants private fixed already mapped.
23632    The main things grep needs to know about mmap are:
23633    * does it exist and is it safe to write into the mmap'd area
23634    * how to use it (BSD variants)  */
23635
23636 #include <fcntl.h>
23637 #include <sys/mman.h>
23638
23639 #if !STDC_HEADERS && !HAVE_STDLIB_H
23640 char *malloc ();
23641 #endif
23642
23643 /* This mess was copied from the GNU getpagesize.h.  */
23644 #if !HAVE_GETPAGESIZE
23645 /* Assume that all systems that can run configure have sys/param.h.  */
23646 # if !HAVE_SYS_PARAM_H
23647 #  define HAVE_SYS_PARAM_H 1
23648 # endif
23649
23650 # ifdef _SC_PAGESIZE
23651 #  define getpagesize() sysconf(_SC_PAGESIZE)
23652 # else /* no _SC_PAGESIZE */
23653 #  if HAVE_SYS_PARAM_H
23654 #   include <sys/param.h>
23655 #   ifdef EXEC_PAGESIZE
23656 #    define getpagesize() EXEC_PAGESIZE
23657 #   else /* no EXEC_PAGESIZE */
23658 #    ifdef NBPG
23659 #     define getpagesize() NBPG * CLSIZE
23660 #     ifndef CLSIZE
23661 #      define CLSIZE 1
23662 #     endif /* no CLSIZE */
23663 #    else /* no NBPG */
23664 #     ifdef NBPC
23665 #      define getpagesize() NBPC
23666 #     else /* no NBPC */
23667 #      ifdef PAGESIZE
23668 #       define getpagesize() PAGESIZE
23669 #      endif /* PAGESIZE */
23670 #     endif /* no NBPC */
23671 #    endif /* no NBPG */
23672 #   endif /* no EXEC_PAGESIZE */
23673 #  else /* no HAVE_SYS_PARAM_H */
23674 #   define getpagesize() 8192   /* punt totally */
23675 #  endif /* no HAVE_SYS_PARAM_H */
23676 # endif /* no _SC_PAGESIZE */
23677
23678 #endif /* no HAVE_GETPAGESIZE */
23679
23680 int
23681 main ()
23682 {
23683   char *data, *data2, *data3;
23684   int i, pagesize;
23685   int fd;
23686
23687   pagesize = getpagesize ();
23688
23689   /* First, make a file with some known garbage in it. */
23690   data = (char *) malloc (pagesize);
23691   if (!data)
23692     exit (1);
23693   for (i = 0; i < pagesize; ++i)
23694     *(data + i) = rand ();
23695   umask (0);
23696   fd = creat ("conftest.mmap", 0600);
23697   if (fd < 0)
23698     exit (1);
23699   if (write (fd, data, pagesize) != pagesize)
23700     exit (1);
23701   close (fd);
23702
23703   /* Next, try to mmap the file at a fixed address which already has
23704      something else allocated at it.  If we can, also make sure that
23705      we see the same garbage.  */
23706   fd = open ("conftest.mmap", O_RDWR);
23707   if (fd < 0)
23708     exit (1);
23709   data2 = (char *) malloc (2 * pagesize);
23710   if (!data2)
23711     exit (1);
23712   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23713   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23714                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23715     exit (1);
23716   for (i = 0; i < pagesize; ++i)
23717     if (*(data + i) != *(data2 + i))
23718       exit (1);
23719
23720   /* Finally, make sure that changes to the mapped area do not
23721      percolate back to the file as seen by read().  (This is a bug on
23722      some variants of i386 svr4.0.)  */
23723   for (i = 0; i < pagesize; ++i)
23724     *(data2 + i) = *(data2 + i) + 1;
23725   data3 = (char *) malloc (pagesize);
23726   if (!data3)
23727     exit (1);
23728   if (read (fd, data3, pagesize) != pagesize)
23729     exit (1);
23730   for (i = 0; i < pagesize; ++i)
23731     if (*(data + i) != *(data3 + i))
23732       exit (1);
23733   close (fd);
23734   exit (0);
23735 }
23736 _ACEOF
23737 rm -f conftest$ac_exeext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739   (eval $ac_link) 2>&5
23740   ac_status=$?
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744   (eval $ac_try) 2>&5
23745   ac_status=$?
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); }; }; then
23748   ac_cv_func_mmap_fixed_mapped=yes
23749 else
23750   echo "$as_me: program exited with status $ac_status" >&5
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23753
23754 ( exit $ac_status )
23755 ac_cv_func_mmap_fixed_mapped=no
23756 fi
23757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23758 fi
23759 fi
23760 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23761 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23762 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23763
23764 cat >>confdefs.h <<\_ACEOF
23765 #define HAVE_MMAP 1
23766 _ACEOF
23767
23768 fi
23769 rm -f conftest.mmap
23770
23771 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23772 then
23773         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23774 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23775 fi
23776 echo "$as_me:$LINENO: checking for mmap of files" >&5
23777 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23778 if test "${ac_cv_func_mmap_file+set}" = set; then
23779   echo $ECHO_N "(cached) $ECHO_C" >&6
23780 else
23781    ac_ext=c
23782 ac_cpp='$CPP $CPPFLAGS'
23783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23786
23787   if test "$cross_compiling" = yes; then
23788   ac_cv_func_mmap_file=no
23789 else
23790   cat >conftest.$ac_ext <<_ACEOF
23791
23792     /* confdefs.h.  */
23793 _ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h.  */
23797
23798 #include <sys/types.h>
23799 #include <sys/mman.h>
23800 #include <fcntl.h>
23801
23802 int
23803 main ()
23804 {
23805
23806   int fd;
23807   fd = creat ("foo",0777);
23808   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23809   unlink ("foo");
23810   return (fd != (int) MAP_FAILED);
23811   ;
23812   return 0;
23813 }
23814 _ACEOF
23815 rm -f conftest$ac_exeext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23817   (eval $ac_link) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23822   (eval $ac_try) 2>&5
23823   ac_status=$?
23824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825   (exit $ac_status); }; }; then
23826   ac_cv_func_mmap_file=yes
23827 else
23828   echo "$as_me: program exited with status $ac_status" >&5
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.$ac_ext >&5
23831
23832 ( exit $ac_status )
23833 ac_cv_func_mmap_file=no
23834 fi
23835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23836 fi
23837   ac_ext=c
23838 ac_cpp='$CPP $CPPFLAGS'
23839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23842
23843
23844 fi
23845 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23846 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23847 if test "$ac_cv_func_mmap_file" = yes; then
23848
23849 cat >>confdefs.h <<\_ACEOF
23850 #define HAVE_MMAP_FILE
23851 _ACEOF
23852
23853    MMAP_FILE=yes
23854
23855 fi
23856
23857 if test "$ac_cv_func_mmap_file" = "no"
23858 then
23859         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23860 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23861 fi
23862 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23863 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23864 if test "${ac_cv_header_mmap_anon+set}" = set; then
23865   echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867    ac_ext=c
23868 ac_cpp='$CPP $CPPFLAGS'
23869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23872
23873   cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h.  */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h.  */
23879 #include <sys/mman.h>
23880 #include <unistd.h>
23881 #include <fcntl.h>
23882 int
23883 main ()
23884 {
23885 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23886   ;
23887   return 0;
23888 }
23889 _ACEOF
23890 rm -f conftest.$ac_objext
23891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23892   (eval $ac_compile) 2>conftest.er1
23893   ac_status=$?
23894   grep -v '^ *+' conftest.er1 >conftest.err
23895   rm -f conftest.er1
23896   cat conftest.err >&5
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); } &&
23899          { ac_try='test -z "$ac_c_werror_flag"
23900                          || test ! -s conftest.err'
23901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); }; } &&
23906          { ac_try='test -s conftest.$ac_objext'
23907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908   (eval $ac_try) 2>&5
23909   ac_status=$?
23910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911   (exit $ac_status); }; }; then
23912   ac_cv_header_mmap_anon=yes
23913 else
23914   echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917 ac_cv_header_mmap_anon=no
23918 fi
23919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23920   ac_ext=c
23921 ac_cpp='$CPP $CPPFLAGS'
23922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23925
23926
23927 fi
23928 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23929 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23930 if test "$ac_cv_header_mmap_anon" = yes; then
23931
23932 cat >>confdefs.h <<\_ACEOF
23933 #define HAVE_MMAP_ANONYMOUS
23934 _ACEOF
23935
23936 fi
23937
23938 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23939 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23940 if test "${ac_cv_type_signal+set}" = set; then
23941   echo $ECHO_N "(cached) $ECHO_C" >&6
23942 else
23943   cat >conftest.$ac_ext <<_ACEOF
23944 /* confdefs.h.  */
23945 _ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h.  */
23949 #include <sys/types.h>
23950 #include <signal.h>
23951 #ifdef signal
23952 # undef signal
23953 #endif
23954 #ifdef __cplusplus
23955 extern "C" void (*signal (int, void (*)(int)))(int);
23956 #else
23957 void (*signal ()) ();
23958 #endif
23959
23960 int
23961 main ()
23962 {
23963 int i;
23964   ;
23965   return 0;
23966 }
23967 _ACEOF
23968 rm -f conftest.$ac_objext
23969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23970   (eval $ac_compile) 2>conftest.er1
23971   ac_status=$?
23972   grep -v '^ *+' conftest.er1 >conftest.err
23973   rm -f conftest.er1
23974   cat conftest.err >&5
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); } &&
23977          { ac_try='test -z "$ac_c_werror_flag"
23978                          || test ! -s conftest.err'
23979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980   (eval $ac_try) 2>&5
23981   ac_status=$?
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); }; } &&
23984          { ac_try='test -s conftest.$ac_objext'
23985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986   (eval $ac_try) 2>&5
23987   ac_status=$?
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); }; }; then
23990   ac_cv_type_signal=void
23991 else
23992   echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23994
23995 ac_cv_type_signal=int
23996 fi
23997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23998 fi
23999 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24000 echo "${ECHO_T}$ac_cv_type_signal" >&6
24001
24002 cat >>confdefs.h <<_ACEOF
24003 #define RETSIGTYPE $ac_cv_type_signal
24004 _ACEOF
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24017 do
24018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24019 echo "$as_me:$LINENO: checking for $ac_func" >&5
24020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24021 if eval "test \"\${$as_ac_var+set}\" = set"; then
24022   echo $ECHO_N "(cached) $ECHO_C" >&6
24023 else
24024   cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24032 #define $ac_func innocuous_$ac_func
24033
24034 /* System header to define __stub macros and hopefully few prototypes,
24035     which can conflict with char $ac_func (); below.
24036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037     <limits.h> exists even on freestanding compilers.  */
24038
24039 #ifdef __STDC__
24040 # include <limits.h>
24041 #else
24042 # include <assert.h>
24043 #endif
24044
24045 #undef $ac_func
24046
24047 /* Override any gcc2 internal prototype to avoid an error.  */
24048 #ifdef __cplusplus
24049 extern "C"
24050 {
24051 #endif
24052 /* We use char because int might match the return type of a gcc2
24053    builtin and then its argument prototype would still apply.  */
24054 char $ac_func ();
24055 /* The GNU C library defines this for functions which it implements
24056     to always fail with ENOSYS.  Some functions are actually named
24057     something starting with __ and the normal name is an alias.  */
24058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24059 choke me
24060 #else
24061 char (*f) () = $ac_func;
24062 #endif
24063 #ifdef __cplusplus
24064 }
24065 #endif
24066
24067 int
24068 main ()
24069 {
24070 return f != $ac_func;
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077   (eval $ac_link) 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } &&
24084          { ac_try='test -z "$ac_c_werror_flag"
24085                          || test ! -s conftest.err'
24086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087   (eval $ac_try) 2>&5
24088   ac_status=$?
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); }; } &&
24091          { ac_try='test -s conftest$ac_exeext'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; }; then
24097   eval "$as_ac_var=yes"
24098 else
24099   echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24101
24102 eval "$as_ac_var=no"
24103 fi
24104 rm -f conftest.err conftest.$ac_objext \
24105       conftest$ac_exeext conftest.$ac_ext
24106 fi
24107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24109 if test `eval echo '${'$as_ac_var'}'` = yes; then
24110   cat >>confdefs.h <<_ACEOF
24111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24112 _ACEOF
24113
24114 fi
24115 done
24116
24117 echo "$as_me:$LINENO: checking for mprotect" >&5
24118 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24119 if test "${ac_cv_func_mprotect+set}" = set; then
24120   echo $ECHO_N "(cached) $ECHO_C" >&6
24121 else
24122   cat >conftest.$ac_ext <<_ACEOF
24123 /* confdefs.h.  */
24124 _ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h.  */
24128 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24130 #define mprotect innocuous_mprotect
24131
24132 /* System header to define __stub macros and hopefully few prototypes,
24133     which can conflict with char mprotect (); below.
24134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24135     <limits.h> exists even on freestanding compilers.  */
24136
24137 #ifdef __STDC__
24138 # include <limits.h>
24139 #else
24140 # include <assert.h>
24141 #endif
24142
24143 #undef mprotect
24144
24145 /* Override any gcc2 internal prototype to avoid an error.  */
24146 #ifdef __cplusplus
24147 extern "C"
24148 {
24149 #endif
24150 /* We use char because int might match the return type of a gcc2
24151    builtin and then its argument prototype would still apply.  */
24152 char mprotect ();
24153 /* The GNU C library defines this for functions which it implements
24154     to always fail with ENOSYS.  Some functions are actually named
24155     something starting with __ and the normal name is an alias.  */
24156 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24157 choke me
24158 #else
24159 char (*f) () = mprotect;
24160 #endif
24161 #ifdef __cplusplus
24162 }
24163 #endif
24164
24165 int
24166 main ()
24167 {
24168 return f != mprotect;
24169   ;
24170   return 0;
24171 }
24172 _ACEOF
24173 rm -f conftest.$ac_objext conftest$ac_exeext
24174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24175   (eval $ac_link) 2>conftest.er1
24176   ac_status=$?
24177   grep -v '^ *+' conftest.er1 >conftest.err
24178   rm -f conftest.er1
24179   cat conftest.err >&5
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); } &&
24182          { ac_try='test -z "$ac_c_werror_flag"
24183                          || test ! -s conftest.err'
24184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24185   (eval $ac_try) 2>&5
24186   ac_status=$?
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); }; } &&
24189          { ac_try='test -s conftest$ac_exeext'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; }; then
24195   ac_cv_func_mprotect=yes
24196 else
24197   echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200 ac_cv_func_mprotect=no
24201 fi
24202 rm -f conftest.err conftest.$ac_objext \
24203       conftest$ac_exeext conftest.$ac_ext
24204 fi
24205 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24206 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24207 if test $ac_cv_func_mprotect = yes; then
24208   :
24209 else
24210   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24211 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24212    { (exit 1); exit 1; }; }
24213 fi
24214
24215
24216
24217   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24218 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24219   ac_ext=c
24220 ac_cpp='$CPP $CPPFLAGS'
24221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24224
24225   oldcflags="$CFLAGS"
24226   CFLAGS="$CFLAGS -Wl,-R."
24227   cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h.  */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h.  */
24233
24234 int
24235 main ()
24236 {
24237 int main() { return 0; }
24238   ;
24239   return 0;
24240 }
24241 _ACEOF
24242 rm -f conftest.$ac_objext conftest$ac_exeext
24243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24244   (eval $ac_link) 2>conftest.er1
24245   ac_status=$?
24246   grep -v '^ *+' conftest.er1 >conftest.err
24247   rm -f conftest.er1
24248   cat conftest.err >&5
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); } &&
24251          { ac_try='test -z "$ac_c_werror_flag"
24252                          || test ! -s conftest.err'
24253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254   (eval $ac_try) 2>&5
24255   ac_status=$?
24256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); }; } &&
24258          { ac_try='test -s conftest$ac_exeext'
24259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260   (eval $ac_try) 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); }; }; then
24264   ac_cv_link_use_r=yes
24265 else
24266   echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24268
24269 ac_cv_link_use_r=no
24270 fi
24271 rm -f conftest.err conftest.$ac_objext \
24272       conftest$ac_exeext conftest.$ac_ext
24273   CFLAGS="$oldcflags"
24274   ac_ext=c
24275 ac_cpp='$CPP $CPPFLAGS'
24276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24279
24280   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24281 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24282   if test "$ac_cv_link_use_r" = yes
24283   then
24284
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_LINK_R 1
24287 _ACEOF
24288
24289   fi
24290
24291
24292 # Check whether --enable-optimized or --disable-optimized was given.
24293 if test "${enable_optimized+set}" = set; then
24294   enableval="$enable_optimized"
24295
24296 else
24297   enableval=no
24298 fi;
24299 if test ${enableval} = "no"
24300 then
24301         ENABLE_OPTIMIZED=
24302
24303 else
24304         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24305
24306 fi
24307
24308 # Check whether --enable-jit or --disable-jit was given.
24309 if test "${enable_jit+set}" = set; then
24310   enableval="$enable_jit"
24311
24312 else
24313   enableval=default
24314 fi;
24315 if test ${enableval} = "no"
24316 then
24317         JIT=
24318
24319 else
24320         case $target in
24321                 *i*86*)
24322                         JIT=TARGET_HAS_JIT=1
24323
24324                         ;;
24325                 *sparc*)
24326                         JIT=TARGET_HAS_JIT=1
24327
24328                         ;;
24329                 *)
24330                         JIT=
24331
24332                         ;;
24333         esac
24334 fi
24335
24336
24337 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24338 if test "${with_llvmgccdir+set}" = set; then
24339   withval="$with_llvmgccdir"
24340   LLVMGCCDIR=$withval
24341
24342 fi;
24343 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24344 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24345 LLVM_GCC_CHECK=no
24346 if test -d "$LLVMGCCDIR"
24347 then
24348         if test -x "$LLVMGCCDIR/bin/gcc"
24349         then
24350                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24351         fi
24352 fi
24353 llvmgccwarn=no
24354 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24355 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24356 if test "$LLVM_GCC_CHECK" = "no"
24357 then
24358     llvmgccwarn=yes
24359 fi
24360 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24361 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24362 LLVM_GCC_SANE=no
24363 if test -x "$LLVM_GCC_CHECK"
24364 then
24365         cp /dev/null conftest.c
24366     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24367         if test $? -eq 0
24368         then
24369                 LLVM_GCC_SANE=yes
24370         fi
24371         rm conftest.c
24372         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24373         LLVMCC1=$llvmcc1path
24374
24375         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24376         LLVMCC1PLUS=$llvmcc1pluspath
24377
24378 fi
24379 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24380 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24381 if test "$LLVM_GCC_SANE" = "no"
24382 then
24383         llvmgccwarn=yes
24384 fi
24385
24386 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24387 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24388 eval "SHLIBEXT=$shrext_cmds"
24389 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24390 echo "${ECHO_T}$SHLIBEXT" >&6
24391 SHLIBEXT=$SHLIBEXT
24392
24393
24394 cat >>confdefs.h <<_ACEOF
24395 #define SHLIBEXT "$SHLIBEXT"
24396 _ACEOF
24397
24398
24399 # Translate the various configuration directories and other basic
24400 # information into substitutions that will end up in config.h.in so
24401 # that these configured values can be hard-wired into a program.
24402 eval LLVM_PREFIX="${prefix}";
24403 eval LLVM_BINDIR="${prefix}/bin";
24404 eval LLVM_LIBDIR="${prefix}/lib";
24405 eval LLVM_DATADIR="${prefix}/data";
24406 eval LLVM_DOCSDIR="${prefix}/docs";
24407 eval LLVM_ETCDIR="${prefix}/etc";
24408 eval LLVM_INCLUDEDIR="${prefix}/include";
24409 eval LLVM_INFODIR="${prefix}/info";
24410 eval LLVM_MANDIR="${prefix}/man";
24411 LLVM_CONFIGTIME=`date`
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423 cat >>confdefs.h <<_ACEOF
24424 #define LLVM_PREFIX "$LLVM_PREFIX"
24425 _ACEOF
24426
24427
24428 cat >>confdefs.h <<_ACEOF
24429 #define LLVM_BINDIR "$LLVM_BINDIR"
24430 _ACEOF
24431
24432
24433 cat >>confdefs.h <<_ACEOF
24434 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24435 _ACEOF
24436
24437
24438 cat >>confdefs.h <<_ACEOF
24439 #define LLVM_DATADIR "$LLVM_DATADIR"
24440 _ACEOF
24441
24442
24443 cat >>confdefs.h <<_ACEOF
24444 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24445 _ACEOF
24446
24447
24448 cat >>confdefs.h <<_ACEOF
24449 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24450 _ACEOF
24451
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24455 _ACEOF
24456
24457
24458 cat >>confdefs.h <<_ACEOF
24459 #define LLVM_INFODIR "$LLVM_INFODIR"
24460 _ACEOF
24461
24462
24463 cat >>confdefs.h <<_ACEOF
24464 #define LLVM_MANDIR "$LLVM_MANDIR"
24465 _ACEOF
24466
24467
24468 cat >>confdefs.h <<_ACEOF
24469 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24470 _ACEOF
24471
24472
24473 cat >confcache <<\_ACEOF
24474 # This file is a shell script that caches the results of configure
24475 # tests run on this system so they can be shared between configure
24476 # scripts and configure runs, see configure's option --config-cache.
24477 # It is not useful on other systems.  If it contains results you don't
24478 # want to keep, you may remove or edit it.
24479 #
24480 # config.status only pays attention to the cache file if you give it
24481 # the --recheck option to rerun configure.
24482 #
24483 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24484 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24485 # following values.
24486
24487 _ACEOF
24488
24489 # The following way of writing the cache mishandles newlines in values,
24490 # but we know of no workaround that is simple, portable, and efficient.
24491 # So, don't put newlines in cache variables' values.
24492 # Ultrix sh set writes to stderr and can't be redirected directly,
24493 # and sets the high bit in the cache file unless we assign to the vars.
24494 {
24495   (set) 2>&1 |
24496     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24497     *ac_space=\ *)
24498       # `set' does not quote correctly, so add quotes (double-quote
24499       # substitution turns \\\\ into \\, and sed turns \\ into \).
24500       sed -n \
24501         "s/'/'\\\\''/g;
24502           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24503       ;;
24504     *)
24505       # `set' quotes correctly as required by POSIX, so do not add quotes.
24506       sed -n \
24507         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24508       ;;
24509     esac;
24510 } |
24511   sed '
24512      t clear
24513      : clear
24514      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24515      t end
24516      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24517      : end' >>confcache
24518 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24519   if test -w $cache_file; then
24520     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24521     cat confcache >$cache_file
24522   else
24523     echo "not updating unwritable cache $cache_file"
24524   fi
24525 fi
24526 rm -f confcache
24527
24528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24529 # Let make expand exec_prefix.
24530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24531
24532 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24533 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24534 # trailing colons and then remove the whole line if VPATH becomes empty
24535 # (actually we leave an empty line to preserve line numbers).
24536 if test "x$srcdir" = x.; then
24537   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24538 s/:*\$(srcdir):*/:/;
24539 s/:*\${srcdir}:*/:/;
24540 s/:*@srcdir@:*/:/;
24541 s/^\([^=]*=[     ]*\):*/\1/;
24542 s/:*$//;
24543 s/^[^=]*=[       ]*$//;
24544 }'
24545 fi
24546
24547 DEFS=-DHAVE_CONFIG_H
24548
24549 ac_libobjs=
24550 ac_ltlibobjs=
24551 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24552   # 1. Remove the extension, and $U if already installed.
24553   ac_i=`echo "$ac_i" |
24554          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24555   # 2. Add them.
24556   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24557   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24558 done
24559 LIBOBJS=$ac_libobjs
24560
24561 LTLIBOBJS=$ac_ltlibobjs
24562
24563
24564
24565 : ${CONFIG_STATUS=./config.status}
24566 ac_clean_files_save=$ac_clean_files
24567 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24568 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24569 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24570 cat >$CONFIG_STATUS <<_ACEOF
24571 #! $SHELL
24572 # Generated by $as_me.
24573 # Run this file to recreate the current configuration.
24574 # Compiler output produced by configure, useful for debugging
24575 # configure, is in config.log if it exists.
24576
24577 debug=false
24578 ac_cs_recheck=false
24579 ac_cs_silent=false
24580 SHELL=\${CONFIG_SHELL-$SHELL}
24581 _ACEOF
24582
24583 cat >>$CONFIG_STATUS <<\_ACEOF
24584 ## --------------------- ##
24585 ## M4sh Initialization.  ##
24586 ## --------------------- ##
24587
24588 # Be Bourne compatible
24589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24590   emulate sh
24591   NULLCMD=:
24592   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24593   # is contrary to our usage.  Disable this feature.
24594   alias -g '${1+"$@"}'='"$@"'
24595 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24596   set -o posix
24597 fi
24598 DUALCASE=1; export DUALCASE # for MKS sh
24599
24600 # Support unset when possible.
24601 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24602   as_unset=unset
24603 else
24604   as_unset=false
24605 fi
24606
24607
24608 # Work around bugs in pre-3.0 UWIN ksh.
24609 $as_unset ENV MAIL MAILPATH
24610 PS1='$ '
24611 PS2='> '
24612 PS4='+ '
24613
24614 # NLS nuisances.
24615 for as_var in \
24616   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24617   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24618   LC_TELEPHONE LC_TIME
24619 do
24620   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24621     eval $as_var=C; export $as_var
24622   else
24623     $as_unset $as_var
24624   fi
24625 done
24626
24627 # Required to use basename.
24628 if expr a : '\(a\)' >/dev/null 2>&1; then
24629   as_expr=expr
24630 else
24631   as_expr=false
24632 fi
24633
24634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24635   as_basename=basename
24636 else
24637   as_basename=false
24638 fi
24639
24640
24641 # Name of the executable.
24642 as_me=`$as_basename "$0" ||
24643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24644          X"$0" : 'X\(//\)$' \| \
24645          X"$0" : 'X\(/\)$' \| \
24646          .     : '\(.\)' 2>/dev/null ||
24647 echo X/"$0" |
24648     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24649           /^X\/\(\/\/\)$/{ s//\1/; q; }
24650           /^X\/\(\/\).*/{ s//\1/; q; }
24651           s/.*/./; q'`
24652
24653
24654 # PATH needs CR, and LINENO needs CR and PATH.
24655 # Avoid depending upon Character Ranges.
24656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24659 as_cr_digits='0123456789'
24660 as_cr_alnum=$as_cr_Letters$as_cr_digits
24661
24662 # The user is always right.
24663 if test "${PATH_SEPARATOR+set}" != set; then
24664   echo "#! /bin/sh" >conf$$.sh
24665   echo  "exit 0"   >>conf$$.sh
24666   chmod +x conf$$.sh
24667   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24668     PATH_SEPARATOR=';'
24669   else
24670     PATH_SEPARATOR=:
24671   fi
24672   rm -f conf$$.sh
24673 fi
24674
24675
24676   as_lineno_1=$LINENO
24677   as_lineno_2=$LINENO
24678   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24679   test "x$as_lineno_1" != "x$as_lineno_2" &&
24680   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24681   # Find who we are.  Look in the path if we contain no path at all
24682   # relative or not.
24683   case $0 in
24684     *[\\/]* ) as_myself=$0 ;;
24685     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686 for as_dir in $PATH
24687 do
24688   IFS=$as_save_IFS
24689   test -z "$as_dir" && as_dir=.
24690   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24691 done
24692
24693        ;;
24694   esac
24695   # We did not find ourselves, most probably we were run as `sh COMMAND'
24696   # in which case we are not to be found in the path.
24697   if test "x$as_myself" = x; then
24698     as_myself=$0
24699   fi
24700   if test ! -f "$as_myself"; then
24701     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24703    { (exit 1); exit 1; }; }
24704   fi
24705   case $CONFIG_SHELL in
24706   '')
24707     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24709 do
24710   IFS=$as_save_IFS
24711   test -z "$as_dir" && as_dir=.
24712   for as_base in sh bash ksh sh5; do
24713          case $as_dir in
24714          /*)
24715            if ("$as_dir/$as_base" -c '
24716   as_lineno_1=$LINENO
24717   as_lineno_2=$LINENO
24718   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24719   test "x$as_lineno_1" != "x$as_lineno_2" &&
24720   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24721              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24722              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24723              CONFIG_SHELL=$as_dir/$as_base
24724              export CONFIG_SHELL
24725              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24726            fi;;
24727          esac
24728        done
24729 done
24730 ;;
24731   esac
24732
24733   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24734   # uniformly replaced by the line number.  The first 'sed' inserts a
24735   # line-number line before each line; the second 'sed' does the real
24736   # work.  The second script uses 'N' to pair each line-number line
24737   # with the numbered line, and appends trailing '-' during
24738   # substitution so that $LINENO is not a special case at line end.
24739   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24740   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24741   sed '=' <$as_myself |
24742     sed '
24743       N
24744       s,$,-,
24745       : loop
24746       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24747       t loop
24748       s,-$,,
24749       s,^['$as_cr_digits']*\n,,
24750     ' >$as_me.lineno &&
24751   chmod +x $as_me.lineno ||
24752     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24754    { (exit 1); exit 1; }; }
24755
24756   # Don't try to exec as it changes $[0], causing all sort of problems
24757   # (the dirname of $[0] is not the place where we might find the
24758   # original and so on.  Autoconf is especially sensible to this).
24759   . ./$as_me.lineno
24760   # Exit status is that of the last command.
24761   exit
24762 }
24763
24764
24765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24766   *c*,-n*) ECHO_N= ECHO_C='
24767 ' ECHO_T='      ' ;;
24768   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24769   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24770 esac
24771
24772 if expr a : '\(a\)' >/dev/null 2>&1; then
24773   as_expr=expr
24774 else
24775   as_expr=false
24776 fi
24777
24778 rm -f conf$$ conf$$.exe conf$$.file
24779 echo >conf$$.file
24780 if ln -s conf$$.file conf$$ 2>/dev/null; then
24781   # We could just check for DJGPP; but this test a) works b) is more generic
24782   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24783   if test -f conf$$.exe; then
24784     # Don't use ln at all; we don't have any links
24785     as_ln_s='cp -p'
24786   else
24787     as_ln_s='ln -s'
24788   fi
24789 elif ln conf$$.file conf$$ 2>/dev/null; then
24790   as_ln_s=ln
24791 else
24792   as_ln_s='cp -p'
24793 fi
24794 rm -f conf$$ conf$$.exe conf$$.file
24795
24796 if mkdir -p . 2>/dev/null; then
24797   as_mkdir_p=:
24798 else
24799   test -d ./-p && rmdir ./-p
24800   as_mkdir_p=false
24801 fi
24802
24803 as_executable_p="test -f"
24804
24805 # Sed expression to map a string onto a valid CPP name.
24806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24807
24808 # Sed expression to map a string onto a valid variable name.
24809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24810
24811
24812 # IFS
24813 # We need space, tab and new line, in precisely that order.
24814 as_nl='
24815 '
24816 IFS="   $as_nl"
24817
24818 # CDPATH.
24819 $as_unset CDPATH
24820
24821 exec 6>&1
24822
24823 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24824 # report actual input values of CONFIG_FILES etc. instead of their
24825 # values after options handling.  Logging --version etc. is OK.
24826 exec 5>>config.log
24827 {
24828   echo
24829   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24830 ## Running $as_me. ##
24831 _ASBOX
24832 } >&5
24833 cat >&5 <<_CSEOF
24834
24835 This file was extended by LLVM $as_me 1.4, which was
24836 generated by GNU Autoconf 2.59.  Invocation command line was
24837
24838   CONFIG_FILES    = $CONFIG_FILES
24839   CONFIG_HEADERS  = $CONFIG_HEADERS
24840   CONFIG_LINKS    = $CONFIG_LINKS
24841   CONFIG_COMMANDS = $CONFIG_COMMANDS
24842   $ $0 $@
24843
24844 _CSEOF
24845 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24846 echo >&5
24847 _ACEOF
24848
24849 # Files that config.status was made for.
24850 if test -n "$ac_config_files"; then
24851   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24852 fi
24853
24854 if test -n "$ac_config_headers"; then
24855   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24856 fi
24857
24858 if test -n "$ac_config_links"; then
24859   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24860 fi
24861
24862 if test -n "$ac_config_commands"; then
24863   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24864 fi
24865
24866 cat >>$CONFIG_STATUS <<\_ACEOF
24867
24868 ac_cs_usage="\
24869 \`$as_me' instantiates files from templates according to the
24870 current configuration.
24871
24872 Usage: $0 [OPTIONS] [FILE]...
24873
24874   -h, --help       print this help, then exit
24875   -V, --version    print version number, then exit
24876   -q, --quiet      do not print progress messages
24877   -d, --debug      don't remove temporary files
24878       --recheck    update $as_me by reconfiguring in the same conditions
24879   --file=FILE[:TEMPLATE]
24880                    instantiate the configuration file FILE
24881   --header=FILE[:TEMPLATE]
24882                    instantiate the configuration header FILE
24883
24884 Configuration files:
24885 $config_files
24886
24887 Configuration headers:
24888 $config_headers
24889
24890 Configuration links:
24891 $config_links
24892
24893 Configuration commands:
24894 $config_commands
24895
24896 Report bugs to <bug-autoconf@gnu.org>."
24897 _ACEOF
24898
24899 cat >>$CONFIG_STATUS <<_ACEOF
24900 ac_cs_version="\\
24901 LLVM config.status 1.4
24902 configured by $0, generated by GNU Autoconf 2.59,
24903   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24904
24905 Copyright (C) 2003 Free Software Foundation, Inc.
24906 This config.status script is free software; the Free Software Foundation
24907 gives unlimited permission to copy, distribute and modify it."
24908 srcdir=$srcdir
24909 INSTALL="$INSTALL"
24910 _ACEOF
24911
24912 cat >>$CONFIG_STATUS <<\_ACEOF
24913 # If no file are specified by the user, then we need to provide default
24914 # value.  By we need to know if files were specified by the user.
24915 ac_need_defaults=:
24916 while test $# != 0
24917 do
24918   case $1 in
24919   --*=*)
24920     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24921     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24922     ac_shift=:
24923     ;;
24924   -*)
24925     ac_option=$1
24926     ac_optarg=$2
24927     ac_shift=shift
24928     ;;
24929   *) # This is not an option, so the user has probably given explicit
24930      # arguments.
24931      ac_option=$1
24932      ac_need_defaults=false;;
24933   esac
24934
24935   case $ac_option in
24936   # Handling of the options.
24937 _ACEOF
24938 cat >>$CONFIG_STATUS <<\_ACEOF
24939   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24940     ac_cs_recheck=: ;;
24941   --version | --vers* | -V )
24942     echo "$ac_cs_version"; exit 0 ;;
24943   --he | --h)
24944     # Conflict between --help and --header
24945     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24946 Try \`$0 --help' for more information." >&5
24947 echo "$as_me: error: ambiguous option: $1
24948 Try \`$0 --help' for more information." >&2;}
24949    { (exit 1); exit 1; }; };;
24950   --help | --hel | -h )
24951     echo "$ac_cs_usage"; exit 0 ;;
24952   --debug | --d* | -d )
24953     debug=: ;;
24954   --file | --fil | --fi | --f )
24955     $ac_shift
24956     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24957     ac_need_defaults=false;;
24958   --header | --heade | --head | --hea )
24959     $ac_shift
24960     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24961     ac_need_defaults=false;;
24962   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24963   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24964     ac_cs_silent=: ;;
24965
24966   # This is an error.
24967   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24968 Try \`$0 --help' for more information." >&5
24969 echo "$as_me: error: unrecognized option: $1
24970 Try \`$0 --help' for more information." >&2;}
24971    { (exit 1); exit 1; }; } ;;
24972
24973   *) ac_config_targets="$ac_config_targets $1" ;;
24974
24975   esac
24976   shift
24977 done
24978
24979 ac_configure_extra_args=
24980
24981 if $ac_cs_silent; then
24982   exec 6>/dev/null
24983   ac_configure_extra_args="$ac_configure_extra_args --silent"
24984 fi
24985
24986 _ACEOF
24987 cat >>$CONFIG_STATUS <<_ACEOF
24988 if \$ac_cs_recheck; then
24989   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24990   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24991 fi
24992
24993 _ACEOF
24994
24995 cat >>$CONFIG_STATUS <<_ACEOF
24996 #
24997 # INIT-COMMANDS section.
24998 #
24999
25000 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25001 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25002 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25003 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25004 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25005 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25006 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25007 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25008 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25009 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25010 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25011 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25012
25013 _ACEOF
25014
25015
25016
25017 cat >>$CONFIG_STATUS <<\_ACEOF
25018 for ac_config_target in $ac_config_targets
25019 do
25020   case "$ac_config_target" in
25021   # Handling of arguments.
25022   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25023   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25024   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25025   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25026   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25027   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25028   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25029   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25030   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25031   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25032   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25033   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25034   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25035   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25036   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25037   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25038   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25039   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25040   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25041   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25042   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25043 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25044    { (exit 1); exit 1; }; };;
25045   esac
25046 done
25047
25048 # If the user did not use the arguments to specify the items to instantiate,
25049 # then the envvar interface is used.  Set only those that are not.
25050 # We use the long form for the default assignment because of an extremely
25051 # bizarre bug on SunOS 4.1.3.
25052 if $ac_need_defaults; then
25053   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25054   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25055   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25056   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25057 fi
25058
25059 # Have a temporary directory for convenience.  Make it in the build tree
25060 # simply because there is no reason to put it here, and in addition,
25061 # creating and moving files from /tmp can sometimes cause problems.
25062 # Create a temporary directory, and hook for its removal unless debugging.
25063 $debug ||
25064 {
25065   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25066   trap '{ (exit 1); exit 1; }' 1 2 13 15
25067 }
25068
25069 # Create a (secure) tmp directory for tmp files.
25070
25071 {
25072   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25073   test -n "$tmp" && test -d "$tmp"
25074 }  ||
25075 {
25076   tmp=./confstat$$-$RANDOM
25077   (umask 077 && mkdir $tmp)
25078 } ||
25079 {
25080    echo "$me: cannot create a temporary directory in ." >&2
25081    { (exit 1); exit 1; }
25082 }
25083
25084 _ACEOF
25085
25086 cat >>$CONFIG_STATUS <<_ACEOF
25087
25088 #
25089 # CONFIG_FILES section.
25090 #
25091
25092 # No need to generate the scripts if there are no CONFIG_FILES.
25093 # This happens for instance when ./config.status config.h
25094 if test -n "\$CONFIG_FILES"; then
25095   # Protect against being on the right side of a sed subst in config.status.
25096   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25097    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25098 s,@SHELL@,$SHELL,;t t
25099 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25100 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25101 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25102 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25103 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25104 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25105 s,@exec_prefix@,$exec_prefix,;t t
25106 s,@prefix@,$prefix,;t t
25107 s,@program_transform_name@,$program_transform_name,;t t
25108 s,@bindir@,$bindir,;t t
25109 s,@sbindir@,$sbindir,;t t
25110 s,@libexecdir@,$libexecdir,;t t
25111 s,@datadir@,$datadir,;t t
25112 s,@sysconfdir@,$sysconfdir,;t t
25113 s,@sharedstatedir@,$sharedstatedir,;t t
25114 s,@localstatedir@,$localstatedir,;t t
25115 s,@libdir@,$libdir,;t t
25116 s,@includedir@,$includedir,;t t
25117 s,@oldincludedir@,$oldincludedir,;t t
25118 s,@infodir@,$infodir,;t t
25119 s,@mandir@,$mandir,;t t
25120 s,@build_alias@,$build_alias,;t t
25121 s,@host_alias@,$host_alias,;t t
25122 s,@target_alias@,$target_alias,;t t
25123 s,@DEFS@,$DEFS,;t t
25124 s,@ECHO_C@,$ECHO_C,;t t
25125 s,@ECHO_N@,$ECHO_N,;t t
25126 s,@ECHO_T@,$ECHO_T,;t t
25127 s,@LIBS@,$LIBS,;t t
25128 s,@subdirs@,$subdirs,;t t
25129 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25130 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25131 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25132 s,@build@,$build,;t t
25133 s,@build_cpu@,$build_cpu,;t t
25134 s,@build_vendor@,$build_vendor,;t t
25135 s,@build_os@,$build_os,;t t
25136 s,@host@,$host,;t t
25137 s,@host_cpu@,$host_cpu,;t t
25138 s,@host_vendor@,$host_vendor,;t t
25139 s,@host_os@,$host_os,;t t
25140 s,@target@,$target,;t t
25141 s,@target_cpu@,$target_cpu,;t t
25142 s,@target_vendor@,$target_vendor,;t t
25143 s,@target_os@,$target_os,;t t
25144 s,@OS@,$OS,;t t
25145 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25146 s,@ARCH@,$ARCH,;t t
25147 s,@CXX@,$CXX,;t t
25148 s,@CXXFLAGS@,$CXXFLAGS,;t t
25149 s,@LDFLAGS@,$LDFLAGS,;t t
25150 s,@CPPFLAGS@,$CPPFLAGS,;t t
25151 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25152 s,@EXEEXT@,$EXEEXT,;t t
25153 s,@OBJEXT@,$OBJEXT,;t t
25154 s,@CC@,$CC,;t t
25155 s,@CFLAGS@,$CFLAGS,;t t
25156 s,@ac_ct_CC@,$ac_ct_CC,;t t
25157 s,@CPP@,$CPP,;t t
25158 s,@ifGNUmake@,$ifGNUmake,;t t
25159 s,@LEX@,$LEX,;t t
25160 s,@LEXLIB@,$LEXLIB,;t t
25161 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25162 s,@FLEX@,$FLEX,;t t
25163 s,@YACC@,$YACC,;t t
25164 s,@BISON@,$BISON,;t t
25165 s,@EGREP@,$EGREP,;t t
25166 s,@LN_S@,$LN_S,;t t
25167 s,@ECHO@,$ECHO,;t t
25168 s,@AR@,$AR,;t t
25169 s,@ac_ct_AR@,$ac_ct_AR,;t t
25170 s,@RANLIB@,$RANLIB,;t t
25171 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25172 s,@STRIP@,$STRIP,;t t
25173 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25174 s,@CXXCPP@,$CXXCPP,;t t
25175 s,@F77@,$F77,;t t
25176 s,@FFLAGS@,$FFLAGS,;t t
25177 s,@ac_ct_F77@,$ac_ct_F77,;t t
25178 s,@LIBTOOL@,$LIBTOOL,;t t
25179 s,@DOT@,$DOT,;t t
25180 s,@ETAGS@,$ETAGS,;t t
25181 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25182 s,@PYTHON@,$PYTHON,;t t
25183 s,@QMTEST@,$QMTEST,;t t
25184 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25185 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25186 s,@ENDIAN@,$ENDIAN,;t t
25187 s,@ALLOCA@,$ALLOCA,;t t
25188 s,@MMAP_FILE@,$MMAP_FILE,;t t
25189 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25190 s,@JIT@,$JIT,;t t
25191 s,@LLVMCC1@,$LLVMCC1,;t t
25192 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25193 s,@SHLIBEXT@,$SHLIBEXT,;t t
25194 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25195 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25196 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25197 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25198 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25199 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25200 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25201 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25202 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25203 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25204 s,@LIBOBJS@,$LIBOBJS,;t t
25205 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25206 CEOF
25207
25208 _ACEOF
25209
25210   cat >>$CONFIG_STATUS <<\_ACEOF
25211   # Split the substitutions into bite-sized pieces for seds with
25212   # small command number limits, like on Digital OSF/1 and HP-UX.
25213   ac_max_sed_lines=48
25214   ac_sed_frag=1 # Number of current file.
25215   ac_beg=1 # First line for current file.
25216   ac_end=$ac_max_sed_lines # Line after last line for current file.
25217   ac_more_lines=:
25218   ac_sed_cmds=
25219   while $ac_more_lines; do
25220     if test $ac_beg -gt 1; then
25221       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25222     else
25223       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25224     fi
25225     if test ! -s $tmp/subs.frag; then
25226       ac_more_lines=false
25227     else
25228       # The purpose of the label and of the branching condition is to
25229       # speed up the sed processing (if there are no `@' at all, there
25230       # is no need to browse any of the substitutions).
25231       # These are the two extra sed commands mentioned above.
25232       (echo ':t
25233   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25234       if test -z "$ac_sed_cmds"; then
25235         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25236       else
25237         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25238       fi
25239       ac_sed_frag=`expr $ac_sed_frag + 1`
25240       ac_beg=$ac_end
25241       ac_end=`expr $ac_end + $ac_max_sed_lines`
25242     fi
25243   done
25244   if test -z "$ac_sed_cmds"; then
25245     ac_sed_cmds=cat
25246   fi
25247 fi # test -n "$CONFIG_FILES"
25248
25249 _ACEOF
25250 cat >>$CONFIG_STATUS <<\_ACEOF
25251 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25252   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25253   case $ac_file in
25254   - | *:- | *:-:* ) # input from stdin
25255         cat >$tmp/stdin
25256         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25258   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25259         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25260   * )   ac_file_in=$ac_file.in ;;
25261   esac
25262
25263   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25264   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25265 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266          X"$ac_file" : 'X\(//\)[^/]' \| \
25267          X"$ac_file" : 'X\(//\)$' \| \
25268          X"$ac_file" : 'X\(/\)' \| \
25269          .     : '\(.\)' 2>/dev/null ||
25270 echo X"$ac_file" |
25271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25273           /^X\(\/\/\)$/{ s//\1/; q; }
25274           /^X\(\/\).*/{ s//\1/; q; }
25275           s/.*/./; q'`
25276   { if $as_mkdir_p; then
25277     mkdir -p "$ac_dir"
25278   else
25279     as_dir="$ac_dir"
25280     as_dirs=
25281     while test ! -d "$as_dir"; do
25282       as_dirs="$as_dir $as_dirs"
25283       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25285          X"$as_dir" : 'X\(//\)[^/]' \| \
25286          X"$as_dir" : 'X\(//\)$' \| \
25287          X"$as_dir" : 'X\(/\)' \| \
25288          .     : '\(.\)' 2>/dev/null ||
25289 echo X"$as_dir" |
25290     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25291           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25292           /^X\(\/\/\)$/{ s//\1/; q; }
25293           /^X\(\/\).*/{ s//\1/; q; }
25294           s/.*/./; q'`
25295     done
25296     test ! -n "$as_dirs" || mkdir $as_dirs
25297   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25298 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25299    { (exit 1); exit 1; }; }; }
25300
25301   ac_builddir=.
25302
25303 if test "$ac_dir" != .; then
25304   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25305   # A "../" for each directory in $ac_dir_suffix.
25306   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25307 else
25308   ac_dir_suffix= ac_top_builddir=
25309 fi
25310
25311 case $srcdir in
25312   .)  # No --srcdir option.  We are building in place.
25313     ac_srcdir=.
25314     if test -z "$ac_top_builddir"; then
25315        ac_top_srcdir=.
25316     else
25317        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25318     fi ;;
25319   [\\/]* | ?:[\\/]* )  # Absolute path.
25320     ac_srcdir=$srcdir$ac_dir_suffix;
25321     ac_top_srcdir=$srcdir ;;
25322   *) # Relative path.
25323     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25324     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25325 esac
25326
25327 # Do not use `cd foo && pwd` to compute absolute paths, because
25328 # the directories may not exist.
25329 case `pwd` in
25330 .) ac_abs_builddir="$ac_dir";;
25331 *)
25332   case "$ac_dir" in
25333   .) ac_abs_builddir=`pwd`;;
25334   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25335   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25336   esac;;
25337 esac
25338 case $ac_abs_builddir in
25339 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25340 *)
25341   case ${ac_top_builddir}. in
25342   .) ac_abs_top_builddir=$ac_abs_builddir;;
25343   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25344   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25345   esac;;
25346 esac
25347 case $ac_abs_builddir in
25348 .) ac_abs_srcdir=$ac_srcdir;;
25349 *)
25350   case $ac_srcdir in
25351   .) ac_abs_srcdir=$ac_abs_builddir;;
25352   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25353   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25354   esac;;
25355 esac
25356 case $ac_abs_builddir in
25357 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25358 *)
25359   case $ac_top_srcdir in
25360   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25361   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25362   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25363   esac;;
25364 esac
25365
25366
25367   case $INSTALL in
25368   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25369   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25370   esac
25371
25372   if test x"$ac_file" != x-; then
25373     { echo "$as_me:$LINENO: creating $ac_file" >&5
25374 echo "$as_me: creating $ac_file" >&6;}
25375     rm -f "$ac_file"
25376   fi
25377   # Let's still pretend it is `configure' which instantiates (i.e., don't
25378   # use $as_me), people would be surprised to read:
25379   #    /* config.h.  Generated by config.status.  */
25380   if test x"$ac_file" = x-; then
25381     configure_input=
25382   else
25383     configure_input="$ac_file.  "
25384   fi
25385   configure_input=$configure_input"Generated from `echo $ac_file_in |
25386                                      sed 's,.*/,,'` by configure."
25387
25388   # First look for the input files in the build tree, otherwise in the
25389   # src tree.
25390   ac_file_inputs=`IFS=:
25391     for f in $ac_file_in; do
25392       case $f in
25393       -) echo $tmp/stdin ;;
25394       [\\/$]*)
25395          # Absolute (can't be DOS-style, as IFS=:)
25396          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25397 echo "$as_me: error: cannot find input file: $f" >&2;}
25398    { (exit 1); exit 1; }; }
25399          echo "$f";;
25400       *) # Relative
25401          if test -f "$f"; then
25402            # Build tree
25403            echo "$f"
25404          elif test -f "$srcdir/$f"; then
25405            # Source tree
25406            echo "$srcdir/$f"
25407          else
25408            # /dev/null tree
25409            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25410 echo "$as_me: error: cannot find input file: $f" >&2;}
25411    { (exit 1); exit 1; }; }
25412          fi;;
25413       esac
25414     done` || { (exit 1); exit 1; }
25415 _ACEOF
25416 cat >>$CONFIG_STATUS <<_ACEOF
25417   sed "$ac_vpsub
25418 $extrasub
25419 _ACEOF
25420 cat >>$CONFIG_STATUS <<\_ACEOF
25421 :t
25422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25423 s,@configure_input@,$configure_input,;t t
25424 s,@srcdir@,$ac_srcdir,;t t
25425 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25426 s,@top_srcdir@,$ac_top_srcdir,;t t
25427 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25428 s,@builddir@,$ac_builddir,;t t
25429 s,@abs_builddir@,$ac_abs_builddir,;t t
25430 s,@top_builddir@,$ac_top_builddir,;t t
25431 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25432 s,@INSTALL@,$ac_INSTALL,;t t
25433 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25434   rm -f $tmp/stdin
25435   if test x"$ac_file" != x-; then
25436     mv $tmp/out $ac_file
25437   else
25438     cat $tmp/out
25439     rm -f $tmp/out
25440   fi
25441
25442 done
25443 _ACEOF
25444 cat >>$CONFIG_STATUS <<\_ACEOF
25445
25446 #
25447 # CONFIG_HEADER section.
25448 #
25449
25450 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25451 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25452 #
25453 # ac_d sets the value in "#define NAME VALUE" lines.
25454 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25455 ac_dB='[         ].*$,\1#\2'
25456 ac_dC=' '
25457 ac_dD=',;t'
25458 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25459 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25460 ac_uB='$,\1#\2define\3'
25461 ac_uC=' '
25462 ac_uD=',;t'
25463
25464 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25465   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25466   case $ac_file in
25467   - | *:- | *:-:* ) # input from stdin
25468         cat >$tmp/stdin
25469         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25470         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25471   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25473   * )   ac_file_in=$ac_file.in ;;
25474   esac
25475
25476   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25477 echo "$as_me: creating $ac_file" >&6;}
25478
25479   # First look for the input files in the build tree, otherwise in the
25480   # src tree.
25481   ac_file_inputs=`IFS=:
25482     for f in $ac_file_in; do
25483       case $f in
25484       -) echo $tmp/stdin ;;
25485       [\\/$]*)
25486          # Absolute (can't be DOS-style, as IFS=:)
25487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25488 echo "$as_me: error: cannot find input file: $f" >&2;}
25489    { (exit 1); exit 1; }; }
25490          # Do quote $f, to prevent DOS paths from being IFS'd.
25491          echo "$f";;
25492       *) # Relative
25493          if test -f "$f"; then
25494            # Build tree
25495            echo "$f"
25496          elif test -f "$srcdir/$f"; then
25497            # Source tree
25498            echo "$srcdir/$f"
25499          else
25500            # /dev/null tree
25501            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25502 echo "$as_me: error: cannot find input file: $f" >&2;}
25503    { (exit 1); exit 1; }; }
25504          fi;;
25505       esac
25506     done` || { (exit 1); exit 1; }
25507   # Remove the trailing spaces.
25508   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25509
25510 _ACEOF
25511
25512 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25513 # `conftest.undefs', that substitutes the proper values into
25514 # config.h.in to produce config.h.  The first handles `#define'
25515 # templates, and the second `#undef' templates.
25516 # And first: Protect against being on the right side of a sed subst in
25517 # config.status.  Protect against being in an unquoted here document
25518 # in config.status.
25519 rm -f conftest.defines conftest.undefs
25520 # Using a here document instead of a string reduces the quoting nightmare.
25521 # Putting comments in sed scripts is not portable.
25522 #
25523 # `end' is used to avoid that the second main sed command (meant for
25524 # 0-ary CPP macros) applies to n-ary macro definitions.
25525 # See the Autoconf documentation for `clear'.
25526 cat >confdef2sed.sed <<\_ACEOF
25527 s/[\\&,]/\\&/g
25528 s,[\\$`],\\&,g
25529 t clear
25530 : clear
25531 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25532 t end
25533 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25534 : end
25535 _ACEOF
25536 # If some macros were called several times there might be several times
25537 # the same #defines, which is useless.  Nevertheless, we may not want to
25538 # sort them, since we want the *last* AC-DEFINE to be honored.
25539 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25540 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25541 rm -f confdef2sed.sed
25542
25543 # This sed command replaces #undef with comments.  This is necessary, for
25544 # example, in the case of _POSIX_SOURCE, which is predefined and required
25545 # on some systems where configure will not decide to define it.
25546 cat >>conftest.undefs <<\_ACEOF
25547 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25548 _ACEOF
25549
25550 # Break up conftest.defines because some shells have a limit on the size
25551 # of here documents, and old seds have small limits too (100 cmds).
25552 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25553 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25554 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25555 echo '  :' >>$CONFIG_STATUS
25556 rm -f conftest.tail
25557 while grep . conftest.defines >/dev/null
25558 do
25559   # Write a limited-size here document to $tmp/defines.sed.
25560   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25561   # Speed up: don't consider the non `#define' lines.
25562   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25563   # Work around the forget-to-reset-the-flag bug.
25564   echo 't clr' >>$CONFIG_STATUS
25565   echo ': clr' >>$CONFIG_STATUS
25566   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25567   echo 'CEOF
25568   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25569   rm -f $tmp/in
25570   mv $tmp/out $tmp/in
25571 ' >>$CONFIG_STATUS
25572   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25573   rm -f conftest.defines
25574   mv conftest.tail conftest.defines
25575 done
25576 rm -f conftest.defines
25577 echo '  fi # grep' >>$CONFIG_STATUS
25578 echo >>$CONFIG_STATUS
25579
25580 # Break up conftest.undefs because some shells have a limit on the size
25581 # of here documents, and old seds have small limits too (100 cmds).
25582 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25583 rm -f conftest.tail
25584 while grep . conftest.undefs >/dev/null
25585 do
25586   # Write a limited-size here document to $tmp/undefs.sed.
25587   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25588   # Speed up: don't consider the non `#undef'
25589   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25590   # Work around the forget-to-reset-the-flag bug.
25591   echo 't clr' >>$CONFIG_STATUS
25592   echo ': clr' >>$CONFIG_STATUS
25593   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25594   echo 'CEOF
25595   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25596   rm -f $tmp/in
25597   mv $tmp/out $tmp/in
25598 ' >>$CONFIG_STATUS
25599   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25600   rm -f conftest.undefs
25601   mv conftest.tail conftest.undefs
25602 done
25603 rm -f conftest.undefs
25604
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606   # Let's still pretend it is `configure' which instantiates (i.e., don't
25607   # use $as_me), people would be surprised to read:
25608   #    /* config.h.  Generated by config.status.  */
25609   if test x"$ac_file" = x-; then
25610     echo "/* Generated by configure.  */" >$tmp/config.h
25611   else
25612     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25613   fi
25614   cat $tmp/in >>$tmp/config.h
25615   rm -f $tmp/in
25616   if test x"$ac_file" != x-; then
25617     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25618       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25619 echo "$as_me: $ac_file is unchanged" >&6;}
25620     else
25621       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25623          X"$ac_file" : 'X\(//\)[^/]' \| \
25624          X"$ac_file" : 'X\(//\)$' \| \
25625          X"$ac_file" : 'X\(/\)' \| \
25626          .     : '\(.\)' 2>/dev/null ||
25627 echo X"$ac_file" |
25628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25630           /^X\(\/\/\)$/{ s//\1/; q; }
25631           /^X\(\/\).*/{ s//\1/; q; }
25632           s/.*/./; q'`
25633       { if $as_mkdir_p; then
25634     mkdir -p "$ac_dir"
25635   else
25636     as_dir="$ac_dir"
25637     as_dirs=
25638     while test ! -d "$as_dir"; do
25639       as_dirs="$as_dir $as_dirs"
25640       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25642          X"$as_dir" : 'X\(//\)[^/]' \| \
25643          X"$as_dir" : 'X\(//\)$' \| \
25644          X"$as_dir" : 'X\(/\)' \| \
25645          .     : '\(.\)' 2>/dev/null ||
25646 echo X"$as_dir" |
25647     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25648           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25649           /^X\(\/\/\)$/{ s//\1/; q; }
25650           /^X\(\/\).*/{ s//\1/; q; }
25651           s/.*/./; q'`
25652     done
25653     test ! -n "$as_dirs" || mkdir $as_dirs
25654   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25655 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25656    { (exit 1); exit 1; }; }; }
25657
25658       rm -f $ac_file
25659       mv $tmp/config.h $ac_file
25660     fi
25661   else
25662     cat $tmp/config.h
25663     rm -f $tmp/config.h
25664   fi
25665 done
25666 _ACEOF
25667 cat >>$CONFIG_STATUS <<\_ACEOF
25668
25669 #
25670 # CONFIG_LINKS section.
25671 #
25672
25673 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25674   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25675   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25676
25677   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25678 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25679
25680   if test ! -r $srcdir/$ac_source; then
25681     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25682 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25683    { (exit 1); exit 1; }; }
25684   fi
25685   rm -f $ac_dest
25686
25687   # Make relative symlinks.
25688   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25689 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25690          X"$ac_dest" : 'X\(//\)[^/]' \| \
25691          X"$ac_dest" : 'X\(//\)$' \| \
25692          X"$ac_dest" : 'X\(/\)' \| \
25693          .     : '\(.\)' 2>/dev/null ||
25694 echo X"$ac_dest" |
25695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25697           /^X\(\/\/\)$/{ s//\1/; q; }
25698           /^X\(\/\).*/{ s//\1/; q; }
25699           s/.*/./; q'`
25700   { if $as_mkdir_p; then
25701     mkdir -p "$ac_dest_dir"
25702   else
25703     as_dir="$ac_dest_dir"
25704     as_dirs=
25705     while test ! -d "$as_dir"; do
25706       as_dirs="$as_dir $as_dirs"
25707       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25709          X"$as_dir" : 'X\(//\)[^/]' \| \
25710          X"$as_dir" : 'X\(//\)$' \| \
25711          X"$as_dir" : 'X\(/\)' \| \
25712          .     : '\(.\)' 2>/dev/null ||
25713 echo X"$as_dir" |
25714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25716           /^X\(\/\/\)$/{ s//\1/; q; }
25717           /^X\(\/\).*/{ s//\1/; q; }
25718           s/.*/./; q'`
25719     done
25720     test ! -n "$as_dirs" || mkdir $as_dirs
25721   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25722 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25723    { (exit 1); exit 1; }; }; }
25724
25725   ac_builddir=.
25726
25727 if test "$ac_dest_dir" != .; then
25728   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25729   # A "../" for each directory in $ac_dir_suffix.
25730   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25731 else
25732   ac_dir_suffix= ac_top_builddir=
25733 fi
25734
25735 case $srcdir in
25736   .)  # No --srcdir option.  We are building in place.
25737     ac_srcdir=.
25738     if test -z "$ac_top_builddir"; then
25739        ac_top_srcdir=.
25740     else
25741        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25742     fi ;;
25743   [\\/]* | ?:[\\/]* )  # Absolute path.
25744     ac_srcdir=$srcdir$ac_dir_suffix;
25745     ac_top_srcdir=$srcdir ;;
25746   *) # Relative path.
25747     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25748     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25749 esac
25750
25751 # Do not use `cd foo && pwd` to compute absolute paths, because
25752 # the directories may not exist.
25753 case `pwd` in
25754 .) ac_abs_builddir="$ac_dest_dir";;
25755 *)
25756   case "$ac_dest_dir" in
25757   .) ac_abs_builddir=`pwd`;;
25758   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25759   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25760   esac;;
25761 esac
25762 case $ac_abs_builddir in
25763 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25764 *)
25765   case ${ac_top_builddir}. in
25766   .) ac_abs_top_builddir=$ac_abs_builddir;;
25767   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25768   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25769   esac;;
25770 esac
25771 case $ac_abs_builddir in
25772 .) ac_abs_srcdir=$ac_srcdir;;
25773 *)
25774   case $ac_srcdir in
25775   .) ac_abs_srcdir=$ac_abs_builddir;;
25776   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25777   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25778   esac;;
25779 esac
25780 case $ac_abs_builddir in
25781 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25782 *)
25783   case $ac_top_srcdir in
25784   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25785   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25786   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25787   esac;;
25788 esac
25789
25790
25791   case $srcdir in
25792   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25793       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25794   esac
25795
25796   # Try a symlink, then a hard link, then a copy.
25797   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25798     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25799     cp -p $srcdir/$ac_source $ac_dest ||
25800     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25801 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25802    { (exit 1); exit 1; }; }
25803 done
25804 _ACEOF
25805 cat >>$CONFIG_STATUS <<\_ACEOF
25806
25807 #
25808 # CONFIG_COMMANDS section.
25809 #
25810 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25811   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25812   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25813   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25814 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25815          X"$ac_dest" : 'X\(//\)[^/]' \| \
25816          X"$ac_dest" : 'X\(//\)$' \| \
25817          X"$ac_dest" : 'X\(/\)' \| \
25818          .     : '\(.\)' 2>/dev/null ||
25819 echo X"$ac_dest" |
25820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25822           /^X\(\/\/\)$/{ s//\1/; q; }
25823           /^X\(\/\).*/{ s//\1/; q; }
25824           s/.*/./; q'`
25825   { if $as_mkdir_p; then
25826     mkdir -p "$ac_dir"
25827   else
25828     as_dir="$ac_dir"
25829     as_dirs=
25830     while test ! -d "$as_dir"; do
25831       as_dirs="$as_dir $as_dirs"
25832       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25834          X"$as_dir" : 'X\(//\)[^/]' \| \
25835          X"$as_dir" : 'X\(//\)$' \| \
25836          X"$as_dir" : 'X\(/\)' \| \
25837          .     : '\(.\)' 2>/dev/null ||
25838 echo X"$as_dir" |
25839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25840           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25841           /^X\(\/\/\)$/{ s//\1/; q; }
25842           /^X\(\/\).*/{ s//\1/; q; }
25843           s/.*/./; q'`
25844     done
25845     test ! -n "$as_dirs" || mkdir $as_dirs
25846   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25847 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25848    { (exit 1); exit 1; }; }; }
25849
25850   ac_builddir=.
25851
25852 if test "$ac_dir" != .; then
25853   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25854   # A "../" for each directory in $ac_dir_suffix.
25855   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25856 else
25857   ac_dir_suffix= ac_top_builddir=
25858 fi
25859
25860 case $srcdir in
25861   .)  # No --srcdir option.  We are building in place.
25862     ac_srcdir=.
25863     if test -z "$ac_top_builddir"; then
25864        ac_top_srcdir=.
25865     else
25866        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25867     fi ;;
25868   [\\/]* | ?:[\\/]* )  # Absolute path.
25869     ac_srcdir=$srcdir$ac_dir_suffix;
25870     ac_top_srcdir=$srcdir ;;
25871   *) # Relative path.
25872     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25873     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25874 esac
25875
25876 # Do not use `cd foo && pwd` to compute absolute paths, because
25877 # the directories may not exist.
25878 case `pwd` in
25879 .) ac_abs_builddir="$ac_dir";;
25880 *)
25881   case "$ac_dir" in
25882   .) ac_abs_builddir=`pwd`;;
25883   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25884   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25885   esac;;
25886 esac
25887 case $ac_abs_builddir in
25888 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25889 *)
25890   case ${ac_top_builddir}. in
25891   .) ac_abs_top_builddir=$ac_abs_builddir;;
25892   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25893   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25894   esac;;
25895 esac
25896 case $ac_abs_builddir in
25897 .) ac_abs_srcdir=$ac_srcdir;;
25898 *)
25899   case $ac_srcdir in
25900   .) ac_abs_srcdir=$ac_abs_builddir;;
25901   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25902   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25903   esac;;
25904 esac
25905 case $ac_abs_builddir in
25906 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25907 *)
25908   case $ac_top_srcdir in
25909   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25910   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25911   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25912   esac;;
25913 esac
25914
25915
25916   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25917 echo "$as_me: executing $ac_dest commands" >&6;}
25918   case $ac_dest in
25919     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25920     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25921     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25922     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25923     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25924     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25925     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25926     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25927     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25928     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25929     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25930     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25931   esac
25932 done
25933 _ACEOF
25934
25935 cat >>$CONFIG_STATUS <<\_ACEOF
25936
25937 { (exit 0); exit 0; }
25938 _ACEOF
25939 chmod +x $CONFIG_STATUS
25940 ac_clean_files=$ac_clean_files_save
25941
25942
25943 # configure is writing to config.log, and then calls config.status.
25944 # config.status does its own redirection, appending to config.log.
25945 # Unfortunately, on DOS this fails, as config.log is still kept open
25946 # by configure, so config.status won't be able to write to it; its
25947 # output is simply discarded.  So we exec the FD to /dev/null,
25948 # effectively closing config.log, so it can be properly (re)opened and
25949 # appended to by config.status.  When coming back to configure, we
25950 # need to make the FD available again.
25951 if test "$no_create" != yes; then
25952   ac_cs_success=:
25953   ac_config_status_args=
25954   test "$silent" = yes &&
25955     ac_config_status_args="$ac_config_status_args --quiet"
25956   exec 5>/dev/null
25957   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25958   exec 5>>config.log
25959   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25960   # would make configure fail if this is the last instruction.
25961   $ac_cs_success || { (exit 1); exit 1; }
25962 fi
25963
25964 #
25965 # CONFIG_SUBDIRS section.
25966 #
25967 if test "$no_recursion" != yes; then
25968
25969   # Remove --cache-file and --srcdir arguments so they do not pile up.
25970   ac_sub_configure_args=
25971   ac_prev=
25972   for ac_arg in $ac_configure_args; do
25973     if test -n "$ac_prev"; then
25974       ac_prev=
25975       continue
25976     fi
25977     case $ac_arg in
25978     -cache-file | --cache-file | --cache-fil | --cache-fi \
25979     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25980       ac_prev=cache_file ;;
25981     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25982     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25983     | --c=*)
25984       ;;
25985     --config-cache | -C)
25986       ;;
25987     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25988       ac_prev=srcdir ;;
25989     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25990       ;;
25991     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25992       ac_prev=prefix ;;
25993     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25994       ;;
25995     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25996     esac
25997   done
25998
25999   # Always prepend --prefix to ensure using the same prefix
26000   # in subdir configurations.
26001   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26002
26003   ac_popdir=`pwd`
26004   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26005
26006     # Do not complain, so a configure script can configure whichever
26007     # parts of a large source tree are present.
26008     test -d $srcdir/$ac_dir || continue
26009
26010     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26011 echo "$as_me: configuring in $ac_dir" >&6;}
26012     { if $as_mkdir_p; then
26013     mkdir -p "$ac_dir"
26014   else
26015     as_dir="$ac_dir"
26016     as_dirs=
26017     while test ! -d "$as_dir"; do
26018       as_dirs="$as_dir $as_dirs"
26019       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26021          X"$as_dir" : 'X\(//\)[^/]' \| \
26022          X"$as_dir" : 'X\(//\)$' \| \
26023          X"$as_dir" : 'X\(/\)' \| \
26024          .     : '\(.\)' 2>/dev/null ||
26025 echo X"$as_dir" |
26026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26028           /^X\(\/\/\)$/{ s//\1/; q; }
26029           /^X\(\/\).*/{ s//\1/; q; }
26030           s/.*/./; q'`
26031     done
26032     test ! -n "$as_dirs" || mkdir $as_dirs
26033   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26035    { (exit 1); exit 1; }; }; }
26036
26037     ac_builddir=.
26038
26039 if test "$ac_dir" != .; then
26040   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26041   # A "../" for each directory in $ac_dir_suffix.
26042   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26043 else
26044   ac_dir_suffix= ac_top_builddir=
26045 fi
26046
26047 case $srcdir in
26048   .)  # No --srcdir option.  We are building in place.
26049     ac_srcdir=.
26050     if test -z "$ac_top_builddir"; then
26051        ac_top_srcdir=.
26052     else
26053        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26054     fi ;;
26055   [\\/]* | ?:[\\/]* )  # Absolute path.
26056     ac_srcdir=$srcdir$ac_dir_suffix;
26057     ac_top_srcdir=$srcdir ;;
26058   *) # Relative path.
26059     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26060     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26061 esac
26062
26063 # Do not use `cd foo && pwd` to compute absolute paths, because
26064 # the directories may not exist.
26065 case `pwd` in
26066 .) ac_abs_builddir="$ac_dir";;
26067 *)
26068   case "$ac_dir" in
26069   .) ac_abs_builddir=`pwd`;;
26070   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26071   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26072   esac;;
26073 esac
26074 case $ac_abs_builddir in
26075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26076 *)
26077   case ${ac_top_builddir}. in
26078   .) ac_abs_top_builddir=$ac_abs_builddir;;
26079   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26080   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26081   esac;;
26082 esac
26083 case $ac_abs_builddir in
26084 .) ac_abs_srcdir=$ac_srcdir;;
26085 *)
26086   case $ac_srcdir in
26087   .) ac_abs_srcdir=$ac_abs_builddir;;
26088   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26089   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26090   esac;;
26091 esac
26092 case $ac_abs_builddir in
26093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26094 *)
26095   case $ac_top_srcdir in
26096   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26097   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26098   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26099   esac;;
26100 esac
26101
26102
26103     cd $ac_dir
26104
26105     # Check for guested configure; otherwise get Cygnus style configure.
26106     if test -f $ac_srcdir/configure.gnu; then
26107       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26108     elif test -f $ac_srcdir/configure; then
26109       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26110     elif test -f $ac_srcdir/configure.in; then
26111       ac_sub_configure=$ac_configure
26112     else
26113       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26114 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26115       ac_sub_configure=
26116     fi
26117
26118     # The recursion is here.
26119     if test -n "$ac_sub_configure"; then
26120       # Make the cache file name correct relative to the subdirectory.
26121       case $cache_file in
26122       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26123       *) # Relative path.
26124         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26125       esac
26126
26127       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26128 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26129       # The eval makes quoting arguments work.
26130       eval $ac_sub_configure $ac_sub_configure_args \
26131            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26132         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26133 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26134    { (exit 1); exit 1; }; }
26135     fi
26136
26137     cd $ac_popdir
26138   done
26139 fi
26140
26141
26142 if test $bzip2_found -ne 1 ; then
26143   if test $zlib_found -ne 1 ; then
26144     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26145 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26146     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26147 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26148     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26149 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26150   fi
26151 fi
26152
26153 if test $llvmgccwarn = yes
26154 then
26155         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26156 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26157         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26158 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26159         { echo "$as_me:$LINENO: WARNING: ***** " >&5
26160 echo "$as_me: WARNING: ***** " >&2;}
26161         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26162 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26163         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26164 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26165         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26166 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26167 fi
26168